knowledge_sync_rules
Syncs high-importance insights into project IDE rules files, ensuring dynamic learnings persist as static rules for consistent context.
Instructions
Auto-sync graduated insights (importance >= 7) into your project's IDE rules file (.cursorrules or .clauderules). This bridges behavioral memory with static IDE context — turning dynamic agent learnings into always-on rules.
How it works:
Fetches graduated insights from the ledger
Formats them as markdown rules inside sentinel markers
Idempotently writes them into the target file at the project's configured repo_path
Requirements: The project must have a repo_path configured in the dashboard.
Idempotency: Uses <!-- PRISM:AUTO-RULES:START --> / <!-- PRISM:AUTO-RULES:END --> sentinel markers. Running this tool multiple times produces the same file. User-maintained content outside the sentinels is never touched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, returns a preview of the rules block without writing to disk. Default: false. | |
| project | Yes | Project identifier. Must have a repo_path configured in the dashboard. | |
| target_file | No | Target rules filename (default: '.cursorrules'). Common values: '.cursorrules', '.clauderules'. |