mindforge-cc 2.0.0 → 2.1.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 (115) hide show
  1. package/.agent/mindforge/add-backlog.md +32 -0
  2. package/.agent/mindforge/agent.md +31 -0
  3. package/.agent/mindforge/do.md +31 -0
  4. package/.agent/mindforge/note.md +35 -0
  5. package/.agent/mindforge/plant-seed.md +31 -0
  6. package/.agent/mindforge/review-backlog.md +34 -0
  7. package/.agent/mindforge/session-report.md +39 -0
  8. package/.agent/mindforge/ui-phase.md +34 -0
  9. package/.agent/mindforge/ui-review.md +36 -0
  10. package/.agent/mindforge/validate-phase.md +31 -0
  11. package/.agent/mindforge/workstreams.md +35 -0
  12. package/.claude/commands/mindforge/add-backlog.md +32 -0
  13. package/.claude/commands/mindforge/agent.md +31 -0
  14. package/.claude/commands/mindforge/approve.md +27 -15
  15. package/.claude/commands/mindforge/audit.md +30 -26
  16. package/.claude/commands/mindforge/auto.md +29 -18
  17. package/.claude/commands/mindforge/benchmark.md +26 -29
  18. package/.claude/commands/mindforge/browse.md +24 -22
  19. package/.claude/commands/mindforge/complete-milestone.md +28 -14
  20. package/.claude/commands/mindforge/costs.md +26 -9
  21. package/.claude/commands/mindforge/cross-review.md +27 -13
  22. package/.claude/commands/mindforge/dashboard.md +35 -98
  23. package/.claude/commands/mindforge/debug.md +34 -126
  24. package/.claude/commands/mindforge/discuss-phase.md +36 -138
  25. package/.claude/commands/mindforge/do.md +31 -0
  26. package/.claude/commands/mindforge/execute-phase.md +37 -190
  27. package/.claude/commands/mindforge/health.md +27 -17
  28. package/.claude/commands/mindforge/help.md +25 -19
  29. package/.claude/commands/mindforge/init-org.md +37 -131
  30. package/.claude/commands/mindforge/init-project.md +40 -155
  31. package/.claude/commands/mindforge/install-skill.md +32 -15
  32. package/.claude/commands/mindforge/learn.md +36 -142
  33. package/.claude/commands/mindforge/map-codebase.md +36 -298
  34. package/.claude/commands/mindforge/marketplace.md +33 -120
  35. package/.claude/commands/mindforge/metrics.md +29 -18
  36. package/.claude/commands/mindforge/migrate.md +33 -40
  37. package/.claude/commands/mindforge/milestone.md +35 -12
  38. package/.claude/commands/mindforge/new-runtime.md +25 -15
  39. package/.claude/commands/mindforge/next.md +34 -105
  40. package/.claude/commands/mindforge/note.md +35 -0
  41. package/.claude/commands/mindforge/plan-phase.md +34 -125
  42. package/.claude/commands/mindforge/plant-seed.md +31 -0
  43. package/.claude/commands/mindforge/plugins.md +30 -36
  44. package/.claude/commands/mindforge/pr-review.md +32 -41
  45. package/.claude/commands/mindforge/profile-team.md +26 -19
  46. package/.claude/commands/mindforge/publish-skill.md +28 -17
  47. package/.claude/commands/mindforge/qa.md +27 -12
  48. package/.claude/commands/mindforge/quick.md +35 -135
  49. package/.claude/commands/mindforge/release.md +27 -8
  50. package/.claude/commands/mindforge/remember.md +25 -10
  51. package/.claude/commands/mindforge/research.md +27 -9
  52. package/.claude/commands/mindforge/retrospective.md +28 -22
  53. package/.claude/commands/mindforge/review-backlog.md +34 -0
  54. package/.claude/commands/mindforge/review.md +37 -157
  55. package/.claude/commands/mindforge/security-scan.md +34 -233
  56. package/.claude/commands/mindforge/session-report.md +39 -0
  57. package/.claude/commands/mindforge/ship.md +34 -100
  58. package/.claude/commands/mindforge/skills.md +36 -141
  59. package/.claude/commands/mindforge/status.md +30 -104
  60. package/.claude/commands/mindforge/steer.md +25 -10
  61. package/.claude/commands/mindforge/sync-confluence.md +28 -9
  62. package/.claude/commands/mindforge/sync-jira.md +32 -12
  63. package/.claude/commands/mindforge/tokens.md +25 -6
  64. package/.claude/commands/mindforge/ui-phase.md +34 -0
  65. package/.claude/commands/mindforge/ui-review.md +36 -0
  66. package/.claude/commands/mindforge/update.md +33 -42
  67. package/.claude/commands/mindforge/validate-phase.md +31 -0
  68. package/.claude/commands/mindforge/verify-phase.md +30 -62
  69. package/.claude/commands/mindforge/workspace.md +28 -25
  70. package/.claude/commands/mindforge/workstreams.md +35 -0
  71. package/.mindforge/memory/decision-library.jsonl +0 -0
  72. package/.mindforge/memory/knowledge-base.jsonl +7 -0
  73. package/.mindforge/memory/pattern-library.jsonl +1 -0
  74. package/.mindforge/memory/team-preferences.jsonl +4 -0
  75. package/.mindforge/personas/advisor-researcher.md +89 -0
  76. package/.mindforge/personas/analyst.md +112 -52
  77. package/.mindforge/personas/architect.md +100 -67
  78. package/.mindforge/personas/assumptions-analyzer-extend.md +87 -0
  79. package/.mindforge/personas/assumptions-analyzer.md +109 -0
  80. package/.mindforge/personas/codebase-mapper-extend.md +93 -0
  81. package/.mindforge/personas/codebase-mapper.md +770 -0
  82. package/.mindforge/personas/coverage-specialist.md +104 -0
  83. package/.mindforge/personas/debug-specialist.md +118 -52
  84. package/.mindforge/personas/debugger.md +97 -0
  85. package/.mindforge/personas/decision-architect.md +102 -0
  86. package/.mindforge/personas/developer.md +97 -85
  87. package/.mindforge/personas/executor.md +88 -0
  88. package/.mindforge/personas/integration-checker.md +92 -0
  89. package/.mindforge/personas/nyquist-auditor.md +84 -0
  90. package/.mindforge/personas/phase-researcher.md +107 -0
  91. package/.mindforge/personas/plan-checker.md +92 -0
  92. package/.mindforge/personas/planner.md +105 -0
  93. package/.mindforge/personas/project-researcher.md +99 -0
  94. package/.mindforge/personas/qa-engineer.md +113 -61
  95. package/.mindforge/personas/release-manager.md +102 -64
  96. package/.mindforge/personas/research-agent.md +108 -24
  97. package/.mindforge/personas/research-synthesizer.md +101 -0
  98. package/.mindforge/personas/roadmapper-extend.md +100 -0
  99. package/.mindforge/personas/roadmapper.md +103 -0
  100. package/.mindforge/personas/security-reviewer.md +114 -91
  101. package/.mindforge/personas/tech-writer.md +118 -51
  102. package/.mindforge/personas/ui-auditor.md +94 -0
  103. package/.mindforge/personas/ui-checker.md +89 -0
  104. package/.mindforge/personas/ui-researcher.md +99 -0
  105. package/.mindforge/personas/user-profiler.md +93 -0
  106. package/.mindforge/personas/verifier.md +101 -0
  107. package/.planning/browser-daemon.log +32 -0
  108. package/CHANGELOG.md +26 -0
  109. package/MINDFORGE.md +2 -0
  110. package/README.md +38 -1
  111. package/bin/installer-core.js +3 -4
  112. package/docs/Context/Master-Context.md +6 -13
  113. package/docs/PERSONAS.md +611 -0
  114. package/docs/reference/commands.md +53 -43
  115. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: mindforge:add-backlog
3
+ description: Capture ideas in a "parking lot" to keep them out of the active phase sequence
4
+ argument-hint: <description>
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - replace_file_content
9
+ - multi_replace_file_content
10
+ ---
11
+
12
+ <objective>
13
+ Capture an idea, task, or feature request in a "parking lot" section of the ROADMAP.md to prevent it from cluttering the active development phases.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/add-backlog.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Arguments: $ARGUMENTS (The description of the backlog item)
22
+ Target File: ROADMAP.md
23
+ State: Uses 999.x numbering scheme for backlog items.
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Read ROADMAP.md**: Locate the `## Backlog` or `## Future Milestones` section.
28
+ 2. **Initialize if missing**: If no backlog section exists, create `## Backlog` at the end of the file.
29
+ 3. **Determine numbering**: Find the last `999.x` item. If none, start with `999.1`.
30
+ 4. **Append item**: Add the new backlog item with the determined number and the provided description.
31
+ 5. **Confirm**: Notify the user that the item has been parked in the backlog.
32
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mindforge:agent
3
+ description: Spawn or invoke a specialized enterprise persona from the MindForge library
4
+ argument-hint: "[persona-name] [prompt]"
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ ---
9
+
10
+ <objective>
11
+ Provide an on-demand mechanism to "spawn" any of the 13+ standardized MindForge personas. This allows the user to switch the AI assistant's context, role, and process to a specific specialized mode (e.g., Roadmapper, Security Reviewer, Analyst).
12
+ </objective>
13
+
14
+ <execution_context>
15
+ .claude/commands/mindforge/agent.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Personas Directory: `.mindforge/personas/`
20
+ State: Loads the persona's XML-tagged structure into the active system context.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **List Personas**: If no arguments are provided, list all available `.md` files in `.mindforge/personas/` with their name and description (parsed from YAML).
25
+ 2. **Load Persona**: If a name is provided:
26
+ - Locate `.mindforge/personas/[name].md`.
27
+ - Read the file content.
28
+ - Present the persona's role and success criteria to the user.
29
+ 3. **Switch Mode**: Instruct the AI (through the current session context) to adopt the role, philosophy, and process defined in the loaded file.
30
+ 4. **Initial Task**: If a prompt is provided as the second argument, immediately execute that prompt using the newly adopted persona.
31
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mindforge:do
3
+ description: Smart natural language dispatcher to route intent to the right MindForge command
4
+ argument-hint: <text>
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ ---
9
+
10
+ <objective>
11
+ Provide a high-level, natural language interface for users to interact with MindForge without needing to remember specific command names. Routes user intent to the most appropriate internal command.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ .claude/commands/mindforge/do.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Arguments: $ARGUMENTS (The user's intent in plain English)
20
+ Knowledge: Must be aware of all available `.claude/commands/mindforge/*.md` definitions.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **Analyze input**: Parse the user's natural language request.
25
+ 2. **Match command**: Compare the intent against the descriptions and objectives of all known MindForge commands.
26
+ 3. **Execute match**:
27
+ - If a clear match is found, immediately pivot to that command's logic.
28
+ - If multiple matches are possible, ask the user for clarification.
29
+ - If no match is found, suggest the most relevant command or offer `/mindforge:help`.
30
+ 4. **Learn (Optional)**: If the user confirms a routing was correct, record the mapping for future intent resolution.
31
+ </process>
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: mindforge:note
3
+ description: Capture an idea, task, or issue that surfaces during a session as a quick note for later
4
+ argument-hint: <text> [list|promote N]
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ - write_to_file
9
+ - multi_replace_file_content
10
+ ---
11
+
12
+ <objective>
13
+ Provide a zero-friction way to capture ephemeral thoughts, bugs, or todos during an active session without interrupting the current flow, with the ability to later promote them to official tasks.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/note.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Arguments: $ARGUMENTS (The note text or subcommand like `list` or `promote`)
22
+ Storage: .planning/notes/
23
+ Target for Promotion: ROADMAP.md or STATE.md
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Route Subcommand**:
28
+ - If `list`: Read all files in `.planning/notes/` and present them.
29
+ - If `promote <N>`: Read note N, add it to current phase/milestone in STATE.md or ROADMAP.md, then move the note to `.planning/notes/archived/`.
30
+ - Else (default): Capture the text.
31
+ 2. **Capture Flow**:
32
+ - Ensure `.planning/notes/` directory.
33
+ - Create a file `note_[timestamp].md` with the content.
34
+ 3. **Confirm**: Quick confirmation of capture or promotion result.
35
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mindforge:plant-seed
3
+ description: Capture speculative ideas with triggers that surface automatically when relevant
4
+ argument-hint: <idea>
5
+ allowed-tools:
6
+ - list_dir
7
+ - write_to_file
8
+ - view_file
9
+ ---
10
+
11
+ <objective>
12
+ Capture speculative or long-term ideas (seeds) and store them in a way that they can be automatically resurfaced when a relevant future milestone or phase is started.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/plant-seed.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Arguments: $ARGUMENTS (The speculative idea)
21
+ Storage: .planning/seeds/
22
+ Trigger mechanism: Files in this directory are checked during `init-project` or `milestone` creation.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Ensure storage**: Verify `.planning/seeds/` exists; create if not.
27
+ 2. **Generate filename**: Create a slugified filename based on the idea or a timestamp.
28
+ 3. **Write seed**: Create a markdown file with the idea, any inferred triggers (tags/keywords), and the current timestamp.
29
+ 4. **Link to system**: Add a note to the master seed index if one exists.
30
+ 5. **Confirm**: Let the user know the seed has been planted and what might trigger its resurrection.
31
+ </process>
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: mindforge:review-backlog
3
+ description: Review and promote backlog items to the active phase sequence
4
+ argument-hint: [optional filters]
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - replace_file_content
9
+ - multi_replace_file_content
10
+ ---
11
+
12
+ <objective>
13
+ Review items currently parked in the ROADMAP.md backlog and facilitate their promotion to the active development plan.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/review-backlog.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Target File: ROADMAP.md, STATE.md
22
+ State: Resolves the next available phase number from STATE.md for promotion.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Read ROADMAP.md**: Extract all items under the `## Backlog` section (999.x).
27
+ 2. **Present to User**: List the backlog items and ask which one(s) should be promoted.
28
+ 3. **Determine Promotion Slot**: Read STATE.md to find the next sequential phase number.
29
+ 4. **Promote Item**:
30
+ - Move the item from the backlog to the active milestone list.
31
+ - Renumber the item to the next available phase number.
32
+ 5. **Update STATE.md**: Add the new phase to STATE.md in `unplanned` or `planned` status as appropriate.
33
+ 6. **Confirm**: Summarize the promotion to the user.
34
+ </process>
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: mindforge:session-report
3
+ description: Generate a post-session summary document capturing work performed and resource usage
4
+ argument-hint: none
5
+ allowed-tools:
6
+ - run_command
7
+ - view_file
8
+ - write_to_file
9
+ - list_dir
10
+ ---
11
+
12
+ <objective>
13
+ Generate a comprehensive summary of an active coding session, providing a clear trail of work for stakeholders and a diagnostic record of resource usage (tokens, time, etc.).
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/session-report.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Storage: .planning/reports/
22
+ Data sources: Git logs, terminal history, `STATE.md`, and session memory.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Gather Data**:
27
+ - Get recent git commits and diff summaries.
28
+ - Read the current `STATE.md` for phase/plan status updates.
29
+ - Extract key decisions or findings from the session.
30
+ 2. **Profile Resources**:
31
+ - Estimate token usage if possible.
32
+ - Calculate session duration.
33
+ 3. **Draft Report**: Create `SESSION_REPORT_[timestamp].md` containing:
34
+ - Summary of Work Performed
35
+ - Outcomes achieved (Plans "completed")
36
+ - Key Decisions
37
+ - Resource Usage Profile
38
+ 4. **Confirm**: Notify the user and provide a link to the report.
39
+ </process>
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: mindforge:ui-phase
3
+ description: Generate a UI Design Contract (UI-SPEC.md) for the current phase
4
+ argument-hint: [N]
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - list_dir
9
+ ---
10
+
11
+ <objective>
12
+ Generate a detailed UI design contract (UI-SPEC.md) for a frontend development phase to ensure consistent spacing, typography, color palettes, and accessibility standards before implementation.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/ui-phase.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Arguments: $ARGUMENTS (The phase number [N], optional)
21
+ Configuration: MINDFORGE.md `UI_PHASE_ACCESSIBILITY_STANDARD`
22
+ State: Resolves the phase from STATE.md if N is not provided.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Identify Phase**: Get the current or targeted phase number.
27
+ 2. **Read Inputs**: Read `REQUIREMENTS.md` and `DESIGN_SYSTEM.md`.
28
+ 3. **Generate UI-SPEC.md**:
29
+ - Define component-level spacing and layout for the phase.
30
+ - Specify required colors and typography from the design system.
31
+ - List accessibility requirements (WCAG level).
32
+ 4. **Finalize**: Write `UI-SPEC.md` to the phase's planning directory or the root `.planning/`.
33
+ 5. **Confirm**: Provide a link to the user for review.
34
+ </process>
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: mindforge:ui-review
3
+ description: Perform a retroactive visual audit of implemented UI against the DESIGN_SYSTEM.md and UI-SPEC.md
4
+ argument-hint: [N]
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - read_browser_page
9
+ - open_browser_url
10
+ ---
11
+
12
+ <objective>
13
+ Perform a retroactive, multi-pillar visual audit of implemented UI features against the defined Design System and UI-SPEC.md to ensure pixel-perfect fidelity and accessibility compliance.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/ui-review.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Arguments: $ARGUMENTS (The phase number [N], optional)
22
+ Sources: `DESIGN_SYSTEM.md`, `UI-SPEC.md`, and the live application UI.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Identify Target**: Determine the phase to review.
27
+ 2. **Audit Application**:
28
+ - Use the browser tool to inspect the implemented features.
29
+ - Compare against the `UI-SPEC.md` for spacing, colors, and layout.
30
+ - Audit for accessibility (ARIA labels, contrast, keyboard navigation).
31
+ 3. **Generate UI-REVIEW.md**:
32
+ - Grade each pillar (Layout, Color, Typography, etc.).
33
+ - List specific "Needs Work" items.
34
+ - Provide "Approved" status if all criteria are met.
35
+ 4. **Finalize**: Notify the user of the audit results.
36
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mindforge:validate-phase
3
+ description: Audit the current phase for requirement coverage and test gaps
4
+ argument-hint: [N]
5
+ allowed-tools:
6
+ - view_file
7
+ - list_dir
8
+ ---
9
+
10
+ <objective>
11
+ Audit a completed project phase to ensure every requirement has been addressed and that corresponding automated tests have been implemented and are passing.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ .claude/commands/mindforge/validate-phase.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Arguments: $ARGUMENTS (The phase number [N], optional)
20
+ Knowledge: `STATE.md`, `REQUIREMENTS.md`, and the codebase test suite.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **Identify Phase**: Resolve the targeted phase.
25
+ 2. **Cross-reference**:
26
+ - List all requirements in `REQUIREMENTS.md` marked for this phase.
27
+ - Verify implementation of each requirement in the code.
28
+ - Check for the existence of passing tests for each requirement.
29
+ 3. **Analyze Gaps**: Identify any "orphaned" requirements or features missing tests.
30
+ 4. **Report Findings**: Summarize coverage and call out specific gaps to the user.
31
+ </process>
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: mindforge:workstreams
3
+ description: Manage parallel feature tracks with isolated state
4
+ argument-hint: [list|create|switch|status|complete]
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ - write_to_file
9
+ - run_command
10
+ ---
11
+
12
+ <objective>
13
+ Enable developers to work on multiple features or bugs concurrently within the same codebase without state collision. Provides isolated tracking for each "workstream".
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/workstreams.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Arguments: $ARGUMENTS (Switch subcommand)
22
+ Storage: .planning/workstreams/
23
+ State: Each workstream maintains its own subset of `STATE.md` or a local context file.
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Route Subcommand**:
28
+ - `list`: Show all active and archived workstreams in `.planning/workstreams/`.
29
+ - `create <name>`: Initialize a new workstream directory and baseline state.
30
+ - `switch <name>`: Update the global pointer in `STATE.md` to the targeted workstream.
31
+ - `status`: Show the current active workstream and its progress.
32
+ 2. **Manage Isolation**:
33
+ - When switching, ensure current work is saved or stashed if necessary.
34
+ 3. **Confirm**: Success/Failure status message to user.
35
+ </process>
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: mindforge:add-backlog
3
+ description: Capture ideas in a "parking lot" to keep them out of the active phase sequence
4
+ argument-hint: <description>
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - replace_file_content
9
+ - multi_replace_file_content
10
+ ---
11
+
12
+ <objective>
13
+ Capture an idea, task, or feature request in a "parking lot" section of the ROADMAP.md to prevent it from cluttering the active development phases.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/add-backlog.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Arguments: $ARGUMENTS (The description of the backlog item)
22
+ Target File: ROADMAP.md
23
+ State: Uses 999.x numbering scheme for backlog items.
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Read ROADMAP.md**: Locate the `## Backlog` or `## Future Milestones` section.
28
+ 2. **Initialize if missing**: If no backlog section exists, create `## Backlog` at the end of the file.
29
+ 3. **Determine numbering**: Find the last `999.x` item. If none, start with `999.1`.
30
+ 4. **Append item**: Add the new backlog item with the determined number and the provided description.
31
+ 5. **Confirm**: Notify the user that the item has been parked in the backlog.
32
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mindforge:agent
3
+ description: Spawn or invoke a specialized enterprise persona from the MindForge library
4
+ argument-hint: "[persona-name] [prompt]"
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ ---
9
+
10
+ <objective>
11
+ Provide an on-demand mechanism to "spawn" any of the 13+ standardized MindForge personas. This allows the user to switch the AI assistant's context, role, and process to a specific specialized mode (e.g., Roadmapper, Security Reviewer, Analyst).
12
+ </objective>
13
+
14
+ <execution_context>
15
+ .claude/commands/mindforge/agent.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Personas Directory: `.mindforge/personas/`
20
+ State: Loads the persona's XML-tagged structure into the active system context.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **List Personas**: If no arguments are provided, list all available `.md` files in `.mindforge/personas/` with their name and description (parsed from YAML).
25
+ 2. **Load Persona**: If a name is provided:
26
+ - Locate `.mindforge/personas/[name].md`.
27
+ - Read the file content.
28
+ - Present the persona's role and success criteria to the user.
29
+ 3. **Switch Mode**: Instruct the AI (through the current session context) to adopt the role, philosophy, and process defined in the loaded file.
30
+ 4. **Initial Task**: If a prompt is provided as the second argument, immediately execute that prompt using the newly adopted persona.
31
+ </process>
@@ -1,18 +1,30 @@
1
- Process pending approvals and emergency overrides. Usage:
2
- `/mindforge:approve [approval-id] [--approve|--reject] [--reason "..."] [--emergency]`
1
+ ---
2
+ name: mindforge:approve
3
+ description: Process pending approvals and emergency overrides
4
+ argument-hint: [approval-id] [--approve|--reject] [--reason "..."] [--emergency]
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ - write_to_file
9
+ ---
3
10
 
4
- ## Listing approvals
5
- Scan `.planning/approvals/` and show only files with `status: pending` unless
6
- the user explicitly asks for historical records.
11
+ <objective>
12
+ Manage the governance layer by reviewing and confirming high-tier architectural or security changes, ensuring all sensitive operations have explicit human authorization.
13
+ </objective>
7
14
 
8
- ## Standard approval flow
9
- 1. Read the approval file
10
- 2. Confirm current identity from `git config user.email` or `$USER`
11
- 3. Validate approver eligibility from `INTEGRATIONS-CONFIG.md`
12
- 4. Record approval or rejection with timestamp and reason
15
+ <execution_context>
16
+ .claude/commands/mindforge/approve.md
17
+ </execution_context>
13
18
 
14
- ## Emergency overrides
15
- Emergency override requires the `--emergency` flag.
16
- Read `EMERGENCY_APPROVERS` from `INTEGRATIONS-CONFIG.md` and deny the request if
17
- the current identity is not listed. Document that git-config-based identity is
18
- a convenience layer, not a high-assurance identity proof.
19
+ <context>
20
+ Storage: .planning/approvals/
21
+ Governance Config: INTEGRATIONS-CONFIG.md
22
+ </context>
23
+
24
+ <process>
25
+ 1. **List**: Scan for pending approval requests and present them to the user.
26
+ 2. **Identity Verification**: Confirm the user's identity via git config or environment.
27
+ 3. **Audit Eligibility**: Verify the user has sufficient permissions for the requested tier.
28
+ 4. **Record Verdict**: Update the approval file with status, timestamp, and the provided reason.
29
+ 5. **Emergency Override**: If `--emergency` is used, bypass standard checks if the identity matches the pre-defined emergency approver list.
30
+ </process>
@@ -1,30 +1,34 @@
1
- Query `.planning/AUDIT.jsonl` by phase, event, date, severity, integration, or
2
- agent. Usage: `/mindforge:audit [filters]`
1
+ ---
2
+ name: mindforge:audit
3
+ description: Query the .planning/AUDIT.jsonl log by phase, event, date, or severity
4
+ argument-hint: [filters]
5
+ allowed-tools:
6
+ - run_command
7
+ - view_file
8
+ - list_dir
9
+ ---
3
10
 
4
- ## Supported options
5
- - `--phase N`
6
- - `--event NAME`
7
- - `--agent NAME`
8
- - `--severity LEVEL`
9
- - `--date YYYY-MM-DD`
10
- - `--summary`
11
- - `--verify`
12
- - `--export PATH`
11
+ <objective>
12
+ Provide a structured interface to query and validate the project's audit logs, ensuring accountability and traceability of all agent actions and system events.
13
+ </objective>
13
14
 
14
- ## Summary mode
15
- Summarise counts by event, severity, integration, and phase.
16
- Entries with `"phase": null` are reported as `project-level`, not dropped.
15
+ <execution_context>
16
+ .claude/commands/mindforge/audit.md
17
+ </execution_context>
17
18
 
18
- ## Verify mode
19
- Validate JSONL shape and chronological ordering.
20
- Timestamp comparison may use string comparison because ISO-8601 UTC timestamps
21
- with a `Z` suffix sort lexicographically.
19
+ <context>
20
+ Storage: .planning/AUDIT.jsonl
21
+ Archive: .planning/audit-archive/
22
+ Filters: --phase, --event, --agent, --severity, --date, --summary, --verify, --export
23
+ </context>
22
24
 
23
- ## Archive rotation
24
- If the active audit log exceeds 10,000 lines, rotate it into
25
- `.planning/audit-archive/` before continuing heavy writes. Rotation must never
26
- delete history; it archives then resets the active file.
27
-
28
- ## Export safety
29
- Validate export paths stay inside the project directory. If a path traversal or
30
- unsafe destination is requested, export into `.planning/` instead.
25
+ <process>
26
+ 1. **Parse Filters**: Identify the search criteria (phase, event, severity, etc.).
27
+ 2. **Execute Query**:
28
+ - Use `grep` or `jq` (if available via bash) to filter the JSONL file.
29
+ - If `--summary`: Aggregate counts by event and severity.
30
+ - If `--verify`: Check for JSON validity and chronological integrity.
31
+ 3. **Handle Large Logs**: If the log exceeds 10,000 lines, rotate it to the archive directory.
32
+ 4. **Export (Optional)**: If `--export` is used, write filtered results to the target path (ensuring project boundary safety).
33
+ 5. **Display**: Present the filtered log or summary to the user.
34
+ </process>
@@ -1,22 +1,33 @@
1
- # /mindforge:auto [Phase N]
1
+ ---
2
+ name: mindforge:auto
3
+ description: Start the MindForge Autonomous Execution Engine
4
+ argument-hint: [Phase N] [--resume] [--headless] [--dry-run]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - view_file
9
+ - write_to_file
10
+ ---
2
11
 
3
- **Purpose**: Starts the MindForge Autonomous Execution Engine for the
4
- specified phase. The agent will execute all waves, handle repairs, and
5
- perform compliance gates without requiring human confirmation.
12
+ <objective>
13
+ Execute a planned phase entirely unattended, coordinating wave fulfillment, self-repair of minor failures, and compliance gating while maintaining a persistent state checkpoint.
14
+ </objective>
6
15
 
7
- ## Usage
8
- - `/mindforge:auto --phase 3` (Standard unattended mode)
9
- - `/mindforge:auto --resume` (Resumes from last checkpoint)
10
- - `/mindforge:auto --headless` (CI/CD optimized output)
11
- - `/mindforge:auto --dry-run` (Show the wave DAG and plan without executing)
16
+ <execution_context>
17
+ .claude/commands/mindforge/auto.md
18
+ </execution_context>
12
19
 
13
- ## Behavior
14
- - **Zero-Interaction**: Auto-approves Tier 1/2 changes if gates pass.
15
- - **Self-Repair**: Tries RETRY/DECOMPOSE before asking for help.
16
- - **Checkpointing**: Constant state persistence in `HANDOFF.json`.
17
- - **Governance**: ESCALATES on Tier 3 changes (Auth/Payment/PII).
20
+ <context>
21
+ Storage: HANDOFF.json checkpoints.
22
+ Governance: Auto-approves Tier 1/2; Escalates Tier 3.
23
+ Notifications: Requires Slack/Discord webhooks for mission-critical alerts.
24
+ </context>
18
25
 
19
- ## Environment Variables
20
- - `AUTO_MODE_TIMEOUT_MINUTES`: Default 120.
21
- - `AUTO_PUSH_ON_WAVE_COMPLETE`: Default false.
22
- - `SLACK_WEBHOOK_URL`: Required for notifications.
26
+ <process>
27
+ 1. **Boot**: Load the specifies phase or resume from the last known checkpoint in `HANDOFF.json`.
28
+ 2. **Wave Engine**: Execute the DAG of tasks sequentially or in parallel based on dependencies.
29
+ 3. **Self-Repair**: Automatically attempt to retry or decompose tasks that encounter recoverable errors.
30
+ 4. **Gating**: Evaluate compliance gates between waves. Escalates to human for Tier 3 changes.
31
+ 5. **Persistence**: Save state after every successful tool call or task completion.
32
+ 6. **Finalize**: Shift status to "Verify Pending" once all waves are complete.
33
+ </process>