claude-dev-env 2.0.2 → 2.2.0
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.md +1 -1
- package/hooks/blocking/CLAUDE.md +1 -0
- package/hooks/blocking/code_rules_shared.py +126 -47
- package/hooks/blocking/config/CLAUDE.md +2 -0
- package/hooks/blocking/config/verified_commit_context_constants.py +21 -0
- package/hooks/blocking/config/verified_commit_gate_output_constants.py +14 -0
- package/hooks/blocking/conftest.py +36 -30
- package/hooks/blocking/convergence_gate_blocker.py +76 -8
- package/hooks/blocking/plain_language_blocker.py +8 -0
- package/hooks/blocking/state_description_blocker.py +4 -1
- package/hooks/blocking/test_code_rules_shared.py +120 -20
- package/hooks/blocking/test_convergence_gate_blocker.py +146 -0
- package/hooks/blocking/test_plain_language_blocker.py +15 -0
- package/hooks/blocking/test_state_description_blocker.py +15 -0
- package/hooks/blocking/test_verified_commit_config_bootstrap.py +18 -0
- package/hooks/blocking/test_verified_commit_gate_additional_context.py +134 -0
- package/hooks/blocking/tests/test_verified_commit_gate.py +41 -0
- package/hooks/blocking/verified_commit_config_bootstrap.py +22 -10
- package/hooks/blocking/verified_commit_gate.py +113 -568
- package/hooks/blocking/verified_commit_gate_parts/CLAUDE.md +28 -0
- package/hooks/blocking/verified_commit_gate_parts/__init__.py +1 -0
- package/hooks/blocking/verified_commit_gate_parts/command_tokenization.py +174 -0
- package/hooks/blocking/verified_commit_gate_parts/deny_payload.py +53 -0
- package/hooks/blocking/verified_commit_gate_parts/deny_reason.py +80 -0
- package/hooks/blocking/verified_commit_gate_parts/directory_resolution.py +170 -0
- package/hooks/blocking/verified_commit_gate_parts/gated_invocations.py +205 -0
- package/hooks/blocking/verified_commit_gate_parts/tests/conftest.py +10 -0
- package/hooks/blocking/verified_commit_gate_parts/tests/test_command_tokenization.py +94 -0
- package/hooks/blocking/verified_commit_gate_parts/tests/test_deny_payload.py +17 -0
- package/hooks/blocking/verified_commit_gate_parts/tests/test_deny_reason.py +38 -0
- package/hooks/blocking/verified_commit_gate_parts/tests/test_directory_resolution.py +71 -0
- package/hooks/blocking/verified_commit_gate_parts/tests/test_gated_invocations.py +61 -0
- package/hooks/hooks_constants/CLAUDE.md +4 -1
- package/hooks/hooks_constants/code_rules_path_utils_constants.py +1 -0
- package/hooks/hooks_constants/convergence_gate_blocker_constants.py +36 -0
- package/hooks/hooks_constants/harness_scratchpad_constants.py +10 -9
- package/hooks/hooks_constants/mypy_integration_constants.py +16 -0
- package/hooks/validators/mypy_integration.py +145 -24
- package/hooks/validators/python_antipattern_checks.py +16 -0
- package/hooks/validators/run_all_validators.py +9 -3
- package/hooks/validators/test_mypy_integration.py +154 -0
- package/hooks/validators/test_python_antipattern_checks.py +112 -1
- package/hooks/validators/test_run_all_validators_pretooluse.py +16 -0
- package/package.json +1 -1
- package/rules/CLAUDE.md +1 -0
- package/rules/verified-commit-gate-skip.md +28 -0
- package/skills/_shared/pr-loop/CLAUDE.md +18 -13
- package/skills/_shared/pr-loop/portable-driver.md +150 -0
- package/skills/_shared/pr-loop/scripts/CLAUDE.md +3 -0
- package/skills/_shared/pr-loop/scripts/build_converge_task_list.py +310 -0
- package/skills/_shared/pr-loop/scripts/portable_converge_driver.py +1637 -0
- package/skills/_shared/pr-loop/scripts/select_converge_pacer.py +215 -0
- package/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/CLAUDE.md +3 -0
- package/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/converge_task_list_constants.py +56 -0
- package/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/pacer_constants.py +47 -0
- package/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/portable_driver_constants.py +181 -0
- package/skills/_shared/pr-loop/scripts/test_build_converge_task_list.py +140 -0
- package/skills/_shared/pr-loop/scripts/test_portable_converge_driver.py +1119 -0
- package/skills/_shared/pr-loop/scripts/test_select_converge_pacer.py +207 -0
- package/skills/auditing-claude-config/CLAUDE.md +2 -1
- package/skills/auditing-claude-config/SKILL.md +114 -176
- package/skills/auditing-claude-config/reference/probe-hook.md +74 -0
- package/skills/autoconverge/CLAUDE.md +6 -3
- package/skills/autoconverge/SKILL.md +421 -346
- package/skills/autoconverge/reference/CLAUDE.md +1 -0
- package/skills/autoconverge/reference/convergence.md +5 -5
- package/skills/autoconverge/reference/copilot-findings.md +51 -0
- package/skills/autoconverge/reference/multi-pr.md +33 -2
- package/skills/autoconverge/reference/stop-conditions.md +9 -6
- package/skills/autoconverge/test_portable_pacer_gate.py +54 -0
- package/skills/closeout/SKILL.md +7 -9
- package/skills/copilot-finding-triage/SKILL.md +21 -11
- package/skills/copilot-review/CLAUDE.md +3 -2
- package/skills/copilot-review/SKILL.md +119 -155
- package/skills/copilot-review/templates/subagent-prompt.md +49 -0
- package/skills/fresh-branch/CLAUDE.md +6 -9
- package/skills/fresh-branch/SKILL.md +84 -33
- package/skills/fresh-branch/scripts/create_fresh_branch.py +445 -0
- package/skills/fresh-branch/scripts/fresh_branch_scripts_constants/__init__.py +1 -0
- package/skills/fresh-branch/scripts/fresh_branch_scripts_constants/fresh_branch_cli_constants.py +74 -0
- package/skills/fresh-branch/scripts/test_create_fresh_branch.py +670 -0
- package/skills/pr-converge/CLAUDE.md +4 -3
- package/skills/pr-converge/SKILL.md +469 -422
- package/skills/pr-converge/reference/CLAUDE.md +1 -0
- package/skills/pr-converge/reference/multi-pr-orchestration.md +5 -1
- package/skills/pr-converge/reference/per-tick.md +51 -24
- package/skills/pr-converge/reference/progress-checklist.md +168 -0
- package/skills/pr-converge/test_portable_pacer_gate.py +67 -0
- package/skills/pr-converge/test_step5_host_branch.py +8 -6
- package/skills/pr-converge/workflows/schedule-wakeup-loop.md +5 -3
- package/skills/pr-loop-cloud-transport/SKILL.md +1 -1
- package/skills/privacy-hygiene/SKILL.md +68 -115
- package/skills/privacy-hygiene/reference/sweep-procedure.md +62 -0
- package/skills/session-log/CLAUDE.md +2 -1
- package/skills/session-log/SKILL.md +4 -26
- package/skills/session-log/templates/frontmatter.md +40 -0
- package/skills/skill-builder/CLAUDE.md +8 -7
- package/skills/skill-builder/SKILL.md +26 -11
- package/skills/skill-builder/references/CLAUDE.md +3 -1
- package/skills/skill-builder/references/delegation-map.md +21 -12
- package/skills/skill-builder/references/description-field.md +9 -11
- package/skills/skill-builder/references/deterministic-elements.md +218 -0
- package/skills/skill-builder/references/self-audit-checklist.md +62 -45
- package/skills/skill-builder/references/skill-modularity.md +8 -9
- package/skills/skill-builder/templates/CLAUDE.md +2 -2
- package/skills/skill-builder/templates/gap-analysis.md +15 -0
- package/skills/skill-builder/workflows/CLAUDE.md +5 -5
- package/skills/skill-builder/workflows/improve-skill.md +18 -9
- package/skills/skill-builder/workflows/new-skill.md +23 -15
- package/skills/skill-builder/workflows/polish-skill.md +28 -21
|
@@ -56,7 +56,7 @@ Best-practice-driven lifecycle for building a skill from scratch.
|
|
|
56
56
|
|
|
57
57
|
> "Build a Gotchas Section — these sections should be built up from common failure points that Claude runs into when using your skill."
|
|
58
58
|
|
|
59
|
-
Read `${CLAUDE_SKILL_DIR}/references/skill-modularity.md
|
|
59
|
+
Read `${CLAUDE_SKILL_DIR}/references/skill-modularity.md`, `${CLAUDE_SKILL_DIR}/references/description-field.md`, and `${CLAUDE_SKILL_DIR}/references/deterministic-elements.md` before the interview. Modularity, description triggers, and deterministic inventory are gates: do not proceed to Write until the composition plan, trigger catalog draft, and deterministic-elements inventory are filled.
|
|
60
60
|
|
|
61
61
|
### Interview questions
|
|
62
62
|
|
|
@@ -74,6 +74,7 @@ Ask the user:
|
|
|
74
74
|
10. "Which existing skills already cover a step of this work? Which steps should this skill invoke by name?"
|
|
75
75
|
11. "Is this one skill, several skills, or a thin orchestrator that calls sub-skills?"
|
|
76
76
|
12. "What exact phrases, slash commands, or file types should select this skill?"
|
|
77
|
+
13. "Which steps of this work are fixed procedures (same inputs → same outputs, machine-checkable) versus open judgment?"
|
|
77
78
|
|
|
78
79
|
### Related-skills inventory
|
|
79
80
|
|
|
@@ -90,6 +91,7 @@ Use the template at `${CLAUDE_SKILL_DIR}/templates/gap-analysis.md`. Fill in:
|
|
|
90
91
|
- Initial gotcha candidates
|
|
91
92
|
- **Composition plan** — capability sentence, related skills, sub-skills to invoke, split or orchestrator decision, missing sub-skills to create
|
|
92
93
|
- **Description triggers** — capability stem tokens + trigger phrase list (not story prose)
|
|
94
|
+
- **Deterministic elements inventory** — each process step classified; home path; paired test for code
|
|
93
95
|
|
|
94
96
|
### Assess degree of freedom
|
|
95
97
|
|
|
@@ -105,13 +107,17 @@ Record the assessment with reasoning.
|
|
|
105
107
|
|
|
106
108
|
### Modularity gate
|
|
107
109
|
|
|
108
|
-
|
|
110
|
+
Register each task seed from `skill-modularity.md` on the session task list (`TaskCreate` / `TodoWrite`). Complete with evidence. If the capability sentence needs an unrelated "and", stop and split scope with the user before Step 4.
|
|
109
111
|
|
|
110
112
|
### Description gate
|
|
111
113
|
|
|
112
|
-
Draft the frontmatter description using the template in `description-field.md`.
|
|
114
|
+
Draft the frontmatter description using the template in `description-field.md`. Register each description task seed and complete with evidence. Story prose fails the gate.
|
|
113
115
|
|
|
114
|
-
|
|
116
|
+
### Deterministic-elements gate
|
|
117
|
+
|
|
118
|
+
Register each task seed under **Required task seeds** in `deterministic-elements.md`. Complete with evidence. Every deterministic step must have a planned `scripts/`, `workflow/`, `templates/`, `reference/`, or task-seed path. Prose-only mechanical sequences and markdown checkbox boards fail the gate.
|
|
119
|
+
|
|
120
|
+
**Output:** Completed gap analysis (composition plan + description triggers + deterministic inventory), initial gotchas, degree-of-freedom assessment, modularity gate done, draft description.
|
|
115
121
|
|
|
116
122
|
---
|
|
117
123
|
|
|
@@ -121,7 +127,7 @@ Draft the frontmatter description using the template in `description-field.md`.
|
|
|
121
127
|
|
|
122
128
|
Delegate to `/skill-writer` using the structured handoff from `${CLAUDE_SKILL_DIR}/references/delegation-map.md`.
|
|
123
129
|
|
|
124
|
-
The handoff must include: skill type, folder structure, gap analysis (composition plan + description triggers), initial gotchas, degree of freedom, constraints, sub-skills to name in SKILL.md, exact description string to put in frontmatter.
|
|
130
|
+
The handoff must include: skill type, folder structure, gap analysis (composition plan + description triggers + deterministic inventory), initial gotchas, degree of freedom, constraints, sub-skills to name in SKILL.md, exact description string to put in frontmatter, script/test paths for every deterministic step.
|
|
125
131
|
|
|
126
132
|
After skill-writer produces the draft:
|
|
127
133
|
|
|
@@ -131,8 +137,9 @@ After skill-writer produces the draft:
|
|
|
131
137
|
4. Verify files over 100 lines have a TOC.
|
|
132
138
|
5. Verify modularity: single capability, sub-skills table when composing, no silent reimplementation of inventoried skills.
|
|
133
139
|
6. Verify description is a trigger catalog per `description-field.md` (not story prose).
|
|
140
|
+
7. Verify deterministic inventory: every deterministic step has a real code/artifact/task-seed path; no prose-only mechanical sequences; no markdown checkbox boards for required work; scripts follow CODE_RULES and have paired tests.
|
|
134
141
|
|
|
135
|
-
Fix structural, modularity, and
|
|
142
|
+
Fix structural, modularity, description, and deterministic-element issues before proceeding.
|
|
136
143
|
|
|
137
144
|
**Output:** Complete skill package at the target directory.
|
|
138
145
|
|
|
@@ -143,14 +150,14 @@ Fix structural, modularity, and description issues before proceeding.
|
|
|
143
150
|
**Goal:** Verify every best practice is satisfied before delivery.
|
|
144
151
|
|
|
145
152
|
1. Read `${CLAUDE_SKILL_DIR}/references/self-audit-checklist.md`.
|
|
146
|
-
2.
|
|
147
|
-
3.
|
|
148
|
-
4. Every FAIL must be fixed before proceeding. Apply fixes, then re-
|
|
149
|
-
5. When all
|
|
153
|
+
2. Register **every** bullet as a session task (`TaskCreate` / `TodoWrite`).
|
|
154
|
+
3. Complete each task against the built skill: PASS, FAIL with file:line evidence, or N/A with reason.
|
|
155
|
+
4. Every FAIL must be fixed before proceeding. Apply fixes, then re-open/complete that task.
|
|
156
|
+
5. When all tasks are PASS or N/A, proceed to Step 6.
|
|
150
157
|
|
|
151
158
|
For an independent check, spawn a subagent to run the audit (see delegation-map.md).
|
|
152
159
|
|
|
153
|
-
**Output:**
|
|
160
|
+
**Output:** Audit summary (PASS / N/A / FAIL-fixed counts). All items PASS or N/A.
|
|
154
161
|
|
|
155
162
|
---
|
|
156
163
|
|
|
@@ -165,7 +172,8 @@ Present to the user:
|
|
|
165
172
|
3. **Degree of freedom** — assessment and reasoning.
|
|
166
173
|
4. **Composition plan** — capability sentence, sub-skills invoked, any skills split out.
|
|
167
174
|
5. **Description** — final frontmatter trigger catalog (paste the string).
|
|
168
|
-
6. **
|
|
169
|
-
7. **
|
|
170
|
-
8. **
|
|
171
|
-
9. **
|
|
175
|
+
6. **Deterministic inventory** — steps classified; script/template/reference paths; tests for code.
|
|
176
|
+
7. **Gotchas seeded** — initial gotchas captured.
|
|
177
|
+
8. **Audit summary** — "All checklist items: N passed, M N/A."
|
|
178
|
+
9. **Maintenance notes** — what to watch for in future usage that might warrant iteration.
|
|
179
|
+
10. **Suggested first test** — a concrete task to try with Claude B.
|
|
@@ -35,15 +35,17 @@ description: >-
|
|
|
35
35
|
<capability tokens>. Triggers: <phrase>, <phrase>, <slash>, <filetype>.
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
###
|
|
38
|
+
### Description task seeds
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
40
|
+
Register each as a session task; complete with evidence (no markdown checkboxes):
|
|
41
|
+
|
|
42
|
+
- **Third person** — no I/you
|
|
43
|
+
- **Capability stem** — what tokens, ≤20 words, no story
|
|
44
|
+
- **Triggers list** — concrete phrases / slash forms / file types
|
|
45
|
+
- **Under 1024 characters** (prefer much shorter; always-on context)
|
|
46
|
+
- **No XML tags**
|
|
47
|
+
- **Not a story** — no narrative, benefits, or process dump
|
|
48
|
+
- **Sibling boundary** — distinguishable from related skills
|
|
47
49
|
|
|
48
50
|
### Trigger phrase review
|
|
49
51
|
|
|
@@ -66,13 +68,14 @@ If any check fails, rewrite. Show before/after. The after form must match `descr
|
|
|
66
68
|
|
|
67
69
|
---
|
|
68
70
|
|
|
69
|
-
## Step 2: Progressive disclosure and
|
|
71
|
+
## Step 2: Progressive disclosure, modularity, and deterministic audit
|
|
70
72
|
|
|
71
|
-
**Goal:** Verify within-skill structure
|
|
73
|
+
**Goal:** Verify within-skill structure, cross-skill modularity, and deterministic placement.
|
|
72
74
|
|
|
73
75
|
1. Apply hard rules in `${CLAUDE_SKILL_DIR}/references/progressive-disclosure.md`.
|
|
74
76
|
2. Apply modularity rules in `${CLAUDE_SKILL_DIR}/references/skill-modularity.md`.
|
|
75
|
-
3.
|
|
77
|
+
3. Apply deterministic-elements rules in `${CLAUDE_SKILL_DIR}/references/deterministic-elements.md`.
|
|
78
|
+
4. Cross-check matching items on `${CLAUDE_SKILL_DIR}/references/self-audit-checklist.md`.
|
|
76
79
|
|
|
77
80
|
### Common fixes
|
|
78
81
|
|
|
@@ -81,8 +84,11 @@ If any check fails, rewrite. Show before/after. The after form must match `descr
|
|
|
81
84
|
- Missing TOC → add to files over 100 lines
|
|
82
85
|
- Multi-capability package → split or orchestrator + named sub-skills
|
|
83
86
|
- Silent reimplementation → invoke peer skill by name; add Sub-skills table
|
|
87
|
+
- Mechanical sequence / fenced program / giant detector only in body → extract to `scripts/` or `workflow/`; point from process steps; add paired tests and `*_constants/` as needed
|
|
88
|
+
- Verbatim templates inline → `templates/`; long fixed tables → `reference/`
|
|
89
|
+
- Markdown `- [ ]` progress boards → plain task-seed list + seed instruction (`TaskCreate` / `TodoWrite`)
|
|
84
90
|
|
|
85
|
-
**Output:** Verified structure and
|
|
91
|
+
**Output:** Verified structure, composition, and deterministic placement (and edits if needed).
|
|
86
92
|
|
|
87
93
|
---
|
|
88
94
|
|
|
@@ -104,16 +110,16 @@ If any check fails, rewrite. Show before/after. The after form must match `descr
|
|
|
104
110
|
|
|
105
111
|
## Step 4: Full self-audit
|
|
106
112
|
|
|
107
|
-
**Goal:** Complete checklist pass including description and
|
|
113
|
+
**Goal:** Complete checklist pass including description, modularity, and deterministic items.
|
|
108
114
|
|
|
109
115
|
Same as new-skill Step 5 and improve-skill Step 5:
|
|
110
116
|
|
|
111
117
|
1. Read `${CLAUDE_SKILL_DIR}/references/self-audit-checklist.md`.
|
|
112
|
-
2.
|
|
118
|
+
2. Register every bullet as a session task; complete with evidence. Fix failures. Re-complete.
|
|
113
119
|
3. All items must be PASS or N/A.
|
|
114
|
-
4. Description items
|
|
120
|
+
4. Description items, modularity items, and process-step classification are never N/A for a delivered skill (sub-skills table alone may be N/A for pure leaf skills; script/test rows are N/A only when the package has zero code files and every step is judgment).
|
|
115
121
|
|
|
116
|
-
**Output:**
|
|
122
|
+
**Output:** Audit summary; all PASS or N/A.
|
|
117
123
|
|
|
118
124
|
---
|
|
119
125
|
|
|
@@ -125,8 +131,9 @@ Present to the user:
|
|
|
125
131
|
|
|
126
132
|
1. **Description** — final trigger-catalog string (paste it).
|
|
127
133
|
2. **Composition** — sub-skills or leaf status.
|
|
128
|
-
3. **
|
|
129
|
-
4. **
|
|
130
|
-
5. **
|
|
131
|
-
6. **
|
|
132
|
-
7. **
|
|
134
|
+
3. **Deterministic inventory** — any extracts to scripts/templates/reference.
|
|
135
|
+
4. **File structure** — folder map with line counts.
|
|
136
|
+
5. **Gotchas** — current gotcha count and most recent additions.
|
|
137
|
+
6. **Audit summary** — "All checklist items: N passed, M N/A."
|
|
138
|
+
7. **Before/after** — description rewrite and structural changes if any.
|
|
139
|
+
8. **Maintenance notes** — what to watch for, when to re-audit.
|