Agent skill
continuous-learning-v2
Protocol for the AI to self-analyze sessions and record 'instincts' (reusable patterns) for future improvement.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/continuous-learning-v2-atlasrox-super-fiesta
SKILL.md
🧠 Continuous Learning Protocol (v2)
Goal: Transform temporary session knowledge into permanent "Instincts" to improve future performance.
📝 The Instruction
When to run: At the end of every significant task or session, OR when the user types /learn.
Protocol Steps:
-
Analyze Session History: Review the interaction between you and the user. Look for:
- Corrections: "No, don't use X, use Y." -> Strong Signal
- Preferences: "I prefer small commits." -> Medium Signal
- Patterns: "We always mock the DB in tests." -> Project pattern
-
Formulate Instinct: Create a concise "Instinct" entry following this format:
markdown### [Instinct Title] - **Trigger**: When [situation occurs]... - **Action**: Always [do this specific thing]. - **Confidence**: [High/Medium/Low] based on evidence. - **Source**: Session [Date/ID] -
Refine: Check against existing rules. Is this already covered? Is it a general best practice or specific to this user?
-
Save:
- Read:
~/.antigravity/instincts/learned.md(Create if missing). - Append: Add your new instinct to the file.
- Report: Tell the user "I have learned a new instinct: [Title]."
- Read:
💡 Example
User: "Please stop using console.log, use our logger."
AI Action:
- Detects correction regarding logging.
- Formulates Instinct:
- Title: Use Project Logger
- Trigger: When logging information.
- Action: Use
lib/loggerinstead ofconsole.log. - Confidence: High (Explicit user instruction).
- Writes to
learned.md.
🚫 What NOT to learn
- One-off bugs.
- Secrets or passwords (NEVER save these).
- Temporary file paths.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?