agentleFS
saschb2bsaschb2b/skills/skills/productivity/breadcrumbs/SKILL.md

breadcrumbs

Skill19 starsChanged 4 months agoMITView on GitHub

Heal codebase understanding gaps exposed during implementation, debugging, or investigation. Use when tracing reveals misleading names, repeated backtracking, disconnected navigation paths, hidden contracts, surprising dependencies, stale documentation, unclear errors, undocumented constraints, false leads, or avoidable complexity. Make the smallest durable improvement at the source through clearer code, types, validation, tests, errors, comments, or existing documentation. Also use when a task was harder to grasp than it should have been or you think "that should have been documented." Do not create a breadcrumb trail, investigation log, freshness system, or separate knowledge store.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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
  1. Distinctive:

    Treat avoidable confusion encountered during real work as evidence of a codebase smell.

    line 12
  2. Distinctive:

    Check scope: Keep the repair close to the traced area, useful beyond this session, and small enough to verify.

    line 24
  3. Distinctive:

    Delete obsolete or misleading material.

    line 32
  4. Distinctive:

    Update the existing documentation surface readers already use.

    line 37
  5. Distinctive:

    Prefer executable clarity over prose.

    line 39
  6. Distinctive:

    If either answer is no, continue the original task without manufacturing cleanup.

    line 48
  7. Distinctive:

    Do not widen a focused task into an architectural rewrite, add comments everywhere, duplicate facts across documents, preserve temporary …

    line 54
  8. Distinctive:

    When the proper repair is too large, risky, or uncertain, do not create a breadcrumb file.

    line 56
  9. Distinctive:

    Start at the reference index, or open only the concept needed:

    line 60

≈ “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

Breadcrumbs

Leave the path clearer

Treat avoidable confusion encountered during real work as evidence of a codebase smell. Before leaving the area, remove a small part of the friction that made it difficult to understand.

The healed codebase is the breadcrumb. Do not create a trail, registry, entry format, freshness stamp, or read-before-investigating ritual. Improve the place where understanding failed so the next developer benefits without knowing this skill exists.

Close every non-trivial trace with one question: what specific feature of the codebase made this harder to grasp than the behavior warranted? If the answer identifies a repeatable expectation failure, run the loop. If it identifies only unfamiliarity or genuine domain complexity, make no incidental change.

Run the healing loop

  1. Notice the expectation failure. Catch moments such as "that name sent me the wrong way," "I had to inspect every caller," or "that should have been documented."
  2. Finish the trace. Distinguish a repeatable codebase problem from temporary unfamiliarity or inherently difficult domain knowledge.
  3. Name the smell. Identify what caused the friction: misleading information scent, hostile navigation topology, an implicit contract, hidden rationale, fragmented ownership, diagnostic opacity, stale guidance, or accidental complexity. Use the smell catalog when the cause is ambiguous.
  4. Choose one coherent repair. Prefer removing confusion, then clearer code, executable constraints, better diagnostics, a local why, and finally an existing documentation surface. One repair may touch code, tests, and existing docs when they close the same expectation gap. Use the repair patterns for concrete transformations and placement guidance.
  5. Check scope. Keep the repair close to the traced area, useful beyond this session, and small enough to verify. Use the scope rails when the repair changes behavior, public contracts, architecture, or files outside the task.
  6. Heal and verify. Apply the repair while the evidence is fresh. Run the narrowest relevant test, type check, documentation check, or reference search.
  7. Continue the task. Mention the incidental repair in the normal handoff. Do not maintain a ledger.

Prefer the strongest durable form

Choose the highest useful rung that fits safely:

  1. Delete obsolete or misleading material.
  2. Rename, relocate, simplify, or expose the right entry point.
  3. Encode the contract in types, schemas, validation, assertions, or tests.
  4. Improve errors and diagnostic context.
  5. Explain a reason that code cannot express in a short adjacent comment.
  6. Update the existing documentation surface readers already use.

Prefer executable clarity over prose. A comment is for a reason or constraint, not a narration of visible code. Documentation is for setup, navigation, cross-cutting concepts, and operational knowledge that does not belong in one symbol.

Apply the two tests

Before editing, ask:

  • Repeatability: could another competent developer reasonably hit the same confusion?
  • Payoff: would this repair have shortened the trace without requiring knowledge of this skill?

If either answer is no, continue the original task without manufacturing cleanup.

Zero repairs is a successful outcome when the trace exposed no real smell. The skill rewards reduced future friction, not visible activity.

Stay proportional

Do not widen a focused task into an architectural rewrite, add comments everywhere, duplicate facts across documents, preserve temporary task state, create speculative TODOs, or comprehensively document the system. Do not hide behavior changes inside a clarity cleanup.

When the proper repair is too large, risky, or uncertain, do not create a breadcrumb file. State the concrete smell, evidence, and likely repair in the normal handoff so the owner can choose whether to expand scope.

Reference knowledge

Start at the reference index, or open only the concept needed:

  • Knowledge smell catalog. Diagnose the expectation failure and reject false positives.
  • Repair patterns. Select the strongest local repair and place knowledge where it naturally belongs.
  • Scope and autonomy rails. Decide whether to repair now, verify more, or surface the issue.
  • Worked healing examples. Compare weak breadcrumb-like notes with repairs that change the next trace.
  • Research basis. Consult the primary evidence behind information scent, explicit contracts, comments, diagnostics, documentation placement, and decision records.

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.