一键导入
generate-docs
Generate or update docstrings, ADRs, READMEs, cookbook recipes, and user guides. Knows about MCP help-resource drift and ADR numbering scheme.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate or update docstrings, ADRs, READMEs, cookbook recipes, and user guides. Knows about MCP help-resource drift and ADR numbering scheme.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Open a PR for the current feature branch — validate, self-review, simplify, organize commits, push, create the PR, wait for CI and review, then address feedback. Use when implementation is complete and ready for review.
Write pytest tests using AAA pattern, project naming convention, and helper-based assertions (unwrap_as, unwrap_data, unwrap_unset). Delegates to the test-writer agent.
Review the current branch for correctness, security, architecture, and project conventions before opening a PR. Delegates to the code-reviewer agent and adds StatusPro-specific checks.
Structured code review using 6 dimensions. Works with or without the code-reviewer agent.
Create conventional commits with quality gates and validation
Respond to PR review comments systematically in thread context
| name | generate-docs |
| description | Generate or update docstrings, ADRs, READMEs, cookbook recipes, and user guides. Knows about MCP help-resource drift and ADR numbering scheme. |
| allowed-tools | Read, Edit, Write, Grep, Glob, Bash(uv run poe format), Bash(uv run poe docs-build), Bash(ls *), Bash(git log *) |
Add or update documentation for code, architecture decisions, and usage patterns. Knows StatusPro's doc layout (ADRs, MkDocs guides, cookbook, MCP help resource).
statuspro_mcp_server/.../resources/help.py. The hardcoded help content does not auto-sync from tool signatures.ls docs/adr/*.md | grep -o '[0-9]\{4\}' | sort -n | tail -1. Then update docs/adr/README.md index.uv run poe format (88-char lines, ATX headers).| Doc type | Location | When |
|---|---|---|
| Docstring | inline (Google style) | Public functions/classes/modules added |
| ADR | docs/adr/NNNN-*.md | Architectural decision made |
| Cookbook recipe | docs/COOKBOOK.md | New usage pattern worth sharing |
| User guide | docs/*.md | Complex feature needs walkthrough |
| README | package root | New package or major surface change |
| MCP help | statuspro_mcp_server/.../resources/help.py | MCP tool params changed |
Docstring (Google style):
def unwrap_as(response: Response, expected_type: type[T]) -> T:
"""Extract and validate a parsed response as the expected type.
Args:
response: The HTTP response to unwrap.
expected_type: The type to validate the parsed response against.
Returns:
The parsed response cast to the expected type.
Raises:
AuthenticationError: If the response is 401 Unauthorized.
ValidationError: If the response is 422 Unprocessable Entity.
APIError: For other non-success status codes.
"""
ADR: copy docs/adr/template.md to docs/adr/<next-number>-<slug>.md; update docs/adr/README.md index.
uv run poe format
uv run poe docs-build # only if updating MkDocs content
Status: Superseded by ADR-NNNN in the old ADR.docs/adr/README.md — ADR index, must be updated after creating an ADR