Intelligence learn from context
Skill ainova-systems/intelligence-sync/intelligence/sync/skills/intelligence-learn-from-context
Single source of truth for AI coding rules across Claude Code, Cursor, Copilot, Codex, and more. Write once, sync everywhere.
npx -y skills add ainova-systems/intelligence-sync --skill intelligence-learn-from-contextAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Capture session lessons and apply to intelligence/ after approval
SKILL.md
4.0 KB, as published. Nobody here has run it
Learn from Context
Use after a session where a meaningful preference, working pattern, or recurring friction emerged that should persist into future sessions. Runs in two phases — analyze (read-only) then apply (after user approval).
Principle: positive framing
LLMs follow whatever is named. Negation ("never do X") often draws attention to X. Positive framing ("default to Y", "prefer Y") steers behavior more cleanly.
This skill translates user-stated lessons before encoding:
- "Don't use NOT-comparison structures" → "State positively what IS"
- "Stop generating 3 options" → "Default to one strong recommendation"
- "Never push toward architecture framing" → "Reflect the user's framing in their own words first"
The original negative pattern stays in the rule body as an illustrative example (paired with positive replacement), but the LLM-facing instruction is positive.
Phase A — Analyze (read-only)
-
Read authoring conventions first. Discover the paths, never assume them: the umbrella is the directory holding
config.yaml(intelligence/,Intelligence/, a codename), and the engine module is the directory under it holding bothscripts/sync.shandscripts/VERSION(conventionallysync/). The meta-skills live in<module>/skills/, not directly under the umbrella. Load<module>/skills/intelligence-add-rule/SKILL.md,<module>/skills/intelligence-add-skill/SKILL.md,<module>/skills/intelligence-add-agent/SKILL.md, and<module>/docs/CONVENTIONS.md(Authoring Discipline section). This skill writes nothing on its own — it delegates to the add-* skills, which carry the authoring conventions. -
Capture the lesson from session context or user input. Strip session-specific detail, keep the underlying pattern.
-
Translate to positive form:
- "Never do X" → "Default to Y"
- "Stop doing Y" → "Do Z instead"
- Already-positive lessons keep as-is. Confirm the translation with the user if removing the negation changes meaning.
-
Route to the right artifact type:
- Behavioral preference, tone, communication style → rule (
<umbrella>/rules/<name>.md) - Multi-step repeatable workflow → use
intelligence-extract-skillinstead - Knowledge scope / persona / expertise area → agent
- Project-specific context tied to a path → scoped rule with
paths:frontmatter
- Behavioral preference, tone, communication style → rule (
-
Check for an existing artifact to extend: list the target directory and read titles. When the lesson fits an existing artifact's scope, propose
UPDATErather thanCREATE. Artifact proliferation costs context space. -
Output the proposal list — one entry per change, each with:
- Action:
CREATE/UPDATE/ARCHIVE - Target file path
- Brief draft of the change (positive framing applied)
- One-line reasoning
No files are written in this phase.
- Action:
User approval gate
Present the proposal list to the user. User accepts or rejects per item. Only accepted items move to Phase B.
Phase B — Apply (after approval)
-
For each accepted item, delegate to the appropriate add-* skill or edit directly:
CREATErule → callintelligence-add-ruleCREATEskill → callintelligence-add-skillCREATEagent → callintelligence-add-agentUPDATEexisting artifact → edit the file directly, applying the proposed changeARCHIVE→ move to<umbrella>/_archive/and update cross-references that point at it
-
Run
/intelligence-synconce all accepted items are applied.
Related skills
intelligence-extract-skill— when the lesson is a multi-step workflow to be made reusableintelligence-review-skills— broader audit across existing intelligence/ artifactsintelligence-add-rule,intelligence-add-skill,intelligence-add-agent— each authors one artifact; Phase B delegates to them