agentleFS
certiniacertinia/debug-log-analyzer-mcp/.claude/skills/repo-docs/SKILL.md

repo-docs

Skill36 starsChanged 17 days agoBSD-3-ClauseView on GitHub

Where a fact belongs in this repo's docs, and the shape each file expects - README tools reference, generated token-cost blocks, MIGRATING, CLAUDE.md and DEVELOPING.md. Use when documenting a tool, parameter or response field, or when a doc figure no longer matches the code.

16 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Repo docs

Voice comes from the developer-writing skill. This skill says which file a fact belongs in and what shape that file expects. Changelog entries have their own rules - use changelog-entry.

One fact, one file

FactFile
What a tool returns, its parameters, its response fieldsREADME.md, Tools Reference
What a 1.x caller must changeMIGRATING.md
What a reader of the released package can see changedCHANGELOG.md (changelog-entry skill)
The rules every change follows, and how to build and releaseDEVELOPING.md - rules only, no evidence
Why code is the way it is: a measurement, a rejected alternativea doc comment on that code
How Salesforce behaves, tested in an org.claude/rules/<topic>.md, dated, with the issue link; the code links to it
What a contributor or agent needs before touching the codeCLAUDE.md
Why a budget number is what it isthe comment beside it in scripts/eval.mjs

Response-shaping policy never reaches the wire: not a .describe(), not a tool description. It is a contributor fact.

README shape, per tool

The Tools Reference gives each tool, in this order:

  1. One paragraph of what it answers and what it is best for - the served tool description in README voice, not a copy of it.
  2. The generated shape-<tool> block: every response field and its columns.
  3. Hand-written prose for what the block cannot say - what a column means, what makes one conditional, what an extra table joins to.
  4. The generated params-<tool> block.

A new parameter regenerates its own row. Write prose for it only if it changes what the rows carry.

Generated blocks - never hand-edit

README.md holds these blocks between markers, all written by the eval run:

  • token-cost-summary - the line on what keeping the server connected costs
  • token-cost-definitions and token-cost-answers - the two token tables
  • token-cost-v1-tools - what the tools that replaced 1.x's cost now
  • params-<tool> - the parameter table, from the schema the client is served, for every tool
  • shape-<tool> - the response fields, from the fixture the figures are measured against, for the analysis tools only

pnpm run build && pnpm run eval:update regenerates them with the goldens. pnpm run eval fails when they drift, so a hand edit is a CI failure, not a saving.

The prose around those tables is hand-written and does not regenerate - the paragraph naming what the unsliced 19.7 MB sample log costs is measured with node scripts/eval.mjs --report <log> and has to be re-measured by hand when a response shape moves. It is the one figure in the file nothing checks.

Figures in prose

Any figure a reader can check must match the code: percentages against 1.x, token counts, corpus sizes, row caps such as NAME_LIMIT and the page budget. When a change moves one, grep the docs for the old number before you commit - README.md, CLAUDE.md and MIGRATING.md quote them, and so do doc comments in src/.

MIGRATING

One section per thing a 1.x caller must do, each with a mapping table where the change is a rename, and a sentence naming what to grep for in their own prompts, agents and skills. No rationale - that is the changelog's job and the issue's.

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.