claude-dev-env 2.28.1 → 2.29.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/.agents/agents/AGENTS.md +0 -31
- package/.agents/agents/clean-coder.md +1 -1
- package/.agents/agents/test_agent_frontmatter.py +3 -1
- package/.agents/skills/AGENTS.md +0 -70
- package/.agents/skills/_shared/AGENTS.md +0 -44
- package/.agents/skills/_shared/advisor/AGENTS.md +0 -8
- package/.agents/skills/_shared/pr-loop/AGENTS.md +0 -57
- package/.agents/skills/_shared/pr-loop/prompts/AGENTS.md +0 -8
- package/.agents/skills/_shared/pr-loop/scripts/AGENTS.md +0 -34
- package/.agents/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/AGENTS.md +0 -23
- package/.agents/skills/autoconverge/AGENTS.md +0 -35
- package/.agents/skills/autoconverge/reference/AGENTS.md +0 -15
- package/.agents/skills/autoconverge/workflow/AGENTS.md +0 -25
- package/.agents/skills/autoconverge/workflow/autoconverge_report_constants/AGENTS.md +0 -15
- package/.agents/skills/everything-search/AGENTS.md +0 -16
- package/.agents/skills/fresh-branch/AGENTS.md +0 -13
- package/.agents/skills/grok-spawn/AGENTS.md +0 -27
- package/.agents/skills/orchestrator/.claude/CLAUDE.md +1 -0
- package/.agents/skills/orchestrator/AGENTS.md +1 -0
- package/.agents/skills/orchestrator/SKILL.md +44 -53
- package/.agents/skills/orchestrator/reference/.claude/CLAUDE.md +1 -0
- package/.agents/skills/orchestrator/reference/AGENTS.md +1 -0
- package/.agents/skills/orchestrator/reference/consult-the-orchestrator.md +70 -0
- package/.agents/skills/orchestrator/reference/executor-consult-block.md +62 -0
- package/.agents/skills/orchestrator/reference/host-detect.md +15 -0
- package/.agents/skills/orchestrator/test_orchestrator_skill_contract.py +62 -0
- package/.agents/skills/orchestrator-refresh/SKILL.md +16 -34
- package/.agents/skills/rebase/AGENTS.md +0 -31
- package/.agents/skills/session-log/AGENTS.md +0 -31
- package/.agents/skills/session-tidy/AGENTS.md +0 -35
- package/.agents/skills/skill-builder/AGENTS.md +0 -48
- package/.agents/skills/skill-builder/references/AGENTS.md +0 -24
- package/.agents/skills/skill-builder/templates/AGENTS.md +0 -13
- package/.agents/skills/skill-builder/workflows/AGENTS.md +0 -18
- package/.agents/skills/task-build/AGENTS.md +0 -28
- package/.agents/skills/update/AGENTS.md +0 -37
- package/.agents/skills-archived/AGENTS.md +0 -44
- package/.agents/skills-archived/anthropic-plan/AGENTS.md +0 -33
- package/.agents/skills-archived/anthropic-plan/scripts/AGENTS.md +0 -10
- package/.agents/skills-archived/anthropic-plan/scripts/anthropic_plan_scripts_constants/AGENTS.md +0 -15
- package/.agents/skills-archived/anthropic-plan/templates/AGENTS.md +0 -12
- package/.agents/skills-archived/anthropic-plan/workflow/AGENTS.md +0 -13
- package/.agents/skills-archived/auditing-claude-config/AGENTS.md +0 -20
- package/.agents/skills-archived/bugteam/AGENTS.md +0 -29
- package/.agents/skills-archived/bugteam/reference/AGENTS.md +0 -19
- package/.agents/skills-archived/bugteam/reference/obstacles/AGENTS.md +0 -23
- package/.agents/skills-archived/bugteam/scripts/AGENTS.md +0 -29
- package/.agents/skills-archived/bugteam/scripts/bugteam_scripts_constants/AGENTS.md +0 -17
- package/.agents/skills-archived/codex-review/AGENTS.md +0 -45
- package/.agents/skills-archived/codex-review/reference/AGENTS.md +0 -14
- package/.agents/skills-archived/codex-review/scripts/codex_review_scripts_constants/AGENTS.md +0 -17
- package/.agents/skills-archived/codex-review/test_skill_scaffold.py +13 -3
- package/.agents/skills-archived/copilot-review/AGENTS.md +0 -17
- package/.agents/skills-archived/pr-converge/AGENTS.md +0 -31
- package/.agents/skills-archived/pr-converge/pr_converge_skill_constants/AGENTS.md +0 -25
- package/.agents/skills-archived/pr-converge/reference/AGENTS.md +0 -27
- package/.agents/skills-archived/pr-converge/reference/obstacles/AGENTS.md +0 -22
- package/.agents/skills-archived/pr-converge/scripts/AGENTS.md +0 -45
- package/.agents/skills-archived/pr-converge/scripts/pr_converge_scripts_constants/AGENTS.md +0 -17
- package/.agents/skills-archived/pr-converge/workflows/AGENTS.md +0 -15
- package/.agents/skills-archived/recall/AGENTS.md +0 -29
- package/.agents/skills-archived/remember/AGENTS.md +0 -30
- package/AGENTS.md +0 -112
- package/_shared/AGENTS.md +0 -16
- package/_shared/advisor/AGENTS.md +0 -21
- package/_shared/advisor/advisor-protocol.md +4 -1
- package/_shared/advisor/reference/consult-format.md +4 -2
- package/_shared/pr-loop/AGENTS.md +0 -27
- package/_shared/pr-loop/scripts/AGENTS.md +0 -49
- package/_shared/pr-loop/scripts/code_rules_gate_parts/AGENTS.md +0 -41
- package/_shared/pr-loop/scripts/codex_review_scripts_constants/AGENTS.md +0 -17
- package/_shared/pr-loop/scripts/pr_converge_scripts_constants/AGENTS.md +0 -17
- package/_shared/pr-loop/scripts/pr_converge_skill_constants/AGENTS.md +0 -25
- package/_shared/pr-loop/scripts/pr_loop_shared_constants/AGENTS.md +0 -25
- package/_shared/pr-loop/scripts/tests/AGENTS.md +0 -43
- package/_shared/process-tree/AGENTS.md +0 -40
- package/audit-rubrics/AGENTS.md +0 -42
- package/audit-rubrics/category_rubrics/AGENTS.md +0 -36
- package/audit-rubrics/prompts/AGENTS.md +0 -36
- package/bin/AGENTS.md +0 -118
- package/bin/install.test.mjs +1 -1
- package/commands/AGENTS.md +0 -14
- package/docs/AGENTS.md +0 -31
- package/docs/references/AGENTS.md +0 -16
- package/hooks/AGENTS.md +0 -27
- package/hooks/advisory/AGENTS.md +0 -15
- package/hooks/blocking/AGENTS.md +0 -112
- package/hooks/blocking/claude_md_orphan_file_blocker_parts/AGENTS.md +0 -27
- package/hooks/blocking/config/AGENTS.md +0 -9
- package/hooks/blocking/inventory_intent_records/AGENTS.md +0 -25
- package/hooks/blocking/package_inventory_stale_blocker_parts/AGENTS.md +0 -25
- package/hooks/blocking/pii_prevention_blocker_parts/AGENTS.md +0 -23
- package/hooks/blocking/tdd_enforcer_parts/AGENTS.md +0 -29
- package/hooks/git-hooks/AGENTS.md +0 -31
- package/hooks/git-hooks/git_hooks_constants/AGENTS.md +0 -20
- package/hooks/hooks_constants/AGENTS.md +0 -99
- package/hooks/lifecycle/AGENTS.md +0 -17
- package/hooks/observability/AGENTS.md +0 -19
- package/hooks/session/AGENTS.md +0 -37
- package/hooks/validation/AGENTS.md +0 -19
- package/hooks/validators/AGENTS.md +0 -51
- package/hooks/workflow/AGENTS.md +0 -15
- package/output-styles/AGENTS.md +0 -14
- package/package.json +1 -1
- package/rules/AGENTS.md +0 -55
- package/scripts/AGENTS.md +0 -55
- package/scripts/dev_env_scripts_constants/AGENTS.md +0 -20
- package/scripts/sync_to_cursor/AGENTS.md +0 -22
- package/scripts/tests/AGENTS.md +0 -34
- package/system-prompts/AGENTS.md +0 -24
package/.agents/agents/AGENTS.md
CHANGED
|
@@ -1,32 +1 @@
|
|
|
1
|
-
# agents
|
|
2
1
|
|
|
3
|
-
Agent definition files installed into `~/.agents/agents/` by `bin/install.mjs`. `~/.claude/agents` is a directory pointer to that folder. Each `.md` file defines a named subagent: its description (shown in the Claude Code UI), allowed tools, and behavioral instructions.
|
|
4
|
-
|
|
5
|
-
Agent definitions use `~/.claude/rules/asd-ste100-language.md` for user-facing word choice, sentence style, tone, punctuation, and prose form. Each agent keeps its role-specific return format.
|
|
6
|
-
|
|
7
|
-
When the global presentation envelope applies, ELI5 owns beginner framing,
|
|
8
|
-
large visuals, minimal text, one stable self-contained HTML artifact,
|
|
9
|
-
update-in-place continuity, and sharing.
|
|
10
|
-
|
|
11
|
-
## Agent files
|
|
12
|
-
|
|
13
|
-
| File | Agent name | Role |
|
|
14
|
-
|---|---|---|
|
|
15
|
-
| `clean-coder.md` | Clean Coder | Primary code-writing agent; links the review contract, CODE_RULES, and enforcer; task-local discovery and gate-clean first writes |
|
|
16
|
-
| `code-quality-agent.md` | Code Quality Agent | Multi-file code quality review across an entire diff or set of files |
|
|
17
|
-
| `git-commit-crafter.md` | Git Commit Crafter | Stages changes, writes conventional commit messages, creates commits |
|
|
18
|
-
| `issue-tracker.md` | Issue Tracker | Primary handler for one GitHub issue action per spawn; loads the issue-tracker skill (plain-brief); returns issue numbers and URLs |
|
|
19
|
-
| `plan-packet-validator.md` | Plan Packet Validator | Fresh-context validator for workflow-generated plan packets under `docs/plans/` |
|
|
20
|
-
| `pr-description-writer.md` | PR Description Writer | Drafts PR descriptions and comments from the current diff using the canonical description and comment guides |
|
|
21
|
-
| `session-advisor.md` | Session Advisor | Standing multi-consumer reviewer; SendMessage only; returns endorse/correction/plan/stop |
|
|
22
|
-
| `skill-writer-agent.md` | Skill Writer Agent | Authors SKILL.md and companion files to skill-builder conventions; caller-agnostic authoring specialist |
|
|
23
|
-
|
|
24
|
-
## Format
|
|
25
|
-
|
|
26
|
-
Each file uses YAML frontmatter (`name`, `description`, `tools`, optional `color`) followed by a Markdown body with the agent's behavioral instructions. The `description` field appears in the Claude Code agent picker. An agent definition carries no `model` key — the caller supplies the model on each spawn.
|
|
27
|
-
|
|
28
|
-
## Adding an agent
|
|
29
|
-
|
|
30
|
-
1. Create a new `.md` file in this directory with valid frontmatter.
|
|
31
|
-
2. Run `bin/install.mjs` to copy it to `~/.agents/agents/`.
|
|
32
|
-
3. Restart Claude Code to pick up the new agent.
|
|
@@ -127,7 +127,7 @@ For a hook change, use the target package's active managed root for installed fi
|
|
|
127
127
|
|
|
128
128
|
## Session advisor
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
Consult the advisor the spawn ticket names. When the ticket names the orchestrating session, that session is the advisor. When the ticket names a warm `session-advisor`, use that agent; do not bind or spawn another advisor. Consult it after orientation and before substantive work, before first write, before locking a plan or interpretation, before a hard-to-reverse action, after repeated failure or a stall when stuck, when changing approach (change of approach), before any commit, and after validation before completion when you believe the task is complete. Send exact scope and evidence. Follow its ENDORSE, CORRECTION, PLAN, or STOP signal before continuing.
|
|
131
131
|
|
|
132
132
|
## Pre-write checklist
|
|
133
133
|
|
|
@@ -902,7 +902,9 @@ def test_clean_coder_uses_target_package_aware_hook_paths() -> None:
|
|
|
902
902
|
|
|
903
903
|
def test_clean_coder_uses_the_callers_warm_advisor_at_approved_triggers() -> None:
|
|
904
904
|
body = _clean_coder_body()
|
|
905
|
-
assert "
|
|
905
|
+
assert "Consult the advisor the spawn ticket names" in body
|
|
906
|
+
assert "orchestrating session" in body
|
|
907
|
+
assert "warm `session-advisor`" in body
|
|
906
908
|
assert "before first write" in body
|
|
907
909
|
assert "before locking a plan or interpretation" in body
|
|
908
910
|
assert "before a hard-to-reverse action" in body
|
package/.agents/skills/AGENTS.md
CHANGED
|
@@ -1,71 +1 @@
|
|
|
1
|
-
# Skills Directory
|
|
2
1
|
|
|
3
|
-
Each skill is a self-contained folder Claude Code loads on demand. At startup, only the skill's `name` and `description` metadata load. The full `SKILL.md` body and any support files load only when a skill becomes relevant to the conversation.
|
|
4
|
-
|
|
5
|
-
Skill bodies use `~/.claude/rules/asd-ste100-language.md` for user-facing word choice, sentence style, tone, punctuation, and prose form. Each skill keeps its capability-specific output contract.
|
|
6
|
-
|
|
7
|
-
## Skill folder convention
|
|
8
|
-
|
|
9
|
-
| Item | Role |
|
|
10
|
-
|---|---|
|
|
11
|
-
| `SKILL.md` | Required entry point. YAML frontmatter with `name` and `description` (the trigger). Body holds the skill's full instructions. |
|
|
12
|
-
| `scripts/` | Python helper scripts the skill invokes at runtime. |
|
|
13
|
-
| `workflow/` | `.mjs` workflow scripts run via the `Workflow` tool. |
|
|
14
|
-
| `templates/` | Template files the skill or workflow renders at build time. |
|
|
15
|
-
| `reference/` | Reference docs the skill cites or the workflow reads. |
|
|
16
|
-
| `*_constants/` | Python package of named constants imported by `scripts/`. |
|
|
17
|
-
|
|
18
|
-
Skills install to `~/.agents/skills/<skill-name>/` via `packages/claude-dev-env/bin/install.mjs`. Claude Code looks them up at `~/.claude/skills/<skill-name>/`, a directory pointer to that folder. See `docs/references/skill-install-system.md` for the install pipeline.
|
|
19
|
-
|
|
20
|
-
Retired skills live in `../skills-archived/` — versioned in the repo, not installed, not under the `.claude/skills` pointer. See `../skills-archived/AGENTS.md` for the archive index.
|
|
21
|
-
|
|
22
|
-
## Shared support code
|
|
23
|
-
|
|
24
|
-
**`skills/_shared/`** — skill-local PR-loop helpers plus `@` stubs that name
|
|
25
|
-
canonical homes under **`@~/.claude/_shared/`** (advisor protocol, PR-loop
|
|
26
|
-
contracts, runtime scripts). Map: `skills/_shared/.claude/CLAUDE.md`. End-of-run gotchas: `skills/_shared/end-of-run-gotcha-recommendations.md`.
|
|
27
|
-
|
|
28
|
-
## Skill groups
|
|
29
|
-
|
|
30
|
-
**Planning and implementation**
|
|
31
|
-
- `orchestrator` — turns the session into the orchestrator: it spawns executor subagents to do the code edits and test runs; hard decisions go to a shared advisor
|
|
32
|
-
- `orchestrator-refresh` — re-asserts orchestrator discipline on a one-shot delayed wake
|
|
33
|
-
- `team-advisor` — binds one advisor at the strongest reachable tier
|
|
34
|
-
- `grok-spawn` — orchestrator playbook for fleets of headless grok CLI workers
|
|
35
|
-
|
|
36
|
-
**PR review and convergence**
|
|
37
|
-
|
|
38
|
-
- `pr-shared-extraction` — audits workflow packages for helpers that belong in shared libraries; extracts in small tested CLs
|
|
39
|
-
- `pr-name-by-capability` — audits PR paths/titles for driver/motive words on reusable capability code
|
|
40
|
-
- `review-tier` — classifies `review_tier_constants` from change axes, hard triggers, and user overrides
|
|
41
|
-
- `review-router` — resolves and arms one supported `route_review_config` route through the registered Agent|Task gate
|
|
42
|
-
- `pr-cleanup` — one-agent end-to-end PR cleanup: extraction → naming → sr-loop → pr-small-cl; apply and validate fixes as they return
|
|
43
|
-
- `autoconverge` — autonomous single-run workflow that drives a PR to ready
|
|
44
|
-
- `e-code-review` — max-recall code review at a selectable effort level
|
|
45
|
-
- `e-simplify` — cleanup-only pass on the current diff
|
|
46
|
-
- `pr-small-cl` — the Small CLs guide for scope and split decisions
|
|
47
|
-
|
|
48
|
-
**Research and discovery**
|
|
49
|
-
- `everything-search` — file-system search via the Everything `es.exe` CLI on Windows
|
|
50
|
-
- `eli5` — owns beginner framing, large visuals, minimal text, one stable self-contained HTML artifact, update-in-place continuity, and sharing
|
|
51
|
-
|
|
52
|
-
**Source commands**
|
|
53
|
-
- `source-command-logifix` — restore the Logitech Gaming Software tray icon on Windows
|
|
54
|
-
- `source-command-sr-loop` — converging cleanup loop: simplify then code-review until clean
|
|
55
|
-
|
|
56
|
-
**Samsung certification**
|
|
57
|
-
- `cert-classification-rule` — add or change a Samsung cert-failure classification rule
|
|
58
|
-
|
|
59
|
-
**Session and workflow management**
|
|
60
|
-
- `session-log` — logs a session report to the Obsidian vault
|
|
61
|
-
- `session-tidy` — tidies the session folder
|
|
62
|
-
- `task-build` — gathers open tasks
|
|
63
|
-
- `issue-tracker` — GitHub epic and sub-issue workflow
|
|
64
|
-
- `privacy-hygiene` — full-repo personal-data and secret sweep
|
|
65
|
-
- `update` — fast-forwards a local `main` branch
|
|
66
|
-
- `fresh-branch` — creates a clean branch off main in a worktree
|
|
67
|
-
- `rebase` — rebases onto main with verification gates
|
|
68
|
-
- `usage-pause` — waits out the usage window in ScheduleWakeup stages
|
|
69
|
-
- `skill-builder` — complete skill-building lifecycle
|
|
70
|
-
- `run-claude-dev-env` — build, install, and test the claude-dev-env installer
|
|
71
|
-
- `prototype` — isolated hookless worktree sandbox for proof-of-concept builds
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
# skills/_shared
|
|
2
1
|
|
|
3
|
-
**Map** for skill-install shared assets. Open a stub, then load the `@` target.
|
|
4
|
-
|
|
5
|
-
## Two homes
|
|
6
|
-
|
|
7
|
-
| Home | Path | Holds |
|
|
8
|
-
|---|---|---|
|
|
9
|
-
| **Skills shared** | `~/.agents/skills/_shared/` | Converge helpers, end-of-run gotcha ref, and `@` stubs. Claude Code looks this folder up at `~/.claude/skills/_shared/`. |
|
|
10
|
-
| **Top-level shared** | `~/.claude/_shared/` | Advisor protocol, PR-loop contracts, runtime scripts |
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Reference docs (this tree)
|
|
14
|
-
|
|
15
|
-
| File | Role |
|
|
16
|
-
|---|---|
|
|
17
|
-
| **`end-of-run-gotcha-recommendations.md`** | End-of-run pasteable gotcha protocol for every skill |
|
|
18
|
-
|
|
19
|
-
## Subdirectories
|
|
20
|
-
|
|
21
|
-
| Directory | Role |
|
|
22
|
-
|---|---|
|
|
23
|
-
| **`advisor/`** | Stubs → `@~/.claude/_shared/advisor/` |
|
|
24
|
-
| **`pr-loop/`** | Local converge helpers + stubs → `@~/.claude/_shared/pr-loop/` |
|
|
25
|
-
|
|
26
|
-
## Canonical-path stubs
|
|
27
|
-
|
|
28
|
-
| Stub here | Load |
|
|
29
|
-
|---|---|
|
|
30
|
-
| `advisor/advisor-protocol.md` | `@~/.claude/_shared/advisor/advisor-protocol.md` |
|
|
31
|
-
| `advisor/.claude/CLAUDE.md` | `@../AGENTS.md` |
|
|
32
|
-
| `advisor/scripts/README.md` | `@~/.claude/_shared/advisor/scripts/` |
|
|
33
|
-
| `pr-loop/audit-contract.md` | `@~/.claude/_shared/pr-loop/audit-contract.md` |
|
|
34
|
-
| `pr-loop/audit-reply-template.md` | `@~/.claude/_shared/pr-loop/audit-reply-template.md` |
|
|
35
|
-
| `pr-loop/code-rules-gate.md` | `@~/.claude/_shared/pr-loop/code-rules-gate.md` |
|
|
36
|
-
| `pr-loop/fix-protocol.md` | `@~/.claude/_shared/pr-loop/fix-protocol.md` |
|
|
37
|
-
| `pr-loop/gh-payloads.md` | `@~/.claude/_shared/pr-loop/gh-payloads.md` |
|
|
38
|
-
| `pr-loop/post-audit-thread-contract.md` | `@~/.claude/_shared/pr-loop/post-audit-thread-contract.md` |
|
|
39
|
-
| `pr-loop/precatch-rubric.md` | `@~/.claude/_shared/pr-loop/precatch-rubric.md` |
|
|
40
|
-
| `pr-loop/preflight-proposal.md` | `@~/.claude/_shared/pr-loop/preflight-proposal.md` |
|
|
41
|
-
| `pr-loop/state-schema.md` | `@~/.claude/_shared/pr-loop/state-schema.md` |
|
|
42
|
-
| `pr-loop/worker-spawn.md` | `@~/.claude/_shared/pr-loop/worker-spawn.md` |
|
|
43
|
-
| `pr-loop/scripts/RUNTIME_SCRIPTS.md` | `@~/.claude/_shared/pr-loop/scripts/` |
|
|
44
|
-
|
|
45
|
-
Install via `packages/claude-dev-env/bin/install.mjs`.
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
# Advisor
|
|
2
1
|
|
|
3
|
-
**Canonical home:**
|
|
4
|
-
|
|
5
|
-
@~/.claude/_shared/advisor/CLAUDE.md
|
|
6
|
-
|
|
7
|
-
@~/.claude/_shared/advisor/advisor-protocol.md
|
|
8
|
-
|
|
9
|
-
Scripts: `~/.claude/_shared/advisor/scripts/` (`model_tier_run_validator.py`, `codex_sol_advisor.py`, `tier_model_ids.py`, constants under `scripts/config/`).
|
|
@@ -1,58 +1 @@
|
|
|
1
|
-
# pr-loop
|
|
2
1
|
|
|
3
|
-
Shared infrastructure for autoconverge PR convergence: XML prompt templates,
|
|
4
|
-
portable-driver phase machine scripts under `skills/_shared/pr-loop/scripts/`,
|
|
5
|
-
and runtime convergence/Codex scripts under `~/.claude/_shared/pr-loop/scripts/`.
|
|
6
|
-
Retired entry skills (`bugteam`, `pr-converge`, and others) are archived under
|
|
7
|
-
`packages/claude-dev-env/.agents/skills-archived/` for reference only.
|
|
8
|
-
|
|
9
|
-
## Subdirectories
|
|
10
|
-
|
|
11
|
-
| Directory | Role |
|
|
12
|
-
|---|---|
|
|
13
|
-
| `prompts/` | XML agent prompt templates for internal lenses. |
|
|
14
|
-
| `scripts/` | Portable pacer scripts: pacer selection, loop state, portable driver, prompt builders, handoff. |
|
|
15
|
-
|
|
16
|
-
## Canonical-path stubs (`~/.claude/_shared/pr-loop/`)
|
|
17
|
-
|
|
18
|
-
Open a stub, then load the `@` target:
|
|
19
|
-
|
|
20
|
-
| Stub here | Load |
|
|
21
|
-
|---|---|
|
|
22
|
-
| `audit-contract.md` | `@~/.claude/_shared/pr-loop/audit-contract.md` |
|
|
23
|
-
| `audit-reply-template.md` | `@~/.claude/_shared/pr-loop/audit-reply-template.md` |
|
|
24
|
-
| `code-rules-gate.md` | `@~/.claude/_shared/pr-loop/code-rules-gate.md` |
|
|
25
|
-
| `fix-protocol.md` | `@~/.claude/_shared/pr-loop/fix-protocol.md` |
|
|
26
|
-
| `gh-payloads.md` | `@~/.claude/_shared/pr-loop/gh-payloads.md` |
|
|
27
|
-
| `post-audit-thread-contract.md` | `@~/.claude/_shared/pr-loop/post-audit-thread-contract.md` |
|
|
28
|
-
| `precatch-rubric.md` | `@~/.claude/_shared/pr-loop/precatch-rubric.md` |
|
|
29
|
-
| `preflight-proposal.md` | `@~/.claude/_shared/pr-loop/preflight-proposal.md` |
|
|
30
|
-
| `state-schema.md` | `@~/.claude/_shared/pr-loop/state-schema.md` |
|
|
31
|
-
| `worker-spawn.md` | `@~/.claude/_shared/pr-loop/worker-spawn.md` |
|
|
32
|
-
| `scripts/RUNTIME_SCRIPTS.md` | `@~/.claude/_shared/pr-loop/scripts/` |
|
|
33
|
-
|
|
34
|
-
## Key files (live in this tree)
|
|
35
|
-
|
|
36
|
-
| File | Role |
|
|
37
|
-
|---|---|
|
|
38
|
-
| `portable-driver.md` | Continuous in-session pacer when Workflow / ScheduleWakeup are absent. |
|
|
39
|
-
| `prompts/pr-consistency-audit.xml` | Cross-file consistency audit prompt for autoconverge self-review lanes. |
|
|
40
|
-
| `scripts/select_converge_pacer.py` | Maps entry skill + host tool flags to `workflow`, `schedule_wakeup`, or `portable`. |
|
|
41
|
-
| `scripts/build_audit_prompt.py` | Assembles audit agent prompts from loop state (portable pacer). |
|
|
42
|
-
| `scripts/build_fix_prompt.py` | Assembles fix agent prompts from loop state and findings. |
|
|
43
|
-
| `scripts/init_loop_state.py` | Initializes per-PR loop state JSON for portable runs. |
|
|
44
|
-
| `scripts/write_audit_outcomes.py` | Writes per-loop audit outcome XML into the workspace. |
|
|
45
|
-
| `scripts/write_fix_outcomes.py` | Writes per-loop fix outcome XML into the workspace. |
|
|
46
|
-
| `scripts/preflight_worktree.py` | Verifies the working directory is a healthy worktree for the target PR. |
|
|
47
|
-
| `scripts/teardown_worktrees.py` | Removes loop worktrees on clean exit. |
|
|
48
|
-
| `scripts/write_handoff.py` | Writes durable resume-handoff files under `~/.claude/runtime/pr-loop/<run-name>/`. |
|
|
49
|
-
| `scripts/portable_converge_driver.py` | Portable phase machine for autoconverge when `pacer=portable`. |
|
|
50
|
-
| `scripts/build_converge_task_list.py` | Step-1 task list for portable runs. |
|
|
51
|
-
| `scripts/_path_resolver.py` | Resolves workspace and worktree paths from PR metadata. |
|
|
52
|
-
| `scripts/_cli_utils.py` | Shared CLI argument parsing helpers. |
|
|
53
|
-
| `scripts/_xml_utils.py` | XML serialization helpers. |
|
|
54
|
-
| `scripts/skills_pr_loop_constants/` | Named constants for portable-driver scripts. |
|
|
55
|
-
|
|
56
|
-
Runtime convergence checks, Codex review, and shared gates live in
|
|
57
|
-
`packages/claude-dev-env/_shared/pr-loop/scripts/` (installed to
|
|
58
|
-
`~/.claude/_shared/pr-loop/scripts/`).
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
# prompts
|
|
2
1
|
|
|
3
|
-
XML agent prompt templates for autoconverge internal lenses and portable pacer audits.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Role |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `pr-consistency-audit.xml` | Structured prompt for the cross-file consistency audit. Defines the agent role, scope anchors, a ten-rule detection workflow, and output format. Autoconverge self-review and portable bug-audit lanes inject this prompt from `~/.claude/skills/_shared/pr-loop/prompts/pr-consistency-audit.xml`. |
|
|
@@ -1,35 +1 @@
|
|
|
1
|
-
# scripts
|
|
2
1
|
|
|
3
|
-
Python scripts for autoconverge portable pacer control and loop helpers. Runtime convergence checks, Codex review, and shared gates live in `~/.claude/_shared/pr-loop/scripts/`.
|
|
4
|
-
|
|
5
|
-
## Two script homes
|
|
6
|
-
|
|
7
|
-
| Home | Path |
|
|
8
|
-
|---|---|
|
|
9
|
-
| **Skill-local** (this folder) | Converge helpers: `build_*_prompt.py`, `init_loop_state.py`, `portable_converge_driver.py`, … |
|
|
10
|
-
| **Runtime** (top-level shared) | Gate / preflight / review helpers — see `RUNTIME_SCRIPTS.md` → `@~/.claude/_shared/pr-loop/scripts/` |
|
|
11
|
-
|
|
12
|
-
## Key files (skill-local)
|
|
13
|
-
|
|
14
|
-
| File | Role |
|
|
15
|
-
|---|---|
|
|
16
|
-
| `audit_category_schema.py` | Loads the A-Q schema JSON, exports category entries, validates rubric/prompt projections, renders deterministic skeletons. |
|
|
17
|
-
| `build_audit_prompt.py` | Assembles the audit agent prompt from loop state and category constants. |
|
|
18
|
-
| `build_fix_prompt.py` | Assembles the fix agent prompt from loop state and findings XML. |
|
|
19
|
-
| `init_loop_state.py` | Initializes the per-PR `loop-state.json` file in the workspace directory. |
|
|
20
|
-
| `write_audit_outcomes.py` | Writes per-loop audit outcome XML into the workspace. |
|
|
21
|
-
| `write_fix_outcomes.py` | Writes per-loop fix outcome XML into the workspace. |
|
|
22
|
-
| `preflight_worktree.py` | Verifies the working directory is a healthy git worktree for the target PR's repo. Supports `--mode strict` to abort when the repo does not match. |
|
|
23
|
-
| `teardown_worktrees.py` | Removes per-PR worktrees after a clean loop exit. |
|
|
24
|
-
| `write_handoff.py` | Writes durable resume-handoff files under the run's `~/.claude/runtime/pr-loop` directory at each converge checkpoint. |
|
|
25
|
-
| `select_converge_pacer.py` | Selects `workflow`, `schedule_wakeup`, or `portable` for pr-converge / autoconverge from host tool flags. |
|
|
26
|
-
| `build_converge_task_list.py` | Step-1 task list: runnable review gates + final all_runnable_reviews_clean_same_head. |
|
|
27
|
-
| `portable_converge_driver.py` | portable_converge_driver phase machine: open-run and post-step transitions emit JSON next/commands only. |
|
|
28
|
-
| `_path_resolver.py` | Resolves workspace and worktree paths from PR owner, repo, and number. |
|
|
29
|
-
| `_cli_utils.py` | Shared CLI argument parsing helpers (argparse wrappers). |
|
|
30
|
-
| `_xml_utils.py` | XML serialization helpers for outcome files. |
|
|
31
|
-
| `skills_pr_loop_constants/` | Named constants package imported by the scripts above. |
|
|
32
|
-
|
|
33
|
-
## Tests
|
|
34
|
-
|
|
35
|
-
Each script has a paired test file (`test_build_audit_prompt.py`, `test_build_fix_prompt.py`, etc.) in this directory. Run with `python -m pytest` from the repo root.
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
# skills_pr_loop_constants
|
|
2
1
|
|
|
3
|
-
Python package of named constants for the `pr-loop` shared scripts. All constants are `UPPER_SNAKE_CASE` module-level names imported by the sibling scripts.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Role |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `__init__.py` | Package marker. |
|
|
10
|
-
| `path_resolver_constants.py` | Path template strings and format constants: workspace directory naming, worktree directory name, diff patch filename pattern, outcome XML filename patterns, fix status values, audit constraint texts, audit category entries, fix execution steps, and fix constraint texts. |
|
|
11
|
-
| `audit_category_schema_constants.py` | Paths, regexes, and encoding constants for `audit_category_schema.py` (A-Q schema load and projection parity). |
|
|
12
|
-
| `preflight_constants.py` | Constants used by `preflight_worktree.py` for exit codes and output marker strings. |
|
|
13
|
-
| `handoff_constants.py` | Filename, path-segment, and template constants for the durable handoff writer. |
|
|
14
|
-
| `pacer_constants.py` | Entry-skill names, pacer tokens, CLI flags, and result keys for `select_converge_pacer.py`. |
|
|
15
|
-
| `portable_driver_constants.py` | Phase names, next-action tokens, wait delays, blockers, CLI flags, and result keys for `portable_converge_driver.py`. |
|
|
16
|
-
| `converge_task_list_constants.py` | Task ids, kinds, and CLI flags for `build_converge_task_list.py`. |
|
|
17
|
-
|
|
18
|
-
## Usage
|
|
19
|
-
|
|
20
|
-
Scripts import directly from the package:
|
|
21
|
-
|
|
22
|
-
```python
|
|
23
|
-
from skills_pr_loop_constants.path_resolver_constants import PER_PR_WORKSPACE_TEMPLATE
|
|
24
|
-
```
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
# autoconverge
|
|
2
1
|
|
|
3
|
-
**Trigger:** `/autoconverge`, "autoconverge this PR", "converge this PR in one run", "run the converge workflow", "drive the PR to ready autonomously".
|
|
4
|
-
|
|
5
|
-
Drives one draft PR to convergence in one autonomous run. On `pacer=workflow`, each round runs a deterministic static sweep first, then a code-review pass, a bug-audit (with its adversarial second pass), and a self-review parity pass in parallel on the same HEAD, deduplicates findings, applies every fix in one commit, and re-verifies; state lives in the workflow journal. On `pacer=portable`, the continuous driver in `_shared/pr-loop/portable-driver.md` runs the shared pr-converge phase machine with the same helpers and `check_convergence.py` ready definition. Once the internal passes are clean, Cursor Bugbot, Copilot, and Codex run as terminal confirmation gates, and the run marks the PR ready on convergence.
|
|
6
|
-
|
|
7
|
-
## Subdirectories
|
|
8
|
-
|
|
9
|
-
| Directory | Role |
|
|
10
|
-
|---|---|
|
|
11
|
-
| `reference/` | Markdown docs the skill and workflow cite: round shape, stop conditions, gotchas, and closing report format. |
|
|
12
|
-
| `workflow/` | The `.mjs` convergence workflow, Python report scripts, test files, and the `autoconverge_report_constants/` package. |
|
|
13
|
-
|
|
14
|
-
## Key files
|
|
15
|
-
|
|
16
|
-
| File | Role |
|
|
17
|
-
|---|---|
|
|
18
|
-
| `SKILL.md` | Full entry-point protocol: pacer selection, pre-flight steps, worktree setup, Workflow or portable path, budget-aware boundaries, teardown, and the convergence loop summary. |
|
|
19
|
-
| `workflow/converge.mjs` | Main convergence workflow. Runs a static sweep then the internal lenses each round, applies fixes, runs Bugbot, Copilot, and Codex as terminal gates, checks convergence, and marks the PR ready. |
|
|
20
|
-
| `workflow/aggregate_runs.py` | Merges every autoconverge journal for a PR into one deduped journal. |
|
|
21
|
-
| `workflow/convergence_summary.py` | Builds the convergence-summary agent prompt over the merged findings. |
|
|
22
|
-
| `workflow/render_report.py` | Builds the closing HTML report from the merged journal and summary. |
|
|
23
|
-
| `reference/convergence.md` | Round shape: the static sweep, the three parallel internal lenses, deduplication, fix commit, the terminal Bugbot, Copilot, and Codex gates, and the ready definition. |
|
|
24
|
-
| `reference/copilot-findings.md` | The Copilot gate tiering, per-finding verification, and the `userReview` return contract. |
|
|
25
|
-
| `reference/stop-conditions.md` | Every way the run ends short of ready, including the budget stop. |
|
|
26
|
-
| `reference/gotchas.md` | Hard-won failure lessons. |
|
|
27
|
-
| `reference/closing-report.md` | The closing HTML report: data source, build steps, publishing. |
|
|
28
|
-
| `reference/multi-pr.md` | The several-PRs path: per-PR worktrees, the `converge_multi.mjs` launch, per-PR teardown. |
|
|
29
|
-
| `reference/self-closing-loop.md` | The deferred-PR generations and the Conventional-Commit title rule. |
|
|
30
|
-
| `reference/headless-safety.md` | The agent-prompt headless-safety preamble and the rm auto-allow paths. |
|
|
31
|
-
|
|
32
|
-
## Entry point
|
|
33
|
-
|
|
34
|
-
Selects `workflow` or `portable` via `select_converge_pacer.py`. Missing
|
|
35
|
-
`Workflow` selects portable and continues — it does not abort. The `SKILL.md`
|
|
36
|
-
body specifies the pre-flight sequence and each pacer's run path.
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
# reference
|
|
2
1
|
|
|
3
|
-
Reference documentation for the `autoconverge` skill. The `converge.mjs` workflow and the `SKILL.md` cite these files to define behavior precisely.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Role |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `convergence.md` | Round shape: the static sweep, the three parallel internal lenses (code-review, bug-audit, self-review), deduplication, the fix commit step, the terminal Bugbot, Copilot, and Codex gates, and the definition of a clean convergence. |
|
|
10
|
-
| `copilot-findings.md` | The Copilot gate tiering, per-finding verification, and the `userReview` return contract. |
|
|
11
|
-
| `stop-conditions.md` | Every condition that ends the run short of ready: budget cap, iteration cap, blocker exit, static-sweep stall, Bugbot, Copilot, and Codex bypass. |
|
|
12
|
-
| `gotchas.md` | Current operating guidance for PR title validation, conflicting PRs, worktree branch lock, resumed sessions, and commit or push failures. |
|
|
13
|
-
| `closing-report.md` | The closing HTML convergence report the teardown step builds and publishes: data source, build steps, publishing. |
|
|
14
|
-
| `multi-pr.md` | The several-PRs path: per-PR worktrees, the `converge_multi.mjs` launch, per-PR teardown. |
|
|
15
|
-
| `self-closing-loop.md` | The deferred-PR generations the orchestrator converges after teardown, and the Conventional-Commit title rule on hardening PRs. |
|
|
16
|
-
| `headless-safety.md` | The headless-safety preamble every agent prompt carries, and the rm auto-allow paths. |
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
# workflow
|
|
2
1
|
|
|
3
|
-
Workflow scripts and report utilities for the `autoconverge` skill.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Role |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `converge.mjs` | Main convergence workflow script. Each round runs a deterministic static sweep first, then code-review, bug-audit, and self-review lenses in parallel, deduplicates findings, applies fixes, and pushes; Bugbot, Copilot, and Codex then run as terminal confirmation gates before it checks convergence and marks the PR ready. Runs via the `Workflow` tool — not directly with Node. |
|
|
10
|
-
| `aggregate_runs.py` | Merges every autoconverge journal for a given PR (matched by run id) into one merged journal. Prints a JSON line with `mergedJournal`, `roundCount`, `finalSha`, and `findingCount`. |
|
|
11
|
-
| `convergence_summary.py` | Builds the convergence-summary agent prompt over the merged journal's findings. The teardown step spawns a `general-purpose` subagent on this prompt. |
|
|
12
|
-
| `render_report.py` | Builds the closing HTML insights report. Takes `--journal`, `--summary-file`, `--out`, `--pr`, `--final-sha`, and `--rounds`. Writes the HTML to `--out` and prints the output path on stdout. |
|
|
13
|
-
| `autoconverge_report_constants/` | Named constants package for `render_report.py` and `convergence_summary.py`. |
|
|
14
|
-
| `converge.contract.test.mjs` | Contract tests for `converge.mjs` — verify the workflow interface and step ordering. |
|
|
15
|
-
| `converge.clean-audit.test.mjs` | Tests the clean-audit path (all lenses clean on first round). |
|
|
16
|
-
| `converge.copilot-gate.test.mjs` | Tests Copilot gate behavior (bypass on quota exhaustion). |
|
|
17
|
-
| `converge.codex-gate.test.mjs` | Tests Codex gate classification (required+clean, skip-token, skip-usage, codex_down) and phase wiring. |
|
|
18
|
-
| `converge.precatch.test.mjs` | Tests the pre-catch stage: static-sweep ordering and gate coverage, the adversarial second pass, the self-review lens, the terminal Bugbot gate, the read-only/edit preamble split, and the commit-recovery cap. |
|
|
19
|
-
| `converge.fix-progress.test.mjs` | Tests fix-progress tracking across rounds. |
|
|
20
|
-
| `converge.fix-recovery.test.mjs` | Tests recovery when a fix commit fails. |
|
|
21
|
-
| `converge.p2-advance.test.mjs` | Tests P2-only fix-then-advance helpers and phase routing. |
|
|
22
|
-
| `converge.run-input.test.mjs` | Tests workflow input validation. |
|
|
23
|
-
| `test_aggregate_runs.py` | Tests for `aggregate_runs.py`. |
|
|
24
|
-
| `test_convergence_summary.py` | Tests for `convergence_summary.py`. |
|
|
25
|
-
| `test_render_report.py` | Tests for `render_report.py`. |
|
|
26
|
-
| `fixtures/` | Test fixture data for the workflow tests. |
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
# autoconverge_report_constants
|
|
2
1
|
|
|
3
|
-
Python package of named constants for `render_report.py` and `convergence_summary.py` in the `autoconverge/workflow/` directory.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Role |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `__init__.py` | Package marker. |
|
|
10
|
-
| `render_report_constants.py` | Named constants for the report renderer: structured output tool name, journal label prefixes (`resolve-head`, `lens:`, `fix:`, `copilot-gate`, `convergence-summary`), journal sibling directory names, default finding category and severity, date and SHA length constants, workflow name, projects directory name, merged run id prefix, summary detail character limit, and `onexc` Python version threshold. |
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```python
|
|
15
|
-
from autoconverge_report_constants.render_report_constants import LABEL_PREFIX_LENS
|
|
16
|
-
```
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
# everything-search
|
|
2
1
|
|
|
3
|
-
Fast file search on Windows using the Everything (voidtools) `es.exe` command-line tool. Triggered by `find files`, `search for files`, `locate files`, or any request to use Everything.
|
|
4
|
-
|
|
5
|
-
## Purpose
|
|
6
|
-
|
|
7
|
-
Searches files by extension, name, date modified, size, or path against Everything's real-time index. Returns results instantly regardless of drive size. The skill covers the correct `es.exe` path, search operator syntax, multi-extension patterns, output options, and the junction/symlink note (Everything indexes real NTFS paths only — not junctions or mapped drives).
|
|
8
|
-
|
|
9
|
-
## Key file
|
|
10
|
-
|
|
11
|
-
| File | Purpose |
|
|
12
|
-
|---|---|
|
|
13
|
-
| `SKILL.md` | Command syntax for WSL and Windows paths, all search operators (`ext:`, `dm:`, `size:`, wildcards, OR/AND/NOT), output flags (`-sort`, `-n`, `-size`), worked examples, and a junction/drive-mapping lookup table. |
|
|
14
|
-
|
|
15
|
-
## When to use
|
|
16
|
-
|
|
17
|
-
Use for file-system searches by name, extension, size, or date. For content searches use Grep. If a path is a junction or mapped drive and Everything returns nothing, translate to the real NTFS path or fall back to the Glob tool.
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
# fresh-branch
|
|
2
1
|
|
|
3
|
-
Creates a new branch from fresh-fetched `origin/main` inside an isolated worktree under a configured root. Default: `<repo-root>/.claude/worktrees/<agent>/<branch-name>`. Optional absolute `--worktree-root` relocates the root (agent and branch still nest under it). Relative roots and path escape fail closed. Does not push, open a PR, or run `checkout -b` in the caller tree.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Purpose |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `SKILL.md` | Phases, checklist, configured-root contract, execute-vs-read for the CLI, gotchas |
|
|
10
|
-
| `scripts/create_fresh_branch.py` | Deterministic CLI: resolve configured root (fail closed before fetch), fetch base, `git worktree add -b`, JSON stdout |
|
|
11
|
-
| `scripts/fresh_branch_git_commands.py` | Git command helpers: fetch, ref checks, `git worktree add -b --no-track` |
|
|
12
|
-
| `scripts/test_create_fresh_branch.py` | Behavioral tests with temporary git repos (default root, explicit root, escape, collisions) |
|
|
13
|
-
| `scripts/test_fresh_branch_git_commands.py` | Behavioral tests for the git command helpers |
|
|
14
|
-
| `scripts/fresh_branch_scripts_constants/` | Constants package (`fresh_branch_cli_constants`) for CLI flags and error strings |
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
# grok-spawn
|
|
2
1
|
|
|
3
|
-
**Trigger:** `/grok-spawn`, "spawn grok workers", "grok worker fleet", "run this with grok workers", "headless grok batch".
|
|
4
|
-
|
|
5
|
-
Orchestrator playbook for fleets of headless grok CLI workers. Composes
|
|
6
|
-
`grok_worker_preflight.py` and `spawn_grok_batch.py` by name. Holds no spawn
|
|
7
|
-
logic of its own. The calling session verifies results and owns every commit,
|
|
8
|
-
push, and GitHub post.
|
|
9
|
-
|
|
10
|
-
## Subdirectories
|
|
11
|
-
|
|
12
|
-
| Directory | Role |
|
|
13
|
-
|---|---|
|
|
14
|
-
| `reference/` | Prompt-part templates and tool-profile flag docs the hub cites on demand. |
|
|
15
|
-
|
|
16
|
-
## Key files
|
|
17
|
-
|
|
18
|
-
| File | Role |
|
|
19
|
-
|---|---|
|
|
20
|
-
| `SKILL.md` | Entry protocol: when to use, gotchas, preflight → batch spec → launch → collect → verify. |
|
|
21
|
-
| `reference/worker-briefs.md` | Readonly investigation brief, build brief (edits and tests only), report contract. |
|
|
22
|
-
| `reference/flag-profiles.md` | Readonly vs build flag sets, shared flags, leader-socket and stagger rules, `--agent` note. |
|
|
23
|
-
|
|
24
|
-
## Entry point
|
|
25
|
-
|
|
26
|
-
No skill-local scripts. Runtime lives in `$HOME/.claude/scripts/`
|
|
27
|
-
(`grok_worker_preflight.py`, `spawn_grok_batch.py`, `grok_headless_runner.py`)
|
|
28
|
-
after install. Constants live in `scripts/dev_env_scripts_constants/`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@../AGENTS.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|