一键导入
cognitive-doc-design
design or revise guides, READMEs, RFCs, onboarding, architecture, PR descriptions, and review-facing documentation to reduce cognitive load.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
design or revise guides, READMEs, RFCs, onboarding, architecture, PR descriptions, and review-facing documentation to reduce cognitive load.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Operate the project's PRD/SDD/OpenSpec workflow as a thin orchestrator skill, loading companion guidance for PRD, artifacts, phase contracts, and mini-sdd only when the route needs them.
create, restructure, or review independent Pi extensions, custom tools, lifecycle hooks, package dependencies, and TUI renderers with a consistent modular layout, native collapsed/expanded rendering, and lossless bounded model-facing output.
create, review, or update Pi skills while preserving the canonical SKILL.md format, registry contract, activation rules, and validation expectations.
Mandatory routing gate before any non-trivial edit (including user-ordered fixes, corrections, and refactors). Determines whether to ask clarifying questions, stay inline, use simple TDD, delegate read-only discovery, or start mini-sdd or formal SDD.
guide language-agnostic test-driven changes with existing-test discovery, safety baselines, meaningful assertions, appropriate test layers, feature-removal cleanup, and red-green-refactor evidence.
Spanish-first orchestration for technology news briefings: gather only the missing brief details, delegate deep research and Markdown artifact creation to the news-researcher subagent, and convert the resulting report.md to audio when requested.
| name | cognitive-doc-design |
| description | design or revise guides, READMEs, RFCs, onboarding, architecture, PR descriptions, and review-facing documentation to reduce cognitive load. |
| license | Apache-2.0 |
| metadata | {"author":"gentleman-programming","version":"1.1"} |
Use this block as the machine-readable source for .pi/skill-registry.json generation. Keep it valid JSON.
{
"category": "quality",
"domains": ["documentation", "cognitive-load", "technical-writing", "review-experience"],
"triggers": {
"paths": [
"README*.md",
"docs/**/*.md",
"rfcs/**/*.md",
"adr/**/*.md",
".github/pull_request_template*.md",
".github/PULL_REQUEST_TEMPLATE/**/*.md"
],
"keywords": [
"documentation",
"technical documentation",
"README",
"guide",
"RFC",
"ADR",
"onboarding",
"architecture document",
"PR description",
"review notes",
"cognitive load",
"progressive disclosure",
"make this easier to scan"
]
},
"sdd_phases": ["explore", "proposal", "spec", "design", "task", "apply", "verify"],
"related_skills": ["comment-writer"],
"priority": 60
}
Field conventions:
category: short grouping such as base, transversal, workflow, quality, security, or runtime.domains: stable domain tags used for routing.triggers.paths: glob-like project paths that should activate this skill.triggers.keywords: user/request/code keywords that should activate this skill.sdd_phases: phases where this skill is usually useful: explore, proposal, spec, design, task, apply, verify, archive.related_skills: skills that should be considered when this skill is active.priority: routing priority from 0 to 100. Higher means consider earlier when multiple skills match.Use this skill when creating or revising documentation that readers must understand quickly, retain, follow, or verify. Typical surfaces include PR descriptions, review notes, contributor guides, maintainer guides, READMEs, RFCs, ADRs, architecture documents, workflows, and onboarding material.
Load it especially when a document feels long, dense, difficult to scan, or forces reviewers to reconstruct intent. Do not load it for code-only changes, private scratch notes, or short conversational comments where comment-writer is the more specific skill.
Default documentation shape:
# <Outcome-oriented title>
<One paragraph: what changed, who it helps, and why it matters.>
## Quick path
1. <First action>
2. <Second action>
3. <Verification or expected result>
## Details
| Topic | Decision |
|-------|----------|
| <area> | <concise explanation> |
## Checklist
- [ ] <Reader can confirm this>
- [ ] <Reader can confirm that>
## Next step
<Link or action that continues the workflow.>
For PR and review documentation:
comment-writer.Useful inspection commands when applicable:
# Check markdown files changed in the current branch
git diff --name-only -- '*.md'
# Inspect PR changed-line count for cognitive load
gh pr view <PR_NUMBER> --json additions,deletions,changedFiles
Return:
cognitive-doc-design.extensions/skill-registry/templates/skill-template.md — canonical Pi skill structure and registry contract.