一键导入
generating-project-docs
Use when creating, refreshing, or updating project-level documentation — README.md, ARCHITECTURE.md, STRUCTURE.md, or scoped section updates
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating, refreshing, or updating project-level documentation — README.md, ARCHITECTURE.md, STRUCTURE.md, or scoped section updates
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Explore requirements and approaches through collaborative dialogue before writing a right-sized requirements document and planning implementation. Use for feature ideas, problem framing, when the user says 'let's brainstorm', or when they want to think through options before deciding what to build. Also use when a user describes a vague or ambitious feature request, asks 'what should we build', 'help me think through X', presents a problem with multiple valid solutions, or seems unsure about scope or direction — even if they don't explicitly ask to brainstorm.
Create structured plans for any multi-step task -- software features, research workflows, events, study plans, or any goal that benefits from structured breakdown. Also deepen existing plans with interactive review of sub-agent findings. Use for plan creation when the user says 'plan this', 'create a plan', 'write a tech plan', 'plan the implementation', 'how should we build', 'what's the approach for', 'break this down', 'plan a trip', 'create a study plan', or when a brainstorm/requirements document is ready for planning. Use for plan deepening when the user says 'deepen the plan', 'deepen my plan', 'deepening pass', or uses 'deepen' in reference to a plan.
Structured code review using tiered persona agents, confidence-gated findings, and a merge/dedup pipeline. Use when reviewing code changes before creating a PR.
Use when starting any conversation - establishes how to find and use skills, requiring skill tool invocation before ANY response including clarifying questions
Refresh stale or drifting learnings and pattern docs in docs/solutions/ by reviewing, updating, consolidating, replacing, or deleting them against the current codebase. Use after refactors, migrations, dependency upgrades, or when a retrieved learning feels outdated or wrong. Also use when reviewing docs/solutions/ for accuracy, when a recently solved problem contradicts an existing learning, when pattern docs no longer reflect current code, or when multiple docs seem to cover the same topic and might benefit from consolidation.
Document a recently solved problem to compound your team's knowledge
| name | generating-project-docs |
| description | Use when creating, refreshing, or updating project-level documentation — README.md, ARCHITECTURE.md, STRUCTURE.md, or scoped section updates |
| argument-hint | [readme|architecture|structure|all|section-name] |
This plugin's documentation describes a live system whose surface (skills, agents, config schema, CLI) keeps changing. Generated docs go stale fast.
Core principle: Derive every fact from the live repository. Preserve the existing document's evolved structure. Never regress to a generic template.
If you cannot point at a file or command that justifies a sentence, do not write it.
README.md after new skills, agents, or features landARCHITECTURE.md or STRUCTURE.md when the codebase layout changesdocs/plans/, docs/brainstorms/) — those follow their own templates$ARGUMENTS
readme — Update README.md (default)architecture — Update ARCHITECTURE.mdstructure — Update STRUCTURE.mdall — Update all three docs<section-name> — Update only that named section within the target doc (e.g. skills, agents, cli)For scoped updates: read the current document, locate the section by heading, replace only that section's content. Preserve surrounding structure exactly.
Before writing anything, gather these from the live repo:
| Source | What to extract |
|---|---|
package.json | name, version, description, scripts, repository URL |
bun src/cli.ts list skills 2>/dev/null | exact skill count and names |
bun src/cli.ts list agents 2>/dev/null | exact agent count, names, categories |
bun src/cli.ts list commands 2>/dev/null | command inventory |
find skills -name SKILL.md -exec head -6 {} \; -exec echo --- \; | skill frontmatter (name, description) |
find agents -maxdepth 2 -name '*.md' -exec head -4 {} \; -exec echo --- \; | agent frontmatter (name, description), category from path |
| Current target doc | existing structure, badges, nav links, voice |
git log --oneline -15 | recent change context |
Use find ... -exec or while IFS= read -r for shell loops over file lists. Unquoted for f in $VAR in zsh does not word-split a multiline variable and will iterate once on the joined string.
Counts MUST come from live CLI output or ls/find. Never carry over from the previous draft.
These rules match this repo's evolved style. Match them exactly.
<picture> with <source> tags for dark/light mode, not bare <img>style=flat-square, labelColor=1a1a2e, project color scheme:
color=4FD1C5color=E91E8Ccolor=4FD1C5color=F5A623· (middle dot)STRUCTURE.md: allowed for Key File Locations only. Headers | File | Role |. Reference .md files and source paths with backticks.bash for shell, json for config, markdown for skill examples, mermaid for diagramsRead the target doc first and preserve its evolved section structure. The section lists below are the current shape; check the live file to confirm before generating. New top-level sections need explicit approval.
README.mdThe README is intentionally lean — most reference material lives on the docs site, not in this file.
<picture>, badges, nav links)## Why Systematic? — short pitch, prose not bullets## What You Get — prose enumeration of skills/agents/commands at a high level (no tables; links to docs site for details)## Quick Install — opencode.json snippet and one verification command## First Workflow — canonical brainstorm → plan → work → review sequence## First-Run Checklist — short numbered list## Learn More — deep links to docs site, ARCHITECTURE.md, STRUCTURE.md## LicenseDo NOT add: skill tables, agent category tables, CLI reference tables, Mermaid diagrams, "How It Works" hook walkthroughs, Development sections, "Converting from..." migration guides. These belong on the docs site. The README's job is to get a new reader from zero context to running a first workflow.
ARCHITECTURE.mdFollowing matklad's "Bird's Eye" pattern. Audience: contributors who need to understand how the plugin works at a system level.
# Architecture — H1 title + 1–2 sentence orientation that points at STRUCTURE.md and AGENTS.md## Bird's Eye Overview — two-paragraph summary of plugin shape and the three OpenCode hooks## Codemap — pipeline diagram + symbol table mapping roles to file paths## Invariants — numbered list of invariants CI enforces## Data Flow — ASCII tree from plugin load through hooks## Cross-Cutting Concerns — content-integrity gate, registry drift, config validation, memoization, config prioritySTRUCTURE.mdAudience: contributors who need to know where things live and where to put new code.
# Structure — H1 title + cross-references to ARCHITECTURE.md and AGENTS.md## Directory Layout — ASCII tree of the top-level directories with inline comments## Directory Purposes — H3 subsection per top-level directory (src/, skills/, agents/, docs/, registry/, scripts/, tests/, .opencode/)## Key File Locations — categorized tables: Entry Points, Configuration, Core Logic, Build / CI Scripts, Tests## Naming Conventions — bullets covering files, tests, skills, agents, functions, types, constants## Where to Add New Code — prescriptive checklist (new skill, new agent, new config field, new core module, new test, new docs page, new build script, new project-only command)Security (always):
/Users/...)Accuracy (always):
README.md, ARCHITECTURE.md, and STRUCTURE.md resolve (no dangling links)Style (always):
| Mistake | Fix |
|---|---|
| Carrying over counts from previous draft | Re-derive every count from live CLI output |
| Adding "Robust", "Powerful", "Enterprise-grade" language | Delete it. State the fact instead. |
Using bare <img> instead of <picture> with <source> tags | Match the existing header block exactly |
| Wrong badge color or style | Check style rules above: flat-square + labelColor=1a1a2e |
| Replacing the evolved structure with a generic template | Read the current doc first; preserve sections you aren't updating |
| Inventing new top-level sections | Get explicit approval before adding a new H2 |
| Leaking session/plan/skill/subagent names into docs | Public docs describe the system, not how it was built |
| Hardcoding counts | Always derive from bun src/cli.ts list output |
# Inventory (run before writing)
bun src/cli.ts list skills 2>/dev/null # skill count + names
bun src/cli.ts list agents 2>/dev/null # agent count + categories
bun src/cli.ts list commands 2>/dev/null # command inventory
git log --oneline -15 # recent change context
# Verification (run after writing)
git diff README.md # review own diff