@boyingliu01/xp-gate 0.14.5 → 0.14.7
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/adapters/plugins/whalecloud-java/scripts/install-maven-whalecloud.sh +4 -2
- package/lib/__tests__/sprint-status.test.ts +9 -18
- package/lib/sprint-status.js +3 -4
- package/mock-policy/AGENTS.md +3 -3
- package/mutation/AGENTS.md +3 -3
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +4 -4
- package/plugins/claude-code/skills/delphi-review/SKILL.md +62 -3
- package/plugins/claude-code/skills/delphi-review/hooks.md +19 -0
- package/plugins/claude-code/skills/delphi-review/scripts/verify-consensus.sh +43 -0
- package/plugins/claude-code/skills/delphi-review/tools.md +29 -0
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +4 -4
- package/plugins/claude-code/skills/sprint-flow/SKILL.md +3 -0
- package/plugins/claude-code/skills/sprint-flow/__tests__/sprint-flow.test.cjs +4 -2
- package/plugins/claude-code/skills/sprint-flow/hooks.md +18 -0
- package/plugins/claude-code/skills/sprint-flow/scripts/verify-sprint-state.sh +38 -0
- package/plugins/claude-code/skills/sprint-flow/tools.md +29 -0
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +4 -4
- package/plugins/opencode/README.md +14 -0
- package/plugins/opencode/index.ts +72 -0
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +4 -4
- package/plugins/opencode/skills/delphi-review/SKILL.md +62 -3
- package/plugins/opencode/skills/delphi-review/hooks.md +19 -0
- package/plugins/opencode/skills/delphi-review/scripts/verify-consensus.sh +43 -0
- package/plugins/opencode/skills/delphi-review/tools.md +29 -0
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +4 -4
- package/plugins/opencode/skills/sprint-flow/SKILL.md +3 -0
- package/plugins/opencode/skills/sprint-flow/__tests__/sprint-flow.test.cjs +4 -2
- package/plugins/opencode/skills/sprint-flow/hooks.md +18 -0
- package/plugins/opencode/skills/sprint-flow/scripts/verify-sprint-state.sh +38 -0
- package/plugins/opencode/skills/sprint-flow/tools.md +29 -0
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +4 -4
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +4 -4
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +4 -4
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +4 -4
- package/principles/AGENTS.md +3 -3
- package/skills/delphi-review/AGENTS.md +4 -4
- package/skills/delphi-review/SKILL.md +62 -3
- package/skills/delphi-review/hooks.md +19 -0
- package/skills/delphi-review/scripts/verify-consensus.sh +43 -0
- package/skills/delphi-review/tools.md +29 -0
- package/skills/sprint-flow/AGENTS.md +4 -4
- package/skills/sprint-flow/SKILL.md +3 -0
- package/skills/sprint-flow/__tests__/sprint-flow.test.cjs +4 -2
- package/skills/sprint-flow/hooks.md +18 -0
- package/skills/sprint-flow/scripts/verify-sprint-state.sh +38 -0
- package/skills/sprint-flow/tools.md +29 -0
- package/skills/test-specification-alignment/AGENTS.md +4 -4
|
@@ -200,6 +200,9 @@ Every phase MUST output its header as the first line of that phase's output. For
|
|
|
200
200
|
4. On `/sprint-flow` trigger, first line MUST output: `Sprint Flow: PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE`
|
|
201
201
|
5. Each phase completion MUST write Phase Summary to `.sprint-state/phase-outputs/phase-{N}-summary.md`
|
|
202
202
|
6. Each phase completion MUST update `.sprint-state/sprint-state.json`
|
|
203
|
+
|
|
204
|
+
### Required Rendering (MANDATORY per phase)
|
|
205
|
+
|
|
203
206
|
7. Each phase completion MUST render the ASCII progress dashboard using `templates/sprint-progress-template.md` — the orchestrator reads `sprint-state.json` and outputs the dashboard after every phase's status block, so the user always sees current global progress without needing to ask
|
|
204
207
|
|
|
205
208
|
### Phase Output Status Schema (MANDATORY per phase)
|
|
@@ -29,10 +29,12 @@ function contentIncludes(str) {
|
|
|
29
29
|
return skillContent.includes(str) || phaseOverviewContent.includes(str);
|
|
30
30
|
}
|
|
31
31
|
function contentSplit(str) {
|
|
32
|
-
// Return the part after str from whichever file contains it
|
|
32
|
+
// Return the part after str from whichever file contains it.
|
|
33
|
+
// Throws descriptive error instead of returning undefined so callers
|
|
34
|
+
// get a clear assertion message rather than a TypeError crash.
|
|
33
35
|
if (skillContent.includes(str)) return skillContent.split(str)[1];
|
|
34
36
|
if (phaseOverviewContent.includes(str)) return phaseOverviewContent.split(str)[1];
|
|
35
|
-
|
|
37
|
+
throw new Error(`Section "${str}" not found in SKILL.md or references/phase-overview.md`);
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
function parseFrontmatter(content) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Hooks — Sprint Flow
|
|
2
|
+
|
|
3
|
+
Sprint Flow integrates with safety and operational hooks to protect the development environment.
|
|
4
|
+
|
|
5
|
+
## Security Hooks
|
|
6
|
+
|
|
7
|
+
| Hook | Purpose | Activation |
|
|
8
|
+
|------|---------|------------|
|
|
9
|
+
| `/careful` | Safety guardrails for destructive commands | Activate before any `rm`, `force-push`, or `git reset` |
|
|
10
|
+
| `/freeze` | Restrict edits to sprint worktree directory | Prevent accidental changes outside sprint scope |
|
|
11
|
+
| `/guard` | Full safety mode (careful + freeze) | Maximum protection for high-risk operations |
|
|
12
|
+
|
|
13
|
+
## Operational Hooks
|
|
14
|
+
|
|
15
|
+
| Hook | Purpose | Activation |
|
|
16
|
+
|------|---------|------------|
|
|
17
|
+
| `/context-save` | Save sprint context before pause or handoff | Before pausing sprint or switching tasks |
|
|
18
|
+
| `/context-restore` | Restore sprint context on resume | When resuming from pause or handoff |
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# sprint-flow: Verify sprint state integrity
|
|
3
|
+
# Checks that sprint-state.json is valid JSON and all expected keys exist.
|
|
4
|
+
#
|
|
5
|
+
# Usage: bash verify-sprint-state.sh [sprint-state-dir]
|
|
6
|
+
|
|
7
|
+
set -euo pipefail
|
|
8
|
+
|
|
9
|
+
STATE_DIR="${1:-.sprint-state}"
|
|
10
|
+
STATE_FILE="$STATE_DIR/sprint-state.json"
|
|
11
|
+
|
|
12
|
+
if [ ! -f "$STATE_FILE" ]; then
|
|
13
|
+
echo "SKIP: No sprint-state.json found at $STATE_FILE"
|
|
14
|
+
exit 0
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
# Validate JSON
|
|
18
|
+
if ! command -v node &>/dev/null; then
|
|
19
|
+
echo "WARN: node not available, skipping JSON validation"
|
|
20
|
+
exit 0
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
node -e "
|
|
24
|
+
const fs = require('fs');
|
|
25
|
+
try {
|
|
26
|
+
const data = JSON.parse(fs.readFileSync('$STATE_FILE', 'utf8'));
|
|
27
|
+
const requiredKeys = ['sprint_id', 'status', 'current_phase', 'phases'];
|
|
28
|
+
const missing = requiredKeys.filter(k => !(k in data));
|
|
29
|
+
if (missing.length > 0) {
|
|
30
|
+
console.error('ERROR: Missing required keys in sprint-state.json:', missing.join(', '));
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
console.log('OK: sprint-state.json is valid with all required keys');
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error('ERROR: sprint-state.json is not valid JSON:', e.message);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
38
|
+
"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Tools Whitelist — Sprint Flow
|
|
2
|
+
|
|
3
|
+
Sprint Flow is an **orchestration skill** that coordinates subagents and system commands.
|
|
4
|
+
It does NOT implement code directly — it delegates implementation to subagents.
|
|
5
|
+
|
|
6
|
+
## Allowed Tools
|
|
7
|
+
|
|
8
|
+
| Tool | Usage | Rationale |
|
|
9
|
+
|------|-------|-----------|
|
|
10
|
+
| `Bash(git, gh, npm, node)` | git worktree/branch/commit, gh PR/release, npm/node CLI | Required for sprint infrastructure management |
|
|
11
|
+
| `Read` | Read project files, configs, docs | Required for context gathering |
|
|
12
|
+
| `Write` | Write sprint-state, specification.yaml, phase summaries | Required for sprint state persistence |
|
|
13
|
+
| `Edit` | Edit sprint-state, CHANGELOG, VERSION | Required for version management |
|
|
14
|
+
| `Glob` | Find project files by pattern | Required for project discovery |
|
|
15
|
+
| `Grep` | Search file contents | Required for codebase understanding |
|
|
16
|
+
| `Task` | Delegate to subagents (quick, deep, unspecified-high) | Core orchestration mechanism |
|
|
17
|
+
| `Skill` | Invoke integrated skills (brainstorming, autoplan, delphi-review, etc.) | Required for skill chain execution |
|
|
18
|
+
| `TodoWrite` | Track sprint progress | Required for progress visibility |
|
|
19
|
+
| `Question` | Ask user at decision gates | Required for user decision points |
|
|
20
|
+
|
|
21
|
+
## Denied Tools
|
|
22
|
+
|
|
23
|
+
| Tool | Rationale |
|
|
24
|
+
|------|-----------|
|
|
25
|
+
| `rm -rf (any recursive force remove)` | Destructive — sprint flow only cleans up via `git worktree remove` |
|
|
26
|
+
| `git push --force` | Destructive — never force push during sprint |
|
|
27
|
+
| `DROP TABLE or destructive DB operations` | Destructive — sprint flow orchestrates, does not manage databases |
|
|
28
|
+
| `Write(source code)` | Sprint flow NEVER writes implementation code directly — delegates to subagents via `Task` |
|
|
29
|
+
| `Edit(source code)` | Sprint flow NEVER edits implementation code — delegates to subagents via `Task` |
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-07-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.14.
|
|
3
|
+
**Generated:** 2026-07-10
|
|
4
|
+
**Commit:** a9276f6
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.14.6.2
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|