@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.
Files changed (81) hide show
  1. package/README.md +58 -45
  2. package/dist/lib/branch-context.d.ts +61 -8
  3. package/dist/lib/branch-context.js +362 -125
  4. package/dist/lib/branch-context.js.map +1 -1
  5. package/dist/lib/core-skill-inventory.d.ts +16 -0
  6. package/dist/lib/core-skill-inventory.js +96 -0
  7. package/dist/lib/core-skill-inventory.js.map +1 -0
  8. package/dist/lib/doctor.js +13 -10
  9. package/dist/lib/doctor.js.map +1 -1
  10. package/dist/lib/status.d.ts +2 -0
  11. package/dist/lib/status.js +7 -2
  12. package/dist/lib/status.js.map +1 -1
  13. package/dist/lib/update.js +5 -8
  14. package/dist/lib/update.js.map +1 -1
  15. package/dist/scripts/prepare-template.js +19 -16
  16. package/dist/scripts/prepare-template.js.map +1 -1
  17. package/package.json +1 -1
  18. package/template/.agents/skills/adopt/SKILL.md +1 -1
  19. package/template/.agents/skills/audit/SKILL.md +1 -1
  20. package/template/.agents/skills/autopilot/SKILL.md +1 -1
  21. package/template/.agents/skills/brainstorm/SKILL.md +1 -1
  22. package/template/.agents/skills/brief/SKILL.md +1 -1
  23. package/template/.agents/skills/check/SKILL.md +80 -75
  24. package/template/.agents/skills/ci/SKILL.md +1 -1
  25. package/template/.agents/skills/complete/SKILL.md +9 -3
  26. package/template/.agents/skills/convert-any-to-md/SKILL.md +1 -1
  27. package/template/.agents/skills/debug/SKILL.md +76 -94
  28. package/template/.agents/skills/devflow/SKILL.md +1 -1
  29. package/template/.agents/skills/discovery/SKILL.md +7 -9
  30. package/template/.agents/skills/doctor/SKILL.md +1 -1
  31. package/template/.agents/skills/feature/SKILL.md +10 -5
  32. package/template/.agents/skills/fix/SKILL.md +6 -8
  33. package/template/.agents/skills/grill/SKILL.md +1 -1
  34. package/template/.agents/skills/idea/SKILL.md +1 -1
  35. package/template/.agents/skills/implement/SKILL.md +10 -4
  36. package/template/.agents/skills/onboard/SKILL.md +1 -1
  37. package/template/.agents/skills/overview/SKILL.md +1 -1
  38. package/template/.agents/skills/prototype/SKILL.md +1 -1
  39. package/template/.agents/skills/release/SKILL.md +1 -1
  40. package/template/.agents/skills/report-html/SKILL.md +1 -1
  41. package/template/.agents/skills/rollback/SKILL.md +1 -1
  42. package/template/.agents/skills/status/SKILL.md +1 -1
  43. package/template/.agents/skills/test/SKILL.md +1 -1
  44. package/template/.agents/skills/tests/SKILL.md +1 -1
  45. package/template/.agents/skills/try/SKILL.md +1 -1
  46. package/template/.claude/skills/adopt/SKILL.md +1 -1
  47. package/template/.claude/skills/audit/SKILL.md +1 -1
  48. package/template/.claude/skills/autopilot/SKILL.md +1 -1
  49. package/template/.claude/skills/brainstorm/SKILL.md +1 -1
  50. package/template/.claude/skills/brief/SKILL.md +1 -1
  51. package/template/.claude/skills/check/SKILL.md +80 -75
  52. package/template/.claude/skills/ci/SKILL.md +1 -1
  53. package/template/.claude/skills/complete/SKILL.md +9 -3
  54. package/template/.claude/skills/convert-any-to-md/SKILL.md +1 -1
  55. package/template/.claude/skills/debug/SKILL.md +76 -94
  56. package/template/.claude/skills/devflow/SKILL.md +1 -1
  57. package/template/.claude/skills/discovery/SKILL.md +7 -9
  58. package/template/.claude/skills/doctor/SKILL.md +1 -1
  59. package/template/.claude/skills/feature/SKILL.md +10 -5
  60. package/template/.claude/skills/fix/SKILL.md +6 -8
  61. package/template/.claude/skills/grill/SKILL.md +1 -1
  62. package/template/.claude/skills/idea/SKILL.md +1 -1
  63. package/template/.claude/skills/implement/SKILL.md +10 -4
  64. package/template/.claude/skills/onboard/SKILL.md +1 -1
  65. package/template/.claude/skills/overview/SKILL.md +1 -1
  66. package/template/.claude/skills/prototype/SKILL.md +1 -1
  67. package/template/.claude/skills/release/SKILL.md +1 -1
  68. package/template/.claude/skills/report-html/SKILL.md +1 -1
  69. package/template/.claude/skills/rollback/SKILL.md +1 -1
  70. package/template/.claude/skills/status/SKILL.md +1 -1
  71. package/template/.claude/skills/test/SKILL.md +1 -1
  72. package/template/.claude/skills/tests/SKILL.md +1 -1
  73. package/template/.claude/skills/try/SKILL.md +1 -1
  74. package/template/AGENTS.md +1 -1
  75. package/template/devflow/build-plan.md +10 -0
  76. package/template/devflow/context/ai-interaction.md +5 -6
  77. package/template/devflow/context/coding-standards.md +31 -6
  78. package/template/devflow/context/current-stage.md +10 -7
  79. package/template/devflow/history/HISTORY.md +1 -1
  80. package/template/devflow/project-plan.md +2 -2
  81. 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 2.0** — an agentic workflow layer supporting **The 3-Pillars Model & Dual-Track Delivery** into any web app, backend, or existing codebase.
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
  [![npm version](https://img.shields.io/npm/v/@jakkrichm/create-nexus-devflow?style=flat-square&color=155eef)](https://www.npmjs.com/package/@jakkrichm/create-nexus-devflow)
6
6
  [![Validate DevFlow](https://github.com/Jakkrich/nexus-devflow/actions/workflows/validate.yml/badge.svg)](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 & OpenAI Codex)
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 & backlog)
32
- - `devflow/context/` (Living spec & active state)
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
- ## 🏎️ Dual-Track Delivery Model
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
- ### 2. Deep-Track (Architect Mode 8 Steps)
46
- *Recommended for large architectural epics and database migrations:*
47
- ```text
48
- discovery ──▶ 10-define ──▶ 20-spec ──▶ 30-plan ──▶ 40-execute ──▶ 50-verify ──▶ 60-report ──▶ 70-deliver
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
- ## 🛠️ CLI Management Commands
56
+ ## 🔮 Pre-Flight Discovery Suite
54
57
 
55
- ```bash
56
- # Quality Gatekeeper & Pre-commit Hooks
57
- npx @jakkrichm/create-nexus-devflow check-gate [--strict]
58
- npx @jakkrichm/create-nexus-devflow hook install pre-commit
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
- # Model Context Protocol (MCP) Server Hub
61
- npx @jakkrichm/create-nexus-devflow mcp
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
- # JIT Dynamic Context Slicing (60-70% Token Savings)
64
- npx @jakkrichm/create-nexus-devflow slice --stage implement
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
- # Git Drift Detection & Self-Healing State
67
- npx @jakkrichm/create-nexus-devflow drift
68
- npx @jakkrichm/create-nexus-devflow reconcile --fix
74
+ ---
69
75
 
70
- # Visual Webview Studio Dashboard
71
- npx @jakkrichm/create-nexus-devflow studio
76
+ ## 🌐 Web Dashboard & Real-Time Studio
72
77
 
73
- # Multi-Agent Swarm Orchestration & Code Graph Blast Radius
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
- # Status & Updates
78
- npx @jakkrichm/create-nexus-devflow status
79
- npx @jakkrichm/create-nexus-devflow update
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
- ## 🤖 Model Context Protocol (MCP) Server & Tools
87
+ ## 🛠️ CLI Management Commands
87
88
 
88
- Exposes 12 typed MCP tools for AI Coding Agents (`devflow_get_status`, `devflow_get_sliced_context`, `devflow_get_context`, `devflow_query_code_graph`, `devflow_swarm_plan`, `devflow_detect_drift`, `devflow_reconcile_state`, `devflow_evaluate_gate`, `devflow_get_studio_html`, `devflow_add_idea`, `devflow_record_finding`, `devflow_resolve_finding`).
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
- ## 🤖 Tool Support & Invocation
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
- | Tool | Installed Adapter | Example Invocations |
96
- | :--- | :--- | :--- |
97
- | **Google Antigravity** | `.agents/skills/` | `/feature`, `/fix`, `/implement`, `/devflow`, `/adopt`, `/doctor` |
98
- | **OpenAI Codex** | `.agents/skills/` | `$feature`, `$fix`, `$implement`, `$devflow`, `$adopt`, `$doctor` |
99
- | **Claude Code** | `.claude/skills/` | `/feature`, `/fix`, `/implement`, `/devflow`, `/adopt`, `/doctor` |
100
- | **Cursor / Others** | `AGENTS.md` + `.agents/` | Follow `SKILL.md` or invoke matching command names |
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
- * Resolves active context paths for the current repository and git branch.
17
- * Checks for branch-isolated context in:
18
- * 1. devflow/context/<sanitized>/ (Primary user-visible multi-dev location)
19
- * 2. .nexus/branches/<sanitized>/ (Internal branch cache)
20
- * 3. devflow/context/ (Default fallback)
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 under devflow/context/<sanitized>/ (or .nexus/branches/)
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 after completion.
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;