@ngocsangairvds/vsaf 3.0.10 → 3.0.12

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 CHANGED
@@ -10,6 +10,9 @@ every decision. $20/month total.
10
10
 
11
11
  ```
12
12
  ┌──────────────────────────────────────────────────────────────────────┐
13
+ │ DISCOVERY BMAD (agents) │
14
+ │ PM · Analyst · domain/market/tech research │
15
+ ├──────────────────────────────────────────────────────────────────────┤
13
16
  │ PLANNING BMAD (agents) │
14
17
  │ Analyst · Architect · Brainstorming · QA │
15
18
  ├──────────────────────────────────────────────────────────────────────┤
@@ -21,6 +24,9 @@ every decision. $20/month total.
21
24
  ├──────────────────────────────────────────────────────────────────────┤
22
25
  │ IMPLEMENTATION Claude Code + Superpowers │
23
26
  │ TDD execution, code review │
27
+ ├──────────────────────────────────────────────────────────────────────┤
28
+ │ KNOWLEDGE Graphify + BMAD (tech writer, editors) │
29
+ │ wiki, docs sync, distillation │
24
30
  └──────────────────────────────────────────────────────────────────────┘
25
31
  ```
26
32
 
@@ -95,26 +101,56 @@ Run `npx @ngocsangairvds/vsaf@latest --help` for the full list. Highlights:
95
101
 
96
102
  Main skill commands inside Claude Code:
97
103
 
104
+ - `/vsaf-discover <product/domain>` — product discovery *(new)*
105
+ - `/vsaf-sprint plan|status|story` — sprint management *(new)*
98
106
  - `/vsaf-onboard`
99
107
  - `/vsaf-plan <feature>`
100
108
  - `/vsaf-doc`
101
109
  - `/vsaf-test <path/to/srs>`
102
110
  - `/vsaf-build <path/to/srs> <path/to/testcases>`
103
111
  - `/vsaf-ship`
112
+ - `/vsaf-docs` — documentation sync *(new)*
104
113
 
105
114
  ## Workflow
106
115
 
107
- Every feature follows an **SRS-first cycle**:
116
+ Full product lifecycle:
108
117
 
109
118
  ```
110
- /vsaf-onboard → /vsaf-plan → /vsaf-doc /vsaf-test → /vsaf-build → /vsaf-ship
119
+ /vsaf-discover → /vsaf-sprint plan → [per feature in sprint]:
120
+ /vsaf-onboard → /vsaf-plan → /vsaf-doc → /vsaf-test → /vsaf-build → /vsaf-ship
121
+ → /vsaf-docs → /vsaf-sprint status → next sprint
111
122
  ```
112
123
 
113
- Bug fixes (Quick Flow) may use mini-SRS + mini-testcases, but still require
114
- `gitnexus_impact` before editing symbols and `gitnexus_detect_changes` before commit.
124
+ Every feature follows an **SRS-first cycle**. Bug fixes (Quick Flow) may use
125
+ mini-SRS + mini-testcases, but still require `gitnexus_impact` before editing
126
+ symbols and `gitnexus_detect_changes` before commit.
115
127
 
116
128
  ### Flow breakdown
117
129
 
130
+ #### `/vsaf-discover <product/domain>` — Product discovery *(new)*
131
+ | Step | Tool | Does |
132
+ |------|------|------|
133
+ | 1 | **MemPalace** `mempalace_search` | Checks for prior research |
134
+ | 2 | **BMAD** `bmad-domain-research` | Deep dive into domain/industry terminology, rules, patterns |
135
+ | 3 | **BMAD** `bmad-market-research` | Competition landscape, customer needs, market trends |
136
+ | 4 | **BMAD** `bmad-technical-research` | Tech stack options, feasibility, build-vs-buy |
137
+ | 5 | **BMAD** `bmad-product-brief` | Synthesises findings into product brief |
138
+ | 6 | **BMAD** `bmad-prfaq` | Working Backwards — stress-tests product concept |
139
+ | 7 | **BMAD** `bmad-agent-pm` + `bmad-create-prd` | PM creates PRD from brief; `bmad-validate-prd` checks quality; `bmad-edit-prd` fixes issues |
140
+ | 8 | **BMAD** `bmad-party-mode` | Multi-agent roundtable: PM + Analyst + Architect review |
141
+ | 9 | **MemPalace** `mempalace_add_drawer` | Saves market insights + product decisions |
142
+ | → | Output | Research artifacts, product brief, validated PRD, open questions |
143
+
144
+ #### `/vsaf-sprint plan|status|story` — Sprint management *(new)*
145
+ | Mode | Tool | Does |
146
+ |------|------|------|
147
+ | **plan** | **BMAD** `bmad-create-epics-and-stories` | Breaks PRD into epics + prioritised user stories |
148
+ | **plan** | **BMAD** `bmad-sprint-planning` | Assigns stories to sprint, identifies dependencies |
149
+ | **plan** | **MemPalace** `mempalace_add_drawer` | Saves sprint decisions, priorities, trade-offs |
150
+ | **status** | **BMAD** `bmad-sprint-status` | Progress %, burndown, blocked items, risks |
151
+ | **story** | **BMAD** `bmad-create-story` | Creates detailed story file with full context for implementation |
152
+ | → | Output | Sprint plan, status dashboard, or story file |
153
+
118
154
  #### `/vsaf-onboard` — Understand the codebase
119
155
  | Step | Tool | Does |
120
156
  |------|------|------|
@@ -130,44 +166,72 @@ Bug fixes (Quick Flow) may use mini-SRS + mini-testcases, but still require
130
166
  | 3 | **GitNexus** `mcp__gitnexus__impact` + `query` | Blast radius — how many modules touched, risk level |
131
167
  | 4 | **Graphify** `/graphify path A B` *(if needed)* | Traces dependency path between two services |
132
168
  | 5 | **BMAD** `bmad-agent-architect` (Winston) | Proposes architecture approach, compares alternatives |
169
+ | 5b | **BMAD** `bmad-create-architecture` *(if HIGH risk / >3 modules)* | Formal ADR → `docs/project/planning-artifacts/adr-[feature].md` |
133
170
  | 6 | **BMAD** `bmad-brainstorming` | Creative exploration — min. 20 alternatives / risk angles |
134
- | | Output | Scope, impact report, chosen approach, rejected alternatives |
171
+ | 7 | **BMAD** `bmad-advanced-elicitation` | Pre-mortem + red team — challenges chosen approach, finds failure modes |
172
+ | → | Output | Scope, impact, approach, pre-mortem findings, rejected alternatives |
135
173
 
136
174
  #### `/vsaf-doc` — Write the SRS
137
175
  | Step | Tool | Does |
138
176
  |------|------|------|
177
+ | 0 | *(Claude)* | Detects mode: **CREATE** (new SRS) or **EDIT** (modify existing) |
139
178
  | 1 | **MemPalace** `mempalace_search` | Checks for old decisions to reference in SRS |
140
- | 2 | *(Claude)* | Writes SRS with FRs/NFRs/acceptance criteria + traceability IDs → `docs/project/srs/` |
141
- | 3 | *(Claude)* | Writes implement notes: affected modules, technical constraints |
142
- | 4 | **MemPalace** `mempalace_add_drawer` | Persists chosen approach + rejected alternatives |
143
- | | Output | `docs/project/srs/[feature].md` ready for testcase generation |
179
+ | 2a | **BMAD** `bmad-create-prd` *or* *(Claude)* | **CREATE mode**: writes SRS/PRD with FRs/NFRs + traceability IDs |
180
+ | 2b | **BMAD** `bmad-edit-prd` | **EDIT mode**: modifies existing SRS in-place, preserves traceability IDs, flags testcase impact |
181
+ | 3 | **BMAD** `bmad-validate-prd` | Validates SRS quality; if FAIL in EDIT mode → `bmad-edit-prd` fixes again |
182
+ | 4 | *(Claude)* | Writes implement notes: affected modules, technical constraints |
183
+ | 5 | **MemPalace** `mempalace_add_drawer` | Persists chosen approach + rejected alternatives |
184
+ | → | Output | Validated `docs/project/srs/[feature].md` + testcase impact report |
144
185
 
145
186
  #### `/vsaf-test <path/to/srs>` — Generate testcases
146
187
  | Step | Tool | Does |
147
188
  |------|------|------|
148
189
  | 1 | **BMAD** `bmad-qa-generate-e2e-tests` | Derives unit / integration / edge-case tests from SRS FRs/NFRs |
149
- | 2 | *(Claude)* | Validates every FR/NFR has 1 test, records gaps |
150
- | 3 | *(Claude)* | Builds FR/NFR Testcase ID traceability matrix |
190
+ | 2 | **BMAD** `bmad-review-edge-case-hunter` | Finds unhandled boundaries, race conditions, null/empty cases adds tests |
191
+ | 3 | *(Claude)* | Validates every FR/NFR has 1 test, builds traceability matrix |
151
192
  | 4 | *(Claude)* | Saves to `docs/project/testcases/[feature].md` |
152
- | | Output | Testcase contractused as implementation guardrails |
193
+ | 5 | **BMAD** `bmad-check-implementation-readiness` | **Quality gate**blocks build if SRS/testcase/architecture gaps found |
194
+ | → | Output | Testcase contract + implementation readiness verdict (PASS/FAIL) |
153
195
 
154
196
  #### `/vsaf-build <path/to/srs> <path/to/testcases>` — Implement with TDD
155
197
  | Step | Tool | Does |
156
198
  |------|------|------|
199
+ | 0 | **Superpowers** check | Detects plugin. If yes → uses write-plan, execute-plan, TDD, debugging. If no → warns + fallback |
157
200
  | 1 | **MemPalace** `mempalace_search` | Last check — no old decisions conflict with implementation |
158
201
  | 2 | *(Claude)* | Reads SRS + testcases, confirms FR/NFR → testcase mapping |
159
- | 3 | **Claude Code** (TDD loop) | RED GREEN REFACTOR per testcase group |
160
- | 3b | **GitNexus** `mcp__gitnexus__detect_changes` | Verifies only intended files changed before each commit |
202
+ | 3 | **Superpowers** `write-plan` *or* *(Claude)* | Generates atomic task list from SRS + testcases |
203
+ | 4 | **Superpowers** `execute-plan` + `test-driven-development` *or* **Claude Code** | TDD loop per task. Large plans (20+): `subagent-driven-development` |
204
+ | 4b | **GitNexus** `mcp__gitnexus__detect_changes` | Verifies only intended files changed before each commit |
205
+ | 4.5 | **BMAD** `bmad-checkpoint-preview` *(every 3-5 tasks)* | Human-in-the-loop review — summarise progress, flag issues, ask user to continue |
206
+ | 5 | **Superpowers** `systematic-debugging` *or* manual | On failure: structured hypothesis → experiment → conclusion |
207
+ | 5b | **BMAD** `bmad-correct-course` *(if scope drift detected)* | Assesses impact of scope change, proposes adjusted plan vs re-plan |
161
208
  | → | Output | Working code, all tests passing, 1 commit per task |
162
209
 
163
210
  #### `/vsaf-ship` — Review, sync, and record
164
211
  | Step | Tool | Does |
165
212
  |------|------|------|
166
- | 1 | **Superpowers** `superpowers:code-review` | Layer 1 — structure, naming, SOLID, patterns |
167
- | 2 | **GitNexus** `gitnexus analyze` / `vsaf index` | Layer 2updates call graph to reflect new code |
168
- | 3 | **MemPalace** `mempalace_add_drawer` + `diary_write` | Saves decisions + session summary for future sessions |
169
- | 4 | *(git)* | Push branch, open PR with impact summary + test results |
170
- | | Output | Shipped feature, updated graph, persistent knowledge |
213
+ | 1 | **Superpowers** `code-review` + `verification-before-completion` *or* **BMAD** `bmad-code-review` | Layer 1 — code quality, patterns, SOLID |
214
+ | 2 | **BMAD** `bmad-review-adversarial-general` + `bmad-review-edge-case-hunter` | Layer 1.5cynical attack + boundary analysis. Triage: MUST FIX / SHOULD FIX / NOTED |
215
+ | 3 | **GitNexus** `gitnexus analyze` / `vsaf index` | Layer 2 updates call graph to reflect new code |
216
+ | 4 | **Superpowers** `finishing-a-development-branch` *or* manual | Pre-PR checklist |
217
+ | 5 | **MemPalace** `mempalace_add_drawer` + `diary_write` | Saves decisions, adversarial findings, session summary |
218
+ | 6 | *(git)* | Push branch, open PR with impact + test + adversarial summary |
219
+ | 7 | **BMAD** `bmad-retrospective` *(end of epic only)* | Lessons learned → MemPalace. What went well / what to improve |
220
+ | → | Output | Shipped feature, updated graph, persistent knowledge, follow-up tasks |
221
+
222
+ #### `/vsaf-docs` — Documentation & knowledge sync *(new)*
223
+ | Step | Tool | Does |
224
+ |------|------|------|
225
+ | 1 | **GitNexus** `query` + **MemPalace** `search` | Scans codebase + decisions, finds stale docs |
226
+ | 2 | **BMAD** `bmad-document-project` | Generates/updates project documentation from code |
227
+ | 3 | **BMAD** `bmad-generate-project-context` | Creates `project-context.md` — AI agent instructions |
228
+ | 4 | **BMAD** `bmad-agent-tech-writer` (Paige) | Reviews docs for clarity, completeness, consistency |
229
+ | 5 | **BMAD** `bmad-editorial-review-prose` + `bmad-editorial-review-structure` | Polish prose + restructure for readability |
230
+ | 6 | **BMAD** `bmad-distillator` | Compresses long docs into LLM-optimised format |
231
+ | 7 | **BMAD** `bmad-index-docs` | Generates `index.md` for each docs folder |
232
+ | 8 | **Graphify** `/graphify . --wiki` | Builds agent-crawlable wiki from codebase |
233
+ | 9 | **MemPalace** `diary_write` | Records what was updated/replaced |
234
+ | → | Output | Updated docs, project context, wiki, doc indexes |
171
235
 
172
236
  ### Generated docs path convention
173
237
 
@@ -187,21 +251,23 @@ Bug fixes (Quick Flow) may use mini-SRS + mini-testcases, but still require
187
251
 
188
252
  See [1-setup-guide.md § Your First Project](docs/onboarding/1-setup-guide.md#5-your-first-project--a-walkthrough)
189
253
  for a walkthrough, or [2-workflow-guide.md § JWT Demo](docs/onboarding/2-workflow-guide.md#4-full-sdlc-demo)
190
- for a full command-by-command example.
254
+ for a full code-by-code example.
191
255
 
192
256
  ## Tools
193
257
 
194
258
  | Tool | What It Does | Cost |
195
259
  |---|---|---|
196
260
  | **Claude Code** | AI coding agent — everything else plugs into it | $20/mo |
197
- | **BMAD Method** | AI agents for planning: Analyst, Architect, Brainstorming, QA | Free |
198
- | **Superpowers** | Methodology engine: code review | Free |
261
+ | **BMAD Method** | AI agents for full lifecycle: PM, Analyst, Architect, QA, Tech Writer, Code Review + 40 skills | Free |
262
+ | **Superpowers** | Claude Code plugin: plan execution, TDD, debugging, code review, pre-PR checklist *(optional — BMAD/manual fallback)* | Free |
199
263
  | **GitNexus** | Code knowledge graph via MCP — impact analysis, dependency queries | Free |
200
264
  | **MemPalace** | Knowledge base — verbatim storage of decisions, temporal knowledge graph | Free |
265
+ | **Graphify** | Any input → knowledge graph → clustered communities, dependency tracing, wiki | Free |
201
266
 
202
267
  ---
203
268
 
204
- **Core principles:** Onboard first. SRS before implementation. Testcases derived from SRS.
205
- Impact analysis before touching any symbol. Run `gitnexus_detect_changes` before commit.
206
- 2-layer review before every PR. Re-index after every merge. Mine decisions weekly and after major decisions.
269
+ **Core principles:** Discover before planning. Onboard first. SRS before implementation.
270
+ Testcases derived from SRS. Impact analysis before touching any symbol.
271
+ Run `gitnexus_detect_changes` before commit. 2-layer review before every PR.
272
+ Re-index after every merge. Mine decisions weekly. Sync docs every sprint.
207
273
  MemPalace = decisions. Not CLAUDE.md.
package/bin/vsaf.js CHANGED
@@ -17,8 +17,8 @@ USAGE
17
17
  vsaf clean Clean GitNexus index
18
18
 
19
19
  GLOBAL (once per machine → ~/.claude/)
20
- Skills : bmad (41), vsaf (5), gitnexus (6)
21
- Binaries: gitnexus, mempalace
20
+ Skills : bmad (41), vsaf (5), gitnexus (6), graphify (1)
21
+ Binaries: gitnexus, mempalace, graphify
22
22
 
23
23
  PER PROJECT (per repo, run inside the repo root)
24
24
  .claude/settings.json Local AI settings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngocsangairvds/vsaf",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "description": "VSAF — Agentic AI SDLC Framework. 4 integrated tools: BMAD, GitNexus, Superpowers, MemPalace. 2-layer review.",
5
5
  "keywords": ["claude", "claude-code", "ai", "sdlc", "framework", "bmad", "gitnexus", "mempalace"],
6
6
  "bin": {
package/src/global.js CHANGED
@@ -15,6 +15,7 @@ async function installGlobal() {
15
15
  installSkills();
16
16
  installBinary('gitnexus', () => exec('npm install -g gitnexus'));
17
17
  installPipx('mempalace', 'mempalace');
18
+ installPipx('graphify', 'graphifyy');
18
19
 
19
20
  console.log('\n\x1b[32m\x1b[1m✓ Global infra ready.\x1b[0m\n');
20
21
  }
package/src/status.js CHANGED
@@ -11,6 +11,7 @@ async function showStatus() {
11
11
  checkSkills();
12
12
  checkCmd('gitnexus', 'GitNexus');
13
13
  checkCmd('mempalace', 'MemPalace');
14
+ checkCmd('graphify', 'Graphify');
14
15
 
15
16
  // ── Project ────────────────────────────────────────────────────────────────
16
17
  console.log('\n\x1b[1mProject (current repo)\x1b[0m');
package/src/workflow.js CHANGED
@@ -19,7 +19,13 @@ function runIndex() {
19
19
 
20
20
  function runReview() {
21
21
  step('Review (2-layer)');
22
- info('Layer 1: Methodology review — run in Claude Code: /superpowers:code-review');
22
+
23
+ info('Layer 1: Code review');
24
+ info(' If Superpowers installed → run in Claude Code: /superpowers:code-review');
25
+ info(' Otherwise → run in Claude Code: /bmad-code-review');
26
+ warn(' Superpowers is a Claude Code plugin. To install:');
27
+ warn(' /plugin install superpowers@claude-plugins-official');
28
+
23
29
  info('Layer 2: Knowledge graph sync');
24
30
  const indexOk = runIndex();
25
31