agent-templates 0.1.0 → 0.2.1

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.
Files changed (38) hide show
  1. package/ADOPTING.md +57 -57
  2. package/CLAUDE.md +128 -125
  3. package/LICENSE +21 -21
  4. package/README.md +32 -32
  5. package/package.json +32 -32
  6. package/patterns/three-agent-architect-builder-reviewer/README.md +164 -153
  7. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/agents/architect.md +31 -31
  8. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/agents/builder.md +25 -25
  9. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/agents/reviewer.md +33 -33
  10. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/agents/triage.md +31 -31
  11. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/commands/breakdown-prd.md +18 -18
  12. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/commands/nightly-issues.md +14 -14
  13. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/commands/review-ticket.md +14 -14
  14. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/commands/start-all.md +17 -0
  15. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/commands/start-milestone.md +15 -15
  16. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/commands/verify-delivery.md +20 -20
  17. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/hooks/guard-main-session-writes.mjs +53 -53
  18. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/scripts/milestone-dag.mjs +94 -0
  19. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/scripts/publish-tickets.mjs +263 -263
  20. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/settings.json +15 -15
  21. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/workflows/nightly-issues.js +141 -139
  22. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/workflows/run-milestone.js +225 -223
  23. package/patterns/three-agent-architect-builder-reviewer/scaffold/.claude/workflows/start-all.js +120 -0
  24. package/patterns/three-agent-architect-builder-reviewer/scaffold/INSTALL.md +65 -65
  25. package/patterns/three-agent-architect-builder-reviewer/scaffold/claude-md-snippet.md +38 -37
  26. package/scripts/adopt.mjs +207 -177
  27. package/scripts/build-site.mjs +366 -264
  28. package/scripts/cli.mjs +52 -52
  29. package/templates/pattern-README.template.md +65 -65
  30. package/templates/ticket.template.md +104 -104
  31. package/templates/tracker/github/ISSUE_TEMPLATE/bug-report.md +28 -28
  32. package/templates/tracker/github/ISSUE_TEMPLATE/decision-record.md +25 -25
  33. package/templates/tracker/github/ISSUE_TEMPLATE/task.md +36 -36
  34. package/templates/tracker/github/PULL_REQUEST_TEMPLATE.md +54 -54
  35. package/templates/tracker/gitlab/issue_templates/bug-report.md +23 -23
  36. package/templates/tracker/gitlab/issue_templates/decision-record.md +20 -20
  37. package/templates/tracker/gitlab/issue_templates/task.md +31 -31
  38. package/templates/tracker/gitlab/merge_request_templates/default.md +55 -55
@@ -1,54 +1,54 @@
1
- ## Summary
2
-
3
- <!-- What does this PR do? One sentence. -->
4
-
5
- ## Related issue / ticket
6
-
7
- <!-- Closes #N — plus the ticket id, e.g. [MOD-NN]. The ticket FILE stays the content
8
- source of truth; the issue holds state. -->
9
-
10
- ## Type
11
-
12
- <!-- Check one; matches conventional-commit prefixes. -->
13
-
14
- - [ ] `feat` — new feature
15
- - [ ] `fix` — bug fix
16
- - [ ] `refactor` — restructuring, no behavior change
17
- - [ ] `docs` — documentation / ADR only
18
- - [ ] `test` — new or updated tests
19
- - [ ] `ci` / `chore` — tooling, maintenance
20
-
21
- ## Changes
22
-
23
- <!-- Bullets: what changed AND why. Include what was tried and rejected if it shaped the result. -->
24
-
25
- -
26
-
27
- ## Design note
28
-
29
- <!-- Hard-to-reverse or non-obvious changes: link the ADR (docs/adr/NNNN-*.md) — add one if
30
- this is a durable decision. Otherwise summarize inline: problem · affected components ·
31
- contract/schema changes · risks. -->
32
-
33
- ## Pipeline evidence
34
-
35
- <!-- Assumes the installed pattern; the three-agent pattern's items are shown — adapt if
36
- this repo runs a different pattern. -->
37
-
38
- - [ ] Plan: `docs/plans/<ticket-id>.md` (link)
39
- - [ ] Builder: REAL test output attached (unit / integration / E2E as the ticket requires) — never "should pass"
40
- - [ ] Reviewer verdict: **CLEAR**, from a fresh context (link or paste the note; bounces: <n>)
41
- - [ ] Deviations from the plan recorded (or "none")
42
- - [ ] Post-merge: `/verify-delivery <ticket-id>` runs — the issue closes only after it passes
43
-
44
- ## Constraint check
45
-
46
- <!-- At install time, copy this repo's non-negotiables from its CLAUDE.md here as
47
- checkboxes. Tick what this PR touches; mark the rest N/A. Two universal items: -->
48
-
49
- - [ ] No hardcoded secrets (keys, tokens, credentials) in code / config / logs / docs
50
- - [ ] Docs / ADR / ticket updated if behavior or a decision changed (feedback obligation)
51
-
52
- ## Evidence
53
-
54
- <!-- Test output, before/after screenshots (UI), command + output (CLI/API), or a short repro. -->
1
+ ## Summary
2
+
3
+ <!-- What does this PR do? One sentence. -->
4
+
5
+ ## Related issue / ticket
6
+
7
+ <!-- Closes #N — plus the ticket id, e.g. [MOD-NN]. The ticket FILE stays the content
8
+ source of truth; the issue holds state. -->
9
+
10
+ ## Type
11
+
12
+ <!-- Check one; matches conventional-commit prefixes. -->
13
+
14
+ - [ ] `feat` — new feature
15
+ - [ ] `fix` — bug fix
16
+ - [ ] `refactor` — restructuring, no behavior change
17
+ - [ ] `docs` — documentation / ADR only
18
+ - [ ] `test` — new or updated tests
19
+ - [ ] `ci` / `chore` — tooling, maintenance
20
+
21
+ ## Changes
22
+
23
+ <!-- Bullets: what changed AND why. Include what was tried and rejected if it shaped the result. -->
24
+
25
+ -
26
+
27
+ ## Design note
28
+
29
+ <!-- Hard-to-reverse or non-obvious changes: link the ADR (docs/adr/NNNN-*.md) — add one if
30
+ this is a durable decision. Otherwise summarize inline: problem · affected components ·
31
+ contract/schema changes · risks. -->
32
+
33
+ ## Pipeline evidence
34
+
35
+ <!-- Assumes the installed pattern; the three-agent pattern's items are shown — adapt if
36
+ this repo runs a different pattern. -->
37
+
38
+ - [ ] Plan: `docs/plans/<ticket-id>.md` (link)
39
+ - [ ] Builder: REAL test output attached (unit / integration / E2E as the ticket requires) — never "should pass"
40
+ - [ ] Reviewer verdict: **CLEAR**, from a fresh context (link or paste the note; bounces: <n>)
41
+ - [ ] Deviations from the plan recorded (or "none")
42
+ - [ ] Post-merge: `/verify-delivery <ticket-id>` runs — the issue closes only after it passes
43
+
44
+ ## Constraint check
45
+
46
+ <!-- At install time, copy this repo's non-negotiables from its CLAUDE.md here as
47
+ checkboxes. Tick what this PR touches; mark the rest N/A. Two universal items: -->
48
+
49
+ - [ ] No hardcoded secrets (keys, tokens, credentials) in code / config / logs / docs
50
+ - [ ] Docs / ADR / ticket updated if behavior or a decision changed (feedback obligation)
51
+
52
+ ## Evidence
53
+
54
+ <!-- Test output, before/after screenshots (UI), command + output (CLI/API), or a short repro. -->
@@ -1,23 +1,23 @@
1
- <!-- GitLab description template ("bug-report"). Nightly triage reads this —
2
- the more mechanical the reproduction, the likelier an overnight fix. -->
3
-
4
- ## Symptom
5
-
6
- <!-- What happens. Paste the exact error output / wrong value. -->
7
-
8
- ## Reproduction
9
-
10
- <!-- Exact steps or commands; the smallest input that triggers it. -->
11
-
12
- ## Expected
13
-
14
- <!-- What should happen instead, stated checkably. Cite the spec (PRD §/ADR) if you know it. -->
15
-
16
- ## Affected area (best guess)
17
-
18
- <!-- Files/modules if you know them; leave empty if unsure — triage will trace it. -->
19
-
20
- ## Acceptance
21
-
22
- <!-- What proves it fixed. Ideally a runnable check, e.g. "npm test stays green and f(x) returns y".
23
- The pipeline turns this into the ticket's classified acceptance checklist. -->
1
+ <!-- GitLab description template ("bug-report"). Nightly triage reads this —
2
+ the more mechanical the reproduction, the likelier an overnight fix. -->
3
+
4
+ ## Symptom
5
+
6
+ <!-- What happens. Paste the exact error output / wrong value. -->
7
+
8
+ ## Reproduction
9
+
10
+ <!-- Exact steps or commands; the smallest input that triggers it. -->
11
+
12
+ ## Expected
13
+
14
+ <!-- What should happen instead, stated checkably. Cite the spec (PRD §/ADR) if you know it. -->
15
+
16
+ ## Affected area (best guess)
17
+
18
+ <!-- Files/modules if you know them; leave empty if unsure — triage will trace it. -->
19
+
20
+ ## Acceptance
21
+
22
+ <!-- What proves it fixed. Ideally a runnable check, e.g. "npm test stays green and f(x) returns y".
23
+ The pipeline turns this into the ticket's classified acceptance checklist. -->
@@ -1,20 +1,20 @@
1
- <!-- GitLab description template ("decision-record"). Records what was done and why —
2
- the durable memory that commits cannot carry. Apply the decision-record label. -->
3
-
4
- **What** (merged in <commit/PR/MR>, YYYY-MM-DD): <one paragraph — the change as shipped.>
5
-
6
- **Key decisions & why**
7
-
8
- <!-- One bullet per decision: the decision, its reason, and the rejected alternative when
9
- one was seriously considered. Cite sources — official docs, ADRs, maintainer direction
10
- with date — the same grounding discipline as everything else. -->
11
-
12
- -
13
-
14
- **Evidence**
15
-
16
- <!-- Test results, verification records, links to the docs where each decision landed. -->
17
-
18
- **Links**
19
-
20
- <!-- Related issues / MRs / ADRs / tickets. -->
1
+ <!-- GitLab description template ("decision-record"). Records what was done and why —
2
+ the durable memory that commits cannot carry. Apply the decision-record label. -->
3
+
4
+ **What** (merged in <commit/PR/MR>, YYYY-MM-DD): <one paragraph — the change as shipped.>
5
+
6
+ **Key decisions & why**
7
+
8
+ <!-- One bullet per decision: the decision, its reason, and the rejected alternative when
9
+ one was seriously considered. Cite sources — official docs, ADRs, maintainer direction
10
+ with date — the same grounding discipline as everything else. -->
11
+
12
+ -
13
+
14
+ **Evidence**
15
+
16
+ <!-- Test results, verification records, links to the docs where each decision landed. -->
17
+
18
+ **Links**
19
+
20
+ <!-- Related issues / MRs / ADRs / tickets. -->
@@ -1,31 +1,31 @@
1
- <!-- GitLab description template ("task"). Mirrors the pipeline's ticket format
2
- so triage can convert it mechanically. -->
3
-
4
- ## Traceability
5
-
6
- <!-- What this implements or follows from: PRD §/FR, an ADR, a discussion, an upstream
7
- pattern — with links. If the decision is already made somewhere, say where. -->
8
-
9
- ## Background + basis
10
-
11
- <!-- Why this is needed. Cite claims; quote the load-bearing sentences rather than
12
- paraphrasing from memory. -->
13
-
14
- ## Goal
15
-
16
- <!-- One paragraph: the artifact(s) to produce and where they land — checkable. -->
17
-
18
- ## Non-goals
19
-
20
- <!-- Each exclusion names its owner or standing reason: "No X — that is MOD-02" /
21
- "No Y — stays out of scope per PRD §Z; do not add it as a side effect." -->
22
-
23
- ## Affected area (best guess)
24
-
25
- <!-- Files/modules if known; the Architect finalizes the file-scope and the
26
- does-not-touch list. -->
27
-
28
- ## Acceptance
29
-
30
- <!-- Checkable criteria, one per line, tagged with the repo's class vocabulary if you can
31
- (defaults: [machine]/[fixture]/[human]). Prefer runnable checks ("command X exits 0"). -->
1
+ <!-- GitLab description template ("task"). Mirrors the pipeline's ticket format
2
+ so triage can convert it mechanically. -->
3
+
4
+ ## Traceability
5
+
6
+ <!-- What this implements or follows from: PRD §/FR, an ADR, a discussion, an upstream
7
+ pattern — with links. If the decision is already made somewhere, say where. -->
8
+
9
+ ## Background + basis
10
+
11
+ <!-- Why this is needed. Cite claims; quote the load-bearing sentences rather than
12
+ paraphrasing from memory. -->
13
+
14
+ ## Goal
15
+
16
+ <!-- One paragraph: the artifact(s) to produce and where they land — checkable. -->
17
+
18
+ ## Non-goals
19
+
20
+ <!-- Each exclusion names its owner or standing reason: "No X — that is MOD-02" /
21
+ "No Y — stays out of scope per PRD §Z; do not add it as a side effect." -->
22
+
23
+ ## Affected area (best guess)
24
+
25
+ <!-- Files/modules if known; the Architect finalizes the file-scope and the
26
+ does-not-touch list. -->
27
+
28
+ ## Acceptance
29
+
30
+ <!-- Checkable criteria, one per line, tagged with the repo's class vocabulary if you can
31
+ (defaults: [machine]/[fixture]/[human]). Prefer runnable checks ("command X exits 0"). -->
@@ -1,55 +1,55 @@
1
- <!-- GitLab MR description template ("default"). "Closes #N" auto-closes on merge to the
2
- default branch — the pipeline relies on this; never remove the reference. -->
3
-
4
- ## Summary
5
-
6
- <!-- What does this MR do? One sentence. -->
7
-
8
- ## Related issue / ticket
9
-
10
- <!-- Closes #N — plus the ticket id, e.g. [MOD-NN]. The ticket FILE stays the content
11
- source of truth; the issue holds state. -->
12
-
13
- ## Type
14
-
15
- - [ ] `feat` — new feature
16
- - [ ] `fix` — bug fix
17
- - [ ] `refactor` — restructuring, no behavior change
18
- - [ ] `docs` — documentation / ADR only
19
- - [ ] `test` — new or updated tests
20
- - [ ] `ci` / `chore` — tooling, maintenance
21
-
22
- ## Changes
23
-
24
- <!-- Bullets: what changed AND why. Include what was tried and rejected if it shaped the result. -->
25
-
26
- -
27
-
28
- ## Design note
29
-
30
- <!-- Hard-to-reverse or non-obvious changes: link the ADR (docs/adr/NNNN-*.md) — add one if
31
- this is a durable decision. Otherwise summarize inline: problem · affected components ·
32
- contract/schema changes · risks. -->
33
-
34
- ## Pipeline evidence
35
-
36
- <!-- Assumes the installed pattern; the three-agent pattern's items are shown — adapt if
37
- this repo runs a different pattern. -->
38
-
39
- - [ ] Plan: `docs/plans/<ticket-id>.md` (link)
40
- - [ ] Builder: REAL test output attached (unit / integration / E2E as the ticket requires) — never "should pass"
41
- - [ ] Reviewer verdict: **CLEAR**, from a fresh context (link or paste the note; bounces: <n>)
42
- - [ ] Deviations from the plan recorded (or "none")
43
- - [ ] Post-merge: `/verify-delivery <ticket-id>` runs — the issue closes only after it passes
44
-
45
- ## Constraint check
46
-
47
- <!-- At install time, copy this repo's non-negotiables from its CLAUDE.md here as
48
- checkboxes. Tick what this MR touches; mark the rest N/A. Two universal items: -->
49
-
50
- - [ ] No hardcoded secrets (keys, tokens, credentials) in code / config / logs / docs
51
- - [ ] Docs / ADR / ticket updated if behavior or a decision changed (feedback obligation)
52
-
53
- ## Evidence
54
-
55
- <!-- Test output, before/after screenshots (UI), command + output (CLI/API), or a short repro. -->
1
+ <!-- GitLab MR description template ("default"). "Closes #N" auto-closes on merge to the
2
+ default branch — the pipeline relies on this; never remove the reference. -->
3
+
4
+ ## Summary
5
+
6
+ <!-- What does this MR do? One sentence. -->
7
+
8
+ ## Related issue / ticket
9
+
10
+ <!-- Closes #N — plus the ticket id, e.g. [MOD-NN]. The ticket FILE stays the content
11
+ source of truth; the issue holds state. -->
12
+
13
+ ## Type
14
+
15
+ - [ ] `feat` — new feature
16
+ - [ ] `fix` — bug fix
17
+ - [ ] `refactor` — restructuring, no behavior change
18
+ - [ ] `docs` — documentation / ADR only
19
+ - [ ] `test` — new or updated tests
20
+ - [ ] `ci` / `chore` — tooling, maintenance
21
+
22
+ ## Changes
23
+
24
+ <!-- Bullets: what changed AND why. Include what was tried and rejected if it shaped the result. -->
25
+
26
+ -
27
+
28
+ ## Design note
29
+
30
+ <!-- Hard-to-reverse or non-obvious changes: link the ADR (docs/adr/NNNN-*.md) — add one if
31
+ this is a durable decision. Otherwise summarize inline: problem · affected components ·
32
+ contract/schema changes · risks. -->
33
+
34
+ ## Pipeline evidence
35
+
36
+ <!-- Assumes the installed pattern; the three-agent pattern's items are shown — adapt if
37
+ this repo runs a different pattern. -->
38
+
39
+ - [ ] Plan: `docs/plans/<ticket-id>.md` (link)
40
+ - [ ] Builder: REAL test output attached (unit / integration / E2E as the ticket requires) — never "should pass"
41
+ - [ ] Reviewer verdict: **CLEAR**, from a fresh context (link or paste the note; bounces: <n>)
42
+ - [ ] Deviations from the plan recorded (or "none")
43
+ - [ ] Post-merge: `/verify-delivery <ticket-id>` runs — the issue closes only after it passes
44
+
45
+ ## Constraint check
46
+
47
+ <!-- At install time, copy this repo's non-negotiables from its CLAUDE.md here as
48
+ checkboxes. Tick what this MR touches; mark the rest N/A. Two universal items: -->
49
+
50
+ - [ ] No hardcoded secrets (keys, tokens, credentials) in code / config / logs / docs
51
+ - [ ] Docs / ADR / ticket updated if behavior or a decision changed (feedback obligation)
52
+
53
+ ## Evidence
54
+
55
+ <!-- Test output, before/after screenshots (UI), command + output (CLI/API), or a short repro. -->