claude-all-hands 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/documentation-taxonomist.md +30 -24
- package/.claude/agents/documentation-writer.md +19 -17
- package/.claude/commands/{docs-audit.md → audit-docs.md} +9 -3
- package/.claude/commands/continue.md +34 -13
- package/.claude/commands/{docs-init.md → document.md} +3 -3
- package/.claude/envoy/README.md +11 -0
- package/.claude/envoy/package-lock.json +10 -0
- package/.claude/envoy/package.json +4 -0
- package/.claude/envoy/src/cli.ts +1 -0
- package/.claude/envoy/src/commands/context7.ts +176 -0
- package/.claude/envoy/src/commands/docs.ts +3 -10
- package/.claude/envoy/src/commands/plan/index.ts +6 -0
- package/.claude/envoy/src/commands/plan/lifecycle.ts +85 -0
- package/.claude/envoy/src/lib/ast-queries.ts +83 -41
- package/.claude/envoy/src/lib/tree-sitter-utils.ts +40 -11
- package/.claude/skills/research-tools/SKILL.md +44 -2
- package/package.json +1 -1
- package/.claude/commands/docs-adjust.md +0 -214
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Update documentation incrementally based on code changes
|
|
3
|
-
argument-hint: [--diff] [optional paths or context]
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<objective>
|
|
7
|
-
Update documentation incrementally based on recent code changes or user-specified scope. Uses taxonomy-based approach for targeted documentation updates.
|
|
8
|
-
</objective>
|
|
9
|
-
|
|
10
|
-
<context>
|
|
11
|
-
Current branch: !`git branch --show-current`
|
|
12
|
-
Base branch: !`envoy git get-base-branch`
|
|
13
|
-
</context>
|
|
14
|
-
|
|
15
|
-
<main_agent_role>
|
|
16
|
-
Main agent is ORCHESTRATOR ONLY. Do NOT perform any codebase discovery, file analysis, or documentation planning. All discovery work is delegated to the taxonomist agent.
|
|
17
|
-
|
|
18
|
-
Main agent responsibilities:
|
|
19
|
-
1. Parse arguments (paths, flags, context)
|
|
20
|
-
2. Verify clean git state
|
|
21
|
-
3. Delegate to taxonomist with raw inputs
|
|
22
|
-
4. Orchestrate writers based on taxonomist output
|
|
23
|
-
5. Handle merging, validation, and PR creation
|
|
24
|
-
</main_agent_role>
|
|
25
|
-
|
|
26
|
-
<process>
|
|
27
|
-
<step name="parse_arguments">
|
|
28
|
-
Parse $ARGUMENTS:
|
|
29
|
-
- `--diff` flag: pass to taxonomist for git-based discovery
|
|
30
|
-
- Paths: pass to taxonomist as scope
|
|
31
|
-
- Context: pass to taxonomist as user guidance
|
|
32
|
-
|
|
33
|
-
Do NOT run discovery commands - pass raw inputs to taxonomist.
|
|
34
|
-
</step>
|
|
35
|
-
|
|
36
|
-
<step name="ensure_committed_state">
|
|
37
|
-
Before delegating to taxonomist, verify clean git state:
|
|
38
|
-
|
|
39
|
-
1. Check for uncommitted changes:
|
|
40
|
-
```bash
|
|
41
|
-
git status --porcelain
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
2. If changes exist:
|
|
45
|
-
- Use AskUserQuestion: "Uncommitted changes detected. Documentation requires committed state for valid reference hashes."
|
|
46
|
-
- Options:
|
|
47
|
-
- "Commit now" - propose message, gate for approval
|
|
48
|
-
- "Stash and continue" - `git stash`
|
|
49
|
-
- "Cancel" - abort workflow
|
|
50
|
-
|
|
51
|
-
3. If "Commit now":
|
|
52
|
-
- Run `git diff --cached --stat` for context
|
|
53
|
-
- Propose commit message based on staged changes
|
|
54
|
-
- Gate for user approval
|
|
55
|
-
- Execute: `git add -A && git commit -m "<approved message>"`
|
|
56
|
-
|
|
57
|
-
4. If "Stash and continue":
|
|
58
|
-
- Execute: `git stash push -m "pre-docs stash"`
|
|
59
|
-
- Note: remind user to `git stash pop` after docs complete
|
|
60
|
-
|
|
61
|
-
5. Verify clean state before proceeding:
|
|
62
|
-
```bash
|
|
63
|
-
git status --porcelain
|
|
64
|
-
```
|
|
65
|
-
Must return empty.
|
|
66
|
-
</step>
|
|
67
|
-
|
|
68
|
-
<step name="delegate_to_taxonomist">
|
|
69
|
-
Delegate to **documentation-taxonomist agent** with adjust-workflow.
|
|
70
|
-
|
|
71
|
-
Taxonomist handles ALL discovery: analyzing codebase, checking existing docs, identifying affected domains, creating directory structure.
|
|
72
|
-
|
|
73
|
-
**INPUTS:**
|
|
74
|
-
```yaml
|
|
75
|
-
mode: "adjust"
|
|
76
|
-
use_diff: true | false # from --diff flag
|
|
77
|
-
scope_paths: [<paths from arguments, if any>]
|
|
78
|
-
user_request: "<optional context from user>"
|
|
79
|
-
feature_branch: "<current_branch>"
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
**OUTPUTS:**
|
|
83
|
-
```yaml
|
|
84
|
-
success: true
|
|
85
|
-
segments:
|
|
86
|
-
- domain: "<domain-name>"
|
|
87
|
-
files: ["<glob-patterns>"]
|
|
88
|
-
output_path: "docs/<domain>/"
|
|
89
|
-
depth: "overview" | "detailed" | "comprehensive"
|
|
90
|
-
notes: "<guidance>"
|
|
91
|
-
action: "create" | "update"
|
|
92
|
-
```
|
|
93
|
-
</step>
|
|
94
|
-
|
|
95
|
-
<step name="parallel_writers">
|
|
96
|
-
If multiple segments, delegate to **documentation-writer agents** in parallel.
|
|
97
|
-
|
|
98
|
-
If single segment, delegate to single writer.
|
|
99
|
-
|
|
100
|
-
**INPUTS (per writer):**
|
|
101
|
-
```yaml
|
|
102
|
-
mode: "write"
|
|
103
|
-
domain: "<segment.domain>"
|
|
104
|
-
files: <segment.files>
|
|
105
|
-
output_path: "<segment.output_path>"
|
|
106
|
-
depth: "<segment.depth>"
|
|
107
|
-
notes: "<segment.notes>"
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
**OUTPUTS:**
|
|
111
|
-
```yaml
|
|
112
|
-
success: true
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
Writers work directly on the branch. Taxonomist ensures non-overlapping output directories, so no conflicts occur.
|
|
116
|
-
</step>
|
|
117
|
-
|
|
118
|
-
<step name="validate_and_report">
|
|
119
|
-
Run validation: `envoy docs validate`
|
|
120
|
-
|
|
121
|
-
If stale/invalid refs found:
|
|
122
|
-
- Present findings to user
|
|
123
|
-
- Delegate single writer with fix-workflow if user approves
|
|
124
|
-
</step>
|
|
125
|
-
|
|
126
|
-
<step name="commit_documentation">
|
|
127
|
-
Commit any uncommitted documentation changes (e.g., validation fixes):
|
|
128
|
-
|
|
129
|
-
1. Check for uncommitted changes in docs/:
|
|
130
|
-
```bash
|
|
131
|
-
git status --porcelain docs/
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
2. If changes exist:
|
|
135
|
-
```bash
|
|
136
|
-
git add docs/
|
|
137
|
-
git commit -m "docs: update documentation"
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
3. Track documentation files for reindex:
|
|
141
|
-
- Get list of doc files created/modified since branch diverged from base:
|
|
142
|
-
```bash
|
|
143
|
-
git diff --name-only $(git merge-base HEAD <base_branch>)..HEAD -- docs/
|
|
144
|
-
```
|
|
145
|
-
- Store this list for the reindex step
|
|
146
|
-
</step>
|
|
147
|
-
|
|
148
|
-
<step name="reindex_knowledge">
|
|
149
|
-
Update semantic search index with changed documentation:
|
|
150
|
-
|
|
151
|
-
1. Build file changes JSON from tracked doc files:
|
|
152
|
-
```json
|
|
153
|
-
[
|
|
154
|
-
{"path": "docs/domain/index.md", "added": true},
|
|
155
|
-
{"path": "docs/domain/subdomain/index.md", "modified": true}
|
|
156
|
-
]
|
|
157
|
-
```
|
|
158
|
-
- Use `added: true` for new files
|
|
159
|
-
- Use `modified: true` for updated files
|
|
160
|
-
- Use `deleted: true` for removed files
|
|
161
|
-
|
|
162
|
-
2. Call reindex:
|
|
163
|
-
```bash
|
|
164
|
-
envoy knowledge reindex-from-changes docs --files '<json_array>'
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
3. If reindex reports missing references:
|
|
168
|
-
- Log warning but continue (docs may reference code not yet indexed)
|
|
169
|
-
</step>
|
|
170
|
-
|
|
171
|
-
<step name="finalize">
|
|
172
|
-
If in workflow context (called from /continue):
|
|
173
|
-
- Return success without creating PR
|
|
174
|
-
- Let parent workflow handle PR
|
|
175
|
-
|
|
176
|
-
If standalone:
|
|
177
|
-
- Create PR if changes made
|
|
178
|
-
- Report completion
|
|
179
|
-
</step>
|
|
180
|
-
</process>
|
|
181
|
-
|
|
182
|
-
<workflow_integration>
|
|
183
|
-
When called from `/continue` or implementation workflow:
|
|
184
|
-
- Skip PR creation
|
|
185
|
-
- Return `{ success: true }` for workflow to continue
|
|
186
|
-
- Validation warnings go to workflow orchestrator
|
|
187
|
-
|
|
188
|
-
When called standalone:
|
|
189
|
-
- Create PR with changes
|
|
190
|
-
- Present validation results to user
|
|
191
|
-
</workflow_integration>
|
|
192
|
-
|
|
193
|
-
<success_criteria>
|
|
194
|
-
- Changed files identified (if --diff)
|
|
195
|
-
- Taxonomist created targeted segments with non-overlapping output directories
|
|
196
|
-
- Writers updated relevant docs
|
|
197
|
-
- Validation run
|
|
198
|
-
- Documentation committed
|
|
199
|
-
- Knowledge index updated
|
|
200
|
-
- PR created (if standalone)
|
|
201
|
-
</success_criteria>
|
|
202
|
-
|
|
203
|
-
<constraints>
|
|
204
|
-
- MUST NOT perform codebase discovery - delegate ALL discovery to taxonomist
|
|
205
|
-
- MUST NOT run envoy docs tree, envoy docs complexity, or envoy knowledge search
|
|
206
|
-
- MUST verify clean git state before documentation (ensure_committed_state step)
|
|
207
|
-
- MUST delegate to taxonomist for all segmentation and discovery
|
|
208
|
-
- MUST pass --diff flag to taxonomist (not process it directly)
|
|
209
|
-
- MUST work both standalone and in workflow context
|
|
210
|
-
- MUST validate after documentation
|
|
211
|
-
- MUST commit documentation changes before reindex (reindex reads from disk)
|
|
212
|
-
- MUST reindex knowledge base after documentation committed
|
|
213
|
-
- All delegations MUST follow INPUTS/OUTPUTS format
|
|
214
|
-
</constraints>
|