import_learnings
Bulk-import marked learnings from Markdown or JSON files, with permissive mode for all headings and bullets, deduplicating against existing entries.
Instructions
Bulk-import learnings from a Markdown or JSON file. By default only MARKED learnings are imported: inline bullets with a [category] prefix, anything inside a *LEARNINGS.md file, anything under a heading that says learnings / lessons / gotchas / rules, and JSON arrays of {category, rule, context}. Set permissive=true to also import every H3 heading, bold bullet and table row (H2=category, H3=rule, bullets=context). Deduplicates against existing learnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project name to tag all imported learnings with (e.g., 'FC_project') | |
| file_path | Yes | Absolute path to the Markdown (.md) or JSON (.json) file to import from | |
| permissive | No | Import every heading, bold bullet and table row as a rule (the pre-2.5.7 behaviour). Default false: only marked learnings. | |
| default_category | No | Default category for rules where category cannot be inferred. Defaults to 'other'. |