fix-doc
Use when the user asks to fix, edit for prose quality, polish, tighten, humanize, or de-slop a Markdown doc or pasted text, or says "make this read less AI". Applies review-doc findings, generates flagged diagrams, lists substantive issues for the author, then runs the AI-tell pass last. Modifies the target.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- fix-doc
- description
- Use when the user asks to fix, edit for prose quality, polish, tighten, humanize, or de-slop a Markdown doc or pasted text, or says "make this read less AI". Applies review-doc findings, generates flagged diagrams, lists substantive issues for the author, then runs the AI-tell pass last. Modifies the target.
03 SKILL.md 正文
Fixing Docs
Fix stage of generate, review, fix. Consume the ## Findings table from review-doc, apply the safe rows, generate the diagrams, hand the judgment calls back to the author, then run the AI-tell pass. Findings and the final report stay in the conversation; write no review or side files.
Input is a file path or inline text. Optional phrase findings-only selects the mode below.
References, relative to this skill:
../../references/ai-tells.md: the final-pass patterns and how to fix each.../../references/diagrams.md: when and how to produce a diagram, tool choice, placement.../../references/common-doc-guidelines.md: structure, style, and Markdown formatting.
Vendored files keep upstream names in their text: practical-prose-guidelines.md is pprose-guidelines.md, practical-prose-rubric.md is pprose-rubric.md, ai-prose-corrections.md is ai-tells.md. Principles, metrics, and runbooks are not vendored; ignore links to them.
Modes
- Full (default). Use the findings already in the conversation only if they were produced for this target and the doc has not changed since. Otherwise run
review-docfirst: use the Skill tool fortechnical-writing:review-doc, or follow../review-doc/SKILL.mdif the Skill tool is unavailable. The humanizer pass covers the whole doc. findings-only. The caller (for examplereview:fix) passes a findings table, possibly one row, with the phrasefindings-only. Do not runreview-doc. Apply only the rows given, still honoring each row's Class:flagrows are listed, never rewritten, anddiagramrows are still generated. Limit the humanizer pass to the passages you edited. Edit nothing outside the given rows.
Steps
- Guard the target. Apply the Guardrails below before editing. Read the doc in full.
- Get findings. Per the mode above. Consume the columns
ID,Dimension,Location,Class,Issue,Fixexactly asreview-docemits them. Class isapply,flag, ordiagram. - Apply the
applyrows. Make each row's Fix at its Location, in document order. Before each edit confirm it cannot change meaning, claim strength, or scope. If it could, do not edit; move the row to the flagged list withClasschanged toflagand its original ID kept. - Generate the
diagramrows per../../references/diagrams.md: for a file target, invokearchitecture-design:create-diagramif available, else a fencedmermaidblock, and follow its placement rules. For inline text, use the fencedmermaidblock only: no tool call, no files. Keep the prose complete without the figure. - List the
flagrows for the author, never rewriting them. Rows that arrived asflagare reproduced verbatim. Do not edit the doc to resolve them, even partially. - Run the AI-tell pass last with
../../references/ai-tells.md, over the whole doc (or only the passages edited in steps 3 and 4 infindings-onlymode). Fix each tell the checklist supports on its own terms. If a tell's fix would change meaning, claim strength, or scope, leave the text and add it to the flagged list as a new row withClass: flag, an ID continuing the F-sequence after the highest ID in the table, the Expression or Form dimension the tell maps to, and a Location, Issue, and Fix in thereview-docstyle. Re-check that no fact, number, name, or citation was added or dropped. - Report in the conversation. Do not re-score.
- Counts: applied, generated, flagged. Applied includes humanizer edits; flagged includes tells you left alone.
- The flagged rows in the
review-docFindings table shape: arrived-as-flagrows verbatim, moved rows withClass: flagand their original ID, tell-derived rows as new IDs. - For inline text, the edited text (see Guardrails).
Guardrails
- Never change factual meaning, claim strength, scope, citations, code blocks, inline code, link targets, or YAML frontmatter. Frontmatter and HTML comments stay byte-identical.
- Refuse generated files: a
DO NOT EDIT,@generated, or "generated by" marker, or a generated-output path. Name the generator or source file and say to fix that instead. Edit nothing. - Inline text with no path: return the edited text in the reply and write no file.
- Write to Notion only on explicit request, after confirming.
- Never invent a fact to fill a gap. If a fix needs information you lack, flag it.
- Diagram export files (
.png,.svg,.html) are created only fordiagramrows when the target is a file, asdiagrams.mdplaces them. Inline text never gets export files.
04 同仓库更多 Skills
writing-design-docs
Use when the user wants to write a problem-statement design doc, says "let's plan a feature properly" / "write a design doc" / "I'm thinking about how to do X" for a non-trivial X, or before committing to a non-obvious technical direction
write-doc
Use when the user asks to write or draft a README, ADR, runbook, tutorial, how-to, explanation, or reference doc, or a caller passes "type ADR" or "type README". Picks the type, fills a template, adds diagrams. RFCs and design docs belong to writing-design-docs.
review-doc
Use when the user asks to review, critique, score, grade, or "how good is this doc" for a Markdown doc or pasted text. Read-only. Scores it on the 20 Practical Prose dimensions and emits a findings table. Does not edit; fix-doc applies the findings next.
create-slides
Use when the user asks for a slide deck, presentation, talk, or slides from a document, report, PR, notes, or topic. Builds one self-contained Machinify-branded HTML deck in a minimalist style, with headline-plus-visual slides, speaker notes, and every diagram drawn by architecture-design:create-diagram.
start-session
Open a Claude Code working session in a fresh, isolated git worktree, so the user can start a task with a single /start-session <name>. Use at the START of a session when the user says "start session", "start a worktree", "spin up a worktree for ABC-123", "begin work on <ticket>", or passes a name/ticket to work under. Creates and ENTERS a worktree via the EnterWorktree tool (never `git worktree add`) under .claude/worktrees/, named exactly after the argument, on a local branch `worktree-<argument>`. Reports what the worktree inherited (`.worktreeinclude` copies, symlinked node_modules) and whether its `.env` still points at the main checkout's stack. If the argument is a JIRA key (e.g. ABC-123, PROJ-1505), also loads that story with the Atlassian CLI (`acli`) when available and summarizes the implementation ask. Also renames the session to the argument (the same effect as `/rename <NAME>`) so it's easy to find in `/resume`. Then stops and waits — it sets up the workspace and context, it does not implement.
exit-session
Tear down the ephemeral resources a Claude Code working session created, then quit the CLI — so the user can wrap up with a single /exit-session. Use when the user says "exit session", "clean up this session", "tear down everything", "wrap up and clean up resources", "remove the worktree and scratch", "stop the background processes", "shut down the stack", "clean up the agent worktrees", or asks to clean up after finishing a task — even if they only name one resource (assume they want the full sweep unless they scope it). Runs teardown permission-free: stops background processes and dev servers, Docker/compose stacks plus their volumes, networks and images, local Tilt/Kubernetes, git worktrees, merged local branches, and temp/scratch files without prompting, then exits the CLI. Covers the worktrees and Docker resources left behind by subagents spawned during the session, not just the primary agent's own worktree — both determined from git locks and Docker labels rather than from recall. Never touches resources a still-live session holds.