agentleFS
rikilamadridrikilamadrid/pathfinder/skills/teach-feature/SKILL.md

teach-feature

Skill1 starsChanged 44 days agoMITView on GitHub

Teach the verified current feature from its spec, diff, tests, and implementation without changing product code.

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

14 rules. About 0 are common, 14 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill after a feature has been implemented and reviewed, or when the user explicitly asks to understand an existing feature.

    line 8
  2. Distinctive:

    Read only the smallest useful context:

    line 14
  3. Distinctive:

    Do not read the entire repository by default.

    line 25
  4. Distinctive:

    If the feature or diff cannot be identified, ask for the branch, spec, commit range, or explicit file set.

    line 27
  5. Distinctive:

    Do not teach planned behavior as if it exists.

    line 38
  6. Distinctive:

    Do not spend most of the lesson paraphrasing syntax.

    line 67
  7. Distinctive:

    Keep the lesson focused. Prefer five strong transferable concepts over twenty shallow observations.

    line 84
  8. Distinctive:

    After producing the lesson, stop and offer exactly one recommended next action:

    line 96
  9. Distinctive:

    Do not automatically run the next skill.

    line 104
  10. Distinctive:

    Do not modify product code.

    line 108
  11. Distinctive:

    Do not install packages.

    line 109
  12. Distinctive:

    Do not commit or merge.

    line 110
  13. Distinctive:

    Do not invent intent that is unsupported by code or specs.

    line 111
  14. Distinctive:

    Do not reveal private chain-of-thought.

    line 112

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Teach Feature

Use this skill after a feature has been implemented and reviewed, or when the user explicitly asks to understand an existing feature.

The goal is not to produce generic documentation. The goal is to help the learner build a durable mental model from the actual repository.

Read First

Read only the smallest useful context:

  1. context/current-ticket.md, and the ticket it names
  2. The source feature spec under context/features/
  3. context/project-overview.md
  4. The current branch, working tree status, and focused diff
  5. Tests and implementation files touched by the feature
  6. Relevant ADR, coding standard, or design-system guidance only when it materially affects the feature

Skip any of these that does not exist. Pathfinder creates these files only when a workflow first needs them, so their absence is normal and is not an error. Do not create them just to satisfy this list.

Do not read the entire repository by default.

If the feature or diff cannot be identified, ask for the branch, spec, commit range, or explicit file set.

Reconcile Before Teaching

Briefly determine:

  • What the spec intended
  • What the implementation actually does
  • What tests verify
  • Any drift, incomplete work, or uncertainty

Do not teach planned behavior as if it exists.

Teaching Goals

Explain:

  • The user or system problem
  • The feature boundary
  • The mental model
  • Event and data flow
  • Responsibilities of important files
  • State ownership and synchronization
  • Error, loading, empty, and success behavior
  • Testing strategy
  • Accessibility implications
  • Performance implications
  • Maintainability and extension points
  • Meaningful decisions and tradeoffs
  • Production-scale gaps
  • Senior-level interview framing

Adaptation

Pitch the lesson at what the learner has already demonstrated, using context/learning/progress.md when it exists and what the human tells you when it does not. Ask rather than assume.

For an experienced engineer:

  • Do not spend most of the lesson paraphrasing syntax.
  • Explain architectural consequences.
  • Compare credible alternatives.
  • Identify hidden coupling and invariants.
  • Connect component-level decisions to team and system scale.
  • Point out gaps directly and constructively.

Lesson Artifact

Create:

context/learning/lessons/YYYY-MM-DD-[feature-slug].md

Use templates/lesson.template.md.

Keep the lesson focused. Prefer five strong transferable concepts over twenty shallow observations.

Mermaid diagrams are encouraged for:

  • event flow
  • state ownership
  • request lifecycle
  • component boundaries
  • dependency direction

Interaction Rule

After producing the lesson, stop and offer exactly one recommended next action:

  • quiz-me
  • challenge-me
  • teach-architecture
  • a later spaced review
  • no follow-up needed

Do not automatically run the next skill.

Safety and Scope

  • Do not modify product code.
  • Do not install packages.
  • Do not commit or merge.
  • Do not invent intent that is unsupported by code or specs.
  • Do not reveal private chain-of-thought.
  • Explain evidence, reasoning summaries, and tradeoffs.

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.