@jakkrichm/create-nexus-devflow 2.5.0 → 2.6.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.
- package/README.md +58 -45
- package/dist/lib/branch-context.d.ts +61 -8
- package/dist/lib/branch-context.js +362 -125
- package/dist/lib/branch-context.js.map +1 -1
- package/dist/lib/core-skill-inventory.d.ts +16 -0
- package/dist/lib/core-skill-inventory.js +96 -0
- package/dist/lib/core-skill-inventory.js.map +1 -0
- package/dist/lib/doctor.js +13 -10
- package/dist/lib/doctor.js.map +1 -1
- package/dist/lib/status.d.ts +2 -0
- package/dist/lib/status.js +7 -2
- package/dist/lib/status.js.map +1 -1
- package/dist/lib/update.js +5 -8
- package/dist/lib/update.js.map +1 -1
- package/dist/scripts/prepare-template.js +19 -16
- package/dist/scripts/prepare-template.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/adopt/SKILL.md +1 -1
- package/template/.agents/skills/audit/SKILL.md +1 -1
- package/template/.agents/skills/autopilot/SKILL.md +1 -1
- package/template/.agents/skills/brainstorm/SKILL.md +1 -1
- package/template/.agents/skills/brief/SKILL.md +1 -1
- package/template/.agents/skills/check/SKILL.md +80 -75
- package/template/.agents/skills/ci/SKILL.md +1 -1
- package/template/.agents/skills/complete/SKILL.md +9 -3
- package/template/.agents/skills/convert-any-to-md/SKILL.md +1 -1
- package/template/.agents/skills/debug/SKILL.md +76 -94
- package/template/.agents/skills/devflow/SKILL.md +1 -1
- package/template/.agents/skills/discovery/SKILL.md +7 -9
- package/template/.agents/skills/doctor/SKILL.md +1 -1
- package/template/.agents/skills/feature/SKILL.md +10 -5
- package/template/.agents/skills/fix/SKILL.md +6 -8
- package/template/.agents/skills/grill/SKILL.md +1 -1
- package/template/.agents/skills/idea/SKILL.md +1 -1
- package/template/.agents/skills/implement/SKILL.md +10 -4
- package/template/.agents/skills/onboard/SKILL.md +1 -1
- package/template/.agents/skills/overview/SKILL.md +1 -1
- package/template/.agents/skills/prototype/SKILL.md +1 -1
- package/template/.agents/skills/release/SKILL.md +1 -1
- package/template/.agents/skills/report-html/SKILL.md +1 -1
- package/template/.agents/skills/rollback/SKILL.md +1 -1
- package/template/.agents/skills/status/SKILL.md +1 -1
- package/template/.agents/skills/test/SKILL.md +1 -1
- package/template/.agents/skills/tests/SKILL.md +1 -1
- package/template/.agents/skills/try/SKILL.md +1 -1
- package/template/.claude/skills/adopt/SKILL.md +1 -1
- package/template/.claude/skills/audit/SKILL.md +1 -1
- package/template/.claude/skills/autopilot/SKILL.md +1 -1
- package/template/.claude/skills/brainstorm/SKILL.md +1 -1
- package/template/.claude/skills/brief/SKILL.md +1 -1
- package/template/.claude/skills/check/SKILL.md +80 -75
- package/template/.claude/skills/ci/SKILL.md +1 -1
- package/template/.claude/skills/complete/SKILL.md +9 -3
- package/template/.claude/skills/convert-any-to-md/SKILL.md +1 -1
- package/template/.claude/skills/debug/SKILL.md +76 -94
- package/template/.claude/skills/devflow/SKILL.md +1 -1
- package/template/.claude/skills/discovery/SKILL.md +7 -9
- package/template/.claude/skills/doctor/SKILL.md +1 -1
- package/template/.claude/skills/feature/SKILL.md +10 -5
- package/template/.claude/skills/fix/SKILL.md +6 -8
- package/template/.claude/skills/grill/SKILL.md +1 -1
- package/template/.claude/skills/idea/SKILL.md +1 -1
- package/template/.claude/skills/implement/SKILL.md +10 -4
- package/template/.claude/skills/onboard/SKILL.md +1 -1
- package/template/.claude/skills/overview/SKILL.md +1 -1
- package/template/.claude/skills/prototype/SKILL.md +1 -1
- package/template/.claude/skills/release/SKILL.md +1 -1
- package/template/.claude/skills/report-html/SKILL.md +1 -1
- package/template/.claude/skills/rollback/SKILL.md +1 -1
- package/template/.claude/skills/status/SKILL.md +1 -1
- package/template/.claude/skills/test/SKILL.md +1 -1
- package/template/.claude/skills/tests/SKILL.md +1 -1
- package/template/.claude/skills/try/SKILL.md +1 -1
- package/template/AGENTS.md +1 -1
- package/template/devflow/build-plan.md +10 -0
- package/template/devflow/context/ai-interaction.md +5 -6
- package/template/devflow/context/coding-standards.md +31 -6
- package/template/devflow/context/current-stage.md +10 -7
- package/template/devflow/history/HISTORY.md +1 -1
- package/template/devflow/project-plan.md +2 -2
- package/template/devflow/reference/running-id-contract.md +24 -20
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @jakkrichm/create-nexus-devflow
|
|
2
2
|
|
|
3
|
-
Install and manage **Nexus-DevFlow
|
|
3
|
+
Install and manage **Nexus-DevFlow** — an enterprise-grade agentic workflow layer supporting **The 3-Pillars Model & Single Living Spec Model** into any web app, backend, or existing codebase.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@jakkrichm/create-nexus-devflow)
|
|
6
6
|
[](https://github.com/Jakkrich/nexus-devflow/actions/workflows/validate.yml)
|
|
@@ -25,79 +25,92 @@ npx @jakkrichm/create-nexus-devflow@latest
|
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
The installer overlays the DevFlow workflow layer into your workspace:
|
|
28
|
-
- `AGENTS.md` & `CLAUDE.md` (Universal AI guidelines)
|
|
29
|
-
- `.agents/skills/` (28 Core Skills for Google Antigravity
|
|
28
|
+
- `AGENTS.md` & `CLAUDE.md` (Universal AI guidelines & cross-tool entry point)
|
|
29
|
+
- `.agents/skills/` (28 Core Skills for Google Antigravity, OpenAI Codex, Cursor, Copilot)
|
|
30
30
|
- `.claude/skills/` (28 Core Skills for Claude Code)
|
|
31
|
-
- `devflow/ideas.md` (Idea inbox
|
|
32
|
-
- `devflow/context/` (Living spec & active
|
|
31
|
+
- `devflow/ideas.md` (Idea inbox with AI feasibility scoring)
|
|
32
|
+
- `devflow/context/` (Living spec & active delivery context)
|
|
33
33
|
- `devflow/history/` (Categorized delivery archives)
|
|
34
34
|
|
|
35
|
+
The 28 names come from the canonical bundled inventory. Local or Personal Skills
|
|
36
|
+
may coexist in a maintainer workspace, but the package builder excludes them
|
|
37
|
+
unless they are explicitly promoted into that inventory.
|
|
38
|
+
|
|
35
39
|
---
|
|
36
40
|
|
|
37
|
-
##
|
|
41
|
+
## ⚡ The Unified 4-Stage Living Spec Lifecycle
|
|
42
|
+
|
|
43
|
+
All development tasks execute through the 4-stage single living spec lifecycle:
|
|
38
44
|
|
|
39
|
-
### 1. Fast-Track (Blueprint Mode — 4 Steps)
|
|
40
|
-
*Recommended for 85% of daily work (features, bug fixes, UI improvements):*
|
|
41
45
|
```text
|
|
42
46
|
/feature (or /fix) ──▶ /implement ──▶ /check ──▶ /complete
|
|
43
47
|
```
|
|
44
48
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
```
|
|
49
|
+
1. **`feature` / `fix` (`/feature`, `/fix`)**: Combines Discover, Define, Spec, and Plan. Allocates sequential ID (`xxx-slug`) and initializes the **Single Living Spec (`devflow/context/current-feature.md`)**.
|
|
50
|
+
2. **`implement` (`/implement`)**: Incrementally executes checklist tasks with strict **TDD discipline (Red-Green-Refactor)**.
|
|
51
|
+
3. **`check` (`/check`)**: Dual-Axis review combining empirical spec fidelity with independent standards, architecture, and quality gates.
|
|
52
|
+
4. **`complete` (`/complete`)**: Final safety pass, records Release Digest, auto-archives living spec to `devflow/history/`, resets the stub, and manages the git delivery gate.
|
|
50
53
|
|
|
51
54
|
---
|
|
52
55
|
|
|
53
|
-
##
|
|
56
|
+
## 🔮 Pre-Flight Discovery Suite
|
|
54
57
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
- **`/idea`**: Capture raw ideas in `devflow/ideas.md` with instant AI feasibility scoring.
|
|
59
|
+
- **`/grill`** (or **`/align`**): Socratic alignment & domain modeling; records Architecture Decision Records (`devflow/decisions/ADR-xxx.md`).
|
|
60
|
+
- **`/brainstorm`**: Structured divergent/convergent ideation with trade-off analysis.
|
|
61
|
+
- **`/discovery`**: Deep inception and exploratory discovery (`devflow/discoveries/DISC-xxx.md`).
|
|
59
62
|
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
For failures, `/debug` follows a scientific six-phase diagnosis built around a
|
|
64
|
+
red-capable feedback loop and does not modify source. Architecture review follows
|
|
65
|
+
Deep Modules principles: small public interfaces, hidden implementation
|
|
66
|
+
complexity, and stable seams.
|
|
62
67
|
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
Maintainer contracts and examples are available in the repository:
|
|
69
|
+
[governance rules](https://github.com/Jakkrich/nexus-devflow/blob/main/docs/governance-rules.md),
|
|
70
|
+
[Markdown metadata](https://github.com/Jakkrich/nexus-devflow/blob/main/docs/markdown-metadata-contract.md),
|
|
71
|
+
[manual review workflow](https://github.com/Jakkrich/nexus-devflow/blob/main/docs/manual-review-workflow-spec.md), and
|
|
72
|
+
[Living Spec examples](https://github.com/Jakkrich/nexus-devflow/tree/main/docs/examples/living-spec).
|
|
65
73
|
|
|
66
|
-
|
|
67
|
-
npx @jakkrichm/create-nexus-devflow drift
|
|
68
|
-
npx @jakkrichm/create-nexus-devflow reconcile --fix
|
|
74
|
+
---
|
|
69
75
|
|
|
70
|
-
|
|
71
|
-
npx @jakkrichm/create-nexus-devflow studio
|
|
76
|
+
## 🌐 Web Dashboard & Real-Time Studio
|
|
72
77
|
|
|
73
|
-
|
|
74
|
-
npx @jakkrichm/create-nexus-devflow swarm
|
|
75
|
-
npx @jakkrichm/create-nexus-devflow graph --file <path>
|
|
78
|
+
Launch the local interactive Web Dashboard with 0ms SSR First Paint and Single-Flight Git caching:
|
|
76
79
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
npx @jakkrichm/create-nexus-devflow
|
|
80
|
-
npx @jakkrichm/create-nexus-devflow uninstall --keep-history -y
|
|
81
|
-
npx @jakkrichm/create-nexus-devflow eject -y
|
|
80
|
+
```bash
|
|
81
|
+
# Launch dashboard on http://127.0.0.1:4318
|
|
82
|
+
npx @jakkrichm/create-nexus-devflow dashboard
|
|
82
83
|
```
|
|
83
84
|
|
|
84
85
|
---
|
|
85
86
|
|
|
86
|
-
##
|
|
87
|
+
## 🛠️ CLI Management Commands
|
|
87
88
|
|
|
88
|
-
|
|
89
|
+
```bash
|
|
90
|
+
# Start Web Dashboard
|
|
91
|
+
npx @jakkrichm/create-nexus-devflow dashboard [--port 4318]
|
|
89
92
|
|
|
93
|
+
# Automated Quality Gatekeeper & Pre-commit Hooks
|
|
94
|
+
npx @jakkrichm/create-nexus-devflow check-gate [--strict]
|
|
95
|
+
npx @jakkrichm/create-nexus-devflow hook install pre-commit
|
|
90
96
|
|
|
91
|
-
|
|
97
|
+
# Model Context Protocol (MCP) Server Hub (12 Native Tools)
|
|
98
|
+
npx @jakkrichm/create-nexus-devflow mcp
|
|
92
99
|
|
|
93
|
-
|
|
100
|
+
# Just-In-Time (JIT) Dynamic Context Slicing
|
|
101
|
+
npx @jakkrichm/create-nexus-devflow slice --stage implement
|
|
102
|
+
|
|
103
|
+
# Git Diff Drift Detection & Reconciler
|
|
104
|
+
npx @jakkrichm/create-nexus-devflow drift
|
|
105
|
+
npx @jakkrichm/create-nexus-devflow reconcile
|
|
94
106
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
107
|
+
# Multi-Agent Swarm & Code Graph
|
|
108
|
+
npx @jakkrichm/create-nexus-devflow swarm
|
|
109
|
+
npx @jakkrichm/create-nexus-devflow graph --file src/index.ts
|
|
110
|
+
|
|
111
|
+
# Framework Update & Safety Rollback
|
|
112
|
+
npx @jakkrichm/create-nexus-devflow update [--check]
|
|
113
|
+
```
|
|
101
114
|
|
|
102
115
|
---
|
|
103
116
|
|
|
@@ -7,29 +7,82 @@ export interface ActiveContextPaths {
|
|
|
7
7
|
stagePath: string;
|
|
8
8
|
findingsPath: string;
|
|
9
9
|
}
|
|
10
|
+
export interface RunContextPaths {
|
|
11
|
+
isMultiRun: boolean;
|
|
12
|
+
runId: string | null;
|
|
13
|
+
runDir: string | null;
|
|
14
|
+
specPath: string;
|
|
15
|
+
stagePath: string;
|
|
16
|
+
findingsPath: string;
|
|
17
|
+
globalOverviewPath: string;
|
|
18
|
+
globalStandardsPath: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ActiveRunSummary {
|
|
21
|
+
runId: string;
|
|
22
|
+
title: string;
|
|
23
|
+
status: string;
|
|
24
|
+
track: string;
|
|
25
|
+
branch: string;
|
|
26
|
+
totalTasks: number;
|
|
27
|
+
completedTasks: number;
|
|
28
|
+
remainingTasks: number;
|
|
29
|
+
hasOpenFindings: boolean;
|
|
30
|
+
runDir: string;
|
|
31
|
+
specPath: string;
|
|
32
|
+
}
|
|
33
|
+
export interface InitRunOptions {
|
|
34
|
+
branch?: string;
|
|
35
|
+
track?: string;
|
|
36
|
+
status?: string;
|
|
37
|
+
initialSpec?: string;
|
|
38
|
+
}
|
|
10
39
|
/**
|
|
11
40
|
* Sanitizes a Git branch name into a cross-platform safe directory name.
|
|
12
41
|
* e.g. "feature/044-auth#login" -> "feature-044-auth-login"
|
|
13
42
|
*/
|
|
14
43
|
export declare function sanitizeBranchName(branch: string): string;
|
|
15
44
|
/**
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
45
|
+
* Lists all active run contexts under devflow/context/{xxx-slug}/
|
|
46
|
+
*/
|
|
47
|
+
export declare function listActiveRunContexts(projectRoot: string): Promise<ActiveRunSummary[]>;
|
|
48
|
+
/**
|
|
49
|
+
* Fuzzy matches a user input string to an ActiveRunSummary.
|
|
50
|
+
* Matches:
|
|
51
|
+
* 1. Exact runId
|
|
52
|
+
* 2. Leading number (e.g. "1" -> "001-*", "12" -> "012-*")
|
|
53
|
+
* 3. Case-insensitive substring match in runId or title
|
|
54
|
+
*/
|
|
55
|
+
export declare function fuzzyMatchRunId(targetInput: string, activeRuns: ActiveRunSummary[]): ActiveRunSummary | null;
|
|
56
|
+
/**
|
|
57
|
+
* Resolves active run context with Multi-Run and fallback support.
|
|
58
|
+
*/
|
|
59
|
+
export declare function resolveActiveRunContext(projectRoot: string, targetIdOrBranch?: string): Promise<RunContextPaths>;
|
|
60
|
+
/**
|
|
61
|
+
* Initializes a new run context under devflow/context/{runId}/
|
|
62
|
+
*/
|
|
63
|
+
export declare function initRunContext(projectRoot: string, runId: string, title: string, options?: InitRunOptions): Promise<RunContextPaths>;
|
|
64
|
+
/**
|
|
65
|
+
* Cleans up a run context directory after completion.
|
|
66
|
+
*/
|
|
67
|
+
export declare function cleanupRunContext(projectRoot: string, runId: string): Promise<boolean>;
|
|
68
|
+
/**
|
|
69
|
+
* Calculates the next sequential 3-digit running ID by scanning history archives and active run contexts.
|
|
70
|
+
*/
|
|
71
|
+
export declare function calculateNextRunningId(projectRoot: string): Promise<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Resolves active context paths for the current repository and git branch (Legacy/Interoperable helper).
|
|
21
74
|
*/
|
|
22
75
|
export declare function resolveActiveContextPaths(projectRoot: string, explicitBranch?: string): Promise<ActiveContextPaths>;
|
|
23
76
|
/**
|
|
24
|
-
* Initializes a branch-scoped context directory
|
|
77
|
+
* Initializes a branch-scoped context directory (Backward compatibility wrapper).
|
|
25
78
|
*/
|
|
26
79
|
export declare function initBranchContext(projectRoot: string, branchName: string, initialSpec?: string, useDevflowContextDir?: boolean): Promise<ActiveContextPaths>;
|
|
27
80
|
/**
|
|
28
|
-
* Cleans up branch-scoped context directories
|
|
81
|
+
* Cleans up branch-scoped context directories (Backward compatibility wrapper).
|
|
29
82
|
*/
|
|
30
83
|
export declare function cleanupBranchContext(projectRoot: string, branchName: string): Promise<boolean>;
|
|
31
84
|
/**
|
|
32
|
-
* Lists all active branch isolated contexts.
|
|
85
|
+
* Lists all active branch isolated contexts (Backward compatibility wrapper).
|
|
33
86
|
*/
|
|
34
87
|
export declare function listBranchContexts(projectRoot: string): Promise<Array<{
|
|
35
88
|
branch: string;
|