ai-devkit 0.4.2 → 0.6.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 (142) hide show
  1. package/dist/cli.js +8 -0
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/init.d.ts.map +1 -1
  4. package/dist/commands/init.js +1 -1
  5. package/dist/commands/init.js.map +1 -1
  6. package/dist/commands/memory.d.ts +3 -0
  7. package/dist/commands/memory.d.ts.map +1 -0
  8. package/dist/commands/memory.js +53 -0
  9. package/dist/commands/memory.js.map +1 -0
  10. package/dist/commands/setup.d.ts +6 -0
  11. package/dist/commands/setup.d.ts.map +1 -0
  12. package/dist/commands/setup.js +112 -0
  13. package/dist/commands/setup.js.map +1 -0
  14. package/dist/lib/EnvironmentSelector.d.ts +1 -0
  15. package/dist/lib/EnvironmentSelector.d.ts.map +1 -1
  16. package/dist/lib/EnvironmentSelector.js +28 -0
  17. package/dist/lib/EnvironmentSelector.js.map +1 -1
  18. package/dist/lib/TemplateManager.d.ts +14 -0
  19. package/dist/lib/TemplateManager.d.ts.map +1 -1
  20. package/dist/lib/TemplateManager.js +74 -3
  21. package/dist/lib/TemplateManager.js.map +1 -1
  22. package/{templates/commands/capture-knowledge.toml → dist/templates/commands/capture-knowledge.md} +10 -4
  23. package/{templates/commands/check-implementation.toml → dist/templates/commands/check-implementation.md} +9 -0
  24. package/{templates/commands/code-review.toml → dist/templates/commands/code-review.md} +11 -4
  25. package/{templates/commands/debug.toml → dist/templates/commands/debug.md} +11 -5
  26. package/{templates/commands/execute-plan.toml → dist/templates/commands/execute-plan.md} +11 -5
  27. package/{templates/commands/new-requirement.toml → dist/templates/commands/new-requirement.md} +11 -4
  28. package/dist/templates/commands/remember.md +27 -0
  29. package/dist/templates/commands/review-design.md +21 -0
  30. package/dist/templates/commands/review-requirements.md +19 -0
  31. package/dist/templates/commands/simplify-implementation.md +153 -0
  32. package/{templates/commands/update-planning.toml → dist/templates/commands/update-planning.md} +11 -4
  33. package/{templates/commands/writing-test.toml → dist/templates/commands/writing-test.md} +10 -3
  34. package/dist/templates/env/base.md +51 -0
  35. package/dist/templates/phases/deployment.md +72 -0
  36. package/dist/templates/phases/design.md +60 -0
  37. package/dist/templates/phases/implementation.md +65 -0
  38. package/dist/templates/phases/monitoring.md +80 -0
  39. package/dist/templates/phases/planning.md +60 -0
  40. package/dist/templates/phases/requirements.md +51 -0
  41. package/dist/templates/phases/testing.md +81 -0
  42. package/dist/templates/templates/commands/capture-knowledge.md +55 -0
  43. package/dist/templates/templates/commands/check-implementation.md +30 -0
  44. package/dist/templates/templates/commands/code-review.md +90 -0
  45. package/dist/templates/templates/commands/debug.md +54 -0
  46. package/dist/templates/templates/commands/execute-plan.md +80 -0
  47. package/dist/templates/templates/commands/new-requirement.md +136 -0
  48. package/dist/templates/templates/commands/remember.md +27 -0
  49. package/dist/templates/templates/commands/review-design.md +21 -0
  50. package/dist/templates/templates/commands/review-requirements.md +19 -0
  51. package/dist/templates/templates/commands/simplify-implementation.md +153 -0
  52. package/dist/templates/templates/commands/update-planning.md +70 -0
  53. package/dist/templates/templates/commands/writing-test.md +53 -0
  54. package/dist/templates/templates/env/base.md +51 -0
  55. package/dist/templates/templates/phases/deployment.md +72 -0
  56. package/dist/templates/templates/phases/design.md +60 -0
  57. package/dist/templates/templates/phases/implementation.md +65 -0
  58. package/dist/templates/templates/phases/monitoring.md +80 -0
  59. package/dist/templates/templates/phases/planning.md +60 -0
  60. package/dist/templates/templates/phases/requirements.md +51 -0
  61. package/dist/templates/templates/phases/testing.md +81 -0
  62. package/dist/types.d.ts +2 -1
  63. package/dist/types.d.ts.map +1 -1
  64. package/dist/types.js.map +1 -1
  65. package/dist/util/env.d.ts +2 -0
  66. package/dist/util/env.d.ts.map +1 -1
  67. package/dist/util/env.js +18 -1
  68. package/dist/util/env.js.map +1 -1
  69. package/package.json +5 -2
  70. package/project.json +29 -0
  71. package/templates/commands/capture-knowledge.md +9 -0
  72. package/templates/commands/check-implementation.md +9 -0
  73. package/templates/commands/code-review.md +9 -0
  74. package/templates/commands/debug.md +9 -0
  75. package/templates/commands/execute-plan.md +9 -0
  76. package/templates/commands/new-requirement.md +9 -0
  77. package/templates/commands/remember.md +27 -0
  78. package/templates/commands/review-design.md +10 -0
  79. package/templates/commands/review-requirements.md +10 -0
  80. package/templates/commands/simplify-implementation.md +153 -0
  81. package/templates/commands/update-planning.md +9 -0
  82. package/templates/commands/writing-test.md +9 -0
  83. package/CHANGELOG.md +0 -87
  84. package/README.md +0 -297
  85. package/dist/__tests__/lib/Config.test.d.ts +0 -2
  86. package/dist/__tests__/lib/Config.test.d.ts.map +0 -1
  87. package/dist/__tests__/lib/Config.test.js +0 -281
  88. package/dist/__tests__/lib/Config.test.js.map +0 -1
  89. package/dist/__tests__/lib/EnvironmentSelector.test.d.ts +0 -2
  90. package/dist/__tests__/lib/EnvironmentSelector.test.d.ts.map +0 -1
  91. package/dist/__tests__/lib/EnvironmentSelector.test.js +0 -117
  92. package/dist/__tests__/lib/EnvironmentSelector.test.js.map +0 -1
  93. package/dist/__tests__/lib/PhaseSelector.test.d.ts +0 -2
  94. package/dist/__tests__/lib/PhaseSelector.test.d.ts.map +0 -1
  95. package/dist/__tests__/lib/PhaseSelector.test.js +0 -77
  96. package/dist/__tests__/lib/PhaseSelector.test.js.map +0 -1
  97. package/dist/__tests__/lib/TemplateManager.test.d.ts +0 -2
  98. package/dist/__tests__/lib/TemplateManager.test.d.ts.map +0 -1
  99. package/dist/__tests__/lib/TemplateManager.test.js +0 -351
  100. package/dist/__tests__/lib/TemplateManager.test.js.map +0 -1
  101. package/dist/__tests__/util/env.test.d.ts +0 -2
  102. package/dist/__tests__/util/env.test.d.ts.map +0 -1
  103. package/dist/__tests__/util/env.test.js +0 -166
  104. package/dist/__tests__/util/env.test.js.map +0 -1
  105. package/templates/commands/review-design.toml +0 -13
  106. package/templates/commands/review-requirements.toml +0 -11
  107. package/web/.nojekyll +0 -2
  108. package/web/CNAME +0 -1
  109. package/web/README.md +0 -100
  110. package/web/app/favicon.ico +0 -0
  111. package/web/app/globals.css +0 -122
  112. package/web/app/layout.tsx +0 -106
  113. package/web/app/page.tsx +0 -119
  114. package/web/app/roadmap/page.tsx +0 -150
  115. package/web/app/robots.ts +0 -16
  116. package/web/app/sitemap.ts +0 -46
  117. package/web/app/vision/page.tsx +0 -49
  118. package/web/components/Footer.tsx +0 -81
  119. package/web/components/GitHubButton.tsx +0 -49
  120. package/web/components/GitHubStars.tsx +0 -27
  121. package/web/components/Header.tsx +0 -108
  122. package/web/components/MarkdownContent.tsx +0 -35
  123. package/web/components/SkipToContent.tsx +0 -11
  124. package/web/content/pages/vision.md +0 -44
  125. package/web/content/roadmap/1-web.md +0 -9
  126. package/web/content/roadmap/2-integrations.md +0 -7
  127. package/web/content/roadmap/3-cli-enhancements.md +0 -8
  128. package/web/content/roadmap/4-local-memory.md +0 -8
  129. package/web/eslint.config.mjs +0 -18
  130. package/web/lib/GitHubContext.tsx +0 -57
  131. package/web/lib/content/loader.ts +0 -152
  132. package/web/lib/content/types.ts +0 -37
  133. package/web/lib/utils.ts +0 -12
  134. package/web/next.config.ts +0 -11
  135. package/web/package-lock.json +0 -8837
  136. package/web/package.json +0 -34
  137. package/web/postcss.config.mjs +0 -7
  138. package/web/public/file.svg +0 -1
  139. package/web/public/globe.svg +0 -1
  140. package/web/public/next.svg +0 -1
  141. package/web/public/vercel.svg +0 -1
  142. package/web/public/window.svg +0 -1
@@ -0,0 +1,51 @@
1
+ ---
2
+ phase: requirements
3
+ title: Requirements & Problem Understanding
4
+ description: Clarify the problem space, gather requirements, and define success criteria
5
+ ---
6
+
7
+ # Requirements & Problem Understanding
8
+
9
+ ## Problem Statement
10
+ **What problem are we solving?**
11
+
12
+ - Describe the core problem or pain point
13
+ - Who is affected by this problem?
14
+ - What is the current situation/workaround?
15
+
16
+ ## Goals & Objectives
17
+ **What do we want to achieve?**
18
+
19
+ - Primary goals
20
+ - Secondary goals
21
+ - Non-goals (what's explicitly out of scope)
22
+
23
+ ## User Stories & Use Cases
24
+ **How will users interact with the solution?**
25
+
26
+ - As a [user type], I want to [action] so that [benefit]
27
+ - Key workflows and scenarios
28
+ - Edge cases to consider
29
+
30
+ ## Success Criteria
31
+ **How will we know when we're done?**
32
+
33
+ - Measurable outcomes
34
+ - Acceptance criteria
35
+ - Performance benchmarks (if applicable)
36
+
37
+ ## Constraints & Assumptions
38
+ **What limitations do we need to work within?**
39
+
40
+ - Technical constraints
41
+ - Business constraints
42
+ - Time/budget constraints
43
+ - Assumptions we're making
44
+
45
+ ## Questions & Open Items
46
+ **What do we still need to clarify?**
47
+
48
+ - Unresolved questions
49
+ - Items requiring stakeholder input
50
+ - Research needed
51
+
@@ -0,0 +1,81 @@
1
+ ---
2
+ phase: testing
3
+ title: Testing Strategy
4
+ description: Define testing approach, test cases, and quality assurance
5
+ ---
6
+
7
+ # Testing Strategy
8
+
9
+ ## Test Coverage Goals
10
+ **What level of testing do we aim for?**
11
+
12
+ - Unit test coverage target (default: 100% of new/changed code)
13
+ - Integration test scope (critical paths + error handling)
14
+ - End-to-end test scenarios (key user journeys)
15
+ - Alignment with requirements/design acceptance criteria
16
+
17
+ ## Unit Tests
18
+ **What individual components need testing?**
19
+
20
+ ### Component/Module 1
21
+ - [ ] Test case 1: [Description] (covers scenario / branch)
22
+ - [ ] Test case 2: [Description] (covers edge case / error handling)
23
+ - [ ] Additional coverage: [Description]
24
+
25
+ ### Component/Module 2
26
+ - [ ] Test case 1: [Description]
27
+ - [ ] Test case 2: [Description]
28
+ - [ ] Additional coverage: [Description]
29
+
30
+ ## Integration Tests
31
+ **How do we test component interactions?**
32
+
33
+ - [ ] Integration scenario 1
34
+ - [ ] Integration scenario 2
35
+ - [ ] API endpoint tests
36
+ - [ ] Integration scenario 3 (failure mode / rollback)
37
+
38
+ ## End-to-End Tests
39
+ **What user flows need validation?**
40
+
41
+ - [ ] User flow 1: [Description]
42
+ - [ ] User flow 2: [Description]
43
+ - [ ] Critical path testing
44
+ - [ ] Regression of adjacent features
45
+
46
+ ## Test Data
47
+ **What data do we use for testing?**
48
+
49
+ - Test fixtures and mocks
50
+ - Seed data requirements
51
+ - Test database setup
52
+
53
+ ## Test Reporting & Coverage
54
+ **How do we verify and communicate test results?**
55
+
56
+ - Coverage commands and thresholds (`npm run test -- --coverage`)
57
+ - Coverage gaps (files/functions below 100% and rationale)
58
+ - Links to test reports or dashboards
59
+ - Manual testing outcomes and sign-off
60
+
61
+ ## Manual Testing
62
+ **What requires human validation?**
63
+
64
+ - UI/UX testing checklist (include accessibility)
65
+ - Browser/device compatibility
66
+ - Smoke tests after deployment
67
+
68
+ ## Performance Testing
69
+ **How do we validate performance?**
70
+
71
+ - Load testing scenarios
72
+ - Stress testing approach
73
+ - Performance benchmarks
74
+
75
+ ## Bug Tracking
76
+ **How do we manage issues?**
77
+
78
+ - Issue tracking process
79
+ - Bug severity levels
80
+ - Regression testing strategy
81
+
@@ -0,0 +1,55 @@
1
+ ---
2
+ description: Capture structured knowledge about a code entry point and save it to the knowledge docs.
3
+ ---
4
+
5
+ # Knowledge Capture Assistant
6
+
7
+ Guide me through creating a structured understanding of a code entry point and saving it to the knowledge docs.
8
+
9
+ ## Memory (use when helpful)
10
+ - If you need clarification or project conventions, query `memory.searchKnowledge` with a brief task description, tags, and scope.
11
+ - If I ask to save reusable guidance, run `/remember` (or call `memory.storeKnowledge`).
12
+ - If MCP tools are unavailable, use `ai-devkit memory search` or `ai-devkit memory store`.
13
+
14
+ ## Step 1: Gather Context
15
+ - Entry point (file, folder, function, API)
16
+ - Why this entry point matters (feature, bug, investigation)
17
+ - Relevant requirements/design docs (if any)
18
+ - Desired depth or focus areas (logic, dependencies, data flow)
19
+
20
+ ## Step 2: Validate Entry Point
21
+ - Determine entry point type and confirm it exists
22
+ - Surface ambiguity (multiple matches) and ask for clarification
23
+ - If not found, suggest likely alternatives or spelling fixes
24
+
25
+ ## Step 3: Collect Source Context
26
+ - Read the primary file/module and summarize purpose, exports, key patterns
27
+ - For folders: list structure, highlight key modules
28
+ - For functions/APIs: capture signature, parameters, return values, error handling
29
+ - Extract essential snippets (avoid large dumps)
30
+
31
+ ## Step 4: Analyze Dependencies
32
+ - Build a dependency view up to depth 3
33
+ - Track visited nodes to avoid loops
34
+ - Categorize dependencies (imports, function calls, services, external packages)
35
+ - Note important external systems or generated code that should be excluded
36
+
37
+ ## Step 5: Synthesize Explanation
38
+ - Draft an overview (purpose, language, high-level behavior)
39
+ - Detail core logic, key components, execution flow, patterns
40
+ - Highlight error handling, performance, security considerations
41
+ - Identify potential improvements or risks discovered during analysis
42
+
43
+ ## Step 6: Create Documentation
44
+ - Normalize entry point name to kebab-case (`calculateTotalPrice` → `calculate-total-price`)
45
+ - Create `docs/ai/implementation/knowledge-{name}.md` using the headings implied in Step 5 (Overview, Implementation Details, Dependencies, Visual Diagrams, Additional Insights, Metadata, Next Steps)
46
+ - Populate sections with findings, diagrams, and metadata (analysis date, depth, files touched)
47
+ - Include mermaid diagrams when they clarify flows or relationships
48
+
49
+ ## Step 7: Review & Next Actions
50
+ - Summarize key insights and open questions for follow-up
51
+ - Suggest related areas for deeper dives or refactors
52
+ - Confirm the knowledge file path and remind to commit it
53
+ - Encourage running `/capture-knowledge` again for related entry points if needed
54
+
55
+ Let me know the entry point and goals when you’re ready to begin the knowledge capture.
@@ -0,0 +1,30 @@
1
+ ---
2
+ description: Compare implementation with design and requirements docs to ensure alignment.
3
+ ---
4
+
5
+ Compare the current implementation with the design in docs/ai/design/ and requirements in docs/ai/requirements/. Please follow this structured review:
6
+
7
+ ## Memory (use when helpful)
8
+ - If you need clarification or project conventions, query `memory.searchKnowledge` with a brief task description, tags, and scope.
9
+ - If I ask to save reusable guidance, run `/remember` (or call `memory.storeKnowledge`).
10
+ - If MCP tools are unavailable, use `ai-devkit memory search` or `ai-devkit memory store`.
11
+
12
+ 1. Ask me for:
13
+ - Feature/branch description
14
+ - List of modified files
15
+ - Relevant design doc(s) (feature-specific and/or project-level)
16
+ - Any known constraints or assumptions
17
+
18
+ 2. For each design doc:
19
+ - Summarize key architectural decisions and constraints
20
+ - Highlight components, interfaces, and data flows that must be respected
21
+
22
+ 3. File-by-file comparison:
23
+ - Confirm implementation matches design intent
24
+ - Note deviations or missing pieces
25
+ - Flag logic gaps, edge cases, or security issues
26
+ - Suggest simplifications or refactors
27
+ - Identify missing tests or documentation updates
28
+
29
+ 4. Summarize findings with recommended next steps.
30
+
@@ -0,0 +1,90 @@
1
+ ---
2
+ description: Perform a local code review before pushing changes, ensuring alignment with design docs and best practices.
3
+ ---
4
+
5
+ # Local Code Review Assistant
6
+
7
+ You are helping me perform a local code review **before** I push changes. Please follow this structured workflow.
8
+
9
+ ## Memory (use when helpful)
10
+ - If you need clarification or project conventions, query `memory.searchKnowledge` with a brief task description, tags, and scope.
11
+ - If I ask to save reusable guidance, run `/remember` (or call `memory.storeKnowledge`).
12
+ - If MCP tools are unavailable, use `ai-devkit memory search` or `ai-devkit memory store`.
13
+
14
+ ## Step 1: Gather Context
15
+ Ask me for:
16
+ - Brief feature/branch description
17
+ - List of modified files (with optional summaries)
18
+ - Relevant design doc(s) (e.g., `docs/ai/design/feature-{name}.md` or project-level design)
19
+ - Any known constraints or risky areas
20
+ - Any open bugs or TODOs linked to this work
21
+ - Which tests have already been run
22
+
23
+ If possible, request the latest diff:
24
+ ```bash
25
+ git status -sb
26
+ git diff --stat
27
+ ```
28
+
29
+ ## Step 2: Understand Design Alignment
30
+ For each provided design doc:
31
+ - Summarize the architectural intent
32
+ - Note critical requirements, patterns, or constraints the design mandates
33
+
34
+ ## Step 3: File-by-File Review
35
+ For every modified file:
36
+ 1. Highlight deviations from the referenced design or requirements
37
+ 2. Spot potential logic or flow issues and edge cases
38
+ 3. Identify redundant or duplicate code
39
+ 4. Suggest simplifications or refactors (prefer clarity over cleverness)
40
+ 5. Flag security concerns (input validation, secrets, auth, data handling)
41
+ 6. Check for performance pitfalls or scalability risks
42
+ 7. Ensure error handling, logging, and observability are appropriate
43
+ 8. Note any missing comments or docs
44
+ 9. Flag missing or outdated tests related to this file
45
+
46
+ ## Step 4: Cross-Cutting Concerns
47
+ - Verify naming consistency and adherence to project conventions
48
+ - Confirm documentation/comments are updated where the behavior changed
49
+ - Identify missing tests (unit, integration, E2E) needed to cover the changes
50
+ - Ensure configuration/migration updates are captured if applicable
51
+
52
+ ## Step 5: Summarize Findings
53
+ Provide results in this structure:
54
+ ```
55
+ ### Summary
56
+ - Blocking issues: [count]
57
+ - Important follow-ups: [count]
58
+ - Nice-to-have improvements: [count]
59
+
60
+ ### Detailed Notes
61
+ 1. **[File or Component]**
62
+ - Issue/Observation: ...
63
+ - Impact: (e.g., blocking / important / nice-to-have)
64
+ - Recommendation: ...
65
+ - Design reference: [...]
66
+
67
+ 2. ... (repeat per finding)
68
+
69
+ ### Recommended Next Steps
70
+ - [ ] Address blocking issues
71
+ - [ ] Update design/implementation docs if needed
72
+ - [ ] Add/adjust tests:
73
+ - Unit:
74
+ - Integration:
75
+ - E2E:
76
+ - [ ] Rerun local test suite
77
+ - [ ] Re-run code review command after fixes
78
+ ```
79
+
80
+ ## Step 6: Final Checklist
81
+ Confirm whether each item is complete (yes/no/needs follow-up):
82
+ - Implementation matches design & requirements
83
+ - No obvious logic or edge-case gaps remain
84
+ - Redundant code removed or justified
85
+ - Security considerations addressed
86
+ - Tests cover new/changed behavior
87
+ - Documentation/design notes updated
88
+
89
+ ---
90
+ Let me know when you're ready to begin the review.
@@ -0,0 +1,54 @@
1
+ ---
2
+ description: Guide me through debugging a code issue by clarifying expectations, identifying gaps, and agreeing on a fix plan before changing code.
3
+ ---
4
+
5
+ # Local Debugging Assistant
6
+
7
+ Help me debug an issue by clarifying expectations, identifying gaps, and agreeing on a fix plan before changing code.
8
+
9
+ ## Memory (use when helpful)
10
+ - If you need clarification or project conventions, query `memory.searchKnowledge` with a brief task description, tags, and scope.
11
+ - If I ask to save reusable guidance, run `/remember` (or call `memory.storeKnowledge`).
12
+ - If MCP tools are unavailable, use `ai-devkit memory search` or `ai-devkit memory store`.
13
+
14
+ ## Step 1: Gather Context
15
+ Ask me for:
16
+ - Brief issue description (what is happening?)
17
+ - Expected behavior or acceptance criteria (what should happen?)
18
+ - Current behavior and any error messages/logs
19
+ - Recent related changes or deployments
20
+ - Scope of impact (users, services, environments)
21
+
22
+ ## Step 2: Clarify Reality vs Expectation
23
+ - Restate the observed behavior vs the expected outcome
24
+ - Confirm relevant requirements, tickets, or docs that define the expectation
25
+ - Identify acceptance criteria for the fix (how we know it is resolved)
26
+
27
+ ## Step 3: Reproduce & Isolate
28
+ - Determine reproducibility (always, intermittent, environment-specific)
29
+ - Capture reproduction steps or commands
30
+ - Note any available tests that expose the failure
31
+ - List suspected components, services, or modules
32
+
33
+ ## Step 4: Analyze Potential Causes
34
+ - Brainstorm plausible root causes (data, config, code regressions, external dependencies)
35
+ - Gather supporting evidence (logs, metrics, traces, screenshots)
36
+ - Highlight gaps or unknowns that need investigation
37
+
38
+ ## Step 5: Surface Options
39
+ - Present possible resolution paths (quick fix, deeper refactor, rollback, feature flag, etc.)
40
+ - For each option, list pros/cons, risks, and verification steps
41
+ - Consider required approvals or coordination
42
+
43
+ ## Step 6: Confirm Path Forward
44
+ - Ask which option we should pursue
45
+ - Summarize chosen approach, required pre-work, and success criteria
46
+ - Plan validation steps (tests, monitoring, user sign-off)
47
+
48
+ ## Step 7: Next Actions & Tracking
49
+ - Document tasks, owners, and timelines for the selected option
50
+ - Note follow-up actions after deployment (monitoring, comms, postmortem if needed)
51
+ - Encourage updating relevant docs/tests once resolved
52
+
53
+ Let me know when you're ready to walk through the debugging flow.
54
+
@@ -0,0 +1,80 @@
1
+ ---
2
+ description: Execute a feature plan interactively, guiding me through each task while referencing relevant docs and updating status.
3
+ ---
4
+
5
+ # Feature Plan Execution Assistant
6
+
7
+ Help me work through a feature plan one task at a time.
8
+
9
+ ## Memory (use when helpful)
10
+ - If you need clarification or project conventions, query `memory.searchKnowledge` with a brief task description, tags, and scope.
11
+ - If I ask to save reusable guidance, run `/remember` (or call `memory.storeKnowledge`).
12
+ - If MCP tools are unavailable, use `ai-devkit memory search` or `ai-devkit memory store`.
13
+
14
+ ## Step 1: Gather Context
15
+ Ask me for:
16
+ - Feature name (kebab-case, e.g., `user-authentication`)
17
+ - Brief feature/branch description
18
+ - Relevant planning doc path (default `docs/ai/planning/feature-{name}.md`)
19
+ - Any supporting design/implementation docs (design, requirements, implementation)
20
+ - Current branch and latest diff summary (`git status -sb`, `git diff --stat`)
21
+
22
+ ## Step 2: Load the Plan
23
+ - Request the planning doc contents or offer commands like:
24
+ ```bash
25
+ cat docs/ai/planning/feature-<name>.md
26
+ ```
27
+ - Parse sections that represent task lists (look for headings + checkboxes `[ ]`, `[x]`).
28
+ - Build an ordered queue of tasks grouped by section (e.g., Foundation, Core Features, Testing).
29
+
30
+ ## Step 3: Present Task Queue
31
+ Show an overview:
32
+ ```
33
+ ### Task Queue: <Feature Name>
34
+ 1. [status] Section • Task title
35
+ 2. ...
36
+ ```
37
+ Status legend: `todo`, `in-progress`, `done`, `blocked` (based on checkbox/notes if present).
38
+
39
+ ## Step 4: Interactive Task Execution
40
+ For each task in order:
41
+ 1. Display the section/context, full bullet text, and any existing notes.
42
+ 2. Suggest relevant docs to reference (requirements/design/implementation).
43
+ 3. Ask: "Plan for this task?" Offer to outline sub-steps using the design doc.
44
+ 4. Prompt to mark status (`done`, `in-progress`, `blocked`, `skipped`) and capture short notes/next steps.
45
+ 5. Encourage code/document edits inside Cursor; offer commands/snippets when useful.
46
+ 6. If blocked, record blocker info and move task to the end or into a "Blocked" list.
47
+
48
+ ## Step 5: Update Planning Doc
49
+ After each status change, generate a Markdown snippet the user can paste back into the planning doc, e.g.:
50
+ ```
51
+ - [x] Task: Implement auth service (Notes: finished POST /auth/login, tests added)
52
+ ```
53
+ Remind the user to keep the source doc updated.
54
+
55
+ ## Step 6: Check for Newly Discovered Work
56
+ After each section, ask if new tasks were discovered. If yes, capture them in a "New Work" list with status `todo` and include in the summary.
57
+
58
+ ## Step 7: Session Summary
59
+ Produce a summary table:
60
+ ```
61
+ ### Execution Summary
62
+ - Completed: (list)
63
+ - In Progress: (list + owners/next steps)
64
+ - Blocked: (list + blockers)
65
+ - Skipped / Deferred: (list + rationale)
66
+ - New Tasks: (list)
67
+ ```
68
+
69
+ ## Step 8: Next Actions
70
+ Remind the user to:
71
+ - Update `docs/ai/planning/feature-{name}.md` with the new statuses
72
+ - Sync related docs (requirements/design/implementation/testing) if decisions changed
73
+ - Run `/check-implementation` to validate changes against design docs
74
+ - Run `/writing-test` to produce unit/integration tests targeting 100% coverage
75
+ - Run `/update-planning` to reconcile the planning doc with the latest status
76
+ - Run `/code-review` when ready for final review
77
+ - Run test suites relevant to completed tasks
78
+
79
+ ---
80
+ Let me know when you're ready to start executing the plan. Provide the feature name and planning doc first.
@@ -0,0 +1,136 @@
1
+ ---
2
+ description: Add new feature/requirement documentation and guide me through the development workflow from requirements to testing.
3
+ ---
4
+
5
+ I want to add a new feature/requirement. Please guide me through the complete development workflow:
6
+
7
+ ## Memory (use when helpful)
8
+ - If you need clarification or project conventions, query `memory.searchKnowledge` with a brief task description, tags, and scope.
9
+ - If I ask to save reusable guidance, run `/remember` (or call `memory.storeKnowledge`).
10
+ - If MCP tools are unavailable, use `ai-devkit memory search` or `ai-devkit memory store`.
11
+
12
+ ## Step 1: Capture Requirement
13
+ First, ask me:
14
+ - What is the feature name? (e.g., "user-authentication", "payment-integration")
15
+ - What problem does it solve?
16
+ - Who will use it?
17
+ - What are the key user stories?
18
+
19
+ ## Step 2: Create Feature Documentation Structure
20
+ Once I provide the requirement, create the following files (copy the existing template content so sections/frontmatter match exactly):
21
+ - Start from `docs/ai/requirements/README.md` → save as `docs/ai/requirements/feature-{name}.md`
22
+ - Start from `docs/ai/design/README.md` → save as `docs/ai/design/feature-{name}.md`
23
+ - Start from `docs/ai/planning/README.md` → save as `docs/ai/planning/feature-{name}.md`
24
+ - Start from `docs/ai/implementation/README.md` → save as `docs/ai/implementation/feature-{name}.md`
25
+ - Start from `docs/ai/testing/README.md` → save as `docs/ai/testing/feature-{name}.md`
26
+
27
+ Ensure the YAML frontmatter and section headings remain identical to the templates before filling in feature-specific content.
28
+
29
+ ## Step 3: Requirements Phase
30
+ Help me fill out `docs/ai/requirements/feature-{name}.md`:
31
+ - Clarify the problem statement
32
+ - Define goals and non-goals
33
+ - Write detailed user stories
34
+ - Establish success criteria
35
+ - Identify constraints and assumptions
36
+ - List open questions
37
+
38
+ ## Step 4: Design Phase
39
+ Guide me through `docs/ai/design/feature-{name}.md`:
40
+ - Propose system architecture changes needed
41
+ - Define data models/schema changes
42
+ - Design API endpoints or interfaces
43
+ - Identify components to create/modify
44
+ - Document key design decisions
45
+ - Note security and performance considerations
46
+
47
+ ## Step 5: Planning Phase
48
+ Help me break down work in `docs/ai/planning/feature-{name}.md`:
49
+ - Create task breakdown with subtasks
50
+ - Identify dependencies (on other features, APIs, etc.)
51
+ - Estimate effort for each task
52
+ - Suggest implementation order
53
+ - Identify risks and mitigation strategies
54
+
55
+ ## Step 6: Documentation Review (Chained Commands)
56
+ Once the docs above are drafted, run the following commands to tighten them up:
57
+ - `/review-requirements` to validate the requirements doc for completeness and clarity
58
+ - `/review-design` to ensure the design doc aligns with requirements and highlights key decisions
59
+
60
+ (If you are using Claude Code, reference the `review-requirements` and `review-design` commands instead.)
61
+
62
+ ## Step 7: Implementation Phase (Deferred)
63
+ This command focuses on documentation only. Actual implementation happens later via `/execute-plan`.
64
+ For each task in the plan:
65
+ 1. Review the task requirements and design
66
+ 2. Ask me to confirm I'm starting this task
67
+ 3. Guide implementation with reference to design docs
68
+ 4. Suggest code structure and patterns
69
+ 5. Help with error handling and edge cases
70
+ 6. Update `docs/ai/implementation/feature-{name}.md` with notes
71
+
72
+ ## Step 8: Testing Phase
73
+ Guide testing in `docs/ai/testing/feature-{name}.md`:
74
+ - Draft unit test cases with `/writing-test`
75
+ - Draft integration test scenarios with `/writing-test`
76
+ - Recommend manual testing steps
77
+ - Help write test code
78
+ - Verify all success criteria are testable
79
+
80
+ ## Step 9: Local Testing & Verification
81
+ Guide me through:
82
+ 1. Running all tests locally
83
+ 2. Manual testing checklist
84
+ 3. Reviewing against requirements
85
+ 4. Checking design compliance
86
+ 5. Preparing for code review (diff summary, list of files, design references)
87
+
88
+ ## Step 10: Local Code Review (Optional but recommended)
89
+ Before pushing, ask me to run `/code-review` with the modified file list and relevant docs.
90
+
91
+ ## Step 11: Implementation Execution Reminder
92
+ When ready to implement, run `/execute-plan` to work through the planning doc tasks interactively. That command will orchestrate implementation, testing, and follow-up documentation.
93
+
94
+ ## Step 12: Create Merge/Pull Request
95
+ Provide the MR/PR description:
96
+ ```markdown
97
+ ## Feature: [Feature Name]
98
+
99
+ ### Summary
100
+ [Brief description of what this feature does]
101
+
102
+ ### Requirements
103
+ - Documented in: `docs/ai/requirements/feature-{name}.md`
104
+ - Related to: [issue/ticket number if applicable]
105
+
106
+ ### Changes
107
+ - [List key changes]
108
+ - [List new files/components]
109
+ - [List modified files]
110
+
111
+ ### Design
112
+ - Architecture: [Link to design doc section]
113
+ - Key decisions: [Brief summary]
114
+
115
+ ### Testing
116
+ - Unit tests: [coverage/status]
117
+ - Integration tests: [status]
118
+ - Manual testing: Completed
119
+ - Test documentation: `docs/ai/testing/feature-{name}.md`
120
+
121
+ ### Checklist
122
+ - [ ] Code follows project standards
123
+ - [ ] All tests pass
124
+ - [ ] Documentation updated
125
+ - [ ] No breaking changes (or documented if any)
126
+ - [ ] Ready for review
127
+ ```
128
+
129
+ Then provide the appropriate command:
130
+ - **GitHub**: `gh pr create --title "feat: [feature-name]" --body-file pr-description.md`
131
+ - **GitLab**: `glab mr create --title "feat: [feature-name]" --description "$(cat mr-description.md)"`
132
+
133
+ ---
134
+
135
+ **Let's start! Tell me about the feature you want to build.**
136
+
@@ -0,0 +1,27 @@
1
+ ---
2
+ description: Store reusable guidance in the knowledge memory service.
3
+ ---
4
+
5
+ # Remember Knowledge
6
+
7
+ When I say "remember this" or want to save a reusable rule, help me store it in the knowledge memory service.
8
+
9
+ ## Step 1: Capture Knowledge
10
+ Ask me for:
11
+ - A short, explicit title (5-12 words)
12
+ - The detailed content (markdown, examples encouraged)
13
+ - Optional tags (keywords like "api", "testing")
14
+ - Optional scope (`global`, `project:<name>`, `repo:<name>`)
15
+
16
+ If I'm vague, ask follow-ups to make it specific and actionable.
17
+
18
+ ## Step 2: Validate Quality
19
+ - Ensure it is specific and reusable (not generic advice).
20
+ - Avoid storing secrets or sensitive data.
21
+
22
+ ## Step 3: Store
23
+ Call `memory.storeKnowledge` with title, content, tags, scope.
24
+ If MCP tools are unavailable, use `ai-devkit memory store` instead.
25
+
26
+ ## Step 4: Confirm
27
+ Summarize what was saved and offer to store more knowledge if needed.
@@ -0,0 +1,21 @@
1
+ ---
2
+ description: Review the design documentation for a feature to ensure completeness and accuracy.
3
+ ---
4
+
5
+ Review the design documentation in docs/ai/design/feature-{name}.md (and the project-level README if relevant). Summarize:
6
+
7
+ ## Memory (use when helpful)
8
+ - If you need clarification or project conventions, query `memory.searchKnowledge` with a brief task description, tags, and scope.
9
+ - If I ask to save reusable guidance, run `/remember` (or call `memory.storeKnowledge`).
10
+ - If MCP tools are unavailable, use `ai-devkit memory search` or `ai-devkit memory store`.
11
+
12
+ - Architecture overview (ensure mermaid diagram is present and accurate)
13
+ - Key components and their responsibilities
14
+ - Technology choices and rationale
15
+ - Data models and relationships
16
+ - API/interface contracts (inputs, outputs, auth)
17
+ - Major design decisions and trade-offs
18
+ - Non-functional requirements that must be preserved
19
+
20
+ Highlight any inconsistencies, missing sections, or diagrams that need updates.
21
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ description: Review the requirements documentation for a feature to ensure completeness and alignment with project standards.
3
+ ---
4
+
5
+ Please review `docs/ai/requirements/feature-{name}.md` and the project-level template `docs/ai/requirements/README.md` to ensure structure and content alignment. Summarize:
6
+
7
+ ## Memory (use when helpful)
8
+ - If you need clarification or project conventions, query `memory.searchKnowledge` with a brief task description, tags, and scope.
9
+ - If I ask to save reusable guidance, run `/remember` (or call `memory.storeKnowledge`).
10
+ - If MCP tools are unavailable, use `ai-devkit memory search` or `ai-devkit memory store`.
11
+
12
+ - Core problem statement and affected users
13
+ - Goals, non-goals, and success criteria
14
+ - Primary user stories & critical flows
15
+ - Constraints, assumptions, open questions
16
+ - Any missing sections or deviations from the template
17
+
18
+ Identify gaps or contradictions and suggest clarifications.
19
+