بنقرة واحدة
docs-templates
Sidecar data for /docs workflow — document templates loaded just-in-time when generating docs.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Sidecar data for /docs workflow — document templates loaded just-in-time when generating docs.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Companion skill for the /open workflow. Automates workspace diagnostic steps when starting a new session on a project. Collects active session status, project contracts, active task metrics, compact memory presence, roadmap phases, pending brainstorms, and git status.
Sidecar data for /brainstorm workflow — Brainstorm (open), Decision (finalized), and Research document templates loaded just-in-time.
Modular HTML rendering engine for PARA Workspace. Converts Markdown documents, code graphs, and standalone files into interactive, self-contained HTML pages with consistent Notion-inspired theming. Triggers when the user asks to compile docs to HTML, render graph visualization, export markdown to HTML, view docs statically, or preview documents.
Sidecar data for /plan workflow — Detail Plan and Roadmap templates loaded just-in-time.
Sidecar data for /qa workflow — Red Team personas, dimension checklists, and QA report templates loaded just-in-time.
Sidecar data for /remote workflow — namespace conventions and naming patterns loaded just-in-time. Extensible by user.
استنادا إلى تصنيف SOC المهني
| name | Docs Templates |
| description | Sidecar data for /docs workflow — document templates loaded just-in-time when generating docs. |
| source | catalog |
Sidecar Skill for the
/docsworkflow. Contains document templates that the Agent loads only when generating documentation (Step 6).Pattern: Workflow = Logic → Sidecar Skill = Data Router.
/docs new → Step 6 (Generate Documentation): load relevant template from references//docs review → NOT needed/docs update → NOT needed/docs publish → NOT needed| File | When | Purpose |
|---|---|---|
references/architecture.md | Project type = any | System overview & component diagram |
references/cli.md | Project type = CLI Tool | Command reference and usage |
references/deployment.md | Project type = Web App, Website | Prerequisites, build, deploy, env vars |
references/changelog.md | No existing changelog | Version history template |
references/strategy.md | Strategy creation (Step 3.5) | Vision, decisions, roadmap alignment |
Convention: Data files live in
references/(nottemplates/).
All documentation Markdown files in the docs/ directory SHOULD include YAML Frontmatter at the beginning of the file to declare metadata, particularly the display order.
---
title: "Document Display Title"
order: 1
---
order.1 (e.g., 1, 2, 3, 4...). The rendered output will display these exact numbers, maintaining consistency between metadata and the UI.README.md index file. Child files within directories are sorted by their order Frontmatter field. If the order is missing, files fallback to alphabetical sorting. Special files like README.md and changelog.md (case-insensitive) are automatically excluded from displaying number prefixes.When generating documentation that covers code architecture or features:
🔍 If project has
.beads/graph/, readpara-graph §3.3.2for the graph-enhanced documentation pipeline (build → enrich → context bundle per doc). If no graph → proceed with source-only doc writing.
⛔ Stale docs are worse than no docs — they mislead. When Agent modifies code that changes a public interface, it MUST update the corresponding documentation in the same session.
Agent MUST check for docs staleness when ANY of these changes occur:
| Change Type | Docs to Update | Example |
|---|---|---|
| API endpoint added/changed | docs/api/ or inline JSDoc | New route /api/webhook/sepay |
| DB schema modified (Drizzle/Prisma) | docs/architecture.md or schema docs | Added payments table |
| Config format changed | README.md setup section, env.example.txt | New env var SEPAY_API_KEY |
| CLI command added/changed | docs/cli.md | New flag --backup |
| Public function signature changed | Inline JSDoc + architecture docs | getDb() → getDb(platform?) |
docs/ for files referencing the modified entity.sprint-current.md if docs update is deferred (with reason)."I'll update docs later" — Agent MUST NOT defer docs updates to a separate task unless the user explicitly requests it. Docs drift is the #1 cause of onboarding confusion in OSS projects.
⛔ Anti-Hallucination Guard (v1.8.6): Every generated doc MUST pass source verification before it is considered complete. This is enforced in workflow Step 10.2.
Every document file MUST include this HTML comment after the title:
# [Document Title]
<!-- ⚠️ SOURCE-VERIFIED — Cross-referenced with [file1.ts, file2.ts, ...] on YYYY-MM-DD -->
The guard header serves as:
| Scenario | Documentation Requirement |
|---|---|
| Config declared + Code uses it | Document as active feature (normal) |
| Config declared + No code uses it | Mark: [Planned — Not yet implemented in source] |
| Code uses it + No explicit config | Document as runtime-derived or hardcoded |
| Feature removed from code but still in docs | Remove or update — stale docs are harmful |
| # | Check | Method |
|---|---|---|
| 1 | All src/ paths exist | find or ls on each referenced path |
| 2 | All function names match actual exports | grep "export.*functionName" in source |
| 3 | All env vars exist in config or code | grep in wrangler.jsonc + source files |
| 4 | No feature described as "active" without code | grep binding name in src/ — zero results = [Planned] |
🛡️ Traceability Guard (v1.9.0): The legacy
graph-nodecomment tags (<!-- @graph-node: nodeId -->) and thegraph_link_docstool are deprecated and disabled (since v0.17.4). Documentation files in thedocs/directory are now integrated directly into the Unified CSA (Tier 2) Gating framework.
To establish traceability between code, specifications, and documentation, choose one of the following methods:
| Method | Syntax in Doc File | Syntax in Code File | Use Case |
|---|---|---|---|
| Spec-to-Doc Inheritance | <span data-csa-inherits="csa-spec-id"></span> | // @para-doc [#csa-spec-id] | When the document section explains a business requirement defined in a Spec. |
| Doc-Specific Binding | <span id="csa-doc-anchor"></span> | // @para-doc [docs/path.md#csa-doc-anchor] | When documenting a technical component or API not covered by a Spec. |
<span data-csa-inherits="..."></span> or <span id="..."></span> anchors on the headings.// @para-doc comment to the source code entity.para-graph build [project-name] to update the graph database.npx para-graph audit csa --project . to verify compliance.Engine Behavior: The AST parser automatically resolves these relationships during build. No manual link command or secondary linking tool is required.
When /docs update --graph runs, Agent MUST update the
## Graph Traceability section in docs/README.md.
| Metric | Source | Description |
|---|---|---|
| Total docs | Index table row count | Files listed in all section tables |
| Docs with graph anchors | grep "<!-- @graph-node" in docs/ | Files containing anchor comments |
| Graph nodes with docAnchors | graph_query results | Nodes with non-empty docAnchors array |
| Stale docs | staleSince field on linked nodes | Code changed but docs not updated |
A document is considered stale when:
<!-- @graph-node: X --> anchorsstaleSince set (code signature changed after last enrichment)staleSinceAgent SHOULD list stale documents in the ### Stale Documents sub-table
within the Graph Traceability section.