Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
6e04c13
docs: add koni-docs integration design spec (sub-task 1)
saltict Jun 2, 2026
c8461b5
docs: add implementation plan for koni-docs integration (sub-task 1)
saltict Jun 2, 2026
29134db
chore: install koni-docs skill from Koniverse/Koni-Skills
saltict Jun 2, 2026
094e5d5
chore: add VERSION file and gitignore active-context
saltict Jun 2, 2026
a1210d8
docs: add active-context example template (koni Pattern B)
saltict Jun 2, 2026
3365b4a
docs: add AGENTS.md (canonical AI agent guide for SubWallet)
saltict Jun 2, 2026
76ff80b
fix: correct yarn commands in AGENTS.md (use real package.json scripts)
saltict Jun 2, 2026
7a49a00
docs: add CLAUDE.md pointer with koni-docs integration block
saltict Jun 2, 2026
821bb9e
docs: add AI coding behavior guidelines as section 1 of AGENTS.md
saltict Jun 3, 2026
410ac82
feat(docs): add design spec for Koni-docs migration (sub-tasks 2 + 3)…
saltict Jun 3, 2026
eace537
docs: a6-setup — add docs/SETUP.md (dev environment)
tunghp2002 Jun 3, 2026
c646536
docs: a7-changelog — add [Unreleased] anchor to CHANGELOG.md
tunghp2002 Jun 3, 2026
2d336e5
docs: a3-arch — add docs/ARCHITECTURE.md with AD table
tunghp2002 Jun 3, 2026
47d0cc8
docs: a4-context — seed docs/CONTEXT.md decision log from history
tunghp2002 Jun 3, 2026
e9ccbab
docs: a5-lessons — seed docs/LESSONS.md from incident history
tunghp2002 Jun 3, 2026
26bfaa3
docs: fix Mermaid node/subgraph id collision in migration spec
tunghp2002 Jun 3, 2026
3af7d22
docs: a4-context — retitle Phase 3 to match its decisions
tunghp2002 Jun 4, 2026
c478d54
docs: a4-context — retitle Phase 2 to cover its actual decisions
tunghp2002 Jun 4, 2026
908a04f
docs: a4-context — add 29 chain/account decisions, rebuild into 5 phases
tunghp2002 Jun 4, 2026
43e874c
docs: a3-arch — add AD-11..AD-19 for chain integrations & account models
tunghp2002 Jun 4, 2026
a5eebf4
docs: a4-context — remove leaked group headers + collapse duplicate s…
tunghp2002 Jun 4, 2026
666217a
docs: a1-brief — synthesize docs/BRIEF.md from canonicals
tunghp2002 Jun 4, 2026
32e470c
docs: a2-prd — add docs/PRD.md (90 FR / 20 NFR + 19-epic index)
tunghp2002 Jun 4, 2026
26042d6
docs: a2-prd — add FR-91 custom token import (close token-management …
tunghp2002 Jun 4, 2026
9c00a28
docs: a4-context — add Phase 5 (D60-D65) from Notion product reports
tunghp2002 Jun 4, 2026
af741cf
docs: a3-arch — add runtime-lifecycle section + AD-20..23 (verified v…
tunghp2002 Jun 4, 2026
4319873
docs: a5-lessons — add lessons 35-40 from Notion engineering reports
tunghp2002 Jun 4, 2026
a2c7578
docs: a6-setup — add related-repos & release processes from Notion re…
tunghp2002 Jun 4, 2026
cde55af
docs: a1-brief — add traction proxies to Success Criteria, fix person…
tunghp2002 Jun 5, 2026
f75f9f7
docs: a2-prd — reorder epics by product lifecycle into 5 theme groups
tunghp2002 Jun 8, 2026
2e382bf
docs: a2-prd — reorder epics by PO importance (foundation/infra first)
tunghp2002 Jun 8, 2026
ca602a7
docs(prd): split bundled FRs, add missing features, fix NFRs vs code
tunghp2002 Jun 9, 2026
3c560de
docs: a3-arch — add AD-24 (Services SDK) + AD-25 (cache/CDN proxy layer)
tunghp2002 Jun 9, 2026
f902a64
docs: a4-context — reorganize into 4 version phases; add D66-D88
tunghp2002 Jun 9, 2026
ce63669
docs: a5-lessons — add lessons 41-60 from multi-signal defect sweep
tunghp2002 Jun 9, 2026
2564890
docs: a3-arch + a2-prd — Mermaid diagrams + epic narrative overviews
tunghp2002 Jun 9, 2026
788f568
docs: a3-arch + a2-prd — color Mermaid diagrams; fold FRs into epic t…
tunghp2002 Jun 9, 2026
4df6d71
docs: a2-prd — renumber FRs by epic order; restructure epic overviews
tunghp2002 Jun 9, 2026
c192b3e
docs: a2-prd — multisig EPIC-16 to Partially shipped; add FR-136 Phase 2
tunghp2002 Jun 10, 2026
bdb58a0
docs: a2-prd + a4-context — add core-platform epic, in-progress statu…
tunghp2002 Jun 10, 2026
c81a329
docs: a2-prd — split web-app governance into its own FR (EPIC-14)
tunghp2002 Jun 10, 2026
f7eb1e4
docs: a2-prd — add machine-readable FR index for koni-docs compatibility
tunghp2002 Jun 11, 2026
a19663f
docs: a2-prd — restructure EPIC arrangement after CEO review
saltict Jun 11, 2026
7d1da51
Merge remote-tracking branch 'origin/ai-development' into ai-development
saltict Jun 11, 2026
da6fa4a
docs: a2-prd + a4-context — restructure to 19 epics; renumber EPIC/FR
tunghp2002 Jun 11, 2026
1ab55eb
docs: fix ecosystem/network conflicts (5 ecosystems, 200+ networks)
tunghp2002 Jun 11, 2026
051d159
docs: sprint pilot — 3 epics + 6 example stories (Stream B B6/C7)
tunghp2002 Jun 12, 2026
3f7e233
chore: gitignore .codegraph local index artifact
tunghp2002 Jun 16, 2026
43613fb
docs: FR-centric PRD catalog + accurate shipped/planned status markers
tunghp2002 Jun 16, 2026
20decec
docs: koni-docs sprint epics (20 epics, template-tiered sections)
tunghp2002 Jun 16, 2026
dec3061
docs: koni-docs sprint stories (170 stories)
tunghp2002 Jun 16, 2026
cdbf02c
docs: regenerate sprint STATUS dashboard (20 epics / 170 stories)
tunghp2002 Jun 16, 2026
6af10da
docs: scope EPIC-20 — reference (not own) AD-20; move supply-chain hy…
tunghp2002 Jun 16, 2026
f502ddd
docs: regenerate STATUS dashboard (169 stories)
tunghp2002 Jun 16, 2026
0b44152
docs: add 2026-07-07 koni-docs review notes
saltict Jul 7, 2026
f72b380
docs: add branch standardization (main/dev) to 2026-07-07 review
saltict Jul 7, 2026
4513672
docs: add 2026-07-09 execution roadmap (waves + dependency diagrams)
saltict Jul 9, 2026
77df2db
docs: remove branch rename (master→main, subwallet-dev→dev) from road…
saltict Jul 9, 2026
e70cebe
feat: add EPIC-21 docs conformance epic + 3 stories and 3 gap-fix sto…
saltict Jul 9, 2026
83f80a1
Merge remote-tracking branch 'origin/subwallet-dev' into ai-development
saltict Jul 9, 2026
e1d7245
docs: regenerate STATUS.md for 175 stories after merge
saltict Jul 9, 2026
507f7c1
feat: assign EPIC-21 to tunghp2002, create sprint-2026-W28, update US…
saltict Jul 9, 2026
df64962
docs: add canonical docs/CHANGELOG.md converted from root release his…
tunghp2002 Jul 9, 2026
dd1bc9f
docs: add contributor identity map (US-21.1)
tunghp2002 Jul 9, 2026
6cbe716
docs: US-21.2 history backfill — trace 113 stories, delete duplicates…
tunghp2002 Jul 13, 2026
168ff78
docs: US-21.3 conformance close-out — 5 layers verified, decisions gr…
tunghp2002 Jul 13, 2026
0161a10
docs: EPIC-20 audit — 4 shipped items nobody recorded, and an invaria…
tunghp2002 Jul 13, 2026
cb0bd59
docs: retire NFR-11 — a memory budget nobody measured, for a mechanis…
tunghp2002 Jul 13, 2026
0850328
docs: rewrite EPIC-21's charter, close the 5 PRD gaps, and write down…
tunghp2002 Jul 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .active-context.example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Active Context (Example Template)

> **Per-developer file.** Copy this to `.active-context.md` (gitignored) on
> first checkout and update as you work. This `.example.md` version is the
> committed template — keep it minimal and generic.

## Sprint
<!-- Active sprint id, e.g. sprint-2026-W23 — leave empty until sub-task 2 starts sprints -->
Sprint:

## Active Stories
<!-- One bullet per story you're actively working on (US-X.Y-slug) -->
-

## Last Version Shipped
<!-- Bare semver, no v-prefix (per RULE-16) -->
Last Version: 1.3.79

## Recent Decisions
<!-- Pointer to recent CONTEXT.md entries you authored or rely on -->
-

## Recent Lessons
<!-- Pointer to recent LESSONS.md entries relevant to current work -->
-

## Personal Notes
<!-- Free-form scratch space; not consumed by koni-docs sync -->
520 changes: 520 additions & 0 deletions .agents/skills/koni-docs/SKILL.md

Large diffs are not rendered by default.

266 changes: 266 additions & 0 deletions .agents/skills/koni-docs/references/bmad-template-analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,266 @@
# BMad → Koni-Docs Template Standardization

> **Purpose**: Maps every stage of the BMad product development pipeline to the koni-docs `docs/` structure. Use this to update koni-docs templates to match BMad output standards.
>
> **Based on**: `examples/bmad-raw-sample/` — a complete PlantCare Pro example executed through the full BMad pipeline.
>
> **Date**: 2026-05-07

---

## 1. BMad Pipeline → Koni-Docs Mapping

```
BMAD STAGE BMAD OUTPUT PATH KONI-DOCS TARGET PRIORITY
──────────────────────────────────────────────────────────────────────────────────────────────────
Brainstorm _bmad-output/brainstorming/ (NOT in docs/ — ephemeral) 🟡 Optional
brainstorming-session-{date}.md

Product Brief _bmad-output/planning-artifacts/ (NOT in docs/ — reference 🟡 Optional
brief.md only; extracts into PRD §1)

PRD _bmad-output/planning-artifacts/ docs/PRD.md 🔴 Required
prd.md

Architecture _bmad-output/planning-artifacts/ docs/ARCHITECTURE.md 🔴 Required
architecture.md

Epics & Stories _bmad-output/planning-artifacts/ docs/sprints/epics/ 🔴 Required
epics.md EPIC-N.md (one per epic)
+ docs/PRD.md §7 index

Individual Story _bmad-output/implementation-artifacts/ docs/sprints/stories/ 🔴 Required
stories/{N}-{M}-{slug}.md US-X.Y-{slug}.md

Sprint Status _bmad-output/implementation-artifacts/ docs/sprints/STATUS.md 🔴 Required
sprint-status.yaml (auto-generated YAML → MD)

CHANGELOG (embedded in story files) docs/CHANGELOG.md 🔴 Required

Decision Log (not present in BMad raw — added by docs/CONTEXT.md 🔴 Required
koni-docs as decisions are made)

Lessons Learned (not present in BMad raw — added by docs/LESSONS.md 🔴 Required
koni-docs as patterns emerge)
```

## 2. BMad Template Structure (Extracted from Raw Sample)

### 2a. PRD Structure (BMad Standard)

```
PRD.md
├── Frontmatter (YAML)
│ ├── stepsCompleted: []
│ ├── inputDocuments: []
│ └── workflowType: 'prd'
├── §1 Product Overview (2-3 paragraphs)
├── §2 User Personas (table)
├── §3 User Journey — Happy Path (numbered steps)
├── §4 Functional Requirements (table: ID | Req | Priority | Status | Epic)
├── §5 Non-Functional Requirements (table: ID | Req | Priority | Category)
├── §6 Technical Constraints (bullet list)
└── §7 Epics & Stories Index (per-epic story summary table)
```

### 2b. Architecture Structure (BMad Standard)

```
ARCHITECTURE.md
├── Frontmatter (YAML)
│ ├── stepsCompleted: []
│ └── inputDocuments: []
├── §1 Architecture Overview (diagram + description)
├── §2 Tech Stack (table: Layer | Technology | Version | Rationale)
├── §3 Core Data Models (per-entity: table with Column | Type | Notes)
├── §4 API Endpoints (table: Endpoint | Method | Auth | Purpose)
├── §5 Key Flows (sequence diagrams for critical paths)
├── §6 Architecture Decisions (table: Decision | Topic | Summary)
└── §7 Deployment Architecture (CI/CD pipeline diagram)
```

### 2c. Epics & Stories Structure (BMad Standard)

```
EPICS.md
├── Frontmatter (YAML)
│ ├── stepsCompleted: []
│ └── inputDocuments: [prd.md, architecture.md]
├── Overview (1 paragraph)
├── §1 Requirements Inventory
│ ├── Functional Requirements (FR1, FR2, ...)
│ ├── Non-Functional Requirements (NFR1, NFR2, ...)
│ ├── Additional Requirements (from Architecture)
│ └── UX Design Requirements (if UX doc exists)
├── §2 FR Coverage Map (FR1: Epic N - Description)
├── §3 Epic List (summary: name, goal, FRs covered)
└── §4 Epic Details (repeat per epic)
└── Epic N: {Title}
├── Epic goal statement
└── Story N.M: {Title}
├── As a / I want / So that
└── Acceptance Criteria (Given/When/Then)
```

### 2d. Individual Story File Structure (BMad Standard)

```
STORY {N}.{M}.md
├── Title: Story {N}.{M}: {title}
├── Status: ready-for-dev
├── Story (As a / I want / so that)
├── Acceptance Criteria (numbered list)
├── Tasks / Subtasks
│ ├── Task X (AC: #)
│ └── Subtask X.Y
├── Dev Notes
│ ├── Architecture patterns & constraints
│ ├── Project Structure Notes
│ └── References (links to PRD, Architecture, NFRs)
└── Dev Agent Record
├── Agent Model Used
├── Debug Log References
├── Completion Notes List
└── File List
```

### 2e. Sprint Status Structure (BMad Standard)

```yaml
SPRINT-STATUS.YAML
├── Metadata (generated, project, project_key, tracking_system, story_location)
├── Status Definitions
│ ├── Epic: backlog | in-progress | done
│ ├── Story: backlog | ready-for-dev | in-progress | review | done
│ └── Retrospective: optional | done
└── development_status:
├── epic-N: {status}
├── N-M-{story-slug}: {status}
└── epic-N-retrospective: optional
```

## 3. Key Differences: BMad vs Current Koni-Docs Templates

### 3a. Story Frontmatter

| Field | BMad | Current Koni-Docs | Action |
|-------|------|-------------------|--------|
| `id` | Implicit from filename (N.M) | Explicit `US-X.Y` | **Keep koni-docs format** (more machine-parseable) |
| `status` | `ready-for-dev` / `in-progress` / `review` / `done` | `backlog` / `ready` / `in-progress` / `review` / `done` / `blocked` | **Add `backlog` and `blocked`** to BMad status list |
| `priority` | Not in story file frontmatter | `P0`-`P3` | **Keep in koni-docs** (useful for sprint planning) |
| `points` | Not in story file frontmatter | Fibonacci 1/2/3/5/8/13 | **Keep in koni-docs** (useful for sprint capacity) |
| `sprint` | Tracked in sprint-status.yaml | In story frontmatter | **Keep koni-docs** (explicit link is better than implicit) |
| `version_shipped` | Not in BMad story | In koni-docs frontmatter | **Keep koni-docs** (needed for CHANGELOG) |
| `prd_ref` | Not in BMad (implicit via epic) | In koni-docs frontmatter | **Keep koni-docs** (explicit FR traceability) |
| `commit` | Not in BMad story | In koni-docs frontmatter | **Keep koni-docs** (needed by RULE-2) |
| `created` / `updated` | Not in BMad story | In koni-docs frontmatter | **Keep koni-docs** (useful for auditing) |

### 3b. Story Body

| Section | BMad | Current Koni-Docs | Action |
|---------|------|-------------------|--------|
| Goal | Not explicit (covered by "As a/I want/So that") | Separate §Goal | **Merge**: Make "So that" the goal statement |
| Background | Not in BMad story | §Background (2-3 paragraphs) | **Keep koni-docs** (valuable context for dev) |
| AC Format | Numbered list (from epics) | Checklist `- [ ] AC-N:` | **Adopt BMad Given/When/Then** format within AC |
| Tasks | Grouped with subtasks, AC cross-ref | Flat checklist with file paths | **Adopt BMad grouping** (Task → Subtask hierarchy) |
| Dev Notes | Architecture + structure + references | Implementation notes § | **Adopt BMad format** (structured, source-linked) |
| Changelog entry | Separate story section | Embed in story | **Keep koni-docs** (embedded changelog is RULE-1 requirement) |
| Files modified | In Dev Agent Record → File List | Separate §Files modified | **Keep koni-docs** (more explicit) |
| Cross-references | In Dev Notes → References | Separate §Cross-references | **Keep koni-docs** (more prominent) |

### 3c. Epic File

| Aspect | BMad | Current Koni-Docs | Action |
|--------|------|-------------------|--------|
| Location | All epics in one `epics.md` | One file per epic: `EPIC-N.md` | **Keep koni-docs** (one-per-file scales better) |
| Content | Stories inline with full AC | Summary table + link to story files | **Keep koni-docs** (stories in own files per koni rule) |
| FR Coverage | In epics.md overview | In frontmatter `prd_ref` + §FR coverage | **Add FR coverage section** to koni-docs epic template |

### 3d. Sprint File

| Aspect | BMad | Current Koni-Docs | Action |
|--------|------|-------------------|--------|
| Format | YAML (`sprint-status.yaml`) | Markdown (`sprint-YYYY-WNN.md`) | **Keep koni-docs** (YAML auto-gen, MD sprint file complementary) |
| Scope table | Not in YAML (implicit from status) | Explicit scope table in MD | **Keep koni-docs sprint MD** for human-readable scope |
| Retrospective | Per-epic retrospective flag | In sprint file on close | **Adopt BMad retro pattern** — per-epic retro optional flag |
| Sprint goal | Not in YAML | In sprint MD frontmatter + recap | **Keep koni-docs** |

## 4. Template Update Recommendations

### 4a. PRD Template — Add §7 Epics & Stories Index

Current koni-docs PRD template has §4 (FR table with EPIC-N column) but lacks a §7 index. Add:

```markdown
## §7. Epics & Stories Index

### EPIC-1 — {Epic Title}
| Story | Title | Status | Version |
|-------|-------|--------|---------|
| US-1.1 | {title} | {status} | — |
```

### 4b. Story Template — Enhancements

1. **Add BMad-style AC format option**: Support Given/When/Then alongside declarative ACs
2. **Add Tasks grouping**: Allow `TASK-X.Y.Z` with subtask indentation and AC cross-reference
3. **Add structured Dev Notes**: Include `Project Structure Notes` and `References` sub-sections
4. **Keep koni-docs frontmatter**: The koni-docs frontmatter is richer — keep all fields
5. **Keep koni-docs Changelog entry section**: This is critical for RULE-1 (same-commit docs)

### 4c. Epic Template — Add FR Coverage

Add to current koni-docs epic template:

```markdown
## FR Coverage
| FR | Story | Status |
|----|-------|--------|
| FR-N | US-X.Y | {status} |
```

### 4d. Architecture Template — Add Architecture Decisions Table

Current koni-docs ARCHITECTURE template links to CONTEXT.md for decisions. Add a summary table:

```markdown
## Architecture decisions
| Decision | Topic | Date | Version | CONTEXT Ref |
|----------|-------|------|---------|-------------|
| AD-1 | {topic} | YYYY-MM-DD | vX.Y.Z | D{N} |
```

## 5. BMad Naming Convention → Koni-Docs Mapping

| BMad Convention | Koni-Docs Convention | Mapping Rule |
|----------------|---------------------|--------------|
| `Epic N` | `EPIC-N` | Same numbering, UPPERCASE in koni-docs |
| `Story N.M` | `US-X.Y` | N.M → X.Y (same numbering; X=epic, Y=story) |
| `{N}-{M}-{slug}` | `US-{X}.{Y}-{slug}` | Prefix with `US-` |
| `epic-N: {status}` | `EPIC-N.md` frontmatter `status:` | YAML → Markdown frontmatter |
| `development_status:` | `STATUS.md` (auto-generated) | YAML → kanban table |
| `sprint-status.yaml` | `sprint-YYYY-WNN.md` + `STATUS.md` | Complementary: YAML machine, MD human |

## 6. Complete BMad → Koni-Docs Workflow

```
INPUT PROCESS OUTPUT
───────────────────────────────────────────────────────────────────────────────
BMad brainstorm session → koni-docs extract → (discard or archive)
BMad brief.md → koni-docs extract §1,§2 → docs/PRD.md §1
BMad prd.md → koni-docs standardize → docs/PRD.md (full)
BMad architecture.md → koni-docs standardize → docs/ARCHITECTURE.md
BMad epics.md (all epics+stories) → koni-docs split+standardize → docs/sprints/epics/EPIC-N.md
→ docs/PRD.md §7 index
→ docs/sprints/stories/US-X.Y-slug.md
BMad story files (per-story) → koni-docs add frontmatter → docs/sprints/stories/US-X.Y-slug.md
BMad sprint-status.yaml → koni-docs auto-generate → docs/sprints/STATUS.md
→ koni-docs manual → docs/sprints/sprint-YYYY-WNN.md
```

## 7. NOTES

- BMad's `planning_artifacts` path = `_bmad-output/planning-artifacts/`
- BMad's `implementation_artifacts` path = `_bmad-output/implementation-artifacts/`
- Koni-docs canonical path = `docs/`
- The `references/migration-from-bmad.md` file already covers the migration procedure — this analysis provides the **template-level structural mapping** to complement that file.
Loading
Loading