agentleFS
olirobertolirobert/claude_skills/finalize-draft/SKILL.md

finalize-draft

Skill0 starsChanged 2 months agoBSD-2-ClauseView on GitHub

Turns a draft file into a finalized version by resolving naming and clarifying content ambiguity with the user, one question at a time, until the result is self-sufficient for another agent to act on. Use when the user asks to finalize, complete, or clean up a draft file.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    If the draft filename ends in _draft or -draft (immediately before the extension, e.g.

    line 12
  2. Distinctive:

    If a file already exists at the resolved final filename, confirm with the user before overwriting it.

    line 17
  3. Distinctive:

    Read the draft fully before asking anything.

    line 24
  4. Very specific:

    Prefer resolving what you can by inspecting the surrounding code/docs/repo context yourself.

    line 34
  5. Distinctive:

    Ask one question at a time, and wait for the answer before asking the next.

    line 38
  6. Distinctive:

    Don't front-load a list of questions.

    line 39
  7. Distinctive:

    If the user can't answer a question ("I don't know," "doesn't matter," or skips it), make a reasonable assumption yourself and note it …

    line 41

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

Finalize Draft

Takes a draft file (given as an argument) and produces its finalized version.

Step 1 — Determine the final filename

  • If the draft filename ends in _draft or -draft (immediately before the extension, e.g. notes_draft.md, spec-draft.txt), strip that suffix and use the result as the final filename.
  • Otherwise, ask the user for a name, suggesting {name}_final as the default (where {name} is the draft's filename without extension).
  • If a file already exists at the resolved final filename, confirm with the user before overwriting it.
  • The original draft file is left untouched — this skill only writes the new final file.

Step 2 — Resolve content ambiguity

Read the draft fully before asking anything. The goal: another AI agent should be able to pick up the final version and act on it (implement it, summarize it, turn it into a deck, etc.) without needing to ask any follow-up questions.

Look for:

  • Explicit markers: TODO, FIXME, [?], placeholders like {...} or TBD.
  • Genuine gaps or contradictions found while reading — missing decisions, conflicting statements, unresolved options — even if not explicitly marked.

Prefer resolving what you can by inspecting the surrounding code/docs/repo context yourself. Only ask the user about what you couldn't resolve that way.

Ask one question at a time, and wait for the answer before asking the next. Don't front-load a list of questions.

If the user can't answer a question ("I don't know," "doesn't matter," or skips it), make a reasonable assumption yourself and note it explicitly inline in the final document (e.g. "Assumption: ..."), then move on to the next question instead of blocking.

Step 3 — Write the final version

Once all ambiguity is either resolved or explicitly noted as an assumption, write the finalized content to the final filename determined in Step 1. The result should read as a complete, standalone document with no leftover unresolved markers.

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.