Community程式設計與開發github.com

技術文件撰寫

在您的儲存庫中建置與審查高品質的技術文件及代理程式指令檔案。

技術文件撰寫 是什麼?

這個技能專門用於建立與審查清晰、可操作且易於維護的技術文件,同時兼顧人類開發者與AI代理程式的需求,包含貢獻者治理檔案和代理程式指令檔案。它支援多種平台,如 Claude Code、Cursor 和 Codex,並能處理各種文件框架(Fern、Sphinx、Mintlify)以及代理程式指令檔案(AGENTS.md、CLAUDE.md、.cursorrules 等)。技能的工作流程會先分類任務為建立或審查,以及背景為既有專案或長期維護模式,然後根據豐富的參考檔案(如 `references/agent-and-contributing.md`)來執行。它還能協調子代理程式(如 inventory-agent、governance-agent)進行大規模或複雜的文件工作,最終產出包含驗證註記、多語言一致性狀態及治理文件對齊摘要的完整交付成果。

相容平台✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/technical-documentation

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

技術文件

目的

產出與審查對人類和代理程式都清晰、可操作且易於維護的技術文件,包括貢獻者治理檔案和代理程式指令檔案。

使用時機

  • 在現有產品/程式碼庫中建立或徹底翻新文件(既有專案模式)。
  • 建立長期有效、能隨時間保持準確且可重複使用的文件。
  • 審查文件差異的結構、清晰度與操作正確性。
  • 執行全儲存庫的文件稽核,必須同時包含治理檔案與產品文件表面(docs/、README*、.md/.mdx/.mdc、Fern/Sphinx/Mintlify 風格的來源檔案)。
  • 更新或審查 AGENTS.md 及/或 CONTRIBUTING.md,以確保持續的代理程式與貢獻者工作流程與當前儲存庫實務一致。
  • 改善包含貢獻說明、問題模板、PR 流程與審查關卡的儲存庫入門文件。
  • 為包含別名指令檔案(例如 CLAUDE.md、AGENT.md、.cursorrules、.cursor/rules/*、.agent/、.agents/、.pi/)的儲存庫設計治理文件策略,其中 AGENTS.md 在存在時被視為標準檔案,而別名應保持為相容性表面。
  • 診斷代理程式檔案漂移問題,其中團隊需要反覆提示才能找出遺失的檔案、損壞的命令或政策衝突。
  • 套用儲存庫專屬的文件覆蓋層,包括 OpenClaw 頁面類型、文件資訊架構、保存與驗證規則(當存在時)。

工作流程

  1. 分類任務:建立 或 審查;背景:既有專案 或 長期維護。
  2. 及早盤點要求的檔案、目錄或差異範圍。包含全文件工作的治理檔案與產品文件。儲存庫大小本身不會擴大審查範圍。
  3. 偵測多語言範圍(多語言的 README/文件),並定義所需的對等程度。
  4. 讀取 references/agent-and-contributing.md 以了解代理程式指令與 CONTRIBUTING.md 工作流程規則(盤點、標準/別名對應、雙模式平衡、交付標準以及優先權/衝突處理)。
  5. 讀取 references/principles.md 以了解治理規則集(Matt Palmer 與 OpenAI)。
  6. 對於 OpenClaw 文件工作,在執行建立/審查手冊之前,先讀取 references/openclaw.md。
  7. 對於建立任務,遵循 references/build.md。
  8. 對於審查任務,遵循 references/review.md,並主動偵測問題,無需等待重複提示。
  9. 對於複雜或高風險任務(建立或審查),在需要信心時,允許執行更長、更深、更徹底的調查。
  10. 當可用時,使用子代理程式進行有界限的並行探索/審查工作,然後將輸出合併成一個連貫的最終交付成果。
  11. 當平台/工具選擇影響建議時,使用 references/tooling.md。
  12. 在要求的範圍內執行主動問題掃描。除非要求僅報告模式,否則在同一輪中修復高可信度缺陷。
  13. 在既有專案模式下,優先考慮與當前文件資訊架構、工具和發佈狀態的相容性。
  14. 在長期維護模式下,優先考慮永恆的措辭、更新策略和耐用的結構。
  15. 回傳交付成果以及驗證註記、對等狀態和剩餘差距。

子代理程式協調指南

當儲存庫很大或要求的變更集很廣泛時,優先使用子代理程式;對於全儲存庫、多框架或高衝突的工作,預設使用它們。

  • inventory-agent -> agents/inventory-agent.md (快速 / Claude haiku):檔案/組態探索、覆蓋範圍地圖和遺失路徑檢查。
  • governance-agent -> agents/governance-agent.md (思考 / Claude sonnet):AGENTS/CONTRIBUTING/別名優先權、衝突和政策漂移。
  • docs-framework-agent -> agents/docs-framework-agent.md (思考 / Claude sonnet):框架組態、相對路徑基礎以及檔案路徑與 URL 路徑對應檢查。
  • synthesis-agent -> agents/synthesis-agent.md (長時間 / Claude opus):將子代理程式輸出合併成一個優先的修復計劃和統一的優先權模型。

輸入

  • 文件類型(教學、操作指南、參考資料、解釋)與目標讀者。
  • 檔案範圍或差異範圍。
  • 文件框架/工具限制(Fern、Mintlify、Sphinx 等)。
  • 建立/審查模式以及既有專案/長期維護意圖。
  • 目標代理程式與人類相容性意圖。
  • 範圍內的文件框架表面(例如 Fern、Sphinx、Mintlify、Markdown/MDX/MDC/RST/RSC 檔案)。
  • 期望的調查深度/時間預算(快速檢查 vs 徹底審查)。
  • 執行模式(單一代理 或 子代理輔助,當可用時)。
  • 修正模式(預設為 套用修正,或要求時為 僅報告)。
  • 多語言範圍:原始語言的語言、目標地區設定與對等期望。
  • 儲存庫專屬的覆蓋限制(如果有的話)。

輸出

  • 更新的草稿或審查結果,附帶明確的下一步行動。
  • 驗證註記(檢查了什麼、還有什麼未完成)。
  • 導航/維護建議,以確保長期品質。
  • 當 AGENTS/CONTRIBUTING 被觸及時的治理文件對齊摘要。
  • 代理程式指令表面地圖(主要檔案、別名檔案、Codex/Claude/Cursor 處理計劃)。
  • 文件表面覆蓋範圍地圖(在 /docs 下審查了什麼、README 階層以及框架特定的原始碼樹)。
  • 自動偵測的問題清單以及套用的修正(或明確的僅報告結果)。
  • 當使用子代理程式時的委派註記(委派的範圍以及結果如何合併)。
  • 多語言對等註記(同步、部分同步附帶理由,或故意分歧)。
  • 當使用儲存庫專屬覆蓋層時,相關的覆蓋層註記。

指令規則

這些規則適用於 AGENTS.md 檔案、技能和審查提示。

  • 一條新規則必須引用一個事件:一個 PR、問題或提交。沒有事件,就沒有規則。
  • 一條新規則必須通過刪除測試:沒有它,資深工程師會做錯事。
  • 一條規則不能有「除非影響安全、資料或金錢」的例外。必須明確指出失敗的具體情況。
  • 一個證明或測試要求必須指明真實的輸入和錯誤的結果。對於推測性的競賽情況,只要求提供失敗模式及其可能性。
  • 在某一層新增的規則,必須在同一 PR 中刪除其其他層中較寬鬆和較嚴格的副本。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相關技能