@syntesseraai/opencode-feature-factory 0.6.11 → 0.6.12
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/README.md +3 -0
- package/agents/planning.md +4 -6
- package/agents/reviewing.md +5 -4
- package/command/mini-loop/documentation/document.md +14 -0
- package/command/mini-loop/documentation/gate.md +15 -0
- package/command/mini-loop/documentation/review.md +16 -0
- package/command/mini-loop/documentation/run.md +20 -0
- package/command/mini-loop/implementation/build.md +14 -0
- package/command/mini-loop/implementation/gate.md +15 -0
- package/command/mini-loop/implementation/review.md +16 -0
- package/command/mini-loop/implementation/run.md +20 -0
- package/command/mini-loop/start.md +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,6 +48,9 @@ It also updates `~/.config/opencode/opencode.json` non-destructively by merging
|
|
|
48
48
|
- `/pipeline/reviewing/run`, `/pipeline/reviewing/triage`, `/pipeline/reviewing/review`, `/pipeline/reviewing/synthesize`, `/pipeline/reviewing/gate`
|
|
49
49
|
- `/pipeline/documentation/run`, `/pipeline/documentation/document`, `/pipeline/documentation/review`, `/pipeline/documentation/gate`
|
|
50
50
|
- `/pipeline/complete`
|
|
51
|
+
- `/mini-loop/start`
|
|
52
|
+
- `/mini-loop/implementation/run`, `/mini-loop/implementation/build`, `/mini-loop/implementation/review`, `/mini-loop/implementation/gate`
|
|
53
|
+
- `/mini-loop/documentation/run`, `/mini-loop/documentation/document`, `/mini-loop/documentation/review`, `/mini-loop/documentation/gate`
|
|
51
54
|
|
|
52
55
|
## Model Routing
|
|
53
56
|
|
package/agents/planning.md
CHANGED
|
@@ -12,10 +12,8 @@ permission:
|
|
|
12
12
|
skill:
|
|
13
13
|
'*': allow
|
|
14
14
|
task:
|
|
15
|
-
reviewing: allow
|
|
16
15
|
ff-research: allow
|
|
17
|
-
|
|
18
|
-
general: deny
|
|
16
|
+
'*': deny
|
|
19
17
|
---
|
|
20
18
|
|
|
21
19
|
You are the planning specialist.
|
|
@@ -45,9 +43,9 @@ When producing plans, include:
|
|
|
45
43
|
|
|
46
44
|
## Delegation Guidance
|
|
47
45
|
|
|
48
|
-
- Use `@ff-research` for external/library uncertainty.
|
|
49
|
-
-
|
|
50
|
-
-
|
|
46
|
+
- Use `@ff-research` only for external/library uncertainty.
|
|
47
|
+
- Do not delegate to `@building`, `@reviewing`, `@documenting`, `@planning`, or `@explore`.
|
|
48
|
+
- Never perform implementation or file-modifying work in planning mode.
|
|
51
49
|
|
|
52
50
|
## Gate Contract
|
|
53
51
|
|
package/agents/reviewing.md
CHANGED
|
@@ -12,9 +12,8 @@ permission:
|
|
|
12
12
|
skill:
|
|
13
13
|
'*': allow
|
|
14
14
|
task:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
general: deny
|
|
15
|
+
ff-research: allow
|
|
16
|
+
'*': deny
|
|
18
17
|
---
|
|
19
18
|
|
|
20
19
|
You are the unified reviewing specialist.
|
|
@@ -53,4 +52,6 @@ When acting as gate reviewer, output status line exactly:
|
|
|
53
52
|
## Operating Mode
|
|
54
53
|
|
|
55
54
|
- Use result-based handoff (`$RESULT[...]`) rather than file-based artifacts.
|
|
56
|
-
- Keep reports concise, evidence-based, and directly actionable for
|
|
55
|
+
- Keep reports concise, evidence-based, and directly actionable for implementation follow-up.
|
|
56
|
+
- Do not delegate except `@ff-research` for external/library uncertainty.
|
|
57
|
+
- Never perform implementation or file-modifying work in reviewing mode.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Write documentation pass for mini-loop
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: documenting
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Update repository documentation for the approved mini-loop implementation from `$ARGUMENTS`.
|
|
8
|
+
|
|
9
|
+
Requirements:
|
|
10
|
+
|
|
11
|
+
1. Reflect shipped behavior and operational steps exactly.
|
|
12
|
+
2. Apply prior documentation rework feedback when present.
|
|
13
|
+
3. Keep updates concise and cross-link impacted docs when needed.
|
|
14
|
+
4. Return a concise documentation update report with changed docs and rationale.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Apply documentation mini-loop gate
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: reviewing
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Read the latest documentation review input from `$ARGUMENTS` and apply this gate exactly:
|
|
8
|
+
|
|
9
|
+
- APPROVED only when `CONFIDENCE` is strictly `>95`, `CHANGE_REQUESTED=NO`, and `UNRESOLVED_DOCUMENTATION_ISSUES=0`
|
|
10
|
+
- REWORK when not approved and iteration < 5
|
|
11
|
+
- ESCALATE when iteration == 5 and still not approved
|
|
12
|
+
|
|
13
|
+
Output exactly one line:
|
|
14
|
+
|
|
15
|
+
`MINI_LOOP_DOCUMENTATION_GATE=APPROVED|REWORK|ESCALATE`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review documentation pass for mini-loop
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: reviewing
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Review the latest mini-loop documentation pass from `$ARGUMENTS`.
|
|
8
|
+
|
|
9
|
+
Required output fields:
|
|
10
|
+
|
|
11
|
+
1. `CHANGE_REQUESTED=YES|NO`
|
|
12
|
+
2. `UNRESOLVED_DOCUMENTATION_ISSUES=<integer>`
|
|
13
|
+
3. `CONFIDENCE=<0-100>`
|
|
14
|
+
4. concise documentation rework instructions when change is requested
|
|
15
|
+
|
|
16
|
+
Return a deterministic structured documentation review result with no file persistence.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run documentation mini-loop until gate passes
|
|
3
|
+
subtask: true
|
|
4
|
+
loop:
|
|
5
|
+
max: 5
|
|
6
|
+
until: documentation gate is APPROVED
|
|
7
|
+
return:
|
|
8
|
+
- /mini-loop/documentation/document {model:openai/gpt-5.3-codex && as:mini-doc-pass} $ARGUMENTS
|
|
9
|
+
- /mini-loop/documentation/review {model:openai/gpt-5.4 && as:mini-doc-review} $RESULT[mini-doc-pass]
|
|
10
|
+
- /mini-loop/documentation/gate {model:openai/gpt-5.4} $RESULT[mini-doc-review]
|
|
11
|
+
- If `MINI_LOOP_DOCUMENTATION_GATE=REWORK`, continue loop with prior documentation review feedback included in the next documentation pass.
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
Execute the documentation mini-loop for the approved implementation context.
|
|
15
|
+
|
|
16
|
+
Stop criteria:
|
|
17
|
+
|
|
18
|
+
- approve when `MINI_LOOP_DOCUMENTATION_GATE=APPROVED`
|
|
19
|
+
- continue while `MINI_LOOP_DOCUMENTATION_GATE=REWORK` and iteration < 5
|
|
20
|
+
- escalate to user when iteration reaches 5 without approval
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Build implementation pass for mini-loop
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: building
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Implement the current mini-loop requirements from `$ARGUMENTS`.
|
|
8
|
+
|
|
9
|
+
Requirements:
|
|
10
|
+
|
|
11
|
+
1. Apply requested code rework when present.
|
|
12
|
+
2. Add or update tests for behavioral changes.
|
|
13
|
+
3. Run lint/typecheck/tests only for impacted scope.
|
|
14
|
+
4. Return a concise implementation report with changed files, tests run, and known open issues.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Apply implementation mini-loop gate
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: reviewing
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Read the latest implementation review input from `$ARGUMENTS` and apply this gate exactly:
|
|
8
|
+
|
|
9
|
+
- APPROVED only when `CONFIDENCE` is strictly `>95`, `CHANGE_REQUESTED=NO`, and `UNRESOLVED_BLOCKING_ISSUES=0`
|
|
10
|
+
- REWORK when not approved and iteration < 10
|
|
11
|
+
- ESCALATE when iteration == 10 and still not approved
|
|
12
|
+
|
|
13
|
+
Output exactly one line:
|
|
14
|
+
|
|
15
|
+
`MINI_LOOP_IMPLEMENTATION_GATE=APPROVED|REWORK|ESCALATE`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review implementation pass for mini-loop
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: reviewing
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Review the latest mini-loop implementation output from `$ARGUMENTS`.
|
|
8
|
+
|
|
9
|
+
Required output fields:
|
|
10
|
+
|
|
11
|
+
1. `CHANGE_REQUESTED=YES|NO`
|
|
12
|
+
2. `UNRESOLVED_BLOCKING_ISSUES=<integer>`
|
|
13
|
+
3. `CONFIDENCE=<0-100>`
|
|
14
|
+
4. concise rework instructions when change is requested
|
|
15
|
+
|
|
16
|
+
Return a deterministic structured review result with no file persistence.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run implementation mini-loop until gate passes
|
|
3
|
+
subtask: true
|
|
4
|
+
loop:
|
|
5
|
+
max: 10
|
|
6
|
+
until: implementation gate is APPROVED
|
|
7
|
+
return:
|
|
8
|
+
- /mini-loop/implementation/build {model:openai/gpt-5.3-codex && as:mini-impl-build} $ARGUMENTS
|
|
9
|
+
- /mini-loop/implementation/review {model:openai/gpt-5.4 && as:mini-impl-review} $RESULT[mini-impl-build]
|
|
10
|
+
- /mini-loop/implementation/gate {model:openai/gpt-5.4} $RESULT[mini-impl-review]
|
|
11
|
+
- If `MINI_LOOP_IMPLEMENTATION_GATE=REWORK`, continue loop with prior review feedback included in the next build input.
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
Execute the implementation mini-loop for the active requirements/rework context.
|
|
15
|
+
|
|
16
|
+
Stop criteria:
|
|
17
|
+
|
|
18
|
+
- approve when `MINI_LOOP_IMPLEMENTATION_GATE=APPROVED`
|
|
19
|
+
- continue while `MINI_LOOP_IMPLEMENTATION_GATE=REWORK` and iteration < 10
|
|
20
|
+
- escalate to user when iteration reaches 10 without approval
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Mini-loop two-stage workflow entrypoint
|
|
3
|
+
subtask: true
|
|
4
|
+
model: openai/gpt-5.4
|
|
5
|
+
return:
|
|
6
|
+
- /mini-loop/implementation/run {as:implementation-phase} $ARGUMENTS
|
|
7
|
+
- /mini-loop/documentation/run $RESULT[implementation-phase]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
Run the two-stage mini-loop workflow from this requirements brief:
|
|
11
|
+
|
|
12
|
+
$ARGUMENTS
|
|
13
|
+
|
|
14
|
+
Execution requirements:
|
|
15
|
+
|
|
16
|
+
1. Always complete implementation approval before starting documentation.
|
|
17
|
+
2. Use `{as:name}` and `$RESULT[name]` for all handoffs.
|
|
18
|
+
3. Keep loop decisions deterministic and gate-driven.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@syntesseraai/opencode-feature-factory",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "OpenCode plugin for Feature Factory agents - provides sub-agents and skills for validation, review, security, and architecture assessment",
|
|
7
7
|
"license": "MIT",
|