agentsclimarketplace

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.

Install
npx -y skills add ainova-systems/intelligence-sync --skill intelligence-learn-from-context

Assembled 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)

  1. 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 both scripts/sync.sh and scripts/VERSION (conventionally sync/). 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.

  2. Capture the lesson from session context or user input. Strip session-specific detail, keep the underlying pattern.

  3. 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.
  4. Route to the right artifact type:

    • Behavioral preference, tone, communication style → rule (<umbrella>/rules/<name>.md)
    • Multi-step repeatable workflow → use intelligence-extract-skill instead
    • Knowledge scope / persona / expertise area → agent
    • Project-specific context tied to a path → scoped rule with paths: frontmatter
  5. Check for an existing artifact to extend: list the target directory and read titles. When the lesson fits an existing artifact's scope, propose UPDATE rather than CREATE. Artifact proliferation costs context space.

  6. 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.

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)

  1. For each accepted item, delegate to the appropriate add-* skill or edit directly:

    • CREATE rule → call intelligence-add-rule
    • CREATE skill → call intelligence-add-skill
    • CREATE agent → call intelligence-add-agent
    • UPDATE existing artifact → edit the file directly, applying the proposed change
    • ARCHIVE → move to <umbrella>/_archive/ and update cross-references that point at it
  2. Run /intelligence-sync once all accepted items are applied.

Related skills

  • intelligence-extract-skill — when the lesson is a multi-step workflow to be made reusable
  • intelligence-review-skills — broader audit across existing intelligence/ artifacts
  • intelligence-add-rule, intelligence-add-skill, intelligence-add-agent — each authors one artifact; Phase B delegates to them

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.