一键导入
document-package
Generate or update ROS 2 package documentation (README and API docs) by reading source code. Enforces the documentation verification workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate or update ROS 2 package documentation (README and API docs) by reading source code. Enforces the documentation verification workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Host orchestrator that drives an issue through the full per-issue lifecycle — dispatches each phase (review-issue → plan-task → review-plan → implement → review-code → triage-reviews → address-findings) as a fresh-context sub-agent, reads each phase's progress.md entry to choose the next action, and pauses at user checkpoints. Local-first: the PR is created at the end, never auto-pushes or auto-merges without confirmation.
Evaluate a GitHub issue against workspace principles and ADRs before work begins. Records findings in progress.md and best-effort posts them as a comment on the issue.
Independent evaluation of a committed work plan before implementation begins. Checks scope, approach, principle alignment, consequences, and ROS conventions.
Activate deployment mode for a live field deployment. Discovers the project's deployment config, detects dev/field side via field_mode.sh, and either creates a new deployment, first-activates an existing one (worktree/main-tree + per-host log + issue-sync push), or resumes an ongoing one. Loads the urgency contract (sterile-cockpit / mitigate-before-diagnose / time-box) into the current agent session.
Close out a field deployment. Verifies dev-side access, finds the open deployment issue, collects field logs, interviews the operator for corrections, consolidates the dev log, reconciles field code via SHA-preserving merge and /import-field-changes, opens the wrap-up PR (Closes
Lead reviewer that orchestrates specialist sub-reviews (static analysis, governance, plan drift, adversarial) to evaluate a PR or pre-push diff. Scales review depth to change risk. Produces a unified structured report and persists findings to progress.md.
| name | document-package |
| description | Generate or update ROS 2 package documentation (README and API docs) by reading source code. Enforces the documentation verification workflow. |
/document-package [<package-path>]
If no path is given, use the current directory.
Lifecycle position: Utility — use after audit-project flags documentation
gaps, or when asked to "document a package", "update the README", or "write
API docs".
Generates both user-facing package documentation (README with nodes, topics,
parameters) and developer-facing API documentation (class/function reference)
by reading the actual source code. Merges what were previously two separate
skills (ros-documentation and ros-code-documentation).
Cardinal rule: No fact without reading the source. Every parameter name,
topic name, message type, and default value must come from the code, not
assumptions. See .agent/knowledge/documentation_verification.md.
# Package metadata
cat <package_path>/package.xml
# Source files
find <package_path> -name '*.py' -o -name '*.cpp' -o -name '*.hpp' -o -name '*.h' | sort
# Interface definitions
find <package_path> -name '*.msg' -o -name '*.srv' -o -name '*.action' | sort
# Launch files
find <package_path> -name '*.launch.py' -o -name '*.launch.xml' -o -name '*.launch.yaml' | sort
Record name, description, maintainer, license, and dependencies from
package.xml.
Follow the command cookbook in .agent/knowledge/documentation_verification.md
to grep for every:
declare_parameter / declare_parameterscreate_publishercreate_subscriptioncreate_service / create_clientrclcpp_action::create_server / create_clientRecord each finding with its file path and line number.
Read every launch file. Note:
DeclareLaunchArgument entries (name, default, description)For C++ libraries (headers in include/<package_name>/):
struct, enum, typedef)For Python modules (in <package_name>/ or src/<package_name>/):
__init__ signaturesUse the template at .agent/templates/package_documentation.md:
If the package contains libraries or modules with public APIs (not just ROS nodes):
docs/API.md in the package root.Skip this step if the package only contains ROS node executables with no reusable library code.
Run through the verification checklist from
.agent/templates/package_documentation.md:
declare_parameter callcreate_publisher or create_subscription callDeclareLaunchArgument calls.agent/knowledge/documentation_verification.md — Verification workflow
and command cookbook.agent/templates/package_documentation.md — README template with
verification checklist