claude-dev-env 1.68.0 → 1.69.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/_shared/CLAUDE.md +13 -0
- package/_shared/pr-loop/CLAUDE.md +24 -0
- package/_shared/pr-loop/scripts/CLAUDE.md +30 -0
- package/_shared/pr-loop/scripts/pr_loop_shared_constants/CLAUDE.md +21 -0
- package/_shared/pr-loop/scripts/tests/CLAUDE.md +32 -0
- package/agents/CLAUDE.md +29 -0
- package/audit-rubrics/CLAUDE.md +41 -0
- package/audit-rubrics/category_rubrics/CLAUDE.md +36 -0
- package/audit-rubrics/prompts/CLAUDE.md +36 -0
- package/bin/CLAUDE.md +28 -0
- package/commands/CLAUDE.md +25 -0
- package/docs/CLAUDE.md +28 -0
- package/docs/references/CLAUDE.md +13 -0
- package/hooks/CLAUDE.md +31 -0
- package/hooks/advisory/CLAUDE.md +16 -0
- package/hooks/blocking/CLAUDE.md +107 -0
- package/hooks/blocking/code_rules_constants_config.py +7 -4
- package/hooks/blocking/code_rules_docstrings.py +97 -0
- package/hooks/blocking/code_rules_enforcer.py +4 -0
- package/hooks/blocking/config/CLAUDE.md +22 -0
- package/hooks/blocking/test_code_rules_enforcer_class_docstring_methods.py +262 -0
- package/hooks/blocking/test_code_rules_enforcer_dead_module_constant.py +36 -0
- package/hooks/blocking/test_code_rules_enforcer_file_global_constants.py +9 -0
- package/hooks/diagnostic/CLAUDE.md +43 -0
- package/hooks/diagnostic/migrations/CLAUDE.md +16 -0
- package/hooks/diagnostic/queries/CLAUDE.md +19 -0
- package/hooks/git-hooks/CLAUDE.md +28 -0
- package/hooks/git-hooks/git_hooks_constants/CLAUDE.md +21 -0
- package/hooks/hooks_constants/CLAUDE.md +60 -0
- package/hooks/hooks_constants/blocking_check_limits.py +2 -0
- package/hooks/lifecycle/CLAUDE.md +18 -0
- package/hooks/observability/CLAUDE.md +16 -0
- package/hooks/session/CLAUDE.md +21 -0
- package/hooks/validation/CLAUDE.md +19 -0
- package/hooks/validators/CLAUDE.md +49 -0
- package/hooks/workflow/CLAUDE.md +22 -0
- package/package.json +1 -1
- package/rules/CLAUDE.md +46 -0
- package/rules/docstring-prose-matches-implementation.md +1 -1
- package/scripts/CLAUDE.md +34 -0
- package/scripts/dev_env_scripts_constants/CLAUDE.md +14 -0
- package/scripts/sync_to_cursor/CLAUDE.md +23 -0
- package/scripts/tests/CLAUDE.md +18 -0
- package/skills/CLAUDE.md +66 -0
- package/skills/_shared/CLAUDE.md +11 -0
- package/skills/_shared/pr-loop/CLAUDE.md +27 -0
- package/skills/_shared/pr-loop/prompts/CLAUDE.md +9 -0
- package/skills/_shared/pr-loop/scripts/CLAUDE.md +23 -0
- package/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/CLAUDE.md +19 -0
- package/skills/anthropic-plan/CLAUDE.md +34 -0
- package/skills/anthropic-plan/SKILL.md +1 -1
- package/skills/anthropic-plan/scripts/CLAUDE.md +11 -0
- package/skills/anthropic-plan/scripts/anthropic_plan_scripts_constants/CLAUDE.md +16 -0
- package/skills/anthropic-plan/templates/CLAUDE.md +13 -0
- package/skills/anthropic-plan/workflow/CLAUDE.md +14 -0
- package/skills/auditing-claude-config/CLAUDE.md +20 -0
- package/skills/autoconverge/CLAUDE.md +30 -0
- package/skills/autoconverge/reference/CLAUDE.md +12 -0
- package/skills/autoconverge/workflow/CLAUDE.md +23 -0
- package/skills/autoconverge/workflow/autoconverge_report_constants/CLAUDE.md +16 -0
- package/skills/bdd-protocol/CLAUDE.md +26 -0
- package/skills/bdd-protocol/references/CLAUDE.md +10 -0
- package/skills/bg-agent/CLAUDE.md +17 -0
- package/skills/bugteam/CLAUDE.md +30 -0
- package/skills/bugteam/reference/CLAUDE.md +22 -0
- package/skills/bugteam/reference/obstacles/CLAUDE.md +24 -0
- package/skills/bugteam/scripts/CLAUDE.md +36 -0
- package/skills/bugteam/scripts/bugteam_scripts_constants/CLAUDE.md +20 -0
- package/skills/caveman/CLAUDE.md +15 -0
- package/skills/code/CLAUDE.md +17 -0
- package/skills/copilot-review/CLAUDE.md +17 -0
- package/skills/deep-research/CLAUDE.md +17 -0
- package/skills/doc-gist/CLAUDE.md +25 -0
- package/skills/doc-gist/references/CLAUDE.md +9 -0
- package/skills/doc-gist/references/examples/CLAUDE.md +25 -0
- package/skills/doc-gist/scripts/CLAUDE.md +27 -0
- package/skills/doc-gist/scripts/doc_gist_scripts_constants/CLAUDE.md +10 -0
- package/skills/everything-search/CLAUDE.md +17 -0
- package/skills/findbugs/CLAUDE.md +20 -0
- package/skills/fixbugs/CLAUDE.md +19 -0
- package/skills/fresh-branch/CLAUDE.md +15 -0
- package/skills/gh-paginate/CLAUDE.md +18 -0
- package/skills/gotcha/CLAUDE.md +33 -0
- package/skills/implement/CLAUDE.md +27 -0
- package/skills/implement/scripts/CLAUDE.md +22 -0
- package/skills/implement/scripts/implement_scripts_constants/CLAUDE.md +22 -0
- package/skills/logifix/CLAUDE.md +36 -0
- package/skills/logifix/scripts/CLAUDE.md +16 -0
- package/skills/monitor-open-prs/CLAUDE.md +34 -0
- package/skills/monitor-open-prs/scripts/CLAUDE.md +17 -0
- package/skills/pr-consistency-audit/CLAUDE.md +34 -0
- package/skills/pr-consistency-audit/reference/CLAUDE.md +16 -0
- package/skills/pr-converge/CLAUDE.md +29 -0
- package/skills/pr-converge/pr_converge_skill_constants/CLAUDE.md +26 -0
- package/skills/pr-converge/reference/CLAUDE.md +27 -0
- package/skills/pr-converge/reference/obstacles/CLAUDE.md +23 -0
- package/skills/pr-converge/scripts/CLAUDE.md +36 -0
- package/skills/pr-converge/scripts/pr_converge_scripts_constants/CLAUDE.md +17 -0
- package/skills/pr-converge/workflows/CLAUDE.md +16 -0
- package/skills/pr-review-responder/CLAUDE.md +35 -0
- package/skills/pre-compact/CLAUDE.md +24 -0
- package/skills/qbug/CLAUDE.md +40 -0
- package/skills/rebase/CLAUDE.md +32 -0
- package/skills/recall/CLAUDE.md +30 -0
- package/skills/refine/CLAUDE.md +44 -0
- package/skills/refine/templates/CLAUDE.md +17 -0
- package/skills/remember/CLAUDE.md +31 -0
- package/skills/research-mode/CLAUDE.md +35 -0
- package/skills/session-log/CLAUDE.md +31 -0
- package/skills/session-tidy/CLAUDE.md +36 -0
- package/skills/skill-builder/CLAUDE.md +45 -0
- package/skills/skill-builder/references/CLAUDE.md +19 -0
- package/skills/skill-builder/templates/CLAUDE.md +14 -0
- package/skills/skill-builder/workflows/CLAUDE.md +17 -0
- package/skills/structure-prompt/CLAUDE.md +42 -0
- package/skills/structure-prompt/reference/CLAUDE.md +28 -0
- package/skills/task-build/CLAUDE.md +28 -0
- package/skills/update/CLAUDE.md +38 -0
- package/skills/verified-build/CLAUDE.md +33 -0
- package/system-prompts/CLAUDE.md +17 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# anthropic_plan_scripts_constants
|
|
2
|
+
|
|
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
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# templates
|
|
2
|
+
|
|
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. |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# workflow
|
|
2
|
+
|
|
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`.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# auditing-claude-config
|
|
2
|
+
|
|
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
|
+
|
|
13
|
+
## What the skill produces
|
|
14
|
+
|
|
15
|
+
1. **Baseline** — total always-loaded lines, broken down by file.
|
|
16
|
+
2. **Migration table** — one row per rule: current lines, verdict, specific action, lines removed from preload.
|
|
17
|
+
3. **Recommended next step** — the single highest-leverage change.
|
|
18
|
+
4. **Open questions** — anything not verified by the probe hook.
|
|
19
|
+
|
|
20
|
+
No scripts or workflow files. The skill body holds all logic.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# autoconverge
|
|
2
|
+
|
|
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 a single autonomous workflow run. Each round runs Cursor Bugbot, a code-review pass, and a bug-audit in parallel on the same HEAD, deduplicates findings, applies every fix in one commit, re-verifies, clears a Copilot wait-gate, and marks the PR ready on convergence. State lives in the workflow journal; no `ScheduleWakeup` ticks.
|
|
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: pre-flight steps, worktree setup, `Workflow` call, budget-aware round boundaries, teardown, and the per-round convergence loop summary. |
|
|
19
|
+
| `workflow/converge.mjs` | Main convergence workflow. Runs rounds, gates on Copilot, 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 three parallel lenses, deduplication, fix commit, and the ready definition. |
|
|
24
|
+
| `reference/stop-conditions.md` | Every way the run ends short of ready. |
|
|
25
|
+
| `reference/gotchas.md` | Hard-won failure lessons. |
|
|
26
|
+
| `reference/closing-report.md` | Specification for the closing HTML report format. |
|
|
27
|
+
|
|
28
|
+
## Entry point
|
|
29
|
+
|
|
30
|
+
Requires the `Workflow` tool. The `SKILL.md` body specifies the exact pre-flight sequence and `Workflow` call.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# reference
|
|
2
|
+
|
|
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 three parallel lenses (Bugbot, code-review, bug-audit), deduplication, the fix commit step, and the definition of a clean convergence. |
|
|
10
|
+
| `stop-conditions.md` | Every condition that ends the run short of ready: budget cap, iteration cap, blocker exit, Copilot bypass. |
|
|
11
|
+
| `gotchas.md` | Hard-won lessons from failed runs: PR title validation, conflicting PRs, worktree branch lock, resumed sessions rerooting, and minter issues. |
|
|
12
|
+
| `closing-report.md` | Specification for the closing HTML convergence report the teardown step builds and publishes. |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# workflow
|
|
2
|
+
|
|
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 Bugbot, code-review, and bug-audit lenses in parallel, deduplicates findings, applies fixes, pushes, gates on Copilot, 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.fix-progress.test.mjs` | Tests fix-progress tracking across rounds. |
|
|
18
|
+
| `converge.fix-recovery.test.mjs` | Tests recovery when a fix commit fails. |
|
|
19
|
+
| `converge.run-input.test.mjs` | Tests workflow input validation. |
|
|
20
|
+
| `test_aggregate_runs.py` | Tests for `aggregate_runs.py`. |
|
|
21
|
+
| `test_convergence_summary.py` | Tests for `convergence_summary.py`. |
|
|
22
|
+
| `test_render_report.py` | Tests for `render_report.py`. |
|
|
23
|
+
| `fixtures/` | Test fixture data for the workflow tests. |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# autoconverge_report_constants
|
|
2
|
+
|
|
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
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# bdd-protocol
|
|
2
|
+
|
|
3
|
+
**Trigger:** `/bdd-protocol`, "Example Mapping", "BDD anti-patterns", "§7.6", writing executable specifications, BDD scenario quality, "the one where" discovery examples.
|
|
4
|
+
|
|
5
|
+
On-demand BDD depth layered on top of the always-on `<behavior_protocol>` in the system prompt. The skill adds the Example Mapping algorithm (Smart & Molak §6.4), the scenario quality catalog (§7.6), outside-in test layout, and solo BDD patterns.
|
|
6
|
+
|
|
7
|
+
## Subdirectories
|
|
8
|
+
|
|
9
|
+
| Directory | Role |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `references/` | Loaded reference docs: Example Mapping algorithm and the anti-patterns catalog. |
|
|
12
|
+
|
|
13
|
+
## Key files
|
|
14
|
+
|
|
15
|
+
| File | Role |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `SKILL.md` | Entry point. `@`-imports both reference files so they load with the skill. Lists authorities and scope boundaries. |
|
|
18
|
+
| `references/example-mapping.md` | Example Mapping algorithm: core moves ("The one where …"), the chat algorithm for solo use, time-boxing guidance. Source: Smart & Molak §6.4. |
|
|
19
|
+
| `references/anti-patterns.md` | §7.6 scenario quality catalog: anti-patterns to avoid and the criteria for a good scenario. |
|
|
20
|
+
|
|
21
|
+
## What the skill adds
|
|
22
|
+
|
|
23
|
+
The base `<behavior_protocol>` (Deliberate Discovery → Illustrate → Formulate → Automate) is always active. This skill adds depth only when:
|
|
24
|
+
- The task needs Example Mapping steps or parking-lot question management.
|
|
25
|
+
- Scenarios need the §7.6 quality bar applied.
|
|
26
|
+
- Tests need outside-in layout using describe / when / should.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# references
|
|
2
|
+
|
|
3
|
+
Reference documentation loaded by the `bdd-protocol` skill. Both files are `@`-imported in `SKILL.md` and load when the skill activates.
|
|
4
|
+
|
|
5
|
+
## Key files
|
|
6
|
+
|
|
7
|
+
| File | Role |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `example-mapping.md` | Example Mapping algorithm (Smart & Molak §6.4). Covers core moves, the "The one where …" phrasing, probes, parking-lot questions, the solo chat algorithm, and time-boxing guidance. |
|
|
10
|
+
| `anti-patterns.md` | §7.6 scenario quality catalog. Lists anti-patterns to avoid and the criteria for a well-formed BDD scenario. |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# bg-agent
|
|
2
|
+
|
|
3
|
+
Delegates a task to a background agent so the main session stays free. Triggered by `/bg-agent`, `bg-agent`, or `background agent for this`.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
This skill picks a suitable agent type for the task, spawns it via the `Agent` tool with `run_in_background: true`, and returns control at once. The spawned agent notifies on completion. Other skills (such as `gotcha`) invoke this skill to offload their own PR-creation steps.
|
|
8
|
+
|
|
9
|
+
## Key file
|
|
10
|
+
|
|
11
|
+
| File | Purpose |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `SKILL.md` | Full instructions: how to parse the task argument, how to pick an agent type, how to write a self-contained spawn prompt, and how to report spawn to the user. |
|
|
14
|
+
|
|
15
|
+
## How this skill is invoked
|
|
16
|
+
|
|
17
|
+
The user types `/bg-agent <task description>` or a calling skill invokes it by name. The skill always spawns with `run_in_background: true` — it never runs the task inline in the main session.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# bugteam
|
|
2
|
+
|
|
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–P 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, audit-posting protocol, progress checklist, and situation-to-reference table. Read this first. |
|
|
14
|
+
| `PROMPTS.md` | Spawn XML, A–P 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.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# bugteam/reference
|
|
2
|
+
|
|
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
|
+
| `audit-contract.md` | Finding shape (Shape A / B), Haiku secondary merge rules, post-fix self-audit. |
|
|
13
|
+
| `github-pr-reviews.md` | Per-loop review posting, `jq`+`gh api` payloads, inline anchors, fallbacks, REST endpoints. |
|
|
14
|
+
| `teardown-publish-permissions.md` | Teardown steps, PR description rewrite via `pr-description-writer`, permission revoke, final report. |
|
|
15
|
+
| `design-rationale.md` | Why clean-room subagents, when `/bugteam` applies, refusal reasons. |
|
|
16
|
+
| `copilot-gap-analysis.md` | Historical gap analysis (reference only). |
|
|
17
|
+
|
|
18
|
+
## Subdirectories
|
|
19
|
+
|
|
20
|
+
| Directory | Role |
|
|
21
|
+
|---|---|
|
|
22
|
+
| `obstacles/` | Per-step obstacle guides — one file per common failure point (e.g., write XML, resolve thread, push, test suite). |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# bugteam/reference/obstacles
|
|
2
|
+
|
|
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–P 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. |
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# bugteam/scripts
|
|
2
|
+
|
|
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` | Run pytest and optional `pre-commit` before the first loop. Skips pytest when `BUGTEAM_PREFLIGHT_SKIP=1` or no test files exist. |
|
|
10
|
+
| `bugteam_fix_hookspath.py` | Auto-remediate a stale `core.hooksPath` override, set the canonical global value, re-run preflight. |
|
|
11
|
+
| `bugteam_code_rules_gate.py` | Run `validate_content` from `code_rules_enforcer.py` on PR-scoped files. Exit 1 on mandatory rule failures. |
|
|
12
|
+
| `grant_project_claude_permissions.py` | Grant Edit/Write/Read on `cwd/.claude/**` in `~/.claude/settings.json`. |
|
|
13
|
+
| `revoke_project_claude_permissions.py` | Remove the matching grant entries from `~/.claude/settings.json`. |
|
|
14
|
+
| `_bugteam_permissions_common.py` | Shared helpers for grant/revoke (atomic JSON writes, settings sections). |
|
|
15
|
+
| `windows_safe_rmtree.py` | Remove a directory tree on Windows by stripping ReadOnly attributes and retrying on failure. |
|
|
16
|
+
| `probe_code_rules_enforcer_check.py` | Load `code_rules_enforcer.py` and invoke a named check function against a fixture file. |
|
|
17
|
+
| `reflow_skill_md.py` | Reflow the bugteam SKILL.md body to fit line-length limits. |
|
|
18
|
+
|
|
19
|
+
## Test files
|
|
20
|
+
|
|
21
|
+
| File | Tests |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `test_bugteam_preflight.py` | `bugteam_preflight.py` |
|
|
24
|
+
| `test_bugteam_code_rules_gate.py` | `bugteam_code_rules_gate.py` |
|
|
25
|
+
| `test_bugteam_fix_hookspath.py` | `bugteam_fix_hookspath.py` |
|
|
26
|
+
| `test_bugteam_permissions_common.py` | `_bugteam_permissions_common.py` |
|
|
27
|
+
| `test__bugteam_permissions_common.py` | Internal helpers in `_bugteam_permissions_common.py` |
|
|
28
|
+
| `test_agent_config_carveout.py` | `.claude/**` grant/revoke carveout logic |
|
|
29
|
+
| `test_probe_code_rules_enforcer_check.py` | `probe_code_rules_enforcer_check.py` |
|
|
30
|
+
| `test_windows_safe_rmtree.py` | `windows_safe_rmtree.py` |
|
|
31
|
+
|
|
32
|
+
## Subdirectories
|
|
33
|
+
|
|
34
|
+
| Directory | Role |
|
|
35
|
+
|---|---|
|
|
36
|
+
| `bugteam_scripts_constants/` | Named constants imported by the scripts above. |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# bugteam/scripts/bugteam_scripts_constants
|
|
2
|
+
|
|
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
|
+
| `bugteam_preflight_constants.py` | `bugteam_preflight.py` — env var name, hooks path suffix, exit codes, ignore dirs, argument tuples, config filenames. |
|
|
10
|
+
| `bugteam_code_rules_gate_constants.py` | `bugteam_code_rules_gate.py` — gate-related path and exit-code constants. |
|
|
11
|
+
| `bugteam_fix_hookspath_constants.py` | `bugteam_fix_hookspath.py` — canonical hooks path, remediation message strings. |
|
|
12
|
+
| `claude_permissions_common_constants.py` | `_bugteam_permissions_common.py` — settings JSON keys, glob patterns for the grant/revoke scripts. |
|
|
13
|
+
| `probe_code_rules_enforcer_check_constants.py` | `probe_code_rules_enforcer_check.py` — enforcer module path and function name constants. |
|
|
14
|
+
| `reflow_skill_md_constants.py` | `reflow_skill_md.py` — line-length and formatting constants. |
|
|
15
|
+
| `windows_safe_rmtree_constants.py` | `windows_safe_rmtree.py` — retry count and wait constants. |
|
|
16
|
+
| `__init__.py` | Empty package marker. |
|
|
17
|
+
|
|
18
|
+
## Convention
|
|
19
|
+
|
|
20
|
+
Scripts import from this package at module scope. No constant is defined inline in a script body — the hook enforces this at write time.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# caveman
|
|
2
|
+
|
|
3
|
+
Trims noise from conversational text in the current turn. Triggered by `/caveman`, `caveman this`, `trim this`, `make it terse`, or `caveman voice`.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
The inline counterpart to the `caveman` agent. When the user wants preamble, hedging, filler transitions, restatements, empty future-proofing, dead examples, or pleasantries stripped from the last assistant message or from text passed as an argument, this skill performs the trim directly in the main session — no `Agent` spawn. The entire reply is the trimmed text; no report, no commentary about what was cut.
|
|
8
|
+
|
|
9
|
+
Use the `caveman` agent (`subagent_type: caveman`) when the input is a file path, a multi-section artifact that needs a structured report, or a delegated workflow.
|
|
10
|
+
|
|
11
|
+
## Key file
|
|
12
|
+
|
|
13
|
+
| File | Purpose |
|
|
14
|
+
|---|---|
|
|
15
|
+
| `SKILL.md` | Instructions: resolve the source (argument or prior message), noise categories to cut, what to preserve verbatim, and the escape hatch for load-bearing spans. |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# code
|
|
2
|
+
|
|
3
|
+
Activates strict code standards for the entire implementation session. Triggered by `/code`, `code standards`, `strict code`, `enforce standards`, or `implement with standards`.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Prepends a set of binary completion criteria to every implementation task: no `Any`, no `cast()`, no `# type: ignore`, treated-as-immutable TypedDicts with explicit `_encode_*`/`_decode_*` functions, 100% statement and branch coverage, zero mocks, zero stubs, zero fallbacks, and proper module structure. Every criterion is pass-or-fail; partial credit does not exist.
|
|
8
|
+
|
|
9
|
+
## Key file
|
|
10
|
+
|
|
11
|
+
| File | Purpose |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `SKILL.md` | Sixteen numbered criteria (typing strictness, error handling, test coverage, DI hooks, DRY, TypedDict protocol, Redis boundary, TOML boundary, JSON recursive types, ASGI boundaries, dynamic import pattern, documentation, build infrastructure, lint gates, Protocol signature match, auth/credentials), plus gotchas for Windows PowerShell invocation and per-module `_test_hooks.py` placement. |
|
|
14
|
+
|
|
15
|
+
## Invocation note
|
|
16
|
+
|
|
17
|
+
Invoke at the start of an implementation task. The standards persist for the full session. The skill refuses research or planning tasks and redirects them to `/anthropic-plan`.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# copilot-review
|
|
2
|
+
|
|
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 5-minute `ScheduleWakeup` cadence: fetch Copilot's latest review, TDD-fix any inline findings, push a commit, reply inline, re-request review. It stops on convergence, a persistent blocker, `TaskStop`, or after 20 ticks.
|
|
8
|
+
|
|
9
|
+
## Key file
|
|
10
|
+
|
|
11
|
+
| File | Purpose |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `SKILL.md` | Four-step orchestration (opt-out check, gather PR context, spawn subagent, report to user), the verbatim subagent prompt template with all placeholders, 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
|
+
|
|
15
|
+
## Environment opt-out
|
|
16
|
+
|
|
17
|
+
Set `CLAUDE_REVIEWS_DISABLED=copilot` to disable. The skill checks this before spawning anything.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# deep-research
|
|
2
|
+
|
|
3
|
+
Runs an iterative multi-source research pipeline that produces a comprehensive Obsidian report with citations. Triggered by `/deep-research [topic]`.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
The skill operates in two phases. Phase 1 (main thread) turns the raw topic into a precise research brief through a short AskUserQuestion session covering audience, scope, recency, and depth. Phase 2 delegates to the `deep-research` agent with the confirmed brief and an iteration budget (8 / 15 / 25 based on depth preference). The agent handles iteration, state tracking, and Obsidian output.
|
|
8
|
+
|
|
9
|
+
## Key file
|
|
10
|
+
|
|
11
|
+
| File | Purpose |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `SKILL.md` | Phase 1 steps (classify, ask, construct `<research_brief>` XML, set iteration budget) and Phase 2 spawn instructions, including `mode: bypassPermissions` for unrestricted web access. |
|
|
14
|
+
|
|
15
|
+
## Post-run cleanup
|
|
16
|
+
|
|
17
|
+
After the agent returns, the skill summarizes the Obsidian path, source counts, and any gaps, then deletes the `.deep-research-state.md` temp file.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# doc-gist
|
|
2
|
+
|
|
3
|
+
Designs fresh HTML artifacts and publishes them as secret GitHub gists with a shareable htmlpreview URL. Triggered by `/doc-gist`, `publish this`, `share as a gist`, `open this as a webpage`, `make me a writeup`, or any request ending in a shareable HTML preview URL.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
The skill ships transport, not templates. For each request the model designs a fresh HTML artifact suited to the work, marks it with `<!-- @publish-as-gist -->`, and writes it to disk. A PostToolUse hook (`hooks/workflow/doc_gist_auto_publish.py`) spots the marker, runs `packages/claude-dev-env/skills/doc-gist/scripts/gist_upload.py`, and prints the gist and htmlpreview URLs into the tool output for the user to click.
|
|
8
|
+
|
|
9
|
+
## Key files
|
|
10
|
+
|
|
11
|
+
| File | Purpose |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `SKILL.md` | Full instructions: the auto-publish hook flow, the transport script CLI, a gallery-to-artifact-type mapping table, and gotchas (`gh` auth, marker syntax, self-contained HTML only, secret-not-private note). |
|
|
14
|
+
|
|
15
|
+
## Subdirectories
|
|
16
|
+
|
|
17
|
+
| Directory | Role |
|
|
18
|
+
|---|---|
|
|
19
|
+
| `references/` | Reference material — the example HTML gallery and related docs. |
|
|
20
|
+
| `scripts/` | The `gist_upload.py` transport script and its constants package. |
|
|
21
|
+
|
|
22
|
+
## Auto-publish vs manual
|
|
23
|
+
|
|
24
|
+
- **Auto:** write HTML with `<!-- @publish-as-gist -->` anywhere in the file; the hook handles the rest.
|
|
25
|
+
- **Manual:** run `python scripts/gist_upload.py --input <path>` for an existing file or when the marker route does not apply.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# doc-gist/references
|
|
2
|
+
|
|
3
|
+
Reference material for the `doc-gist` skill.
|
|
4
|
+
|
|
5
|
+
## Subdirectories
|
|
6
|
+
|
|
7
|
+
| Directory | Role |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `examples/` | A gallery of 21 self-contained HTML artifact examples that show distinct shapes — annotated PR diff, design system swatches, slide deck, incident timeline, prompt tuner, decision sign-off, and more. Study these when designing a fresh artifact; do not copy them verbatim. |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# doc-gist/references/examples
|
|
2
|
+
|
|
3
|
+
HTML artifact gallery for the `doc-gist` skill. Has 21 self-contained `.html` files that cover distinct artifact shapes the skill can produce.
|
|
4
|
+
|
|
5
|
+
Files `01`–`20` are Thariq Shihipar's html-effectiveness prototypes (used with permission). File `21-decision-signoff.html` is an original addition in the same style.
|
|
6
|
+
|
|
7
|
+
## Use
|
|
8
|
+
|
|
9
|
+
Study the matching file when designing a fresh artifact for a request. Crib palette, typography, spatial layout, and component patterns — then adapt to the specific request. The gallery teaches what shapes work; each new artifact is its own design.
|
|
10
|
+
|
|
11
|
+
See `SKILL.md` for the full gallery-to-artifact-type mapping table (PR writeup, code review, implementation plan, slide deck, etc.).
|
|
12
|
+
|
|
13
|
+
## Files (sample)
|
|
14
|
+
|
|
15
|
+
| File | Shape |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `01-exploration-code-approaches.html` | Side-by-side approach exploration |
|
|
18
|
+
| `03-code-review-pr.html` | Annotated diff / code review |
|
|
19
|
+
| `09-slide-deck.html` | Keyboard-navigable slide deck |
|
|
20
|
+
| `12-incident-report.html` | Incident timeline / post-mortem |
|
|
21
|
+
| `16-implementation-plan.html` | Implementation plan with timeline and risks |
|
|
22
|
+
| `17-pr-writeup.html` | PR writeup with file-by-file tour |
|
|
23
|
+
| `21-decision-signoff.html` | Decision / sign-off doc with accept-or-change per call |
|
|
24
|
+
|
|
25
|
+
All 21 files are present; the table above is a representative sample.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# doc-gist/scripts
|
|
2
|
+
|
|
3
|
+
Transport script and supporting constants for the `doc-gist` skill.
|
|
4
|
+
|
|
5
|
+
## Files
|
|
6
|
+
|
|
7
|
+
| File | Purpose |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `gist_upload.py` | Core transport: reads HTML from a file path or stdin, runs `gh gist create`, prints `Gist:` and `Preview:` URLs to stderr, prints the preview URL to stdout, and opens it in the default browser (unless `--no-open`). |
|
|
10
|
+
| `test_gist_upload.py` | Tests for `gist_upload.py`. |
|
|
11
|
+
|
|
12
|
+
## Subdirectories
|
|
13
|
+
|
|
14
|
+
| Directory | Role |
|
|
15
|
+
|---|---|
|
|
16
|
+
| `doc_gist_scripts_constants/` | Named constants imported by `gist_upload.py` (URL prefixes, default filename, timeout). |
|
|
17
|
+
|
|
18
|
+
## CLI usage
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
python gist_upload.py --input <path-or-stdin>
|
|
22
|
+
[--filename gist-file.html]
|
|
23
|
+
[--description "short label"]
|
|
24
|
+
[--no-open]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Pass `--input -` to read from stdin. The auto-publish hook calls this script with the written file's path; the skill body documents when to call it manually.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# doc-gist/scripts/doc_gist_scripts_constants
|
|
2
|
+
|
|
3
|
+
Named constants for `gist_upload.py`. Importing from this package keeps all URL templates, default filenames, and timeout values out of the script body.
|
|
4
|
+
|
|
5
|
+
## Modules
|
|
6
|
+
|
|
7
|
+
| File | Constants |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `gist_upload_constants.py` | `GIST_HOST_PREFIX` — base URL for parsing gist output; `PREVIEW_URL_TEMPLATE` — htmlpreview.github.io URL shape; `GIST_DEFAULT_FILENAME` — filename when input is stdin; `MINIMUM_GIST_URL_PARTS` — fewest path segments in a valid gist URL; `UPLOAD_TIMEOUT_SECONDS` — subprocess timeout for `gh gist create`. |
|
|
10
|
+
| `__init__.py` | Empty package marker. |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# everything-search
|
|
2
|
+
|
|
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.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# findbugs
|
|
2
|
+
|
|
3
|
+
Audits the current branch's pull request for bugs by spawning the `code-quality-agent` against the full PR diff in a clean room. Triggered by `/findbugs`, `find bugs in this PR`, `audit the PR`, or `bug audit on the branch`.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Read-only. The skill resolves PR scope, writes the diff to a scoped temp file, and spawns two `code-quality-agent` instances (primary sonnet + secondary haiku) with a self-contained, context-free prompt covering all A–P audit categories. After both return it merges findings (de-dup, max-wins severity), posts one audit review to the PR via `post_audit_thread.py` (APPROVE on clean, REQUEST_CHANGES with inline anchored comments on dirty), and reports totals and cleared categories to the user.
|
|
8
|
+
|
|
9
|
+
## Key file
|
|
10
|
+
|
|
11
|
+
| File | Purpose |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `SKILL.md` | Five-step process: resolve scope, capture diff to a scoped temp path, spawn agents (clean-room prompt XML), post audit review via `post_audit_thread.py`, surface findings and offer `/fixbugs`. Includes refusals, output format, and the anchored-vs-unanchored finding split. |
|
|
14
|
+
|
|
15
|
+
## Constraints
|
|
16
|
+
|
|
17
|
+
- Never edits files, never commits, never pushes.
|
|
18
|
+
- One audit review per invocation is posted back to the PR — required so the unresolved-thread gate sees the audit pass.
|
|
19
|
+
- Disabled by `CLAUDE_REVIEWS_DISABLED=bugteam` (shared token across the audit-skill family).
|
|
20
|
+
- Always ask before running `/fixbugs`; never auto-spawn the fixer.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# fixbugs
|
|
2
|
+
|
|
3
|
+
Bridges `/findbugs` audit results to `/agent-prompt` for automated fixing. Triggered by `/fixbugs`, `fix all the bugs`, `apply the audit fixes`, or `implement the findbugs results`.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
A thin bridge: recover the prior `/findbugs` findings from the current conversation, apply an optional severity filter (`P0`, `P0+P1`, `P1`, or all), re-resolve PR scope, then hand the filtered finding list to `/agent-prompt` as a structured goal string. `/agent-prompt` authors the XML prompt, shows an Outcome preview, asks for confirmation, and spawns a background sonnet `clean-coder` agent to apply all fixes in one commit.
|
|
8
|
+
|
|
9
|
+
This skill never audits, never edits files, and never spawns agents directly. The `/agent-prompt` confirmation gate is always preserved.
|
|
10
|
+
|
|
11
|
+
## Key file
|
|
12
|
+
|
|
13
|
+
| File | Purpose |
|
|
14
|
+
|---|---|
|
|
15
|
+
| `SKILL.md` | Four-step process: recover findings, apply severity filter, re-resolve PR scope, hand off to `/agent-prompt` with a goal string in the exact expected shape. Includes refusal cases (no findings, zero bugs, empty filter, missing `agent-prompt` skill) and the implementer constraints (one commit, no `--force`, no rebase, explicit `git add` by path). |
|
|
16
|
+
|
|
17
|
+
## Invocation order
|
|
18
|
+
|
|
19
|
+
Run `/findbugs` first, then `/fixbugs`. Running `/fixbugs` with no prior `/findbugs` in the session returns `No findings in this session. Run /findbugs first.`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# fresh-branch
|
|
2
|
+
|
|
3
|
+
Creates a new branch from `origin/main` (always fresh-fetched). Triggered by `fresh branch`, `new branch from main`, `/fresh-branch`, or `start fresh`.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
A shared primitive used by other skills and directly by the user. Fetches `origin/main`, suggests 2–4 branch names via `AskUserQuestion` when a topic is available (polling recent branch naming patterns from `git branch -r`), then creates and checks out the branch with `git checkout -b <name> origin/main`.
|
|
8
|
+
|
|
9
|
+
Does not push the branch. Does not create a PR. Does not switch an existing branch. Callers that need the new branch name (for example, to open a PR) receive it as a return value.
|
|
10
|
+
|
|
11
|
+
## Key file
|
|
12
|
+
|
|
13
|
+
| File | Purpose |
|
|
14
|
+
|---|---|
|
|
15
|
+
| `SKILL.md` | Four-phase instructions: fetch `origin/main`, pick branch name (suggest or prompt), create branch, report. Includes gotchas discovered during use. |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# gh-paginate skill
|
|
2
|
+
|
|
3
|
+
Provides the safe-pagination rule and patterns for `gh api` calls against paginated GitHub list endpoints (PR reviews, PR comments, issue comments, pulls, issues). The rule prevents two silent-truncation defects: default page truncation and per-page `--jq` evaluation.
|
|
4
|
+
|
|
5
|
+
**Trigger:** Loaded by the `gh-paginate` skill name or when any skill or rule references the pagination rule.
|
|
6
|
+
|
|
7
|
+
## Key files
|
|
8
|
+
|
|
9
|
+
| File | Purpose |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `SKILL.md` | The complete rule: affected endpoints, safe `--paginate --slurp \| jq` pattern, single-page bound pattern, single-object pattern, newest-first walk pattern, and enforcement notes |
|
|
12
|
+
|
|
13
|
+
## Conventions
|
|
14
|
+
|
|
15
|
+
- The preferred pattern pipes `--paginate --slurp` to an **external** `jq` invocation so cross-page operations (`sort_by`, `last`, `reverse`) run on the merged array-of-pages. The built-in `--jq` flag is incompatible with `--slurp` and runs per-page, producing wrong cross-page results.
|
|
16
|
+
- Single-object endpoints (e.g., `pulls/<number>`) are not paginated; `--paginate` is unnecessary and `gh --jq` is safe.
|
|
17
|
+
- The single-page bound pattern (`?per_page=100` without `--paginate`) is acceptable only when the list is confirmed to stay under 100 entries.
|
|
18
|
+
- This skill ships as documentation only; enforcement via a future PreToolUse hook is noted in `SKILL.md`.
|