Draft Openspec Docs

作者 fission-ai9111a7654d78無授權條款71K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Collaborative page-drafting mode for the OpenSpec docs. Builds a scratch plan inside the target page (purpose, structure, numbered draft steps), iterates on it with the user, then drafts one section per approved step and cleans up after itself. Use when a page needs a from-scratch rewrite or a new page is being shaped with the user in the loop.

AI 產生的概覽

引導一套協作式的頁內工作流程,用於逐節規劃並起草 OpenSpec 文件頁面。

功能
此技能會在目標文件頁面內執行一套草稿計畫工作流程:先把頁面精簡為標題與目標行,再加入臨時計畫區,涵蓋用途、結構與編號的起草步驟。計畫會與使用者反覆迭代直到獲准,之後依每個獲准步驟起草一節,並對事實進行來源查核。最後整合交叉參照並清理臨時區塊。
適用情境
適用於 OpenSpec 文件頁面需要從零改寫,或在使用者參與審閱的情況下塑造新頁面的情境。適合使用者在起草前參與並核准結構的工作。
執行需求
僅為指令,不隨附指令碼。需要目標頁面、OpenSpec 文件儲存庫中的 docs-lab/README.md 與 docs-lab/message-map.md、網站同步設定 website/docs.sync.config.mjs,以及用於驗證的 Node 指令碼 website/scripts/sync-docs.mjs。起草前還要求載入 write-openspec-docs 與 no-ai-slop 技能。

Draft OpenSpec docs (scratch-plan workflow)

You are shaping a docs page with the user in the loop. The page is planned and reviewed inside the page itself, then drafted one section at a time. Load write-openspec-docs (the style authority) and no-ai-slop before drafting anything.

1. Set up the scratch section

Strip the page to its title and > goal line, then add a working section below them:

md
## Scratch: page plan (delete before publish)
### Purpose
### Structure
  • Purpose: 3-5 dot points. Who the reader is and what they come to look up, what the page covers, what it links out to. Check docs-lab/README.md (the page's goal line) and docs-lab/message-map.md (the questions routed here) before writing it.
  • Structure: a numbered list of the page's sections, one line each naming the section and the shape of its content (table, fence, tree, bullets).
  • Say what the page will do, never what it won't. Plain words and short bullets; the user reads this in their editor.

2. Iterate until the plan is approved

  • Plan edits are cheap; page edits aren't. Reshape the plan as many times as the user asks before drafting.
  • Record every decision in the plan itself, not only in chat. Add a ### Notes list for follow-ups that belong to other pages and product observations found along the way.
  • The user may edit the file directly between turns; their edits are decisions, not drift to revert.
  • Surface one open call at a time, with a recommendation.

3. Add the draft plan, then draft step by step

Once the structure holds, add a ### Draft plan below the notes: one step per page section, each with an ID and a readable title (**D1. Goal line and intro**), ending with a consolidation step (cross-page updates) and a cleanup step. Then:

  • Wait for the user to call a step ID. Draft exactly that step, into the page above the scratch block.
  • Verify each fact against source before writing it; a cheap grep beats trust. Reference content shows the raw contract (templates, instructions, config) verbatim in fences, linked to the file on GitHub, rather than paraphrasing it.
  • Keep sibling sections on a repeatable sub-structure so the page scans as one system.
  • Mark the step (done) in the plan, report what landed, and name the next step.

4. Consolidation and cleanup

  • Consolidation: update everything that points at the page. The README goal line (verbatim match with the page's > line), the message map, the sync config (website/docs.sync.config.mjs), and any cross-links found by grepping the tree. Run node website/scripts/sync-docs.mjs to validate.
  • Cleanup: delete the scratch block, run the retrievability and glance tests from write-openspec-docs at desktop and narrow widths, and flip the page's message-map row to Answered if its prose landed.

來源與署名

來源:fission-ai/openspec位於.agents/skills/draft-openspec-docs提交9111a76

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架