一键导入
engineering-documentation-gen
Generate technical documentation by gathering context from code, discussions, and existing docs
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate technical documentation by gathering context from code, discussions, and existing docs
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Draft an offer letter with compensation details and terms
Create structured interview plans with competency-based questions and scorecards. Triggers on "interview plan for [role]", "interview questions for [role]", "scorecard for [role]"
Headcount planning, org design, and team structure optimization. Triggers on "org planning", "headcount plan", "team structure", "reorg", "who should we hire next"
Track and manage recruiting pipeline from sourcing through offer. Triggers on "recruiting update", "candidate pipeline", "how many candidates", "hiring status for [role]"
Generate a prioritized daily plan. Triggers on "plan my day", "what's on my plate", "start my day", "morning plan", "daily priorities"
Quick meeting prep for any meeting — context, agenda, and talking points. Triggers on "prep for my meeting", "what's my next meeting about", "meeting context for [topic]"
| name | engineering-documentation-gen |
| description | Generate technical documentation by gathering context from code, discussions, and existing docs |
| metadata | {"openclaw":{"tags":["engineering","documentation","technical-writing"]}} |
When the user asks to generate documentation, write a technical doc, or document a system, API, or process:
Use capability_execute with the following parameters:
Find all existing documentation related to the topic. Identify what exists, what is outdated, and what gaps need to be filled.
Use capability_execute with the following parameters:
Design documents and ADRs contain the rationale behind technical decisions that should be reflected in the documentation.
Use capability_execute with the following parameters:
Gather requirements, specifications, and implementation details from project tasks. PR descriptions often contain valuable technical context.
Use capability_execute with the following parameters:
Capture tribal knowledge from engineering discussions. These conversations often contain explanations, gotchas, and context that never make it into formal documentation.
Use capability_execute with the following parameters:
Find documentation standards, templates, and examples relevant to the technology stack being documented.
Based on the user's request and gathered context, classify the document:
Documentation types:
Audience:
Adapt the format to the documentation type. Default to Architecture Overview if the type is ambiguous.
## Generated Documentation
### Document Metadata
- **Title:** <clear descriptive title>
- **Type:** <api-reference/architecture/runbook/getting-started/how-to/troubleshooting/migration>
- **Audience:** <who this is for>
- **Component/System:** <what is being documented>
- **Last updated:** <current_date>
- **Author:** Generated with AI assistance, reviewed by <user>
---
### <Document Title>
#### Overview
<2-3 paragraphs providing context on what this component/system does,
why it exists, and how it fits into the broader architecture>
#### Key Concepts
Define important terms and concepts the reader needs to understand:
- **<concept>:** <definition>
- **<concept>:** <definition>
- **<concept>:** <definition>
#### Architecture / Design
<describe the high-level architecture, including:>
- Component diagram or description of major components
- Data flow between components
- External dependencies
- Key design decisions and their rationale (sourced from ADRs)
**Design decisions:**
| Decision | Choice | Rationale | ADR Reference |
|----------|--------|-----------|---------------|
| <decision> | <what was chosen> | <why> | <adr_link_if_found> |
#### Setup / Prerequisites
<what the reader needs before they can work with this component>
1. <prerequisite>
2. <prerequisite>
3. <prerequisite>
#### Usage
##### <Use Case 1>
<step-by-step instructions>
1. <step>
2. <step>
3. <step>
**Example:**
```
<Use Case 2>
Configuration
Parameter Type Default Description
API Reference (if applicable)
<Endpoint / Method>
- Path/Signature: <path_or_signature>
- Method: <HTTP_method_or_call_pattern>
- Description:
- Parameters:
Name Type Required Description <yes/no>
- Response: <response_format>
- Example:
<request/response example>
Error Handling
Error Cause Resolution
Monitoring & Observability
- Key metrics:
- Alerts:
- Dashboards:
- Logs:
Troubleshooting
Symptom Likely Cause Solution
Known Limitations
-
-
Related Documentation
Changelog
Date Change Author Document created
Generation Notes (internal, not published)
- Sources used:
- <list of design docs, ADRs, tasks, and chat threads referenced>
- Gaps identified:
-
- Recommended reviewers:
-
- Existing docs to update/retire:
-
## Step 8: Offer to publish the document
Ask the user to review the generated documentation. Once approved,
use `capability_execute` with:
- capabilityId: "docs.create_brief"
- packId: "engineering"
- args:
- title: "<document_title>"
- content: "<document_body_without_generation_notes>"
- folder: "engineering/<component_or_doc_type>"
- tags: <relevant_tags>
- metadata:
- type: "<doc_type>"
- component: "<component_name>"
- audience: "<audience>"
- lastUpdated: "<current_date>"
Note: This is a side-effecting action. The router will request confirmation.
After publication, remind the user to:
1. Have the document reviewed by a subject matter expert
2. Update any outdated related documents identified in the generation notes
3. Link the new document from relevant README files or wikis