agentleFS
tranhieutttranhieutt/software_development_department/.claude/skills/learner/SKILL.md

learner

Skill72 starsChanged 7 months agoMITView on GitHub

Turns real agent failures, repeated prompts, team-specific workflows, and durable project lessons into better SDD skills or memory entries. Use when the user asks to create/update/refine skills, extract reusable lessons, improve skill routing, encode team process, or save patterns for future sessions.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 13 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this workflow to decide whether a lesson belongs in:

    line 16
  2. Distinctive:

    Create or modify a skill only when at least one signal is present:

    line 33
  3. Distinctive:

    Do not create a skill for:

    line 43
  4. Distinctive:

    Prefer updating an existing skill over adding a new one when the lesson fits an existing coherent workflow.

    line 64
  5. Very specific:

    keep SKILL.md under 500 lines when practical,

    line 77
  6. Very specific:

    keep only always-needed instructions in SKILL.md,

    line 78
  7. Very specific:

    put trigger phrases and scope in description,

    line 82
  8. Distinctive:

    add exclusions when false positives are likely,

    line 83
  9. Distinctive:

    avoid relying on body-only "when to use" text for activation.

    line 84
  10. Very specific:

    do not weaken using-sdd, permissions, hooks, or source-of-truth rules,

    line 86
  11. Very specific:

    run node scripts\validate-readme-sync.js if counts or README inventory changed,

    line 90
  12. Very specific:

    run node scripts\harness-audit.js --compact for routing, hook, or harness changes.

    line 91
  13. Distinctive:

    Add what the agent lacks; cut what generic model knowledge already covers.

    line 95
  14. Distinctive:

    Prefer procedures over declarations.

    line 96
  15. Distinctive:

    Use defaults, not broad menus of equal options.

    line 97
  16. Distinctive:

    Add concrete gotchas where the agent is likely to make the wrong assumption.

    line 99
  17. Distinctive:

    Keep bundled scripts deterministic and tested.

    line 100
  18. Distinctive:

    Treat each skill like a function: one coherent responsibility, composable with other skills.

    line 101
  19. Distinctive:

    Use this shape when a new SDD skill is justified:

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Learner

Convert real SDD usage into durable operating knowledge.

Use this workflow to decide whether a lesson belongs in:

  • an existing skill,
  • a new skill,
  • .claude/memory/annotations.md,
  • another Tier 2 memory file,
  • or no durable artifact.

Source Principles

This workflow adopts the Agent Skills guidance that durable skills come from real expertise, project artifacts, execution traces, and repeated refinement. Skills should capture team-specific process and failure modes, not generic best practices or deterministic glue better handled by scripts, hooks, or MCP.

Extraction Gate

Create or modify a skill only when at least one signal is present:

  • Agent made a wrong choice despite a correct prompt.
  • Existing skill fired but failed its mission.
  • Needed skill did not fire because description was weak or absent.
  • A teammate/user wrote the same long prompt, plan, or checklist a second time.
  • Session repeated a costly investigation, setup, verification, or handoff loop.
  • User corrected a project convention, team preference, or non-obvious edge case.
  • Internal process, internal system, or proprietary data pattern must be reused.

Do not create a skill for:

  • General advice the model already knows.
  • One-off code snippets.
  • Secrets, credentials, or environment-specific auth hacks.
  • Simple deterministic checks better implemented as hooks, scripts, tests, or MCP.
  • Large copied docs without a clear load condition.

Decision

Classify the lesson before editing:

Lesson typeTarget
Existing workflow missed a rule, edge case, or output shapeUpdate that skill body
Existing skill should have fired but did notTighten that skill description
Repeated team-specific process forms a coherent unitCreate or update a skill
Non-obvious caveat tied to a service/library/repo areaUse annotate memory
Broad preference or project operating ruleUpdate the right Tier 2 memory/doc
Deterministic repeated operationPrefer tested script/hook/MCP; skill only orchestrates when needed

Prefer updating an existing skill over adding a new one when the lesson fits an existing coherent workflow.

Workflow

  1. Gather evidence:
    • original prompt or task,
    • correction or failure mode,
    • first point where the agent went wrong,
    • skills that fired or failed to fire,
    • files, commands, traces, review comments, or user preferences involved.
  2. Choose the smallest durable target using the Decision table.
  3. Edit with progressive disclosure:
    • keep SKILL.md under 500 lines when practical,
    • keep only always-needed instructions in SKILL.md,
    • move long examples, schemas, or domain references into references/,
    • state exactly when to read each reference file.
  4. Tune invocation:
    • put trigger phrases and scope in description,
    • add exclusions when false positives are likely,
    • avoid relying on body-only "when to use" text for activation.
  5. Preserve SDD gates:
    • do not weaken using-sdd, permissions, hooks, or source-of-truth rules,
    • route spec, plan, code, review, and release changes through their owning skills.
  6. Validate:
    • run powershell -ExecutionPolicy Bypass -File scripts\validate-skills.ps1,
    • run node scripts\validate-readme-sync.js if counts or README inventory changed,
    • run node scripts\harness-audit.js --compact for routing, hook, or harness changes.

Skill Edit Rules

  • Add what the agent lacks; cut what generic model knowledge already covers.
  • Prefer procedures over declarations.
  • Use defaults, not broad menus of equal options.
  • Make fragile operations prescriptive; leave flexible judgment where multiple approaches are valid.
  • Add concrete gotchas where the agent is likely to make the wrong assumption.
  • Keep bundled scripts deterministic and tested.
  • Treat each skill like a function: one coherent responsibility, composable with other skills.

New Skill Template

Use this shape when a new SDD skill is justified:

---
name: short-action-name
type: workflow
description: "What this skill does. Use when <specific trigger phrases, task contexts, and boundaries>."
argument-hint: "[expected input]"
user-invocable: true
allowed-tools: Read, Glob, Grep
effort: 2
when_to_use: "One sentence matching the description scope for SDD docs and humans."
---

# Purpose

State the reusable team-specific capability.

## Workflow

1. Do the first required action.
2. Make the context-dependent decision.
3. Verify with a concrete check.

## Gotchas

- Add only non-obvious failure modes discovered from real use.

## Output

Specify the exact artifact or response shape when consistency matters.

Completion Output

Report:

  • artifact changed or created,
  • evidence source that justified it,
  • validation commands and results,
  • remaining skill debt or telemetry gap.

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.