Skip to content

Commit 3edd802

Browse files
committed
fix: correct rollback refs, document --yes flag, add subphase state
1 parent 385cef4 commit 3edd802

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

.claude/skills/titan-forge/SKILL.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: titan-forge
33
description: Execute the sync.json plan — refactor code, validate with /titan-gate, commit, and advance state (Titan Paradigm Phase 4)
4-
argument-hint: <--phase N> <--target name> <--dry-run>
4+
argument-hint: <--phase N> <--target name> <--dry-run> <--yes>
55
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, Skill, Agent
66
---
77

@@ -18,6 +18,7 @@ Your goal: read `sync.json`, find the next incomplete execution phase, make the
1818
- `--phase N` → jump to specific phase
1919
- `--target <name>` → run single target only (for retrying failures)
2020
- `--dry-run` → show what would be done without changing code
21+
- `--yes` → skip confirmation prompt
2122

2223
---
2324

@@ -52,7 +53,9 @@ Your goal: read `sync.json`, find the next incomplete execution phase, make the
5253
"currentTarget": null,
5354
"completedTargets": [],
5455
"failedTargets": [],
55-
"commits": []
56+
"commits": [],
57+
"currentSubphase": null,
58+
"completedSubphases": []
5659
}
5760
}
5861
```
@@ -136,10 +139,10 @@ For each target in the current phase:
136139
```bash
137140
npm test 2>&1
138141
```
139-
If tests fail → go to rollback (step 10).
142+
If tests fail → go to rollback (step 11).
140143

141144
9. **Run /titan-gate:**
142-
Use the Skill tool to invoke `titan-gate`. If FAIL → go to rollback (step 10).
145+
Use the Skill tool to invoke `titan-gate`. If FAIL → go to rollback (step 11).
143146

144147
10. **On success:**
145148
```bash

docs/examples/claude-code-skills/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ All artifacts are written to `.codegraph/titan/` (6 files, no redundancy):
107107
| `GLOBAL_ARCH.md` | Markdown | RECON | GAUNTLET, SYNC |
108108
| `gauntlet.ndjson` | NDJSON | GAUNTLET | SYNC |
109109
| `gauntlet-summary.json` | JSON | GAUNTLET | SYNC, GATE |
110-
| `sync.json` | JSON | SYNC | GATE |
110+
| `sync.json` | JSON | SYNC | FORGE, GATE |
111111
| `gate-log.ndjson` | NDJSON | GATE | Audit trail |
112112

113113
NDJSON format (one JSON object per line) means partial results survive crashes mid-batch.

docs/examples/claude-code-skills/titan-forge/SKILL.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: titan-forge
33
description: Execute the sync.json plan — refactor code, validate with /titan-gate, commit, and advance state (Titan Paradigm Phase 4)
4-
argument-hint: <--phase N> <--target name> <--dry-run>
4+
argument-hint: <--phase N> <--target name> <--dry-run> <--yes>
55
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, Skill, Agent
66
---
77

@@ -18,6 +18,7 @@ Your goal: read `sync.json`, find the next incomplete execution phase, make the
1818
- `--phase N` → jump to specific phase
1919
- `--target <name>` → run single target only (for retrying failures)
2020
- `--dry-run` → show what would be done without changing code
21+
- `--yes` → skip confirmation prompt
2122

2223
---
2324

@@ -52,7 +53,9 @@ Your goal: read `sync.json`, find the next incomplete execution phase, make the
5253
"currentTarget": null,
5354
"completedTargets": [],
5455
"failedTargets": [],
55-
"commits": []
56+
"commits": [],
57+
"currentSubphase": null,
58+
"completedSubphases": []
5659
}
5760
}
5861
```
@@ -136,10 +139,10 @@ For each target in the current phase:
136139
```bash
137140
npm test 2>&1
138141
```
139-
If tests fail → go to rollback (step 10).
142+
If tests fail → go to rollback (step 11).
140143

141144
9. **Run /titan-gate:**
142-
Use the Skill tool to invoke `titan-gate`. If FAIL → go to rollback (step 10).
145+
Use the Skill tool to invoke `titan-gate`. If FAIL → go to rollback (step 11).
143146

144147
10. **On success:**
145148
```bash

0 commit comments

Comments
 (0)