opencode-sdlc-plugin 0.2.1 → 0.3.2
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 +18 -0
- package/README.md +127 -38
- package/commands/sdlc-adr.md +245 -17
- package/commands/sdlc-debug.md +376 -0
- package/commands/sdlc-design.md +205 -47
- package/commands/sdlc-dev.md +544 -0
- package/commands/sdlc-info.md +325 -0
- package/commands/sdlc-parallel.md +283 -0
- package/commands/sdlc-recall.md +203 -8
- package/commands/sdlc-remember.md +126 -9
- package/commands/sdlc-research.md +343 -0
- package/commands/sdlc-review.md +201 -128
- package/commands/sdlc-status.md +297 -0
- package/config/presets/copilot-only.json +69 -0
- package/config/presets/enterprise.json +79 -0
- package/config/presets/event-modeling.json +74 -8
- package/config/presets/minimal.json +70 -0
- package/config/presets/solo-quick.json +70 -0
- package/config/presets/standard.json +78 -0
- package/config/presets/strict-tdd.json +79 -0
- package/config/schemas/athena.schema.json +338 -0
- package/config/schemas/sdlc.schema.json +442 -26
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +4285 -562
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +1781 -1
- package/dist/index.js +7759 -395
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.d.ts +17 -2
- package/dist/plugin/index.js +7730 -397
- package/dist/plugin/index.js.map +1 -1
- package/package.json +68 -33
- package/prompts/agents/code-reviewer.md +229 -0
- package/prompts/agents/domain.md +210 -0
- package/prompts/agents/green.md +148 -0
- package/prompts/agents/mutation.md +278 -0
- package/prompts/agents/red.md +112 -0
- package/prompts/event-modeling/discovery.md +176 -0
- package/prompts/event-modeling/gwt-generation.md +479 -0
- package/prompts/event-modeling/workflow-design.md +318 -0
- package/prompts/personas/amelia-developer.md +43 -0
- package/prompts/personas/bob-sm.md +43 -0
- package/prompts/personas/john-pm.md +43 -0
- package/prompts/personas/mary-analyst.md +43 -0
- package/prompts/personas/murat-tester.md +43 -0
- package/prompts/personas/paige-techwriter.md +43 -0
- package/prompts/personas/sally-ux.md +43 -0
- package/prompts/personas/winston-architect.md +43 -0
- package/agents/design-facilitator.md +0 -8
- package/agents/domain.md +0 -9
- package/agents/exploration.md +0 -8
- package/agents/green.md +0 -9
- package/agents/marvin.md +0 -15
- package/agents/model-checker.md +0 -9
- package/agents/red.md +0 -9
- package/commands/sdlc-domain-audit.md +0 -32
- package/commands/sdlc-plan.md +0 -63
- package/commands/sdlc-pr.md +0 -43
- package/commands/sdlc-setup.md +0 -50
- package/commands/sdlc-start.md +0 -34
- package/commands/sdlc-work.md +0 -118
- package/config/presets/traditional.json +0 -12
- package/skills/adr-policy.md +0 -21
- package/skills/atomic-design.md +0 -39
- package/skills/debugging-protocol.md +0 -47
- package/skills/event-modeling.md +0 -40
- package/skills/git-spice.md +0 -44
- package/skills/github-issues.md +0 -44
- package/skills/memory-protocol.md +0 -41
- package/skills/orchestration.md +0 -118
- package/skills/skill-enforcement.md +0 -56
- package/skills/tdd-constraints.md +0 -63
package/skills/orchestration.md
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: SDLC orchestration and delegation rules
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# SDLC Orchestration Rules
|
|
6
|
-
|
|
7
|
-
The main conversation is an orchestrator only. It coordinates work but never edits files directly.
|
|
8
|
-
|
|
9
|
-
## Core Protocol: Skill Enforcement
|
|
10
|
-
|
|
11
|
-
Before ANY task, invoke skill enforcement (1% rule, mandatory invocations, rationalization red flags).
|
|
12
|
-
|
|
13
|
-
## ADR Isolation Principle (CRITICAL)
|
|
14
|
-
|
|
15
|
-
ADRs are archival documents. NEVER reference ADRs in issues, PRs, code comments, reviews, or slice docs. Always reference `docs/ARCHITECTURE.md` instead. Only consult ADRs when reconsidering architecture decisions.
|
|
16
|
-
|
|
17
|
-
## File Operations (Mandatory Delegation)
|
|
18
|
-
|
|
19
|
-
The orchestrator MUST NEVER use Write/Edit. Delegate all file changes to agents.
|
|
20
|
-
|
|
21
|
-
### Agent Selection Hierarchy
|
|
22
|
-
|
|
23
|
-
| File Type | Agent | Notes |
|
|
24
|
-
|-----------|-------|-------|
|
|
25
|
-
| Test files | `@red` | All test code, fixtures, helpers |
|
|
26
|
-
| Production code | `@green` | Minimal implementation only |
|
|
27
|
-
| Domain types | `@domain` | Value objects, types, invariants |
|
|
28
|
-
| ADRs | `@adr` | `docs/adr/*.md` |
|
|
29
|
-
| Architecture | `@architect` | `docs/ARCHITECTURE.md` |
|
|
30
|
-
| Event model docs | `@exploration`, `@discovery`, `@workflowDesigner`, `@gwt`, `@modelChecker` | `docs/event_model/**/*` |
|
|
31
|
-
| Everything else | `@fileUpdater` | Config, docs, scripts |
|
|
32
|
-
|
|
33
|
-
### Update Request Detection
|
|
34
|
-
|
|
35
|
-
| Request Pattern | Agent |
|
|
36
|
-
|-----------------|-------|
|
|
37
|
-
| "Add a test" | `@red` |
|
|
38
|
-
| "Make the test pass" | `@green` |
|
|
39
|
-
| "Add a domain type" | `@domain` |
|
|
40
|
-
| "Write ADR" | `@adr` |
|
|
41
|
-
| "Update architecture" | `@architect` |
|
|
42
|
-
| "Update docs/config" | `@fileUpdater` |
|
|
43
|
-
|
|
44
|
-
## TDD Workflow (Mandatory)
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
RED → DOMAIN → GREEN → DOMAIN → REFACTOR
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
- One failing test per RED cycle.
|
|
51
|
-
- DOMAIN review is mandatory after RED and after GREEN.
|
|
52
|
-
- No exceptions for “trivial” changes.
|
|
53
|
-
|
|
54
|
-
### Anti-Patterns (Violations)
|
|
55
|
-
|
|
56
|
-
- “Quick fix” → violates TDD.
|
|
57
|
-
- “Just a UI tweak” → still requires domain review.
|
|
58
|
-
- “One-line change” → still requires full cycle.
|
|
59
|
-
|
|
60
|
-
### Pre-Edit Checklist
|
|
61
|
-
|
|
62
|
-
- Is this a test file? → `@red`
|
|
63
|
-
- Is this production code? → `@green`
|
|
64
|
-
- Is this a domain type? → `@domain`
|
|
65
|
-
- Has domain review happened before GREEN?
|
|
66
|
-
|
|
67
|
-
## Fresh Context Protocol (CRITICAL)
|
|
68
|
-
|
|
69
|
-
Agents have ZERO context. Always provide:
|
|
70
|
-
- File paths and excerpts
|
|
71
|
-
- Current test name
|
|
72
|
-
- Failure output
|
|
73
|
-
- Acceptance criteria
|
|
74
|
-
- Relevant domain types
|
|
75
|
-
|
|
76
|
-
## Invocation Gate Protocol
|
|
77
|
-
|
|
78
|
-
### Red Agent
|
|
79
|
-
```
|
|
80
|
-
RED_CONTEXT: FIRST_TEST | CONTINUING
|
|
81
|
-
ACCEPTANCE_CRITERIA:
|
|
82
|
-
- <criterion>
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Domain Agent
|
|
86
|
-
```
|
|
87
|
-
DOMAIN_CONTEXT: AFTER_RED | AFTER_GREEN
|
|
88
|
-
PHASE_COMPLETE:
|
|
89
|
-
- Test: <name>
|
|
90
|
-
- Failure/Result: <details>
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Green Agent
|
|
94
|
-
```
|
|
95
|
-
RED_PHASE_COMPLETE:
|
|
96
|
-
- Test: <name>
|
|
97
|
-
- Failure: <error>
|
|
98
|
-
DOMAIN_CHECK_PASSED:
|
|
99
|
-
- Types: <list> OR "None"
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## Agent Debate Protocol
|
|
103
|
-
|
|
104
|
-
- Domain agent has veto power.
|
|
105
|
-
- If dispute persists for 2 rounds, escalate to user.
|
|
106
|
-
|
|
107
|
-
## Parallel Development (Worktrees)
|
|
108
|
-
|
|
109
|
-
If `config.git.worktrees` is true:
|
|
110
|
-
- Use `git worktree list` to choose context.
|
|
111
|
-
- Only run parallel slices with defined interfaces.
|
|
112
|
-
|
|
113
|
-
## Code Review Gate
|
|
114
|
-
|
|
115
|
-
Three-stage review before PR:
|
|
116
|
-
1. Spec compliance
|
|
117
|
-
2. Code quality
|
|
118
|
-
3. Domain integrity (compile-time enforcement audit)
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Skill invocation enforcement rules
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Skill Invocation Enforcement (MANDATORY)
|
|
6
|
-
|
|
7
|
-
## The 1% Rule
|
|
8
|
-
|
|
9
|
-
If there is even a 1% chance a skill applies, you MUST invoke it.
|
|
10
|
-
|
|
11
|
-
## Mandatory Invocations
|
|
12
|
-
|
|
13
|
-
| Before... | ALWAYS invoke... | Even if... |
|
|
14
|
-
|-----------|------------------|-----------|
|
|
15
|
-
| ANY task | `/sdlc-recall` | "It's a simple change" |
|
|
16
|
-
| Writing ANY test | `@red` | "Just one test" |
|
|
17
|
-
| Writing ANY production code | `@green` | "One line" |
|
|
18
|
-
| Creating ANY type | `@domain` | "It's just a struct" |
|
|
19
|
-
| After RED | `@domain` | "Not a domain concern" |
|
|
20
|
-
| After GREEN | `@domain` | "Just UI" |
|
|
21
|
-
| Debugging | `debugging-protocol` | "I know the fix" |
|
|
22
|
-
| Finishing work | `/sdlc-remember` | "Not interesting" |
|
|
23
|
-
|
|
24
|
-
## Rationalization Red Flags
|
|
25
|
-
|
|
26
|
-
- "This is simple"
|
|
27
|
-
- "Overkill"
|
|
28
|
-
- "Just this once"
|
|
29
|
-
- "No need for domain review"
|
|
30
|
-
- "I'll check memory after"
|
|
31
|
-
|
|
32
|
-
## Skill Priority Order
|
|
33
|
-
|
|
34
|
-
1. Memory (`/sdlc-recall`)
|
|
35
|
-
2. Process (debugging protocol, orchestration)
|
|
36
|
-
3. Implementation (red/green/domain)
|
|
37
|
-
4. Documentation (ADR, GWT)
|
|
38
|
-
|
|
39
|
-
## Non-Negotiables
|
|
40
|
-
|
|
41
|
-
- Memory recall before tasks
|
|
42
|
-
- TDD delegation via agents
|
|
43
|
-
- Domain review after RED and GREEN
|
|
44
|
-
- Verification before completion
|
|
45
|
-
- Memory storage after discoveries
|
|
46
|
-
- ADR isolation
|
|
47
|
-
|
|
48
|
-
## ADR Isolation (CRITICAL)
|
|
49
|
-
|
|
50
|
-
Never reference ADRs in issues, PRs, reviews, or code. Use `docs/ARCHITECTURE.md`.
|
|
51
|
-
|
|
52
|
-
## Self-Check Questions
|
|
53
|
-
|
|
54
|
-
- Did I search memento first?
|
|
55
|
-
- Am I delegating to the right agent?
|
|
56
|
-
- Am I skipping a step due to time pressure?
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: File ownership and TDD constraints
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Agent File Ownership Constraints
|
|
6
|
-
|
|
7
|
-
Each SDLC agent has strict file boundaries. These are ABSOLUTE.
|
|
8
|
-
|
|
9
|
-
## Ownership Matrix
|
|
10
|
-
|
|
11
|
-
| File Pattern | Authorized Agent(s) | Others Blocked |
|
|
12
|
-
|--------------|---------------------|----------------|
|
|
13
|
-
| Test files (`*_test.*`, `*.test.*`, `tests/`, `__tests__/`, `spec/`) | `@red` | ✅ |
|
|
14
|
-
| Production code (`src/`, `lib/`, `app/`) | `@green` | ✅ |
|
|
15
|
-
| Domain types/models | `@domain` | ✅ |
|
|
16
|
-
| ADRs (`docs/adr/*.md`) | `@adr` | ✅ |
|
|
17
|
-
| `docs/ARCHITECTURE.md` | `@architect`, `@designFacilitator` | ✅ |
|
|
18
|
-
| Event model docs (`docs/event_model/**/*`) | `@exploration`, `@discovery`, `@workflowDesigner`, `@gwt`, `@modelChecker` | ✅ |
|
|
19
|
-
| Config/docs/scripts | `@fileUpdater` | - |
|
|
20
|
-
|
|
21
|
-
## TDD Agents
|
|
22
|
-
|
|
23
|
-
### `@red`
|
|
24
|
-
CAN edit: test files, fixtures, helpers.
|
|
25
|
-
CANNOT edit: production code, domain types, architecture.
|
|
26
|
-
|
|
27
|
-
### `@green`
|
|
28
|
-
CAN edit: production implementation only.
|
|
29
|
-
CANNOT edit: test files, type definitions, event model docs.
|
|
30
|
-
|
|
31
|
-
### `@domain`
|
|
32
|
-
CAN edit: domain types, value objects, invariants.
|
|
33
|
-
CANNOT edit: tests, implementation bodies, ADRs.
|
|
34
|
-
|
|
35
|
-
## Architecture Agents
|
|
36
|
-
|
|
37
|
-
### `@adr`
|
|
38
|
-
CAN edit: `docs/adr/*.md` only.
|
|
39
|
-
CANNOT edit: `docs/ARCHITECTURE.md` directly.
|
|
40
|
-
|
|
41
|
-
### `@architect`
|
|
42
|
-
CAN edit: `docs/ARCHITECTURE.md` only.
|
|
43
|
-
CANNOT edit: ADRs, event model docs, code.
|
|
44
|
-
|
|
45
|
-
### `@designFacilitator`
|
|
46
|
-
CAN edit: `docs/ARCHITECTURE.md` only.
|
|
47
|
-
CANNOT edit: ADRs, event model docs, code.
|
|
48
|
-
|
|
49
|
-
## Event Modeling Agents
|
|
50
|
-
|
|
51
|
-
### `@exploration`, `@discovery`, `@workflowDesigner`, `@gwt`, `@modelChecker`
|
|
52
|
-
CAN edit: `docs/event_model/**/*`.
|
|
53
|
-
CANNOT edit: ADRs, architecture, code.
|
|
54
|
-
|
|
55
|
-
## Utility Agent
|
|
56
|
-
|
|
57
|
-
### `@fileUpdater`
|
|
58
|
-
CAN edit: config, scripts, general docs not owned by other agents.
|
|
59
|
-
CANNOT edit: tests, production code, domain types, ADRs, architecture, event model docs.
|
|
60
|
-
|
|
61
|
-
## If Blocked
|
|
62
|
-
|
|
63
|
-
Stop immediately, return to the orchestrator, and request the proper agent.
|