agentcohort 0.1.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/LICENSE +21 -0
- package/README.md +187 -0
- package/dist/args.d.ts +13 -0
- package/dist/args.js +92 -0
- package/dist/claudeMd.d.ts +33 -0
- package/dist/claudeMd.js +156 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +108 -0
- package/dist/fileOps.d.ts +15 -0
- package/dist/fileOps.js +50 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +30 -0
- package/dist/installer.d.ts +32 -0
- package/dist/installer.js +208 -0
- package/dist/logger.d.ts +43 -0
- package/dist/logger.js +63 -0
- package/dist/manifest.d.ts +18 -0
- package/dist/manifest.js +44 -0
- package/dist/paths.d.ts +15 -0
- package/dist/paths.js +52 -0
- package/dist/prompt.d.ts +32 -0
- package/dist/prompt.js +57 -0
- package/dist/templates/CLAUDE.section.md +62 -0
- package/dist/templates/agents/bug-fixer.md +67 -0
- package/dist/templates/agents/bug-hunter.md +67 -0
- package/dist/templates/agents/expert-council.md +83 -0
- package/dist/templates/agents/feature-implementer.md +69 -0
- package/dist/templates/agents/feature-planner.md +75 -0
- package/dist/templates/agents/final-reviewer.md +71 -0
- package/dist/templates/agents/perf-optimizer.md +63 -0
- package/dist/templates/agents/perf-reviewer.md +66 -0
- package/dist/templates/agents/performance-hunter.md +68 -0
- package/dist/templates/agents/regression-guard.md +61 -0
- package/dist/templates/agents/repo-scout.md +77 -0
- package/dist/templates/agents/reproduction-engineer.md +65 -0
- package/dist/templates/agents/root-cause-analyst.md +71 -0
- package/dist/templates/agents/solution-architect.md +71 -0
- package/dist/templates/agents/test-verifier.md +68 -0
- package/dist/templates/commands/auto-flow.md +41 -0
- package/dist/templates/commands/bug-audit.md +51 -0
- package/dist/templates/commands/bug-fix-approved.md +44 -0
- package/dist/templates/commands/dev-flow.md +41 -0
- package/dist/templates/commands/fix-blockers.md +36 -0
- package/dist/templates/commands/perf-hunt.md +40 -0
- package/dist/templates/commands/review-diff.md +39 -0
- package/package.json +56 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Fix ONLY the listed blockers, then verify. No unrelated changes.
|
|
3
|
+
argument-hint: <paste the blocker list from a review>
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /fix-blockers — Targeted Blocker Resolution
|
|
7
|
+
|
|
8
|
+
Resolve **only** the specific blockers listed in `$ARGUMENTS` (typically the
|
|
9
|
+
BLOCKER/HIGH findings from `/review-diff`, `/dev-flow`, or `/perf-hunt`).
|
|
10
|
+
|
|
11
|
+
## Pre-flight
|
|
12
|
+
|
|
13
|
+
Restate each blocker as a discrete, checkable item. If the list is vague or
|
|
14
|
+
empty, **stop and ask** for the explicit blockers — do not infer scope.
|
|
15
|
+
|
|
16
|
+
## Pipeline
|
|
17
|
+
|
|
18
|
+
1. **feature-implementer** — fix each listed blocker with the minimal change.
|
|
19
|
+
One blocker at a time; do not touch anything not on the list.
|
|
20
|
+
2. **test-verifier** — run tests/typecheck/lint; add/adjust focused tests for
|
|
21
|
+
the fixed blockers; report real output.
|
|
22
|
+
|
|
23
|
+
## Rules
|
|
24
|
+
|
|
25
|
+
- **Only the listed blockers.** No refactors, no renames, no reformatting, no
|
|
26
|
+
"while I'm here" fixes, no unrelated code.
|
|
27
|
+
- No API/schema/auth/security/persistence semantic change unless that change
|
|
28
|
+
*was itself the blocker* and is explicitly approved.
|
|
29
|
+
- New issues discovered while fixing → reported, not fixed (route to
|
|
30
|
+
`/bug-audit`).
|
|
31
|
+
- Each blocker must end with evidence it is resolved.
|
|
32
|
+
|
|
33
|
+
## Output
|
|
34
|
+
|
|
35
|
+
Per-blocker: what changed (`path:line`), the verification command, and its
|
|
36
|
+
real result. Then recommend re-running `/review-diff` to confirm clearance.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Performance pipeline — measure/evidence, bottleneck, safe optimization, verify, perf review.
|
|
3
|
+
argument-hint: <what is slow + the workload/metric if known>
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /perf-hunt — Measure → Bottleneck → Safe Optimize → Verify → Review
|
|
7
|
+
|
|
8
|
+
Orchestrate the performance workflow for `$ARGUMENTS`. **Evidence before
|
|
9
|
+
changes. No blind optimization.**
|
|
10
|
+
|
|
11
|
+
## Pipeline
|
|
12
|
+
|
|
13
|
+
1. **performance-hunter** — define "slow" (metric, workload, target), gather
|
|
14
|
+
measurements, rank bottlenecks, separate measured from hypothesized.
|
|
15
|
+
2. **solution-architect** — *only if* the likely fix affects caching, data
|
|
16
|
+
flow, or architecture. Decide the boundary-safe approach. Otherwise skip
|
|
17
|
+
and say why.
|
|
18
|
+
3. **perf-optimizer** — apply the smallest reversible, evidence-backed change;
|
|
19
|
+
measure before/after under the same workload; preserve behavior.
|
|
20
|
+
4. **test-verifier** — run tests/typecheck/lint; confirm behavior unchanged;
|
|
21
|
+
report real output.
|
|
22
|
+
5. **perf-reviewer** — verify the gain is real and representative, behavior is
|
|
23
|
+
preserved, any cache has sound invalidation, and assess new regression
|
|
24
|
+
risk. Verdict required.
|
|
25
|
+
|
|
26
|
+
## Rules
|
|
27
|
+
|
|
28
|
+
- No optimization without a **measured** bottleneck behind it.
|
|
29
|
+
- **No behavior/output change.** Same inputs → same results.
|
|
30
|
+
- **No caching/memoization without an explicit, correct invalidation
|
|
31
|
+
strategy** and a stated staleness bound.
|
|
32
|
+
- One optimization per change; keep it reversible.
|
|
33
|
+
- If the gain is marginal or risk outweighs it, stop and report — do not ship
|
|
34
|
+
a risky micro-win.
|
|
35
|
+
- If `perf-reviewer` BLOCKs, summarize and recommend `/fix-blockers`.
|
|
36
|
+
|
|
37
|
+
## Output
|
|
38
|
+
|
|
39
|
+
Stage summary including before/after numbers, behavior-preserved evidence, and
|
|
40
|
+
the reviewer's APPROVE/BLOCK verdict.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run the final reviewer on the current diff/PR. Read-only verdict.
|
|
3
|
+
argument-hint: [base ref or PR — defaults to the current branch diff]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /review-diff — Final Reviewer Only
|
|
7
|
+
|
|
8
|
+
Run the **final-reviewer** subagent on the current change.
|
|
9
|
+
|
|
10
|
+
## What to review
|
|
11
|
+
|
|
12
|
+
- If `$ARGUMENTS` names a base ref or PR, diff against that.
|
|
13
|
+
- Otherwise review the working diff against the repository's base branch
|
|
14
|
+
(e.g. `git diff` / `git diff <base>...HEAD`).
|
|
15
|
+
|
|
16
|
+
## Mandate (read-only)
|
|
17
|
+
|
|
18
|
+
The reviewer must judge, with `path:line` evidence and explicit severity
|
|
19
|
+
(BLOCKER / HIGH / MEDIUM / NIT):
|
|
20
|
+
|
|
21
|
+
- **Correctness** — incl. edge/error paths and concurrency.
|
|
22
|
+
- **Regression risk** — what existing behavior could break.
|
|
23
|
+
- **Scope creep** — anything changed the task did not authorize.
|
|
24
|
+
- **Security** — input trust, authz, injection, secrets.
|
|
25
|
+
- **Data consistency** — partial writes, transactions, invariants.
|
|
26
|
+
- **Tests** — is the changed risky behavior actually covered.
|
|
27
|
+
|
|
28
|
+
## Rules
|
|
29
|
+
|
|
30
|
+
- **No edits.** This command produces a verdict only.
|
|
31
|
+
- Unauthorized API/schema/auth/security/persistence semantic change is at
|
|
32
|
+
least HIGH, default BLOCKER.
|
|
33
|
+
- Missing test for changed risky behavior is a BLOCKER.
|
|
34
|
+
- No rubber-stamp, no nitpick-only review.
|
|
35
|
+
|
|
36
|
+
## Output
|
|
37
|
+
|
|
38
|
+
`APPROVE` or `BLOCK`, the findings list, and exactly what must change before
|
|
39
|
+
it can land. If BLOCK, recommend `/fix-blockers` with the blocker list.
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agentcohort",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Install a principal/staff-level Claude Code AI software engineering organization (agents + workflows + routing rules) into any project with one command.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"claude",
|
|
7
|
+
"claude-code",
|
|
8
|
+
"agents",
|
|
9
|
+
"subagents",
|
|
10
|
+
"workflow",
|
|
11
|
+
"ai",
|
|
12
|
+
"cli",
|
|
13
|
+
"developer-tools",
|
|
14
|
+
"code-review",
|
|
15
|
+
"bug-audit"
|
|
16
|
+
],
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": "agentcohort",
|
|
19
|
+
"type": "commonjs",
|
|
20
|
+
"bin": {
|
|
21
|
+
"agentcohort": "dist/cli.js",
|
|
22
|
+
"agent-force": "dist/cli.js"
|
|
23
|
+
},
|
|
24
|
+
"main": "dist/index.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/Thiendekaco/agentcohort.git"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/Thiendekaco/agentcohort#readme",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/Thiendekaco/agentcohort/issues"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
46
|
+
"build": "npm run clean && tsc -p tsconfig.json && node scripts/copy-templates.mjs",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"test:watch": "vitest",
|
|
49
|
+
"prepublishOnly": "npm run build && npm test"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^20.14.0",
|
|
53
|
+
"typescript": "^5.5.0",
|
|
54
|
+
"vitest": "^2.0.0"
|
|
55
|
+
}
|
|
56
|
+
}
|