agentleFS
ClaySecAIClaySecAI/agents-for-the-boring-stuff/.claude/skills/edit-chapter/SKILL.md

edit-chapter

Skill2 starsChanged 45 days agoMITView on GitHub

Run the editorial pass on book prose before committing it: style linter, avoid-ai-writing, house-style checklist. Use whenever chapter text, a README or any doc changes.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Call the editor agent on it with this prompt, filling in the path.

    line 9
  2. Very specific:

    Run python3 scripts/style_check.py <path> --chapters yourself and show the finding count.

    line 19
  3. Distinctive:

    Do not commit text that has not been through this pass.

    line 22

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

Edit a chapter

  1. Name the file or folder. Ask only if it is unclear.
  2. Call the editor agent on it with this prompt, filling in the path. Put the rules in the prompt: an agent's own definition may be stale, and agents shorten work they think is unnecessary.

    Edit <path> in place. Follow STYLE.md, including American spelling and the Chapter shape sections (report missing ones; never write TESTED.md, the author supplies the facts). Before editing, call the Skill tool with avoid-ai-writing, then read .claude/skills/avoid-ai-writing/references/patterns.md in full, in pages, to its last heading. Do this even if the target is short. End your reply with this ledger, filled in: a line Ledger, then Skill loaded: yes, Catalog read through: <text of the last heading you read>, Linter findings: <before> -> <after>, Editing passes: <n>, Model-only checks: <list>.

  3. Save the editor's whole reply to a file and run python3 scripts/verify_editor_ledger.py <file>. It checks that the ledger says the skill loaded and names the catalog's real last heading. That catches an editor that skipped the end by accident, not one that looked the heading up. If it fails, send the editor back with the failure and do not accept the pass.
  4. Run python3 scripts/style_check.py <path> --chapters yourself and show the finding count.
  5. Report in a few lines: changes made, anything left and why, and any decision the author needs to make.

Do not commit text that has not been through this pass. The pre-commit guard checks privacy; this pass checks style. They are separate on purpose.

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.