@jakkrichm/create-nexus-devflow 2.17.8 → 2.18.0

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 (86) hide show
  1. package/README.md +9 -10
  2. package/dist/bin/create-nexus-devflow.js +52 -80
  3. package/dist/bin/create-nexus-devflow.js.map +1 -1
  4. package/dist/lib/doctor.js +0 -27
  5. package/dist/lib/doctor.js.map +1 -1
  6. package/dist/lib/history.js +2 -2
  7. package/dist/lib/history.js.map +1 -1
  8. package/dist/lib/skill-registry-engine.js +3 -3
  9. package/dist/lib/skill-registry-engine.js.map +1 -1
  10. package/dist/lib/tooling/commands/scan-doc-contract.js +1 -0
  11. package/dist/lib/tooling/commands/scan-doc-contract.js.map +1 -1
  12. package/dist/lib/ui.d.ts +0 -23
  13. package/dist/lib/ui.js +0 -85
  14. package/dist/lib/ui.js.map +1 -1
  15. package/dist/lib/update.d.ts +6 -1
  16. package/dist/lib/update.js +78 -7
  17. package/dist/lib/update.js.map +1 -1
  18. package/dist/scripts/prepare-template.js +7 -3
  19. package/dist/scripts/prepare-template.js.map +1 -1
  20. package/package.json +1 -1
  21. package/template/.agents/skills/audit/SKILL.md +1 -4
  22. package/template/.agents/skills/brainstorm/SKILL.md +4 -5
  23. package/template/.agents/skills/bughunter/SKILL.md +1 -1
  24. package/template/.agents/skills/check/SKILL.md +116 -26
  25. package/template/.agents/skills/check/reference/guide.md +17 -53
  26. package/template/.agents/skills/ci/SKILL.md +13 -35
  27. package/template/.agents/skills/complete/SKILL.md +0 -2
  28. package/template/.agents/skills/devflow/SKILL.md +2 -3
  29. package/template/.agents/skills/discovery/SKILL.md +0 -9
  30. package/template/.agents/skills/doctor/SKILL.md +6 -6
  31. package/template/.agents/skills/feature/SKILL.md +1 -4
  32. package/template/.agents/skills/feature/reference/feature-spec-template.md +16 -16
  33. package/template/.agents/skills/fix/SKILL.md +3 -3
  34. package/template/.agents/skills/grill/SKILL.md +1 -6
  35. package/template/.agents/skills/idea/SKILL.md +6 -6
  36. package/template/.agents/skills/implement/SKILL.md +119 -45
  37. package/template/.agents/skills/setup-tests/reference/browser.md +95 -0
  38. package/template/.agents/skills/test/SKILL.md +0 -26
  39. package/template/.claude/skills/audit/SKILL.md +1 -4
  40. package/template/.claude/skills/brainstorm/SKILL.md +4 -5
  41. package/template/.claude/skills/bughunter/SKILL.md +1 -1
  42. package/template/.claude/skills/check/SKILL.md +116 -26
  43. package/template/.claude/skills/check/reference/guide.md +17 -53
  44. package/template/.claude/skills/ci/SKILL.md +13 -35
  45. package/template/.claude/skills/complete/SKILL.md +0 -2
  46. package/template/.claude/skills/devflow/SKILL.md +2 -3
  47. package/template/.claude/skills/discovery/SKILL.md +3 -11
  48. package/template/.claude/skills/doctor/SKILL.md +6 -6
  49. package/template/.claude/skills/feature/SKILL.md +1 -4
  50. package/template/.claude/skills/feature/reference/feature-spec-template.md +16 -16
  51. package/template/.claude/skills/fix/SKILL.md +3 -3
  52. package/template/.claude/skills/grill/SKILL.md +1 -6
  53. package/template/.claude/skills/idea/SKILL.md +6 -6
  54. package/template/.claude/skills/implement/SKILL.md +119 -45
  55. package/template/.claude/skills/setup-tests/reference/browser.md +95 -0
  56. package/template/.claude/skills/test/SKILL.md +0 -26
  57. package/template/AGENTS.md +39 -17
  58. package/template/devflow/build-plan.md +1 -1
  59. package/template/devflow/context/ai-interaction.md +14 -15
  60. package/template/devflow/context/coding-standards.md +19 -68
  61. package/template/devflow/context/glossary.md +6 -26
  62. package/template/devflow/decisions/README.md +1 -15
  63. package/template/devflow/docs/USAGE.md +194 -0
  64. package/template/devflow/docs/diagrams/nexus-devflow-architecture.html +14821 -0
  65. package/template/devflow/docs/diagrams/nexus-devflow-architecture.json +80 -0
  66. package/template/devflow/docs/diagrams/nexus-devflow-lifecycle.html +14860 -0
  67. package/template/devflow/docs/diagrams/nexus-devflow-lifecycle.json +88 -0
  68. package/template/devflow/docs/examples/living-spec/adr.example.md +43 -0
  69. package/template/devflow/docs/examples/living-spec/current-feature.example.md +113 -0
  70. package/template/devflow/docs/examples/living-spec/discovery.example.md +45 -0
  71. package/template/devflow/docs/examples/living-spec/ideas.example.md +22 -0
  72. package/template/devflow/docs/governance-rules.md +39 -0
  73. package/template/devflow/docs/manual-review-workflow-spec.md +116 -0
  74. package/template/devflow/docs/markdown-metadata-contract.md +140 -0
  75. package/template/devflow/docs/quickstart.md +124 -0
  76. package/template/devflow/docs/release-process.md +52 -0
  77. package/template/devflow/docs/skill-selection-policy.md +64 -0
  78. package/template/devflow/docs/workflow-surface-map.md +85 -0
  79. package/template/devflow/reference/feature-spec-template.md +79 -59
  80. package/template/devflow/runs/.gitkeep +1 -0
  81. package/template/.agents/skills/check/reference/verify.md +0 -129
  82. package/template/.agents/skills/explore/SKILL.md +0 -78
  83. package/template/.claude/skills/check/reference/verify.md +0 -129
  84. package/template/.claude/skills/explore/SKILL.md +0 -78
  85. package/template/devflow/reference/help-playbook-protocol.md +0 -33
  86. package/template/devflow/reference/slicing-archetypes.md +0 -105
@@ -0,0 +1,124 @@
1
+ # Quickstart Guide
2
+
3
+ Getting started with **Nexus-DevFlow 2.13.0** — an enterprise agentic workflow layer supporting **The 3-Pillars Workspace Architecture & Pure Task-Isolated Living Spec Model** for Google Antigravity, OpenAI Codex, Claude Code, Cursor, GitHub Copilot, and other AI IDEs.
4
+
5
+ ---
6
+
7
+ ## 1. Client Installation
8
+
9
+ In your terminal, navigate to your target project folder (either a fresh scaffold or an existing codebase):
10
+
11
+ ```bash
12
+ # Automated install (Recommended)
13
+ npx -y @jakkrichm/create-nexus-devflow@latest -y
14
+
15
+ # Interactive install (Select specific tool adapters)
16
+ npx @jakkrichm/create-nexus-devflow@latest
17
+ ```
18
+
19
+ This overlays the `.agents/`, `.claude/`, and `devflow/` workflow structures into your repository without modifying your existing application source code.
20
+
21
+ ---
22
+
23
+ ## 2. Project Baseline Setup
24
+
25
+ Open your AI IDE (Antigravity, Claude Code, Codex, or Cursor) and run the appropriate starting command in the chat:
26
+
27
+ | Situation | Starting Command | Purpose |
28
+ | :--- | :--- | :--- |
29
+ | **Existing Codebase (Brownfield)** | `/adopt` *(or `$adopt`)* | Surveys your codebase, creates baseline planning docs, coding standards, and registers project context. |
30
+ | **Fresh Project (Scaffolded)** | `/onboard` *(or `$onboard`)* | Configures project metadata, stack commands, coding standards, and tool adapters. |
31
+ | **Health & Setup Check** | `/doctor` *(or `$doctor`)* | Read-only diagnostic checking adapters, config files, commands, and workflow integrity. |
32
+ | **Interactive Navigation** | `/devflow` *(or `$devflow`)* | Flagship guide that analyzes workspace state and recommends the exact next action. |
33
+
34
+ ---
35
+
36
+ ## 3. The Unified 4-Stage Task-Isolated Living Spec Lifecycle
37
+
38
+ All development tasks (from small UI fixes to deep architectural features) execute through the 4-stage task-isolated living spec lifecycle:
39
+
40
+ ```text
41
+ /feature (or /fix) ──▶ /implement ──▶ /check ──▶ /complete
42
+ ```
43
+
44
+ 1. **`/feature {title}`** (or **`/fix {bug}`**): Allocates sequential ID (`xxx-slug`) and initializes the Task-Isolated Living Spec in `devflow/context/{xxx-slug}/spec.md`, stage pointer (`stage.md`), and dedicated audit ledger (`findings.md`).
45
+ 2. **`/implement [id]`**: Incrementally executes checklist tasks in `devflow/context/{xxx-slug}/spec.md` with strict TDD discipline (Red-Green-Refactor).
46
+ 3. **`/check [id]`**: Senior QA multi-lane verification (Typecheck, Lint, Test suites, and behavioral manual proof), records empirical proof into `spec.md` and findings into `findings.md`.
47
+ 4. **`/complete [id]`**: Final safety audit, records Release Digest, auto-archives to `devflow/history/{features|fixes|rollbacks}/{xxx-slug}.md`, cleanly removes `devflow/context/{xxx-slug}/`, updates `HISTORY.md` and `build-plan.md`, and manages git squash-merge.
48
+
49
+ ---
50
+
51
+ ## 4. Pre-Flight Discovery, SA & Architectural Alignment
52
+
53
+ For debugging, TDD, and independent review, see the
54
+ [English JIT reference guides](USAGE.md#debugging-tdd--review-reference-guides).
55
+ Use them through `debug`, `implement`, and `audit`; they are bundled supporting
56
+ files, not additional commands or a separate plugin installation.
57
+
58
+ Before committing to delivery, use specialized companion skills to refine complex requirements:
59
+
60
+ ```text
61
+ /analyze ──▶ /idea (Inbox) ──▶ /grill (Socratic ADR) ──▶ /discovery (Explore) ──▶ /feature (Deliver)
62
+ ```
63
+
64
+ - **`/analyze`**: Multi-format requirement ingestion (PDF, Word, Excel, Images) and codebase impact scan.
65
+ - **`/idea`**: Quick idea capture in `devflow/ideas.md` with instant AI feasibility scoring.
66
+ - **`/grill`** (or **`/align`**): Socratic alignment & domain modeling; records Architecture Decision Records (`devflow/decisions/ADR-xxx.md`).
67
+ - **`/brainstorm`**: Structured ideation with trade-off analysis.
68
+ - **`/discovery`**: Deep inception and exploratory discovery (`devflow/discoveries/DISC-xxx.md`).
69
+
70
+ ---
71
+
72
+ ## 5. The 3-Pillars Workspace Architecture
73
+
74
+ ```text
75
+ devflow/
76
+ ├── ideas.md # 🔮 Future (Backlog): Idea Inbox with AI scoring
77
+ ├── project-plan.md # 🔮 Future (Backlog): Product Vision & Architectural Roadmap
78
+ ├── build-plan.md # 🔮 Future (Backlog): Master Feature Delivery Sequence
79
+ ├── context/ # ⚡ Present (Active Context): Global Truth & Task Workspaces
80
+ │ ├── project-overview.md # Single Source of Truth
81
+ │ ├── coding-standards.md # Engineering standards & conventions
82
+ │ ├── ai-interaction.md # AI interaction guidelines
83
+ │ ├── glossary.md # Domain glossary & architecture terms
84
+ │ └── {xxx-slug}/ # Active Task-Isolated Workspace
85
+ │ ├── spec.md # Living Spec & Task Breakdown
86
+ │ ├── stage.md # Stage pointer & status
87
+ │ └── findings.md # Dedicated audit & quality ledger
88
+ ├── decisions/ # 🏛️ Decisions: Architecture Decision Records (ADR-xxx.md)
89
+ ├── history/ # 📦 Past (History Archive): Categorized delivery archives
90
+ │ ├── features/ # Shipped features ({xxx-slug}.md)
91
+ │ ├── fixes/ # Resolved bug fixes ({xxx-slug}.md)
92
+ │ ├── rollbacks/ # Reversal audit logs (YYYY-MM-DD-{xxx-slug}.md)
93
+ │ └── HISTORY.md # Master release ledger
94
+ └── discoveries/ # 🔍 Discoveries: Pre-delivery discovery records (DISC-xxx.md)
95
+ ```
96
+
97
+ ---
98
+
99
+ ## 6. Maintenance & CLI Commands
100
+
101
+ ```bash
102
+ # Launch interactive Real-Time Local Dashboard (0ms SSR Hydration & Git Cache)
103
+ npx @jakkrichm/create-nexus-devflow dashboard
104
+
105
+ # Check active project status across 3-Pillars
106
+ npx @jakkrichm/create-nexus-devflow status
107
+
108
+ # Automated Quality Gatekeeper
109
+ npx @jakkrichm/create-nexus-devflow gate [--strict]
110
+
111
+ # Model Context Protocol (MCP) Server Hub
112
+ npx @jakkrichm/create-nexus-devflow mcp
113
+
114
+ # Multi-Agent Swarm & Code Graph RAG
115
+ npx @jakkrichm/create-nexus-devflow swarm
116
+ npx @jakkrichm/create-nexus-devflow graph --file src/index.ts
117
+
118
+ # JIT Context Slicing Engine
119
+ npx @jakkrichm/create-nexus-devflow slice --stage implement
120
+
121
+ # Manage vendor skills (e.g. bughunter, matt-pocock)
122
+ npx nexus-devflow skill list
123
+ npx nexus-devflow skill restore
124
+ ```
@@ -0,0 +1,52 @@
1
+ # Release Process
2
+
3
+ This guide is for framework maintainers preparing a Nexus-DevFlow release. Keep the flow manual-first, use only the commands that already exist in this repository, and treat validation evidence as the release gate.
4
+
5
+ ---
6
+
7
+ ## 1. Pre-Release Readiness
8
+
9
+ - Confirm the intended release scope before changing version or release wording.
10
+ - Confirm that maintainer-facing and user-facing docs (`README.md`, `README.th.md`, `devflow/docs/`) stay aligned.
11
+ - Review `ROADMAP.md` only for a status refresh when the release changes roadmap milestones.
12
+ - Decide whether the release is patch, minor, or major according to Semantic Versioning.
13
+
14
+ ---
15
+
16
+ ## 2. Validation Suite
17
+
18
+ Run baseline checks from the framework root:
19
+
20
+ ```bash
21
+ npm run check
22
+ npm run check:static
23
+ npm test
24
+ npm run test:package
25
+ ```
26
+
27
+ Release only after all validation steps pass with exit code 0.
28
+
29
+ ---
30
+
31
+ ## 3. Install & Upgrade Verification
32
+
33
+ Verify that the overlay package builds and updates cleanly:
34
+
35
+ ```bash
36
+ npx @jakkrichm/create-nexus-devflow update --dry-run
37
+ ```
38
+
39
+ ---
40
+
41
+ ## 4. Release Notes
42
+
43
+ - Summarize user-facing changes separately from maintainer-only changes in `CHANGELOG.md`.
44
+ - Call out changes to release, install, or upgrade guidance explicitly.
45
+ - State whether the release is patch, minor, or major and why.
46
+
47
+ ---
48
+
49
+ ## 5. Tagging & Release Policy
50
+
51
+ - **Commits to `main`**: Internal maintenance, documentation tweaks, or minor refactoring that does not affect the npm overlay package should be pushed directly to `main` without creating a git tag.
52
+ - **Git Tag Releases (`v*`)**: Create and push git tags (`v2.5.x`) only when there is a functional update to `@jakkrichm/create-nexus-devflow` or a new release intended for npm publishing and GitHub Releases.
@@ -0,0 +1,64 @@
1
+ # Skill Selection Policy
2
+
3
+ Use this policy when deciding which skill or companion tool to activate for a given task in **Nexus-DevFlow 2.13.0**.
4
+
5
+ ---
6
+
7
+ ## 1. Lifecycle Selection Policy
8
+
9
+ Nexus-DevFlow 2.13.0 uses the **Task-Isolated Living Spec Lifecycle** for all development work:
10
+
11
+ ```text
12
+ /feature (or /fix) ──▶ /implement ──▶ /check ──▶ /complete
13
+ ```
14
+
15
+ - **Choose `/feature`**: For all planned features, new capabilities, refactorings, or architecture upgrades. Supports intake from Idea Inbox (`/feature IDEA-xxx`) or Discovery (`/feature DISC-xxx`).
16
+ - **Choose `/fix`**: For ad-hoc bug repairs, regressions, or hotfixes.
17
+ - **Choose `/implement`**: To execute checklist tasks with strict TDD discipline (Red-Green-Refactor).
18
+ - **Choose `/check`**: For Dual-Axis verification before delivery: observable spec fidelity plus independent standards, architecture, security, and quality gates.
19
+ - **Choose `/complete`**: For final safety audit, Release Digest, archiving, and branch delivery gate.
20
+
21
+ ---
22
+
23
+ ## 2. Pre-Flight Discovery & Architectural Alignment Policy
24
+
25
+ Use pre-flight skills before committing to delivery when exploring new ideas or resolving ambiguity:
26
+
27
+ ```text
28
+ /idea (Inbox) ──▶ /grill (Socratic ADR) ──▶ /discovery (Explore) ──▶ /feature (Deliver)
29
+ ```
30
+
31
+ - **Choose `/idea`**: When capturing raw thoughts or feature proposals with AI feasibility scoring.
32
+ - **Choose `/grill`** (or **`/align`**): When complex domain concepts need pressure-testing and Architecture Decision Records (ADRs).
33
+ - **Choose `/brainstorm`**: When exploring 2–3 viable approaches with trade-off matrices.
34
+ - **Choose `/discovery`**: For deep multi-turn inception research and exploration before speccing.
35
+
36
+ ---
37
+
38
+ ## 3. Companion Tools & Quality Gates Mapping
39
+
40
+ | Need | Recommended Command | Behavior |
41
+ | :--- | :--- | :--- |
42
+ | **System Diagnostics** | `/doctor` | Read-only check of adapters, configs, and workflow drift. |
43
+ | **Workspace Navigation** | `/devflow` | Flagship state inspector and next action router. |
44
+ | **Root-Cause Analysis** | `/debug` | Scientific six-phase diagnosis using a deterministic red-capable feedback loop without modifying source. |
45
+ | **Architecture & Spec Verification** | `/check` | Reviews Deep Modules, documented standards, and behavioral acceptance as independent axes. |
46
+ | **Manual QA Guide** | `/try` | Generates click-by-click human manual test guide. |
47
+ | **Code & Security Audit** | `/audit` | Branch-aware or full-project code and security audit. |
48
+ | **Feature Reversal** | `/rollback` | Analyzes dependency risks and drafts safe rollback spec. |
49
+ | **CI Setup** | `/ci` | Configures `.github/workflows/verify.yml` with detected package manager. |
50
+ | **Unit Test Setup** | `/setup-tests` / `/test` | Runs test suites or scaffolds missing unit tests. |
51
+ | **Autonomous Pass** | `/autopilot` | Bounded Single Living Spec execution loop (`feature`/`fix` -> `implement` -> `check`) stopping before merge. |
52
+ | **Visual Mockup** | `/prototype` | Throwaway HTML/CSS mockups sharing design tokens. |
53
+ | **Cloud Readiness** | `/release` | Deployment readiness check (Render / Vercel). |
54
+ | **Interactive Report** | `/report-html` | Generates standalone HTML dashboard on demand. |
55
+
56
+ ---
57
+
58
+ ## 4. Selection Boundaries & References
59
+
60
+ - The **32 bundled Core Skills** are the names in `agent-bundle.manifest.json#core_skills`; Local or Personal Skills are workspace extensions, not automatic public commands.
61
+ - Prefer an existing Core Skill before adding a new public surface. Follow [governance rules](governance-rules.md) for promotion and placement decisions.
62
+ - Generated artifacts follow the [Markdown metadata contract](markdown-metadata-contract.md).
63
+ - Human review responsibilities are defined in the [manual review workflow](manual-review-workflow-spec.md).
64
+ - Use [Living Spec examples](examples/living-spec/) as structural references, not as copy-paste requirements.
@@ -0,0 +1,85 @@
1
+ # Workflow Surface Map (32 Core Skills)
2
+
3
+ This document outlines the active workflow surfaces and command taxonomy in **Nexus-DevFlow 2.13.0**.
4
+
5
+ The canonical surface contains **32 Core Skills** from
6
+ `agent-bundle.manifest.json#core_skills`. Additional Local or Personal Skills
7
+ may exist in a workspace, but are not bundled product commands until explicitly
8
+ promoted into that inventory.
9
+
10
+ ---
11
+
12
+ ## 1. Universal Command Invocations
13
+
14
+ Each command in DevFlow has exactly **one canonical name** and can be invoked across AI IDEs:
15
+ - **Slash Prefix (`/`)**: For Google Antigravity, Claude Code, Gemini CLI (e.g. `/feature`, `/devflow`, `/discovery`).
16
+ - **Dollar Prefix (`$`)**: For OpenAI Codex (e.g. `$feature`, `$devflow`, `$discovery`).
17
+ - **Plain Canonical Name**: Direct tool/skill calling in generic terminals or non-native agents (e.g. `feature`, `implement`, `check`, `complete`).
18
+
19
+ ---
20
+
21
+ ## 2. Canonical Surface Taxonomy (32 Core Skills)
22
+
23
+ ### ⚡ 1. The 4-Stage Living Spec Lifecycle Skills (7 Skills)
24
+ | Command | Category | Purpose | Primary Artifact |
25
+ | :--- | :--- | :--- | :--- |
26
+ | `feature` | Spec & Plan | Combines discovery, specification, and task breakdown for planned work. | `devflow/context/{xxx-slug}/spec.md` |
27
+ | `fix` | Spec & Plan | Documents and specs ad-hoc bug repairs or small changes. | `devflow/context/{xxx-slug}/spec.md` |
28
+ | `implement` | Execution | Incrementally executes checklist tasks with strict TDD discipline. | `devflow/context/{xxx-slug}/spec.md` |
29
+ | `check` | Quality Gate | Dual-Axis review of empirical spec fidelity and independent standards/architecture quality. | `devflow/context/{xxx-slug}/spec.md` |
30
+ | `complete` | Delivery | Final safety audit, records Release Digest, branch merge, and archiving. | `devflow/history/{features\|fixes\|rollbacks}/` |
31
+ | `continuous` | Delivery | Autonomous serial multi-feature delivery loop with local branches, quality gates, and squash-merges. | `devflow/history/features/` |
32
+ | `rollback` | Delivery | Safe feature reversal with dependency risk analysis preserving history. | `devflow/history/rollbacks/` |
33
+
34
+ ---
35
+
36
+ ### 🔮 2. Pre-Flight Discovery, SA & Alignment Suite (5 Skills)
37
+ | Command | Category | Purpose | Primary Artifact |
38
+ | :--- | :--- | :--- | :--- |
39
+ | `analyze` | SA Ingestion | Multi-format requirement ingestion (PDF, Word, Excel, Images), Codebase Impact scan & Socratic Gap checklist. | `devflow/inbox/` & `devflow/analysis/` |
40
+ | `idea` | Backlog | Idea inbox capture and AI feasibility scoring. | `devflow/ideas.md` |
41
+ | `grill` / `align` | Alignment | Socratic alignment interview, domain glossary extraction, and ADR generation. | `devflow/decisions/` & `glossary.md` |
42
+ | `brainstorm` | Ideation | Structured divergent & convergent ideation with trade-off matrices. | Interactive session |
43
+ | `discovery` | Exploration | Deep multi-turn inception exploration and discovery records. | `devflow/discoveries/DISC-xxx.md` |
44
+
45
+ ---
46
+
47
+ ### 🧰 3. Workspace Governance & Operations (20 Skills)
48
+ | Command | Category | Purpose |
49
+ | :--- | :--- | :--- |
50
+ | `devflow` | Navigation | Flagship interactive guide, state inspector, and intent router. |
51
+ | `doctor` | Diagnostics | Read-only health check for setup, adapters, and workflow drift. |
52
+ | `overview` | Context | Regenerate and validate `project-overview.md` from planning docs. |
53
+ | `brief` | Planning | Scope and dependency briefing before speccing a feature. |
54
+ | `debug` | Diagnostics | Scientific six-phase diagnosis using a deterministic red-capable feedback loop. |
55
+ | `onboard` | Onboarding | Setup baseline context on fresh or scaffolded projects. |
56
+ | `adopt` | Onboarding | Survey existing codebase and bootstrap DevFlow context into brownfield apps. |
57
+ | `try` | Quality Gate | Generate step-by-step human manual QA review guide. |
58
+ | `audit` | Quality Gate | Branch-aware or full-project code and security audit. |
59
+ | `bughunter` | Security | Offensive security orchestrator, 83 vulnerability patterns & CVE payloads. |
60
+ | `ci` | Automation | Configure GitHub Actions verify workflow (`.github/workflows/verify.yml`). |
61
+ | `test` | Quality Gate | Test runner, missing test generation, and coverage check. |
62
+ | `setup-tests` | Quality Gate | Add or normalize unit test suite. |
63
+ | `browser-tests` | Quality Gate | Add or normalize Playwright browser test harness & connect with MCP browseros-neo. |
64
+ | `autopilot` | Autonomous | Bounded Living Spec execution loop (`feature`/`fix` -> `implement` -> `check`) stopping before merge. |
65
+ | `prototype` | Ideation | Throwaway pre-build static HTML/CSS mockups sharing design tokens. |
66
+ | `release` | Deployment | Cloud deployment readiness check (Render / Vercel). |
67
+ | `status` | State | Progress summary and next action inspector. |
68
+ | `report-html` | Reporting | Generate interactive standalone HTML report dashboard. |
69
+ | `convert-any-to-md` | Utility | Document conversion utility into markdown in `devflow/reference/`. |
70
+
71
+ ---
72
+
73
+ ## 3. Bundled Core vs Local Extensions
74
+
75
+ - **Bundled Core Skill**: listed in `agent-bundle.manifest.json#core_skills`, mirrored across both adapters, validated, and included in the package template.
76
+ - **Local/Personal Skill**: present in a maintainer workspace but absent from the canonical inventory; allowed locally and excluded from package output.
77
+ - **Promotion rule**: adding a directory does not promote a command. Promotion requires an explicit inventory, documentation, adapter, test, and release decision.
78
+
79
+ ## 4. Review & Authoring References
80
+
81
+ - [Skill selection policy](skill-selection-policy.md)
82
+ - [Governance rules](governance-rules.md)
83
+ - [Markdown metadata contract](markdown-metadata-contract.md)
84
+ - [Manual review workflow](manual-review-workflow-spec.md)
85
+ - [Living Spec examples](examples/living-spec/)
@@ -1,90 +1,110 @@
1
- # 📐 [{xxx-slug}] {title}
1
+ # [ID-slug] Feature Title
2
2
 
3
- > **Status**: In-Progress
4
- > **Track**: Fast-Track (Task-Isolated Living Spec Mode - Feature)
5
- > **Category**: Feature
6
- > **Source**: `devflow/build-plan.md: Feature {n}` & `devflow/discoveries/{DISC-ID}/discovery.md`
7
- > **Branch**: `feature/{xxx-slug}`
8
- > **Started Date**: {YYYY-MM-DD}
9
- > **Delivered Date**: TBD
10
- > **Owner**: DevFlow Core Framework Team & AI
3
+ > **Template Type**: Task-Isolated Living Spec
4
+ > **Active Location**: `devflow/context/{xxx-slug}/spec.md`
5
+ > **Archive Location**: `devflow/history/{features|fixes|rollbacks}/{ID-slug}.md`
6
+
7
+ - **Feature ID**: `{xxx-slug}`
8
+ - **Category**: `features` | `fixes` | `rollbacks`
9
+ - **Target Branch**: `feature/{xxx-slug}`
10
+ - **Status**: `Spec Ready` | `In-Progress` | `Verified` | `Completed`
11
+ - **Track**: `Unified Fast-Track`
12
+ - **Discovery Ref**: `devflow/discoveries/DISC-xxx.md` (Optional)
13
+ - **ADR Ref**: `devflow/decisions/ADR-xxx.md` (Optional)
11
14
 
12
15
  ---
13
16
 
14
- ## 1. Specification & Scope
17
+ ## 🎯 1. Define & Boundaries
15
18
 
16
- ### 1.1 Problem Statement
17
- {Description of the problem, background, and rationale for developing this feature}
19
+ ### Problem Statement & Goal
20
+ - **Problem**: อธิบายปัญหาที่พบ หรือสิ่งที่ต้องการแก้ไข/ปรับปรุง
21
+ - **Goal**: ผลลัพธ์หรือเป้าหมายที่ต้องการให้เกิดขึ้น
18
22
 
19
- ### 1.2 In-Scope
20
- 1. {In-scope item 1}
21
- 2. {In-scope item 2}
23
+ ### In-Scope & Out-of-Scope
24
+ - **In-Scope**:
25
+ - สิ่งที่ต้องทำในรอบนี้
26
+ - **Out-of-Scope**:
27
+ - สิ่งที่ไม่ทำในรอบนี้ หรือยกยอดไปทำในเฟสถัดไป
22
28
 
23
- ### 1.3 Out-of-Scope
24
- - {Items deliberately excluded or deferred to future features}
29
+ ### Risk & Mitigation Matrix
30
+ | Risk | Severity | Mitigation |
31
+ | :--- | :--- | :--- |
32
+ | ความเสี่ยงที่อาจเกิดขึ้น | Low/Medium/High | แนวทางป้องกันหรือรับมือ |
25
33
 
26
- ### 1.4 Acceptance Criteria
27
- - [ ] **AC-1**: {Acceptance criterion 1}
28
- - [ ] **AC-2**: {Acceptance criterion 2}
34
+ ### Success Criteria
35
+ 1. เกณฑ์ชี้วัดความสำเร็จข้อที่ 1
36
+ 2. เกณฑ์ชี้วัดความสำเร็จข้อที่ 2
29
37
 
30
38
  ---
31
39
 
32
- ## 2. Plan & Test Strategy
40
+ ## 📐 2. Technical Spec & Contracts
41
+
42
+ ### Architecture & Component Design
43
+ - อธิบายโครงสร้างหรือ Flow การทำงานของ Component/Module
33
44
 
34
- ### 2.1 Files Modified / Created
35
- - `{file-path}` [NEW | MODIFY | DELETE]
45
+ ### Data Models & Schemas
46
+ ```typescript
47
+ // Interface หรือ Type Definition
48
+ ```
36
49
 
37
- ### 2.2 Quality Gates & Sensitivity Check
38
- - **Quality Gate Policy (`independentReview`)**: `manual` | `always` | `when-sensitive`
39
- - **UI Evidence / Browser Tests**: {Not applicable | Playwright / BrowserOS Neo}
40
- - **Review Strategy**: One feature-level review packet at completion
50
+ ### API & Interface Contracts
51
+ - **Endpoint / Function**: `methodName(params: Type): ReturnType`
52
+ - **Error Handling**: รายละเอียด Error Codes และวิธีจัดการ
41
53
 
42
- ### 2.3 Test Decision: Required (TDD) | Optional
43
- - **Rationale**: {Reason for requiring Unit Tests / TDD}
54
+ ### Non-Functional Constraints
55
+ - **Security**: การตรวจสอบ Input, การจัดการสิทธิ์, Secrets
56
+ - **Performance**: ข้อจำกัดเรื่องความเร็ว หรือ Resource Usage
57
+
58
+ ### Acceptance Criteria (AC)
59
+ - [ ] **AC-1**: เงื่อนไขการยอมรับข้อที่ 1
60
+ - [ ] **AC-2**: เงื่อนไขการยอมรับข้อที่ 2
44
61
 
45
62
  ---
46
63
 
47
- ## 3. Implementation Checklist (Strict TDD)
64
+ ## 📋 3. Execution Plan & TDD Checklist
65
+
66
+ - [ ] **Task 1: Core Foundation & Types**
67
+ - [ ] 1.1 `[TDD-Red]` เขียน Unit Test สำหรับ Logic ส่วนที่ 1
68
+ - [ ] 1.2 `[TDD-Green]` Implement Logic ให้ผ่าน Test
69
+ - [ ] 1.3 `[TDD-Refactor]` Clean up และ Optimize โค้ด
48
70
 
49
- - [ ] **Task 1: {Task 1 title}**
50
- - [ ] 1.1 `[TDD-Red]`: {Write failing unit or behavioral test}
51
- - [ ] 1.2 `[TDD-Green]`: {Write minimal implementation to pass test}
52
- - [ ] 1.3 `[TDD-Refactor]`: {Refactor and ensure 100% tests green}
71
+ - [ ] **Task 2: Feature Implementation**
72
+ - [ ] 2.1 `[TDD-Red]` เขียน Test ครอบคลุม Edge Cases
73
+ - [ ] 2.2 `[TDD-Green]` Implement Feature ตาม Contract
74
+ - [ ] 2.3 `[TDD-Refactor]` ตรวจสอบความถูกต้องและ Architecture
53
75
 
54
- - [ ] **Task 2: {Task 2 title}**
55
- - [ ] 2.1 `[TDD-Red]`: ...
56
- - [ ] 2.2 `[TDD-Green]`: ...
57
- - [ ] 2.3 `[TDD-Refactor]`: ...
76
+ - [ ] **Task 3: Integration & QA Verification**
77
+ - [ ] 3.1 `[TDD-Green]` เชื่อมต่อ UI/API และตรวจสอบ End-to-End
58
78
 
59
79
  ---
60
80
 
61
- ## 4. Verification Evidence Matrix
81
+ ## ⚡ 4. Implementation Log & Evidence
62
82
 
63
- ### ⚖️ Axis 1: Standards, Architecture & Quality Gate
64
- - **Type Safety & Build Integrity**: TBD
65
- - **Automated Test Matrix**: TBD
66
- - **Static Contract Verification**: TBD
67
- - **Package Smoke Test**: TBD
68
- - **Findings Ledger**: Verify `findings.md` is 100% clean
83
+ *(จะถูกบันทึกและอัปเดตความคืบหน้าระหว่างรันคำสั่ง `/implement`)*
69
84
 
70
- ### 🎯 Axis 2: Spec Fidelity & Behavioral Acceptance Gate
71
- - [ ] **AC-1**: {Empirical proof for AC-1}
72
- - [ ] **AC-2**: {Empirical proof for AC-2}
85
+ - **Step 1**: ...
86
+ - **Checkpoint Commit**: `feat(scope): ...`
73
87
 
74
- ### 🔗 Axis 3: AC-to-Test Traceability Matrix
88
+ ---
89
+
90
+ ## 🧪 5. Multi-Lane Verification Matrix
75
91
 
76
- | Acceptance Criterion | File Tier | Automated Test Case / Assertion | Verification Command | Status |
77
- | :--- | :--- | :--- | :--- | :---: |
78
- | **AC-1** | Tier 1 (Logic) / Tier 2 (UI) | `it('AC-1: ...')` | `npm test` | ⏳ Pending |
79
- | **AC-2** | Tier 3 (API) / Tier 4 (Tooling) | `it('AC-2: ...')` | `npm run check:static` | ⏳ Pending |
92
+ *(จะถูกบันทึกผลการตรวจสอบระหว่างรันคำสั่ง `/check`)*
80
93
 
94
+ | Lane | Command / Verification Target | Result | Notes / Proof |
95
+ | :--- | :--- | :--- | :--- |
96
+ | **Typecheck** | `npm run typecheck` | ⏳ PENDING | |
97
+ | **Lint** | `npm run lint` | ⏳ PENDING | |
98
+ | **Unit Tests** | `npm test` | ⏳ PENDING | |
99
+ | **Manual Proof** | UI / CLI Behavioral Verification | ⏳ PENDING | |
81
100
 
82
101
  ---
83
102
 
84
- ## 5. Delivery Verification & Independent Receipt
103
+ ## 📦 6. Release Digest & Retrospective
104
+
105
+ *(จะถูกสรุปและบันทึกอัตโนมัติก่อนทำการ Squash Merge ในคำสั่ง `/complete`)*
85
106
 
86
- - **Delivery Date**: TBD
87
- - **Verification Verdict**: TBD
88
- - **Framework Tests**: TBD
89
- - **Static Contract**: TBD
90
- - **Package Smoke Test**: TBD
107
+ - **What Changed**: สรุปสิ่งที่เปลี่ยนแปลง
108
+ - **Key Decisions**: การตัดสินใจสำคัญระหว่างพัฒนา
109
+ - **Lessons Learned**: บทเรียนที่ได้รับ
110
+ - **Known Limitations**: ข้อจำกัดที่ทราบและข้อเสนอแนะในอนาคต
@@ -0,0 +1 @@
1
+
@@ -1,129 +0,0 @@
1
- # Check verification
2
-
3
- **Context reuse:** Reuse any required file already loaded in project instructions or the current session. Read it again only if absent, changed, or exact current bytes or line references are needed.
4
-
5
- Verification activity was started by the dispatcher before loading this reference.
6
-
7
- Where this sits in the workflow:
8
-
9
- /implement -> [check] -> /complete
10
- (built a (run the app, (only once the
11
- step or prove each done-whens are
12
- the feature) done-when) proven)
13
-
14
- `/implement` builds and does a quick build-plus-screenshot check inline. `/check`
15
- is the deeper, repeatable gate for when a "done when" needs the *real running app*,
16
- not just a green build: a click that triggers a download, a route that returns a
17
- file, a flow across screens. Run it on a single step whose done-when is
18
- behavioral, or on the whole feature as the acceptance check before `/complete`.
19
-
20
- The point is evidence. A passing build proves the code compiles; `/check` proves
21
- the thing the spec promised actually happens. It changes no source and commits
22
- nothing - it runs the app and reports what it saw.
23
-
24
- ## Input
25
-
26
- Optional: a specific thing to check (a step, a flow, a URL). With no argument,
27
- verify the whole current feature against every "done when" in
28
- `devflow/context/{xxx-slug}/spec.md`.
29
-
30
- ## Step 1 - build the checklist
31
-
32
- Read `devflow/config.json` first. A missing file means the built-in defaults
33
- apply. If the file exists but is invalid, stop and point the user to `/doctor`.
34
- Configuration never grants permission to start a server or take any other action
35
- that the project instructions or user have not authorized.
36
- The quality-gate config controls automatic invocation only. An explicit `/check`
37
- or `$check` request always runs.
38
-
39
- Read `devflow/context/{xxx-slug}/spec.md`. Pull the observable "done when"
40
- criteria from the build steps (and any acceptance notes in the Testing section).
41
- Turn them into a concrete checklist of claims to prove - each one a specific,
42
- observable behavior, not "it works". If the user named one thing, scope to that.
43
-
44
- If there's no active feature spec, ask what to verify rather than guessing.
45
-
46
- ## Step 2 - get the app running
47
-
48
- Use the project's real commands (see Commands in `AGENTS.md`). Match the project
49
- type:
50
-
51
- - **Web app** - start (or reuse) the dev/preview server, then drive a real browser
52
- to the relevant routes. Prefer reusing an already-running server over starting a
53
- duplicate. If `AGENTS.md` declares `Browser tests: <command>`, run that exact
54
- command as repeatable evidence and use its harness for covered interactions.
55
- Reuse runner-owned server lifecycle instead of starting a duplicate. A green
56
- suite is one evidence source, not proof of claims it does not observe. If no
57
- command is declared but Playwright is already installed, prefer it for browser
58
- driving, screenshots, console errors, and failed request checks. Never install
59
- it from `/check`; use another real-browser evidence path and report what you
60
- used, or point to `/browser-tests` for later optional setup.
61
- - **CLI** - run the actual command(s) with representative inputs.
62
- - **Server/API** - start it and hit the endpoints.
63
- - **Library** - exercise the public API through an example or the test command.
64
-
65
- If a `test` command is declared in `AGENTS.md`, you may run it as *one* input, but
66
- `/check` is broader than unit tests: it checks real behavior, which is exactly the
67
- evidence UI and integration steps ride on instead of unit tests.
68
-
69
- ## Step 3 - exercise each claim
70
-
71
- Drive the app to each checklist item and capture evidence as you go:
72
-
73
- - Navigate and interact for real (click, type, submit, download) - don't assert
74
- from the code what the running app would do.
75
- - Capture **screenshots** for visual/UI claims, **output** for CLI/API claims.
76
- - Watch for **console errors and failed network requests**; a clean-looking screen
77
- with errors in the console is not a pass.
78
-
79
- With `verification.uiEvidence: "required"`, every UI claim needs direct browser
80
- evidence, including a screenshot and the relevant console and network check. If
81
- that evidence path is unavailable, mark the claim unverifiable instead of
82
- passing it from build output. With `when-available`, use the strongest available
83
- evidence and report any gap plainly.
84
-
85
- ### AC-to-Test Traceability Verification:
86
- Cross-reference each Acceptance Criterion (`- [ ] **AC-N**`) in `spec.md` against the test suite's executed assertions and observable evidence:
87
- - Match tagged test cases (e.g. `it('AC-1: ...')`) to their respective criteria.
88
- - Ensure 100% of defined acceptance criteria have empirical proof before issuing a `verified` status.
89
-
90
-
91
- ## Step 4 - report
92
-
93
- Give a short, honest verdict, one line per checklist item:
94
-
95
- [pass] Download PDF saves certificate-<slug>.pdf - file downloaded, opened to the cert
96
- [pass] Both buttons show a loading state - screenshot: loading-state.png
97
- [fail] PDF border missing - printBackground not set; screenshot: pdf-no-border.png
98
- [skip] Vercel render - can't verify locally (feature 9)
99
-
100
- Then state the bottom line: are all the feature's done-whens proven, or not yet.
101
-
102
- - All proven -> update only the `**Status:**` line in
103
- `devflow/context/{xxx-slug}/spec.md` to `verified`, then say it is ready for
104
- `/complete`.
105
- - Anything failed -> update only that status line to `verification failed`, then
106
- hand back to `/implement`; name what to fix. Do not fix it here.
107
- - Anything unverifiable -> update only that status line to `verification
108
- incomplete`, then say why; never report it as a pass.
109
-
110
- The status-line update is generated workflow state, not a product-source edit.
111
- Do not change the spec, checkboxes, findings, or product files from `/check`.
112
-
113
- ## Rules
114
-
115
- - **Observe product behavior, don't repair it.** `/check` changes only the
116
- current spec's status line as described above. It never edits product source,
117
- commits, or merges. Fixing is `/implement`'s job.
118
- - **Evidence or it didn't happen.** Every `pass` is backed by something observed -
119
- a screenshot, output, a response. No assumed passes from reading the code.
120
- - **Honest over green.** "Couldn't verify" and "failed" are valid, useful results.
121
- Faking a pass defeats the entire gate.
122
- - **Check the spec, not vibes.** Verify against the done-whens in
123
- `spec.md`, so "works" means what the spec said it would do.
124
-
125
- ## Formatting
126
-
127
- Format the output to match the project's conventions in
128
- `devflow/context/ai-interaction.md`: concise, scannable markdown, with lists for
129
- enumerations and tables for matrices rather than dense paragraphs.