agentleFS
t-manitejat-maniteja/codex-failsafe/skills/map/SKILL.md

map

Skill0 starsChanged 3 months agoMITView on GitHub

Bootstrap a consumer map for this repository — a checked-in CONSUMERS.md stating, for each kind of surface a change can start at, what else must move and how to verify it moved. The post and pre reviews read it to hunt unreached consumers. Run once per repo, then keep it current. Requires the `codex` CLI on PATH.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ultragoal, cost and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Yeachan-HeoSkill

    ultragoal

    Create and execute durable repo-native multi-goal plans over Codex goal mode artifacts.

    Also in 3 projects that use this

  • maxvaegaSkill

    cost

    Estimate what Claude Cowork / Claude Code conversations would cost if run on the pay-per-token Claude API instead of the subscription. Reports token counts and cache-aware API cost in USD and EUR, for the current conversation or for the whole history (cost per conversation). Trigger when the user asks things like "how much would this conversation cost on the API", "API cost of my Cowork conversations", "token usage / token count", "cost per conversation", "/cost", or wants to compare subscription vs API pricing.

    Also in 3 projects that use this

  • marylinSkill

    recover

    Recover work from a crashed or interrupted session. Use when Claude crashed mid-task, after an unexpected exit, when you see 'stale sessions detected', or when you lost context and need to figure out what was happening.

    Also in 3 projects that use this

  • thoughtbotSkill

    trace

    Run a scenario and record what actually happened.

    Also in 4 projects that use this

  • iovisorSkill

    evolve

    Evolve uBPF through a gated spec-first workflow that propagates approved changes through requirements, design, validation, implementation, and RFC alignment artifacts.

    Also in 5 projects that use this

  • POSTTTTSkill

    tidy

    Clean up and organize a project's file structure — group loose files into logical folders (images/, scripts/, styles/, etc.), remove empty directories, and delete genuinely unnecessary files. Use when the user asks to "clean up the project", "organize the files", "tidy the directory", "sort these into folders", "remove empty folders", or "get rid of junk files". Always understands the project and updates references BEFORE moving anything, never deletes load-bearing files, and gets approval before changing the file tree.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep it current the same way code is kept current: when a review's unreached_consumers surfaces a consumer the map missed, the map gets a …

    line 38

“Common” is measured: kept by at least 6 in 10 of the 22 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

The map — teaching the failsafe what consumes what

The most valuable thing the failsafe does is name the consumer a change failed to reach. In a repository with no stated coupling, it can only guess from imports and greps — which misses exactly the coupling grep cannot see: docs that quote code, fixtures, generated artifacts, deploy config. A consumer map fixes that, and this skill drafts one from the repository's own evidence.

Steps

  1. Run the derivation:

    "${CLAUDE_PLUGIN_ROOT}/scripts/codex-failsafe.sh" map

    Codex reads the build config, import graph, CI, codegen scripts, test layout and docs, and returns edges — each with origin, must_reach, verified_by, and evidence (or the honest string "inferred") — plus unmapped_risks it could not pin down.

  2. Adjudicate the draft with the user — never install it silently. A map nobody reviewed is a map nobody owns, and a wrong row misdirects every future review. For each edge: keep it, fix it, or strike it. Look twice at every "inferred" row. Resolve or strike each unmapped_risk.
  3. Write CONSUMERS.md at the repo root using templates/CONSUMERS.template.md as the shape, and commit it. The runner also accepts .codex-failsafe/CONSUMERS.md or docs/CONSUMERS.md.
  4. Keep it current the same way code is kept current: when a review's unreached_consumers surfaces a consumer the map missed, the map gets a row in the same change. The map is itself a surface with consumers — every future review reads it.

Without a map

The reviews still run: the runner tells Codex no map exists and instructs it to derive coupling from first principles. That is honest degradation, not failure — but the map is what turns "grep found these references" into "the repo says this schema is transcribed in three places; you moved two."

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.