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
|
@@ -1,25 +1 @@
|
|
|
1
|
-
# skill-builder/references
|
|
2
1
|
|
|
3
|
-
Best-practice specifications and the mandatory self-audit checklist for the `/skill-builder` skill.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Purpose |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `self-audit-checklist.md` | Audit task seeds after every build, improve, or polish. Register via TaskCreate / TodoWrite. |
|
|
10
|
-
| `skill-types.md` | 9-type skill taxonomy with folder structures per type. |
|
|
11
|
-
| `progressive-disclosure.md` | Hub pattern, folder conventions, hard rules: SKILL.md under 500 lines, one-level references. |
|
|
12
|
-
| `skill-modularity.md` | Cross-skill modularity: one capability, sub-skills by name, composition plan, anti-monolith. |
|
|
13
|
-
| `description-field.md` | Frontmatter description as trigger catalog (capability stem + Triggers). No story prose. |
|
|
14
|
-
| `deterministic-elements.md` | Classify process steps; deterministic ones ship as code, task seeds, or fixed artifacts under CODE_RULES. |
|
|
15
|
-
| `delegation-map.md` | Subagent handoff patterns and transcript guidance for skill-builder → skill-writer-agent. |
|
|
16
|
-
| `thariq-x-post-skills.json` | Source reference data from Anthropic lessons on building Claude Code skills. |
|
|
17
|
-
|
|
18
|
-
## Conventions
|
|
19
|
-
|
|
20
|
-
- These files load on demand from `SKILL.md` routing — not all on every run.
|
|
21
|
-
- `self-audit-checklist.md` always loads at the end of a build cycle.
|
|
22
|
-
- Load `skill-modularity.md` during Gather and when scope/overlap is diagnosed.
|
|
23
|
-
- Load `description-field.md` during Gather, polish Step 1, and any activation diagnosis.
|
|
24
|
-
- Load `deterministic-elements.md` during Gather, when prose-as-code is diagnosed, and on polish structure audit.
|
|
25
|
-
- `thariq-x-post-skills.json` is source reference data, not executable content.
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
# skill-builder/templates
|
|
2
1
|
|
|
3
|
-
Reusable templates for skill-building artifacts.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Purpose |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `gap-analysis.md` | Template for gaps, composition plan, description triggers, and deterministic-elements inventory. Used in new-skill Gather and improve diagnosis. |
|
|
10
|
-
|
|
11
|
-
## Conventions
|
|
12
|
-
|
|
13
|
-
- Fill the template inline during the workflow; do not commit completed gap analyses to this directory.
|
|
14
|
-
- Composition plan, Description triggers, and Deterministic Elements Inventory sections are required before Write on a new skill.
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
# skill-builder/workflows
|
|
2
1
|
|
|
3
|
-
Step-by-step workflow files for each skill lifecycle phase, loaded on demand by `SKILL.md` routing.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Purpose |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `new-skill.md` | Full lifecycle: classify, scaffold, gather (composition + description triggers + deterministic inventory), write via the skill-writer-agent agent, self-audit, deliver. |
|
|
10
|
-
| `improve-skill.md` | Observation-first improve: diagnose activation/modularity/quality/deterministic prose, targeted fix, re-audit. |
|
|
11
|
-
| `polish-skill.md` | Description trigger-catalog audit; progressive disclosure + modularity + deterministic audit; task-seeded self-audit. |
|
|
12
|
-
|
|
13
|
-
## Conventions
|
|
14
|
-
|
|
15
|
-
- `SKILL.md` routes to exactly one workflow file per invocation based on the user's intent (new / improve / polish).
|
|
16
|
-
- Each workflow references `../references/self-audit-checklist.md` at its final verification step.
|
|
17
|
-
- New and improve load `skill-modularity.md`, `description-field.md`, and `deterministic-elements.md` when gathering or diagnosing.
|
|
18
|
-
- Polish Step 1 is the dedicated description rewrite pass; Step 2 covers structure, modularity, and deterministic placement.
|
|
19
|
-
- Load only the workflow that matches the active task; the other two stay out of context.
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
# task-build
|
|
2
1
|
|
|
3
|
-
Gathers every open task in the current session and registers each one with the best available task or plan tool.
|
|
4
|
-
|
|
5
|
-
**Trigger:** `/task-build`, "build my task list", "capture these tasks", "add open tasks to the task list", "track these".
|
|
6
|
-
|
|
7
|
-
## Purpose
|
|
8
|
-
|
|
9
|
-
Collects outstanding work from the conversation, `$ARGUMENTS`, and any plan documents or task items raised this session, then registers one item per open task — skipping anything already tracked or already complete.
|
|
10
|
-
|
|
11
|
-
## Key files
|
|
12
|
-
|
|
13
|
-
| File | Purpose |
|
|
14
|
-
|---|---|
|
|
15
|
-
| `SKILL.md` | Complete task discovery and registration workflow |
|
|
16
|
-
| `reference/tool-routing.md` | Progressive-disclosure routing and fallback rules |
|
|
17
|
-
|
|
18
|
-
## How the skill runs
|
|
19
|
-
|
|
20
|
-
1. Reads the current list or visible plan with the selected host tool — prevents duplicates.
|
|
21
|
-
2. Scans `$ARGUMENTS`, the conversation, and any plan or checklist items for open, actionable work.
|
|
22
|
-
3. Prefers `update_plan`; otherwise uses `TaskList`/`TaskCreate`, then `TodoWrite` as the fallback. See `reference/tool-routing.md` for field mapping.
|
|
23
|
-
4. Reports the selected tool, how many tasks were added, and how many were already tracked.
|
|
24
|
-
|
|
25
|
-
## Conventions
|
|
26
|
-
|
|
27
|
-
- This skill only records tasks — it does not start, assign, or complete them.
|
|
28
|
-
- Use the matching host operation to set status after the list is built.
|
|
29
|
-
- `disable-model-invocation: true` is not set; the skill uses model judgment to classify open vs. complete items.
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
# update
|
|
2
1
|
|
|
3
|
-
Fast-forwards a local git repository's `main` branch to a chosen remote's `main`.
|
|
4
|
-
|
|
5
|
-
**Trigger:** `/update`, "update main", "fast-forward main", "sync main from origin", "pull latest main into <path>", "bring main up to date".
|
|
6
|
-
|
|
7
|
-
## Purpose
|
|
8
|
-
|
|
9
|
-
Advances the `main` ref in a safe, confirmed, fast-forward-only way. Never forces, never merges. Confirms the repo path and source remote before any write. Offers to switch the checkout to `main` after the ref moves, with a clean-tree safety check.
|
|
10
|
-
|
|
11
|
-
## Key files
|
|
12
|
-
|
|
13
|
-
| File | Purpose |
|
|
14
|
-
|---|---|
|
|
15
|
-
| `SKILL.md` | The complete skill — five phases, refusals, gotchas. Flat by design; no companion files. |
|
|
16
|
-
|
|
17
|
-
## Five phases
|
|
18
|
-
|
|
19
|
-
| Phase | Key action |
|
|
20
|
-
|---|---|
|
|
21
|
-
| 1 — Resolve path | `git -C "<path>" rev-parse --show-toplevel` |
|
|
22
|
-
| 2 — Confirm path + remote | One `AskUserQuestion` listing remote/URL pairs; recommends `origin/main` first |
|
|
23
|
-
| 3 — Fetch + fast-forward | Fetch, check ancestry with `merge-base --is-ancestor`, apply via `merge --ff-only` (on main) or `fetch main:main` (off main) |
|
|
24
|
-
| 4 — Report | Old SHA → new SHA, checkout state, dirty tracked files |
|
|
25
|
-
| 5 — Offer to land on disk | `AskUserQuestion` to switch checkout to `main` (only when tree is clean and `main` is not held by another worktree) |
|
|
26
|
-
|
|
27
|
-
## Refusals (first match wins)
|
|
28
|
-
|
|
29
|
-
- Path is not a git repository → stated error, stop.
|
|
30
|
-
- Remote has no `main` → stated error, stop.
|
|
31
|
-
- Local `main` has diverged (not a fast-forward) → stated error, stop. Use `/rebase` to reconcile.
|
|
32
|
-
|
|
33
|
-
## Conventions
|
|
34
|
-
|
|
35
|
-
- Every command uses `git -C "<path>"` — never `cd` into the repo.
|
|
36
|
-
- Path confirmation is mandatory even when the path comes from the argument.
|
|
37
|
-
- The skill never switches to any branch other than `main`, and only in Phase 5 with operator approval.
|
|
38
|
-
- `origin` is not always the source of truth; the confirmed remote may be `upstream` or another name.
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
# skills-archived
|
|
2
1
|
|
|
3
|
-
Versioned archive of retired Claude Code skills. These trees stay in the repository for reference and history but are not shipped to users.
|
|
4
|
-
|
|
5
|
-
## Layout
|
|
6
|
-
|
|
7
|
-
Each subdirectory is one retired skill with its historical `SKILL.md`, reference docs, scripts, and tests. Live runtime helpers for convergence and Codex review live under `packages/claude-dev-env/_shared/pr-loop/scripts/` — not in these trees.
|
|
8
|
-
|
|
9
|
-
## Installer behavior
|
|
10
|
-
|
|
11
|
-
`bin/install.mjs` copies skills only from `.agents/skills/`. This directory is outside that path and outside the `.claude/skills` lookup pointer, so archived skills never install to `~/.agents/skills/`.
|
|
12
|
-
|
|
13
|
-
`bin/ever-shipped-skills.mjs` still lists retired skill names so a full install prunes stale copies from prior releases.
|
|
14
|
-
|
|
15
|
-
## Archived skills
|
|
16
|
-
|
|
17
|
-
| Skill | Role |
|
|
18
|
-
|---|---|
|
|
19
|
-
| `anthropic-plan` | Source-grounded plan packet workflow |
|
|
20
|
-
| `auditing-claude-config` | Claude Code startup instruction audit |
|
|
21
|
-
| `beat-sheet` | Single-line beat formatting |
|
|
22
|
-
| `bugteam` | Open PR audit-fix loop |
|
|
23
|
-
| `closeout` | Session obstacle harvest to GitHub issues |
|
|
24
|
-
| `codex-review` | Local Codex PR reviewer (runtime scripts in `_shared`) |
|
|
25
|
-
| `comments` | PR review comment guide |
|
|
26
|
-
| `condensing-instructions` | Instruction slimming for Claude 5 |
|
|
27
|
-
| `copilot-finding-triage` | Copilot gate finding tiering |
|
|
28
|
-
| `copilot-review` | Copilot reviewer babysitter |
|
|
29
|
-
| `descriptions` | PR description guide |
|
|
30
|
-
| `emergencies` | Emergency change guide |
|
|
31
|
-
| `grokify` | Grok Build handoff prompt |
|
|
32
|
-
| `plan-to-pr` | Plan packet to PR workflow |
|
|
33
|
-
| `pr-converge` | Paced PR convergence loop (runtime scripts in `_shared`) |
|
|
34
|
-
| `pr-fix-protocol` | Reviewer finding fix protocol |
|
|
35
|
-
| `pr-loop-cloud-transport` | Cloud session gh-to-MCP transport |
|
|
36
|
-
| `pr-loop-lifecycle` | PR-loop open and close |
|
|
37
|
-
| `recall` | Obsidian vault recall |
|
|
38
|
-
| `release-notes-html` | Session release-notes HTML page |
|
|
39
|
-
| `remember` | Obsidian vault remember |
|
|
40
|
-
| `reviewer-gates` | External reviewer availability gates |
|
|
41
|
-
| `reviews` | Code review guide |
|
|
42
|
-
| `show` | Inline visual explanations |
|
|
43
|
-
| `split-pr` | PR split analyzer |
|
|
44
|
-
|
|
45
|
-
Prompt-generator dependency skills (`agent-prompt`, `pmin`, `pmax`, `pmid`, `prompt-generator`) shipped via the `@jl-cmd/prompt-generator` npm package and never had source trees in this repository.
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
# anthropic-plan
|
|
2
1
|
|
|
3
|
-
**Trigger:** `/anthropic-plan`, "plan this first", "think before coding", "make a plan", "scope this out", "don't code yet", and non-trivial requests that need source-grounded design before build work.
|
|
4
|
-
|
|
5
|
-
Creates a repo-local plan packet under `docs/plans/<slug>/` by running the `plan-packet.mjs` workflow. The skill first drafts a short starting plan and gets the user's approval in plan mode (`EnterPlanMode` / `ExitPlanMode`); on approval it runs the workflow. The packet holds context, spec, implementation steps, validation, and a handoff prompt for the build agent. The skill stops before any production code changes.
|
|
6
|
-
|
|
7
|
-
## Subdirectories
|
|
8
|
-
|
|
9
|
-
| Directory | Role |
|
|
10
|
-
|---|---|
|
|
11
|
-
| `scripts/` | Python validator (`validate_packet.py`) that checks the packet's required files, placeholders, and consistency. |
|
|
12
|
-
| `templates/` | Template files the workflow renders when building the packet (`README.md`, `build-prompt.md`, `reuse-audit.md`, `source-map.md`, `visual-plan.template.html`). |
|
|
13
|
-
| `workflow/` | The `.mjs` workflow scripts and their test files. |
|
|
14
|
-
|
|
15
|
-
## Key files
|
|
16
|
-
|
|
17
|
-
| File | Role |
|
|
18
|
-
|---|---|
|
|
19
|
-
| `SKILL.md` | Entry point. Full planning protocol, workflow contract, packet shape, and validation rules. |
|
|
20
|
-
| `workflow/plan-packet.mjs` | Main workflow script. Reads repo context, writes the packet, runs the validator, spawns `plan-packet-validator`, runs the reuse audit, builds the visual HTML, and returns the packet path. |
|
|
21
|
-
| `workflow/plan-packet.contract.test.mjs` | Contract tests for the workflow script. |
|
|
22
|
-
| `packages/claude-dev-env/.agents/skills-archived/anthropic-plan/scripts/validate_packet.py` | Deterministic validator: checks required files, open questions, source-map strength, TDD coverage, and `packet.json` consistency. Exits with code 2 on failure. |
|
|
23
|
-
| `templates/visual-plan.template.html` | Template for the single-file offline visual HTML the workflow builds after validation. |
|
|
24
|
-
|
|
25
|
-
## Entry point
|
|
26
|
-
|
|
27
|
-
```js
|
|
28
|
-
Workflow({
|
|
29
|
-
scriptPath: "$HOME/.claude/skills/anthropic-plan/workflow/plan-packet.mjs",
|
|
30
|
-
args: { task: "<user request>", cwd: "<working directory>" }
|
|
31
|
-
})
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
The session must be in a worktree (path has `.claude/worktrees/`) before calling the workflow.
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
# scripts
|
|
2
1
|
|
|
3
|
-
Python scripts for the `anthropic-plan` skill.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Role |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `validate_packet.py` | Deterministic packet validator. Checks that all required files exist under `docs/plans/<slug>/`, that no placeholder text remains, that `packet.json` is consistent with the folder contents, and that the TDD plan is present. Exits with code 2 on failure; the workflow treats a non-zero exit as a blocking finding. |
|
|
10
|
-
| `test_validate_packet.py` | Tests for `validate_packet.py`. |
|
|
11
|
-
| `anthropic_plan_scripts_constants/` | Named constants package (`validate_packet_constants.py`) that lists every required relative path the validator checks. |
|
package/.agents/skills-archived/anthropic-plan/scripts/anthropic_plan_scripts_constants/AGENTS.md
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
# anthropic_plan_scripts_constants
|
|
2
1
|
|
|
3
|
-
Python package of named constants for `anthropic-plan/scripts/`.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Role |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `__init__.py` | Package marker. |
|
|
10
|
-
| `validate_packet_constants.py` | Defines `ALL_REQUIRED_RELATIVE_PATHS` — the tuple of every relative path that must exist inside a valid plan packet (e.g. `README.md`, `packet.json`, `context/source-map.md`, `implementation/tdd-plan.md`, `handoff/build-prompt.md`). Also defines `MARKDOWN_FILE_SUFFIX` and `EXIT_CODE_VALIDATION_FAILED`. |
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```python
|
|
15
|
-
from anthropic_plan_scripts_constants.validate_packet_constants import ALL_REQUIRED_RELATIVE_PATHS
|
|
16
|
-
```
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
# templates
|
|
2
1
|
|
|
3
|
-
Template files the `plan-packet.mjs` workflow renders when building a plan packet.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Role |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `README.md` | Markdown template for the packet's top-level `README.md`. Placeholder slots for plan title, goal, status, packet map, and build path. |
|
|
10
|
-
| `build-prompt.md` | Template for `handoff/build-prompt.md` — the standalone prompt the build agent reads to start coding without needing the rest of the packet. |
|
|
11
|
-
| `reuse-audit.md` | Template for `validation/reuse-audit.md` — the per-item verdict table the workflow fills in during the reuse audit step. |
|
|
12
|
-
| `source-map.md` | Template for `context/source-map.md` — the inventory of source files and facts the planner extracts. |
|
|
13
|
-
| `visual-plan.template.html` | Single-file offline HTML template. The workflow fills this with packet data after validation to produce `visual-plan.html` beside the packet. Inlines all CSS and JavaScript; references no external assets. |
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
# workflow
|
|
2
1
|
|
|
3
|
-
Workflow scripts for the `anthropic-plan` skill.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Role |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `plan-packet.mjs` | Main workflow script. Resolves repo root, reads project context, builds the source inventory, writes the full packet under `docs/plans/<slug>/`, runs `validate_packet.py`, spawns `plan-packet-validator` in a fresh context, runs the reuse audit, builds the visual HTML from `templates/visual-plan.template.html`, and returns the packet path and validation state. |
|
|
10
|
-
| `plan-packet.contract.test.mjs` | Contract tests that verify the workflow script's interface and required steps without a live repo. |
|
|
11
|
-
|
|
12
|
-
## Running
|
|
13
|
-
|
|
14
|
-
The `plan-packet.mjs` script runs via the `Workflow` tool — do not invoke it directly with Node. The skill's `SKILL.md` specifies the exact call signature and required `args`.
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
# auditing-claude-config
|
|
2
1
|
|
|
3
|
-
**Trigger:** `/auditing-claude-config`, reviewing the startup instruction load, `/memory` showing unexpected files, adding new rules, periodic config hygiene.
|
|
4
|
-
|
|
5
|
-
Audits a Claude Code setup — user `CLAUDE.md`, `~/.claude/rules/`, project `.claude/` — for context-budget waste: duplicate `@`-imports, always-on rules that could be path-scoped or turned into skills, and oversized files. Produces a migration table with line savings.
|
|
6
|
-
|
|
7
|
-
## Key files
|
|
8
|
-
|
|
9
|
-
| File | Role |
|
|
10
|
-
|---|---|
|
|
11
|
-
| `SKILL.md` | Full audit protocol: inventory the always-loaded set, find duplicate imports, classify each rule, produce the migration table, stage recommendations by risk, and verify lazy-load behavior with an optional probe hook. |
|
|
12
|
-
| `reference/probe-hook.md` | The optional lazy-load probe hook: hook script, `settings.json` registration, and test protocol. |
|
|
13
|
-
|
|
14
|
-
## What the skill produces
|
|
15
|
-
|
|
16
|
-
1. **Baseline** — total always-loaded lines, broken down by file.
|
|
17
|
-
2. **Migration table** — one row per rule: current lines, verdict, specific action, lines removed from preload.
|
|
18
|
-
3. **Recommended next step** — the single highest-leverage change.
|
|
19
|
-
4. **Open questions** — anything not verified by the probe hook.
|
|
20
|
-
|
|
21
|
-
No runnable scripts or workflow files. The audit logic lives in the skill body; the optional lazy-load probe hook lives in `reference/probe-hook.md` as copy-ready text.
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
# bugteam
|
|
2
1
|
|
|
3
|
-
Runs an audit-fix loop on an open pull request until all findings are resolved or the 20-loop cap is reached. Triggered by `/bugteam`, `run the bug team`, `auto-fix the PR until clean`, or `loop audit and fix`.
|
|
4
|
-
|
|
5
|
-
## Purpose
|
|
6
|
-
|
|
7
|
-
Each loop: a `code-quality-agent` (fresh context, all A–Q audit categories) produces an outcome XML; a `clean-coder` agent applies every fix; the lead commits, pushes, and posts a GitHub PR review (APPROVE on clean, REQUEST_CHANGES with inline anchored comments on dirty). Grants `.claude/**` write permissions at the start and revokes them at the end.
|
|
8
|
-
|
|
9
|
-
## Key files
|
|
10
|
-
|
|
11
|
-
| File | Purpose |
|
|
12
|
-
|---|---|
|
|
13
|
-
| `SKILL.md` | Hub — pre-flight call, refusals, the audit-posting step (runs the shared `post_audit_thread.py` helper), progress checklist, and situation-to-reference table. Read this first. |
|
|
14
|
-
| `PROMPTS.md` | Spawn XML, A–Q category bindings, outcome XML schemas. |
|
|
15
|
-
| `CONSTRAINTS.md` | Invariants — what the loop must never violate. |
|
|
16
|
-
| `EXAMPLES.md` | Exit scenarios: converged, cap-reached, stuck, refusal, mixed-outcome. |
|
|
17
|
-
| `sources.md` | Doc URLs and verbatim quotes cited in the skill body. |
|
|
18
|
-
|
|
19
|
-
## Subdirectories
|
|
20
|
-
|
|
21
|
-
| Directory | Role |
|
|
22
|
-
|---|---|
|
|
23
|
-
| `reference/` | Expanded workflow detail loaded on demand (team setup, audit contract, GitHub PR review shape, teardown). |
|
|
24
|
-
| `scripts/` | Python scripts executed by the lead or teammates at runtime. |
|
|
25
|
-
|
|
26
|
-
## Environment controls
|
|
27
|
-
|
|
28
|
-
- `CLAUDE_REVIEWS_DISABLED=bugteam` — disables the skill entirely (pre-flight exits 7).
|
|
29
|
-
- `BUGTEAM_PREFLIGHT_SKIP=1` — skips pytest in pre-flight.
|
|
30
|
-
- `BUGTEAM_REVIEWER_ACCOUNT=<login>` — names the alternate `gh` account for posting reviews when the PR author and reviewer identity match.
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
# bugteam/reference
|
|
2
1
|
|
|
3
|
-
Expanded workflow detail for the `bugteam` skill. Load a file from this directory when the orchestration stub in `SKILL.md` is not enough — for example, when debugging GitHub review shape, understanding gate semantics, or working through teardown edge cases.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Purpose |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `README.md` | Index of all files in this directory with one-line domain summaries. |
|
|
10
|
-
| `team-setup.md` | Permissions grant, PR scope resolution, run name, temp dir, and loop state. |
|
|
11
|
-
| `audit-and-teammates.md` | Pre-audit CODE_RULES gate, full cycle numbering, AUDIT and FIX action detail. |
|
|
12
|
-
| `github-pr-reviews.md` | Per-loop review posting, `jq`+`gh api` payloads, inline anchors, fallbacks, REST endpoints. |
|
|
13
|
-
| `design-rationale.md` | Why clean-room subagents, when `/bugteam` applies, refusal reasons. |
|
|
14
|
-
| `copilot-gap-analysis.md` | Historical gap analysis (reference only). |
|
|
15
|
-
|
|
16
|
-
## Subdirectories
|
|
17
|
-
|
|
18
|
-
| Directory | Role |
|
|
19
|
-
|---|---|
|
|
20
|
-
| `obstacles/` | Per-step obstacle guides — one file per common failure point (e.g., write XML, resolve thread, push, test suite). |
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
# bugteam/reference/obstacles
|
|
2
1
|
|
|
3
|
-
Per-step obstacle guides for the `bugteam` skill. Each file addresses a specific failure point that can occur during an audit-fix loop. Load the matching file when a step fails rather than improvising a fix.
|
|
4
|
-
|
|
5
|
-
## Files
|
|
6
|
-
|
|
7
|
-
| File | Obstacle it addresses |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `audit-assign-ids.md` | Assigning stable finding IDs in the audit output. |
|
|
10
|
-
| `audit-capture-excerpts.md` | Capturing code excerpts for each finding. |
|
|
11
|
-
| `audit-walk-categories.md` | Walking all A–Q categories without skipping. |
|
|
12
|
-
| `audit-write-xml.md` | Writing the outcome XML from an audit pass. |
|
|
13
|
-
| `fix-append-summary.md` | Appending the fix summary to the outcome XML. |
|
|
14
|
-
| `fix-apply-fixes.md` | Applying code fixes from the finding list. |
|
|
15
|
-
| `fix-git-add-commit.md` | Staging and committing the fixed files. |
|
|
16
|
-
| `fix-git-push.md` | Pushing the fix commit to the remote branch. |
|
|
17
|
-
| `fix-post-reply.md` | Posting inline replies to finding threads on the PR. |
|
|
18
|
-
| `fix-publish-summary.md` | Publishing the loop summary to the PR. |
|
|
19
|
-
| `fix-py-compile.md` | Verifying Python syntax after fixes. |
|
|
20
|
-
| `fix-read-files.md` | Reading the files referenced in a finding. |
|
|
21
|
-
| `fix-resolve-thread.md` | Resolving a finding's review thread on GitHub. |
|
|
22
|
-
| `fix-test-suite.md` | Running the test suite and interpreting failures. |
|
|
23
|
-
| `fix-violation-count.md` | Counting open violations after a fix pass. |
|
|
24
|
-
| `fix-write-xml.md` | Writing the per-fix XML record. |
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
# bugteam/scripts
|
|
2
1
|
|
|
3
|
-
Python scripts executed by the bugteam lead or teammates at runtime. These are not loaded into context as instructions — they run as subprocess calls from within the skill workflow.
|
|
4
|
-
|
|
5
|
-
## Scripts
|
|
6
|
-
|
|
7
|
-
| File | Purpose |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `bugteam_preflight.py` | Skill-path thin entry for shared `_shared/pr-loop/scripts/preflight.py`. Skips pytest when `BUGTEAM_PREFLIGHT_SKIP=1` or no test files exist. |
|
|
10
|
-
| `bugteam_fix_hookspath.py` | Skill-path thin entry for shared `_shared/pr-loop/scripts/fix_hookspath.py`. Auto-remediates a stale `core.hooksPath` override. |
|
|
11
|
-
| `bugteam_code_rules_gate.py` | Thin skill-path entry; re-exports shared `_shared/pr-loop/scripts/code_rules_gate.py` (of record). |
|
|
12
|
-
| `windows_safe_rmtree.py` | Remove a directory tree on Windows by stripping ReadOnly attributes and retrying on failure. |
|
|
13
|
-
| `probe_code_rules_enforcer_check.py` | Load `code_rules_enforcer.py` and invoke a named check function against a fixture file. |
|
|
14
|
-
| `reflow_skill_md.py` | Reflow the bugteam SKILL.md body to fit line-length limits. |
|
|
15
|
-
|
|
16
|
-
## Test files
|
|
17
|
-
|
|
18
|
-
| File | Tests |
|
|
19
|
-
|---|---|
|
|
20
|
-
| `test_bugteam_preflight.py` | Smoke for thin wrap; behavioral suite is `_shared/pr-loop/scripts/tests/test_preflight.py` |
|
|
21
|
-
| `test_bugteam_code_rules_gate.py` | Smoke for thin wrap; behavioral suite is `_shared/pr-loop/scripts/tests/test_code_rules_gate.py` |
|
|
22
|
-
| `test_bugteam_fix_hookspath.py` | Smoke for thin wrap; behavioral suite is `_shared/pr-loop/scripts/tests/test_fix_hookspath.py` |
|
|
23
|
-
| `test_probe_code_rules_enforcer_check.py` | `probe_code_rules_enforcer_check.py` |
|
|
24
|
-
| `test_windows_safe_rmtree.py` | `windows_safe_rmtree.py` |
|
|
25
|
-
|
|
26
|
-
## Subdirectories
|
|
27
|
-
|
|
28
|
-
| Directory | Role |
|
|
29
|
-
|---|---|
|
|
30
|
-
| `bugteam_scripts_constants/` | Named constants imported by the scripts above. |
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
# bugteam/scripts/bugteam_scripts_constants
|
|
2
1
|
|
|
3
|
-
Python package of named constants imported by the bugteam scripts. Each module holds the constants for one script; importing from this package keeps magic values out of the script bodies.
|
|
4
|
-
|
|
5
|
-
## Modules
|
|
6
|
-
|
|
7
|
-
| File | Constants for |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `probe_code_rules_enforcer_check_constants.py` | `probe_code_rules_enforcer_check.py` — enforcer module path and function name constants. |
|
|
10
|
-
| `reflow_skill_md_constants.py` | `reflow_skill_md.py` — line-length and formatting constants. |
|
|
11
|
-
| `windows_safe_rmtree_constants.py` | `windows_safe_rmtree.py` — retry count and wait constants. |
|
|
12
|
-
| `__init__.py` | Empty package marker. |
|
|
13
|
-
|
|
14
|
-
Preflight, fix_hookspath, and code_rules_gate constants live under package shared `pr_loop_shared_constants` with the shared implementations.
|
|
15
|
-
|
|
16
|
-
## Convention
|
|
17
|
-
|
|
18
|
-
Scripts import from this package at module scope. No constant is defined inline in a script body — the hook enforces this at write time.
|
|
@@ -1,46 +1 @@
|
|
|
1
|
-
# codex-review
|
|
2
1
|
|
|
3
|
-
Runs OpenAI Codex as a local PR or uncommitted-diff reviewer: opt-out gate, version/shape probe, target pick, classifying review (`codex exec … review --json`), outcome classification, and handoff of findings into `pr-fix-protocol`. Triggered by `/codex-review`, `codex review`, `run codex review`, `babysit codex review`, or `codex as a PR reviewer`.
|
|
4
|
-
|
|
5
|
-
## Purpose
|
|
6
|
-
|
|
7
|
-
One Codex review pass per invocation. The skill owns sequence and skill-level classification (`down` / `clean` / `findings`). The headless wrapper is capture-only (`completed` / `codex_down` plus raw fields). Shared peers own opt-out parsing (`reviews_disabled.py` / `reviewer-gates`) and the fix sequence (`pr-fix-protocol`). Observed raw CLI surface, wrapper capture contract, probe signals, failure fixtures, auth modes, cloud runbook, and classification map live under `reference/cli-contract.md`; PR-loop wiring lives under `reference/loop-integration.md`.
|
|
8
|
-
|
|
9
|
-
## Key files
|
|
10
|
-
|
|
11
|
-
| File | Purpose |
|
|
12
|
-
|---|---|
|
|
13
|
-
| `SKILL.md` | Flow skeleton: opt-out → probe → target → wrapper → classify → fix handoff; refusals; sub-skills table; ground rules. |
|
|
14
|
-
| `reference/cli-contract.md` | Wrapper entrypoint and argv; version/shape probe; success JSONL and findings parse; failure classes tied to fixtures; auth modes; cloud runbook. |
|
|
15
|
-
| `reference/loop-integration.md` | Gate placement in pr-converge and autoconverge; threshold rule; opt-out token; state fields; re-entry after fixes. |
|
|
16
|
-
| `scripts/run_codex_review.py` | Headless capture wrapper: probes, single-target argv, JSONL capture, `completed` / `codex_down`. |
|
|
17
|
-
| `scripts/test_run_codex_review.py` | Behavioral tests for `run_codex_review`. |
|
|
18
|
-
| `scripts/codex_down_classifier.py` | Maps a Codex run's exit code and stream text to a failure detail class and the gate outcome class (`completed` / `codex_down`). |
|
|
19
|
-
| `scripts/parse_codex_findings.py` | Parses reviewer text into findings: fenced JSON first, then the freeform bullet shape, then a single floor finding. |
|
|
20
|
-
| `scripts/codex_usage_probe.py` | Weekly usage probe CLI: app-server rate-limits read, null-on-unknown JSON report. |
|
|
21
|
-
| `scripts/test_codex_usage_probe.py` | Unit tests for the weekly usage probe and gate helper. |
|
|
22
|
-
| `scripts/codex_review_scripts_constants/run_constants.py` | Named constants package for skill scripts: binary name, flags, prompt, probe pattern, timeout, exit sentinels, JSONL keys, capture outcome labels. |
|
|
23
|
-
| `scripts/codex_review_scripts_constants/codex_usage_probe_constants.py` | Named constants for the weekly usage probe. |
|
|
24
|
-
|
|
25
|
-
## Subdirectories
|
|
26
|
-
|
|
27
|
-
| Directory | Role |
|
|
28
|
-
|---|---|
|
|
29
|
-
| `reference/` | Progressive-disclosure pages for cli-contract and loop-integration. |
|
|
30
|
-
| `scripts/` | Capture wrapper, classifier, findings parser, weekly usage probe, tests, fixtures, and constants package. |
|
|
31
|
-
|
|
32
|
-
## Environment opt-out
|
|
33
|
-
|
|
34
|
-
Step 0 runs `reviews_disabled.py --reviewer codex` before any probe or review invoke.
|
|
35
|
-
|
|
36
|
-
| Gate exit | Meaning for this skill |
|
|
37
|
-
|---|---|
|
|
38
|
-
| 0 | Opt-out active — refuse with the opt-out line in `SKILL.md` and stop |
|
|
39
|
-
| 1 | Continue the flow |
|
|
40
|
-
| Any other | Blocker — stop; do not invent an opt-out refusal |
|
|
41
|
-
|
|
42
|
-
Set `CLAUDE_REVIEWS_DISABLED=codex` to disable. This package does not re-parse `CLAUDE_REVIEWS_DISABLED`; the shared gate owns the token parse.
|
|
43
|
-
|
|
44
|
-
## Scripts surface
|
|
45
|
-
|
|
46
|
-
`scripts/` holds the capture wrapper (`run_codex_review.py`), the down classifier (`codex_down_classifier.py`), the findings parser (`parse_codex_findings.py`), the weekly usage probe (`codex_usage_probe.py`), their tests, fixtures, and named constants. The wrapper returns capture fields only (`completed` / `codex_down`); agents map those fields to skill classes via the skill-class map and parse findings through `parse_codex_findings`. Classify only from a `codex exec … review --json` JSONL stream; do not invent a non-JSONL parse.
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
# codex-review/reference
|
|
2
1
|
|
|
3
|
-
Reference pages for the `codex-review` skill. `SKILL.md` cites these files for CLI contract and PR-loop integration detail.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Purpose |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `cli-contract.md` | Observed Codex CLI review surface: classifying `codex exec … review --json` path, wrapper capture (`completed` / `codex_down`), probe signals, success JSONL and findings parse, fixture-backed failure classes, skill-class map (`down` / `clean` / `findings`), auth modes, and cloud runbook. |
|
|
10
|
-
| `loop-integration.md` | Gate placement in pr-converge and autoconverge; threshold rule; opt-out token; state fields; target selection; skill-class vocabulary; findings handoff; re-entry after a fix push. |
|
|
11
|
-
|
|
12
|
-
## Conventions
|
|
13
|
-
|
|
14
|
-
- Each page is the stable home for one child workstream. Cross-references from `SKILL.md` use these paths.
|
|
15
|
-
- Keep one level deep: `SKILL.md` links here; orchestrator-owned detail links out to pr-converge / autoconverge pages rather than restating them.
|
package/.agents/skills-archived/codex-review/scripts/codex_review_scripts_constants/AGENTS.md
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
# codex-review/scripts/codex_review_scripts_constants
|
|
2
1
|
|
|
3
|
-
Python package of named constants imported by codex-review scripts. Importing from this package keeps magic values out of script bodies.
|
|
4
|
-
|
|
5
|
-
## Modules
|
|
6
|
-
|
|
7
|
-
| File | Constants for |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `__init__.py` | Package marker and package docstring. |
|
|
10
|
-
| `run_constants.py` | Binary name, flag strings, custom-instructions prompt, version-probe pattern, timeout default, decode/timeout exit sentinels, flag_token_pattern suffix (whole-token shape match), JSONL keys, and capture outcome class labels for `run_codex_review.py`. |
|
|
11
|
-
| `findings_constants.py` | Finding field keys, fenced-JSON and freeform patterns for `parse_codex_findings.py`. |
|
|
12
|
-
| `classifier_constants.py` | Failure class names and stream markers for `codex_down_classifier.py`. |
|
|
13
|
-
| `run_constants.py` | Binary name, flag strings, custom-instructions prompt, version-probe pattern, timeout default, decode/timeout exit sentinels, flag_token_pattern suffix (whole-token shape match), JSONL keys, JSONL capture filename and newline mode, and capture outcome class labels for `run_codex_review.py`. |
|
|
14
|
-
| `codex_usage_probe_constants.py` | The weekly-usage probe CLI: gate threshold, report JSON keys, app-server JSON-RPC surface, rate-limit field keys, weekly-window sizing, text-status parse patterns, source labels, and exit codes. |
|
|
15
|
-
|
|
16
|
-
## Convention
|
|
17
|
-
|
|
18
|
-
Scripts import from this package at module scope. No constant is defined inline in a script body — the hook enforces this at write time.
|
|
@@ -9,9 +9,15 @@ from pathlib import Path
|
|
|
9
9
|
|
|
10
10
|
SKILL_DIRECTORY = Path(__file__).resolve().parent
|
|
11
11
|
SKILL_PATH = SKILL_DIRECTORY / "SKILL.md"
|
|
12
|
-
PACKAGE_MAP_PATH = SKILL_DIRECTORY / "AGENTS.md"
|
|
13
|
-
REFERENCE_DIRECTORY = SKILL_DIRECTORY / "reference"
|
|
14
12
|
PACKAGE_ROOT = SKILL_DIRECTORY.parents[2]
|
|
13
|
+
REPOSITORY_ROOT = PACKAGE_ROOT.parents[1]
|
|
14
|
+
AGENTS_MD_ARCHIVE_ROOT = REPOSITORY_ROOT / "docs" / "records" / "agents-md"
|
|
15
|
+
PACKAGE_MAP_PATH = (
|
|
16
|
+
AGENTS_MD_ARCHIVE_ROOT
|
|
17
|
+
/ SKILL_DIRECTORY.relative_to(REPOSITORY_ROOT)
|
|
18
|
+
/ "AGENTS.md.archive"
|
|
19
|
+
)
|
|
20
|
+
REFERENCE_DIRECTORY = SKILL_DIRECTORY / "reference"
|
|
15
21
|
PYPROJECT_PATH = PACKAGE_ROOT / "pyproject.toml"
|
|
16
22
|
EVER_SHIPPED_SKILLS_PATH = PACKAGE_ROOT / "bin" / "ever-shipped-skills.mjs"
|
|
17
23
|
CONSTANTS_PACKAGE_NAME = "codex_review_scripts_constants"
|
|
@@ -131,7 +137,11 @@ def test_scripts_surface_names_capture_wrapper_and_constants() -> None:
|
|
|
131
137
|
skill_text = _read_skill_text()
|
|
132
138
|
package_map_text = PACKAGE_MAP_PATH.read_text(encoding="utf-8")
|
|
133
139
|
constants_map_text = (
|
|
134
|
-
|
|
140
|
+
AGENTS_MD_ARCHIVE_ROOT
|
|
141
|
+
/ SKILL_DIRECTORY.relative_to(REPOSITORY_ROOT)
|
|
142
|
+
/ "scripts"
|
|
143
|
+
/ "codex_review_scripts_constants"
|
|
144
|
+
/ "AGENTS.md.archive"
|
|
135
145
|
).read_text(encoding="utf-8")
|
|
136
146
|
wrapper_path = SKILL_DIRECTORY / "scripts" / "run_codex_review.py"
|
|
137
147
|
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
# copilot-review
|
|
2
1
|
|
|
3
|
-
Spawns a background subagent that polls the GitHub Copilot reviewer on the current PR, fixes unaddressed findings, and re-requests review each tick until the PR is clean. Triggered by `/copilot-review`, `watch copilot`, `babysit copilot review`, or `keep re-requesting copilot`.
|
|
4
|
-
|
|
5
|
-
## Purpose
|
|
6
|
-
|
|
7
|
-
The main session gathers PR context (number, HEAD SHA, owner/repo, branch), spawns a self-terminating background subagent with a fully filled-in prompt, and returns control at once. The subagent loops on a 6-minute `ScheduleWakeup` cadence: fetch Copilot's latest review, TDD-fix any inline findings, push a commit, reply inline, resolve each addressed thread, re-request review. It stops on convergence, a persistent blocker, `TaskStop`, three consecutive ticks with no Copilot review at the current HEAD, or after 20 ticks.
|
|
8
|
-
|
|
9
|
-
## Key files
|
|
10
|
-
|
|
11
|
-
| File | Purpose |
|
|
12
|
-
|---|---|
|
|
13
|
-
| `SKILL.md` | Four-step orchestration (opt-out check, gather PR context, spawn subagent, report to user), fix protocol, stop conditions, and ground rules (one commit per tick, honor hooks, preserve draft state, use `copilot-pull-request-reviewer[bot]` with the `[bot]` suffix). |
|
|
14
|
-
| `templates/subagent-prompt.md` | The background watcher prompt Step 3 passes to the subagent word for word, with placeholders for PR number, owner, repo, branch, and HEAD SHA. |
|
|
15
|
-
|
|
16
|
-
## Environment opt-out
|
|
17
|
-
|
|
18
|
-
Set `CLAUDE_REVIEWS_DISABLED=copilot` to disable. The skill checks this before spawning anything.
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
# pr-converge skill
|
|
2
1
|
|
|
3
|
-
Drives a draft PR to convergence by driving the internal passes to clean first — a code-review pass and a bugteam audit — then running Cursor Bugbot and Copilot as terminal confirmation gates, applying TDD fixes, posting inline replies, and re-triggering the external reviewers each tick until all are clean on the same HEAD and the PR is mergeable.
|
|
4
|
-
|
|
5
|
-
**Trigger:** `/pr-converge`, "drive PR to convergence", "loop bugbot and bugteam", "babysit bugbot and bugteam", "until both are clean", "converge this PR".
|
|
6
|
-
|
|
7
|
-
## Key files
|
|
8
|
-
|
|
9
|
-
| File | Purpose |
|
|
10
|
-
|---|---|
|
|
11
|
-
| `SKILL.md` | Full tick workflow, pre-flight checks, state schema, budget-aware tick boundaries, stop conditions |
|
|
12
|
-
| `pr_converge_skill_constants/constants.py` | Runtime and API constants (bot logins, review states, GH API path templates, regex patterns) |
|
|
13
|
-
|
|
14
|
-
## Subdirectories
|
|
15
|
-
|
|
16
|
-
| Directory | Role |
|
|
17
|
-
|---|---|
|
|
18
|
-
| `pr_converge_skill_constants/` | Importable constants module shared by skill scripts |
|
|
19
|
-
| `reference/` | Per-tick steps, convergence gates, fix protocol, obstacle runbooks, state schema, stop conditions, examples |
|
|
20
|
-
| `scripts/` | Python helpers (bugbot check, convergence check, Copilot review fetcher, fix-reply poster, reflow tool) and their tests |
|
|
21
|
-
| `workflows/` | ScheduleWakeup loop pacing specification (`pacer=schedule_wakeup`) |
|
|
22
|
-
|
|
23
|
-
## Conventions
|
|
24
|
-
|
|
25
|
-
- Pre-flight selects a pacer via `select_converge_pacer.py`: `schedule_wakeup` or `portable`. Missing `ScheduleWakeup` selects portable — it does not abort the skill.
|
|
26
|
-
- On `pacer=schedule_wakeup`, each invocation runs one tick and the next advances via `ScheduleWakeup`. On `pacer=portable`, the session runs ticks continuously (continue or in-session poll) until convergence, a stop condition, or a budget handoff.
|
|
27
|
-
- Loop state persists to `$CLAUDE_JOB_DIR/pr-converge-state.json` between ticks.
|
|
28
|
-
- Isolation uses `EnterWorktree` when present; otherwise the portable driver git worktree path, then `preflight_worktree.py`.
|
|
29
|
-
- All findings and PR reports state verified facts only — no hedging language.
|
|
30
|
-
- The GitHub MCP (`pull_request_read`, `pull_request_review_write`) is the primary path for PR inspection; `gh api` is the fallback.
|
|
31
|
-
- Three step-scoped agents (`fix_executor`, `thread_sweep`, `copilot_watch`) persist across ticks via the `persistent_agents` map in loop state; each tick resumes them with `SendMessage` and spawns a fresh named agent when a stored id is dead.
|
|
32
|
-
- The tick delegates shared mechanics to three sibling sub-skills: `reviewer-gates` (opt-out, Copilot quota, Bugbot trigger), `pr-fix-protocol` (fix sequence + unresolved-thread sweep), and `pr-loop-lifecycle` (run open/close). Target resolution happens inline in `reference/per-tick.md` Steps 1 and 1.5. Audit posting follows the `_shared/pr-loop/post-audit-thread-contract.md` contract, run through `_shared/pr-loop/scripts/post_audit_thread.py`.
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
# pr_converge_skill_constants
|
|
2
1
|
|
|
3
|
-
Importable Python constants module for the `pr-converge` skill. Script-specific constants (CLI args, markdown patterns, reflow settings) live in `scripts/pr_converge_scripts_constants/` and import from here.
|
|
4
|
-
|
|
5
|
-
## Key files
|
|
6
|
-
|
|
7
|
-
| File | Purpose |
|
|
8
|
-
|---|---|
|
|
9
|
-
| `__init__.py` | Package marker |
|
|
10
|
-
| `constants.py` | All runtime and API constants: bot logins, review states, GH API path templates, bugbot/bugteam detection patterns, exit codes |
|
|
11
|
-
|
|
12
|
-
## Exported constants (selected)
|
|
13
|
-
|
|
14
|
-
| Constant | Purpose |
|
|
15
|
-
|---|---|
|
|
16
|
-
| `CURSOR_BOT_LOGIN` | Login string for the Cursor bugbot reviewer |
|
|
17
|
-
| `COPILOT_REVIEWER_LOGIN` | Login string for the Copilot reviewer bot |
|
|
18
|
-
| `ALL_COPILOT_CLEAN_REVIEW_STATES` | Tuple of review states that count as clean for Copilot |
|
|
19
|
-
| `BUGBOT_DIRTY_BODY_REGEX` | Regex that matches a bugbot review body reporting findings |
|
|
20
|
-
| `GH_REVIEWS_PATH_TEMPLATE` | `gh api` path template for PR reviews |
|
|
21
|
-
| `GH_INLINE_COMMENTS_PATH_TEMPLATE` | `gh api` path template for PR inline comments |
|
|
22
|
-
|
|
23
|
-
## Conventions
|
|
24
|
-
|
|
25
|
-
- All path templates use `str.format(**kwargs)` with keys `owner`, `repo`, `number`.
|
|
26
|
-
- `packages/claude-dev-env/.agents/skills-archived/pr-converge/scripts/pr_converge_scripts_constants/pr_converge_constants.py` re-exports everything here via `from pr_converge_skill_constants.constants import ...` so scripts can import from either location.
|