agentleFS
rafaelghifrafaelghif/antigravity-agents-core/.agents/skills/self-learn/SKILL.md

self-learn

Skill6 starsChanged 15 days agoMITView on GitHub

Distills durable procedural rules from human corrections, search_web research, /browsing observations, code-review findings, and test failures into git-tracked docs/learnings/LESSONS.md without bloating AGENTS.md. Use after user feedback, tricky debugging, or external research (pairs with built-in /learn).

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer executable guardrails (test case, validator check, or hook regex) over passive prose whenever possible.

    line 32
  2. Very specific:

    Search docs/learnings/LESSONS.md before appending.

    line 34
  3. Very specific:

    If the insight represents a domain invariant or costly architectural decision, also promote it to CONTEXT.md §6 (/domain-modeling) or …

    line 35
  4. Very specific:

    When the user wants personal/IDE-level persistence outside the repository, also recommend /learn.

    line 37

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Self-Learn (Multi-Source Procedural Memory Distillation)

Turn transient discoveries, human feedback ("teguran"), and failure trajectories into concise, verified, non-redundant rules in docs/learnings/LESSONS.md (maximum 50 active lessons) so every future session and teammate inherits the insight automatically via SessionStart.

Decision tree

  1. Did a durable insight emerge from any verified source below?
    • human-feedback: User correction, preference, or premise pushback.
    • web-research: Primary documentation or 2026 best practices via search_web / /research.
    • browsing: Live DOM/network/UI verification discovery via /browsing.
    • code-review: 🔴 Blocking or 🟡 Structural finding from adversarial-reviewer, security-auditor, or architecture-planner.
    • test-failure: Root cause of a non-trivial bug, CI regression, or Stop/PostToolUse hook failure.
    • No (one-off typo or ephemeral WIP note) → Do not pollute docs/learnings/LESSONS.md; keep ephemeral notes in .scratch/handoff.md.
    • Yes → Proceed to step 2.
  2. Is this already enforced deterministically by a hook, test, or CONTEXT.md invariant?
    • Yes (and identical) → Do not duplicate; cross-link the existing rule/test ID.
    • No (or an important nuance/gotcha was missed) → Distill and persist using the workflow below.

Distillation workflow

  1. Verify Before Writing:
    • Cite the exact verified source (URL, path:line, test/hook output, or user directive). Never store unverified guesses or secrets (<REDACTED>).
  2. Distill Into Actionable Rule (<= 2 lines):
    • Format: | ID | Source | Scope / Trigger | Falsifiable Rule & Fix | Provenance | Status |
    • Prefer executable guardrails (test case, validator check, or hook regex) over passive prose whenever possible.
  3. Deduplicate, Supersede & Prune (<= 50 Active Cap):
    • Search docs/learnings/LESSONS.md before appending. Merge overlapping rules or mark obsolete rules superseded by L-### so the file stays token-lean.
    • If the insight represents a domain invariant or costly architectural decision, also promote it to CONTEXT.md §6 (/domain-modeling) or docs/adr/NNNN-*.md.
  4. Pair with Built-In /learn:
    • When the user wants personal/IDE-level persistence outside the repository, also recommend /learn.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.