Skip to content
Back to skills

Refine

ASecurity

Refine a planning document or passage and carry the change through the documents it binds or is bound by.

  • 66 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
ai-agentsgonode

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add cosmix/loom --skill refine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refine?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Refine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cosmix-refine/badge)](https://www.skillsdirectory.com/skills/cosmix-refine)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: refine
description: Refine a planning document or passage and carry the change through the documents it binds or is bound by.
---

# Refine a document

Use the feature name given in the session's opening prompt. Its vision and
sections live under `doc/product/<feature>/`; its metaplans and plans live under
`doc/plans/<feature>/`. A standalone plan lives at `doc/plans/PLAN-<slug>.md`,
has `Implements: none`, and has no metaplan.

1. Read the target document and any attached passage in context. Read the documents it
   binds or is bound by: for a product section, its vision; for a plan, its metaplan
   entry if any and every product section named in its `Implements:` line. Follow references
   to find the other documents that state the same requirement or decision. When an
   attachment is a finding, read the feature's `doc/plans/<feature>/findings.md` for its
   `About:` nodes and status.
2. Check the write limits before editing. Refuse changes to files prefixed
   `IN_PROGRESS-`, `DONE-`, or `RETIRED-`, anything under `doc/plans/<feature>/archive/`
   or `doc/plans/archive/`, a locked plan's brief bundle, and `REVIEW-*.md` files.
   Explain that running and completed
   plans and their briefs preserve the execution record, and run reviews are read-only.
   Offer a new metaplan entry or a spec refinement for the correction instead.
3. Make the change the user asks for. Resolve material ambiguity with the user in
   plain text, one question at a time. Record each settled decision immediately in
   the document it affects, with its reason when the reason is not obvious. A document
   under `doc/product/` follows the session brief's rule for product documents: technical
   points go under its `## Deferred to planning`, never under `## Open questions`, and the
   vision's `## Planning notes` bind how you work.
4. Carry the change into every document that states the same thing in the same turn.
   For a product section, that includes the feature's vision (`index.md` and its
   `## Decisions`): correct any statement the change makes untrue.
   If you cannot reconcile a related document, record the conflict under its
   `## Open questions`, naming the conflicting statements, options, and your
   recommendation. If that document is locked, preserve it and record the conflict
   in the affected editable spec or proposed metaplan entry instead; explain the limit.
5. Keep headings that summaries cite unless the requested change concerns the heading
   itself. Keep cross-references consistent with any deliberate heading change.
6. Never write or edit a `Settled:` line; the app's Mark settled action writes it. When a
   document you edit has one, say so in the reply ("section 04 was settled; it now reads
   revised"). A section's stub is its vision row and a plan's stub is its metaplan entry:
   when a body's scope moves past its stub, update the stub in the same turn or ask.
7. A `(My call.)` marker, including the forms `(My call: reason)` and `(My call; reason)`,
   blocks Mark settled until it is gone. When the user addresses one, whether they confirm
   the decision, change it or drop it, edit the sentence to the agreed text and delete
   the whole marker in the same turn; when the reason is not obvious, keep it as
   plain prose. Leave no `(My call` text in the document. A decision the user has not
   confirmed keeps its marker.

Write only the target and affected editable documents under `doc/`, including an
agreed new metaplan entry under `doc/plans/<feature>/`. Never edit code or configuration.
Never write `doc/loom/knowledge/` with a file tool; use the `loom-plan:knowledge`
skill for an agreed knowledge change. Never write `doc/loom/summaries/` directly;
summaries change only through `loom plan summary seal <id>`. Never stage, commit,
branch, or run `loom init`, `loom run`, or `loom pressure`.

After any turn that edited documents, run `loom plan check` and fix what it reports
before you reply. Do not rebuild summaries at the end of the turn: the app rebuilds
them in the background once the documents stop changing.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.