@mr.dj2u/cli 0.1.3 → 0.1.7

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 (84) hide show
  1. package/bundles/claude-code/.claude-plugin/plugin.json +20 -12
  2. package/bundles/claude-code/.mcp.json +11 -8
  3. package/bundles/claude-code/README.md +31 -11
  4. package/bundles/claude-code/commands/continue-development.md +9 -1
  5. package/bundles/claude-code/commands/create-expo-super-stack.md +1 -1
  6. package/bundles/claude-code/commands/fix-seo.md +1 -1
  7. package/bundles/claude-code/commands/prepare-deploy.md +2 -4
  8. package/bundles/claude-code/commands/project-research-plan.md +1 -1
  9. package/bundles/claude-code/commands/push-merge-loop.md +25 -0
  10. package/bundles/claude-code/commands/review-expo-project.md +3 -6
  11. package/bundles/claude-code/commands/run-doctor.md +10 -4
  12. package/bundles/claude-code/commands/wrap-up.md +67 -0
  13. package/bundles/claude-code/skills/continue-development/SKILL.md +9 -1
  14. package/bundles/claude-code/skills/create-expo-super-stack/SKILL.md +1 -1
  15. package/bundles/claude-code/skills/dev-server-management/SKILL.md +1 -1
  16. package/bundles/claude-code/skills/fix-seo/SKILL.md +1 -1
  17. package/bundles/claude-code/skills/prepare-deploy/SKILL.md +2 -4
  18. package/bundles/claude-code/skills/project-research-plan/SKILL.md +1 -1
  19. package/bundles/claude-code/skills/push-merge-loop/SKILL.md +30 -0
  20. package/bundles/claude-code/skills/review-expo-project/SKILL.md +3 -6
  21. package/bundles/claude-code/skills/run-doctor/SKILL.md +10 -4
  22. package/bundles/claude-code/skills/wrap-up/SKILL.md +72 -0
  23. package/bundles/codex/.codex-plugin/plugin.json +4 -4
  24. package/bundles/codex/.mcp.json +1 -1
  25. package/bundles/codex/README.md +1 -1
  26. package/bundles/codex/commands/continue-development.md +9 -1
  27. package/bundles/codex/commands/create-expo-super-stack.md +1 -1
  28. package/bundles/codex/commands/fix-seo.md +1 -1
  29. package/bundles/codex/commands/prepare-deploy.md +2 -4
  30. package/bundles/codex/commands/project-research-plan.md +1 -1
  31. package/bundles/codex/commands/push-merge-loop.md +24 -0
  32. package/bundles/codex/commands/review-expo-project.md +3 -6
  33. package/bundles/codex/commands/run-doctor.md +10 -4
  34. package/bundles/codex/commands/wrap-up.md +67 -0
  35. package/bundles/codex/skills/workflow-continue-development/SKILL.md +47 -0
  36. package/bundles/codex/skills/workflow-create-expo-super-stack/SKILL.md +42 -0
  37. package/bundles/codex/skills/workflow-fix-seo/SKILL.md +41 -0
  38. package/bundles/codex/skills/workflow-prepare-deploy/SKILL.md +41 -0
  39. package/bundles/codex/skills/workflow-project-research-plan/SKILL.md +41 -0
  40. package/bundles/codex/skills/workflow-push-merge-loop/SKILL.md +36 -0
  41. package/bundles/codex/skills/workflow-review-expo-project/SKILL.md +41 -0
  42. package/bundles/codex/skills/workflow-run-doctor/SKILL.md +50 -0
  43. package/bundles/codex/skills/workflow-wrap-up/SKILL.md +79 -0
  44. package/bundles/vscode-copilot/.github/prompts/continue-development.prompt.md +9 -1
  45. package/bundles/vscode-copilot/.github/prompts/create-expo-super-stack.prompt.md +1 -1
  46. package/bundles/vscode-copilot/.github/prompts/fix-seo.prompt.md +1 -1
  47. package/bundles/vscode-copilot/.github/prompts/prepare-deploy.prompt.md +2 -4
  48. package/bundles/vscode-copilot/.github/prompts/project-research-plan.prompt.md +1 -1
  49. package/bundles/vscode-copilot/.github/prompts/push-merge-loop.prompt.md +30 -0
  50. package/bundles/vscode-copilot/.github/prompts/review-expo-project.prompt.md +3 -6
  51. package/bundles/vscode-copilot/.github/prompts/run-doctor.prompt.md +10 -4
  52. package/bundles/vscode-copilot/.github/prompts/wrap-up.prompt.md +72 -0
  53. package/bundles/vscode-copilot/.vscode/mcp.json +1 -1
  54. package/bundles/vscode-copilot/user/.copilot/skills/workflow-continue-development/SKILL.md +9 -1
  55. package/bundles/vscode-copilot/user/.copilot/skills/workflow-create-expo-super-stack/SKILL.md +1 -1
  56. package/bundles/vscode-copilot/user/.copilot/skills/workflow-fix-seo/SKILL.md +1 -1
  57. package/bundles/vscode-copilot/user/.copilot/skills/workflow-prepare-deploy/SKILL.md +2 -4
  58. package/bundles/vscode-copilot/user/.copilot/skills/workflow-project-research-plan/SKILL.md +1 -1
  59. package/bundles/vscode-copilot/user/.copilot/skills/workflow-push-merge-loop/SKILL.md +30 -0
  60. package/bundles/vscode-copilot/user/.copilot/skills/workflow-review-expo-project/SKILL.md +3 -6
  61. package/bundles/vscode-copilot/user/.copilot/skills/workflow-run-doctor/SKILL.md +10 -4
  62. package/bundles/vscode-copilot/user/.copilot/skills/workflow-wrap-up/SKILL.md +72 -0
  63. package/dist/cli.js +9 -1
  64. package/dist/cli.js.map +1 -1
  65. package/dist/commands/agent.d.ts.map +1 -1
  66. package/dist/commands/agent.js +77 -11
  67. package/dist/commands/agent.js.map +1 -1
  68. package/dist/commands/continue.d.ts +1 -1
  69. package/dist/commands/continue.d.ts.map +1 -1
  70. package/dist/commands/continue.js +21 -0
  71. package/dist/commands/continue.js.map +1 -1
  72. package/dist/commands/mcp-install.d.ts +7 -0
  73. package/dist/commands/mcp-install.d.ts.map +1 -1
  74. package/dist/commands/mcp-install.js +13 -1
  75. package/dist/commands/mcp-install.js.map +1 -1
  76. package/dist/commands/onboard.d.ts +27 -1
  77. package/dist/commands/onboard.d.ts.map +1 -1
  78. package/dist/commands/onboard.js +214 -23
  79. package/dist/commands/onboard.js.map +1 -1
  80. package/dist/project-memory.d.ts +1 -0
  81. package/dist/project-memory.d.ts.map +1 -1
  82. package/dist/project-memory.js +35 -26
  83. package/dist/project-memory.js.map +1 -1
  84. package/package.json +65 -66
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: "MDS Wrap Up"
3
+ description: "Use when the user has finished testing and wants Mr. DJ's Dev Suite to run the final wrap-up workflow (Doctor, git inclusion checks, PR loop, CI fix retries, and merge policy guardrails)."
4
+ ---
5
+
6
+ # Codex Workflow Routing
7
+
8
+ - This is a Mr. DJ's Dev Suite plugin workflow. Prefer the bundled MCP tools before terminal fallbacks.
9
+ - When an MCP tool named in this workflow is available, call that tool directly instead of running app-local npm scripts.
10
+ - Do not use stale package names such as `@mrdj/cli`. The CLI package is `@mr.dj2u/cli`; the executable is `mds`.
11
+ - If the MCP server is unavailable, prefer `mds <command>` from PATH, then `npx -y -p @mr.dj2u/cli@latest mds <command>`.
12
+
13
+ # /wrap-up
14
+
15
+ Run the post-testing release wrap-up flow: final local checks, git inclusion confirmation, PR loop, and merge handling.
16
+
17
+ ## Goal
18
+
19
+ When the developer says testing is complete, finish the handoff safely by:
20
+
21
+ 1. Marking completed todo items.
22
+ 2. Running `mds doctor --ci`.
23
+ 3. Reviewing `git status` and confirming intentionally excluded files.
24
+ 4. Running the publish/PR/check loop.
25
+ 5. Handling merge according to policy defaults and repo overrides.
26
+
27
+ ## Required Flow Order
28
+
29
+ 1. Update `project/todo.md` only for tasks clearly completed in this session.
30
+ 2. Run `mds doctor --ci` before any git mutation.
31
+ 3. Review `git status --short` and list changed files.
32
+ 4. Confirm any intentionally omitted files with the developer before staging.
33
+ 5. Publish through GitHub flow (branch push + PR).
34
+ 6. Poll checks and unresolved feedback.
35
+ 7. Fix failures locally, rerun Doctor, push updates, and poll again.
36
+ 8. Repeat up to 5 cycles total.
37
+
38
+ ## GitHub Skill Routing
39
+
40
+ Use GitHub workflows in this order when available:
41
+
42
+ 1. `github` for repo/PR context and routing.
43
+ 2. `yeet` for commit/push/open-or-update PR flow.
44
+ 3. `gh-fix-ci` for failed checks/log inspection and CI-driven fix loops.
45
+ 4. `gh-address-comments` when unresolved review threads are blocking merge.
46
+
47
+ ## Merge Policy
48
+
49
+ Evaluate policy in this order:
50
+
51
+ 1. Explicit user instruction in the current session.
52
+ 2. Optional repo config at `project/release-policy.json`.
53
+ 3. Defaults if config is absent.
54
+
55
+ Supported repo config shape:
56
+
57
+ ```json
58
+ {
59
+ "wrapUp": {
60
+ "autoMergeTest": true,
61
+ "autoMergeMain": false
62
+ }
63
+ }
64
+ ```
65
+
66
+ Default behavior:
67
+
68
+ - Auto-merge to `test`: enabled.
69
+ - Per-repo override: allowed.
70
+ - Auto-merge to `main`: never allowed.
71
+
72
+ If the workflow targets `main` directly (no `test` branch flow), stop before merge and tell the developer to merge manually.
73
+
74
+ ## Guardrails
75
+
76
+ - Never auto-merge to `main`.
77
+ - Do not skip `mds doctor --ci` between fix cycles.
78
+ - Do not assume omitted files are intentional; confirm them.
79
+ - If checks or blocking threads still fail after 5 cycles, stop and request human help with a concise blocker summary.
@@ -18,13 +18,21 @@ Resume work on an onboarded project by following MDS phase order from `project/t
18
18
  3. Pull `get_skill` for `continue-development` to enforce phase-first sequencing.
19
19
  4. If blockers appear, use `doctor_scan_project` and `doctor_explain_result` for targeted remediation before feature work.
20
20
 
21
+ ## MDS Routing Guardrails
22
+
23
+ - Treat a request to continue development with MDS as a request for the MDS MCP tool and phase rules first.
24
+ - Do not jump directly into app edits until `continue_project` or the CLI fallback has identified the active phase and blockers.
25
+ - Never invoke `@mrdj/cli`; that package name is wrong. The published CLI package is `@mr.dj2u/cli` and its executable is `mds`.
26
+
21
27
  ## CLI / Manual Fallback
22
28
 
23
29
  1. If MCP is not configured, install it manually:
24
- - `mds mcp install --client codex --scope project`
30
+ - `mds mcp install --client <client> --scope project`
25
31
  2. Direct CLI flow:
26
32
  - `mds continue <projectPath>`
27
33
  - `mds doctor <projectPath>` when blockers are unclear.
34
+ 3. If `mds` is not on PATH, invoke the published CLI by binary name:
35
+ - `npx -y -p @mr.dj2u/cli@latest mds continue <projectPath>`
28
36
 
29
37
  ## Verification And Output
30
38
 
@@ -23,7 +23,7 @@ Create a new Expo app with the MDS Super Stack flow, using this knowledge packag
23
23
  ## CLI / Manual Fallback
24
24
 
25
25
  1. If MCP is not configured, install it manually:
26
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
27
27
  2. Direct CLI generation:
28
28
  - `npx -y create-expo-super-stack <appName>`
29
29
  3. Then onboard/continue from inside the generated app using the current CLI behavior:
@@ -23,7 +23,7 @@ Apply SEO metadata fixes for Expo web routes with MCP guidance and post-fix veri
23
23
  ## CLI / Manual Fallback
24
24
 
25
25
  1. If MCP is not configured, install it manually:
26
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
27
27
  2. Direct CLI checks:
28
28
  - `mds doctor <projectPath> --ci`
29
29
  - Run project-specific web build/preview commands to verify metadata output.
@@ -18,13 +18,12 @@ Prepare an Expo project for release using deployment-focused skills plus Doctor
18
18
  2. Run `doctor_scan_project` in `ci` mode for release parity.
19
19
  3. Pull `get_skill` for `deployment`; if web is involved also pull `seo-metadata`.
20
20
  4. Use `knowledge_list_resources` (`kind: "rule"`) to confirm env hygiene, SSR safety, and metadata requirements.
21
- 5. Call `generate_deploy_checklist` so SEO, scripts, and release-readiness gaps are reflected in the next steps.
22
- 6. Produce a release checklist mapped to current failing checks.
21
+ 5. Produce a release checklist mapped to current failing checks.
23
22
 
24
23
  ## CLI / Manual Fallback
25
24
 
26
25
  1. If MCP is not configured, install it manually:
27
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
28
27
  2. Direct CLI path:
29
28
  - `mds doctor <projectPath> --ci`
30
29
  - Run project scripts: `lint`, `type-check`, `test`, and production build/profile scripts.
@@ -32,5 +31,4 @@ Prepare an Expo project for release using deployment-focused skills plus Doctor
32
31
  ## Verification And Output
33
32
 
34
33
  - Re-run `doctor_scan_project` (or CLI equivalent) until blockers are cleared.
35
- - Keep the response user-facing and checklist-driven; avoid internal tool chatter and avoid asking for a PR unless the user requested GitHub workflow.
36
34
  - Output: release readiness status, unresolved blockers, and rollback/readiness notes.
@@ -23,7 +23,7 @@ Turn rough product notes/research into actionable MDS project memory and next-ph
23
23
  ## CLI / Manual Fallback
24
24
 
25
25
  1. If MCP is not configured, install it manually:
26
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
27
27
  2. Direct CLI fallback:
28
28
  - Use `mds onboard <projectPath>` for structured intake when memory files are missing.
29
29
  - Use `mds continue <projectPath>` after memory normalization to select the next task.
@@ -0,0 +1,30 @@
1
+ ---
2
+ mode: "agent"
3
+ description: "Run the MDS Push Merge Loop workflow with MCP-first diagnostics and CLI fallback."
4
+ ---
5
+
6
+ # /push-merge-loop
7
+
8
+ Execute the short PR iteration loop for the test branch with strict quality gates.
9
+
10
+ ## Goal
11
+
12
+ Push intentional changes with a meaningful commit message, open/update a PR to `test`, poll for feedback and failed checks, fix issues, and merge to `test` once all checks are green.
13
+
14
+ ## Loop Rules
15
+
16
+ 1. Run `mds doctor --ci` before any git mutation.
17
+ 2. Stage only intentional files and create a meaningful commit message.
18
+ 3. Push branch and open or update a PR targeting `test`.
19
+ 4. Wait about 2 minutes, then poll PR comments, review threads, and failed checks.
20
+ 5. Fix issues locally, rerun Doctor, push updates, and poll again.
21
+ 6. Repeat polling/fix cycles up to 5 total iterations.
22
+ 7. Merge to `test` only when all required checks are green and no unresolved blocking feedback remains.
23
+
24
+ ## Guardrails
25
+
26
+ - Do not merge when required checks are failing.
27
+ - Do not skip Doctor between fix cycles.
28
+ - Keep a concise changelog per iteration: what failed, what was changed, what passed.
29
+ - If still failing after 5 cycles, stop and summarize remaining blockers with concrete next actions.
30
+
@@ -18,20 +18,17 @@ Review an Expo project with MCP-first diagnostics and skill-guided remediation.
18
18
  2. Call `continue_project` to summarize current project state and blockers.
19
19
  3. Call `doctor_scan_project` with `projectPath` and `mode`.
20
20
  4. For each warning/error, call `doctor_explain_result`, then pull targeted guidance with `get_skill` (for example: `project-onboarding`, `debugging`, `deployment`).
21
- 5. If the findings affect release readiness, call `generate_deploy_checklist` so the next steps stay checklist-driven instead of PR-driven.
22
- 6. Call `knowledge_list_resources` with `kind: "guide"` if extra reference context is needed.
21
+ 5. Call `knowledge_list_resources` with `kind: "guide"` if extra reference context is needed.
23
22
 
24
23
  ## CLI / Manual Fallback
25
24
 
26
25
  1. If MCP is not configured, install it manually:
27
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
28
27
  2. If MCP still cannot run, use direct CLI flows:
29
28
  - `mds continue <projectPath>`
30
29
  - `mds doctor <projectPath> --ci`
31
30
 
32
31
  ## Verification And Output
33
32
 
34
- - Keep the response user-facing: summarize findings and next steps without echoing internal tool chatter or file-read noise.
35
33
  - Re-run `doctor_scan_project` (or `mds doctor --ci`) after fixes.
36
- - If the user is validating an installed agent bundle, include `mds agent verify --client <client> --target <path>` in the follow-up commands.
37
- - Output: blocker summary, failing checks, recommended next task, and concrete follow-up commands. Avoid proposing a PR unless the user explicitly asks for a GitHub workflow.
34
+ - Output: blocker summary, failing checks, recommended next task, and concrete follow-up commands.
@@ -18,20 +18,26 @@ Run MDS Doctor as the primary health check for an Expo project.
18
18
  1. Confirm the `mds` MCP server is available.
19
19
  2. Call `doctor_scan_project` with selected arguments.
20
20
  3. For each non-pass result, call `doctor_explain_result`.
21
- 4. If the check is release-related or web-facing, call `generate_deploy_checklist` before giving next steps.
22
- 5. Pull targeted implementation guidance with `get_skill` (typically `deployment`, `debugging`, or `dev-server-management`).
21
+ 4. Pull targeted implementation guidance with `get_skill` (typically `deployment`, `debugging`, or `dev-server-management`).
22
+
23
+ ## MDS Routing Guardrails
24
+
25
+ - Treat a request to run MDS Doctor as a request for the MDS MCP tool, not as a request to run app-local npm scripts.
26
+ - Do not run `npm run mds:doctor`, `npm run doctor`, or other project package scripts as the MDS Doctor path unless the user explicitly asks for app scripts.
27
+ - Never invoke `@mrdj/cli`; that package name is wrong. The published CLI package is `@mr.dj2u/cli` and its executable is `mds`.
23
28
 
24
29
  ## CLI / Manual Fallback
25
30
 
26
31
  1. If MCP is not configured, install it manually:
27
- - `mds mcp install --client codex --scope project`
32
+ - `mds mcp install --client <client> --scope project`
28
33
  2. Direct CLI alternatives:
29
34
  - `mds doctor <projectPath>`
30
35
  - `mds doctor <projectPath> --ci`
31
36
  - `mds doctor <projectPath> --json`
37
+ 3. If `mds` is not on PATH, invoke the published CLI by binary name:
38
+ - `npx -y -p @mr.dj2u/cli@latest mds doctor <projectPath> --ci`
32
39
 
33
40
  ## Verification And Output
34
41
 
35
42
  - Re-run Doctor after each fix batch.
36
- - Keep the response concise and user-facing; do not surface internal tool chatter or intermediate file reads.
37
43
  - Output: check summary, blocking errors first, and the exact command used for re-check.
@@ -0,0 +1,72 @@
1
+ ---
2
+ mode: "agent"
3
+ description: "Run the MDS Wrap Up workflow with MCP-first diagnostics and CLI fallback."
4
+ ---
5
+
6
+ # /wrap-up
7
+
8
+ Run the post-testing release wrap-up flow: final local checks, git inclusion confirmation, PR loop, and merge handling.
9
+
10
+ ## Goal
11
+
12
+ When the developer says testing is complete, finish the handoff safely by:
13
+
14
+ 1. Marking completed todo items.
15
+ 2. Running `mds doctor --ci`.
16
+ 3. Reviewing `git status` and confirming intentionally excluded files.
17
+ 4. Running the publish/PR/check loop.
18
+ 5. Handling merge according to policy defaults and repo overrides.
19
+
20
+ ## Required Flow Order
21
+
22
+ 1. Update `project/todo.md` only for tasks clearly completed in this session.
23
+ 2. Run `mds doctor --ci` before any git mutation.
24
+ 3. Review `git status --short` and list changed files.
25
+ 4. Confirm any intentionally omitted files with the developer before staging.
26
+ 5. Publish through GitHub flow (branch push + PR).
27
+ 6. Poll checks and unresolved feedback.
28
+ 7. Fix failures locally, rerun Doctor, push updates, and poll again.
29
+ 8. Repeat up to 5 cycles total.
30
+
31
+ ## GitHub Skill Routing
32
+
33
+ Use GitHub workflows in this order when available:
34
+
35
+ 1. `github` for repo/PR context and routing.
36
+ 2. `yeet` for commit/push/open-or-update PR flow.
37
+ 3. `gh-fix-ci` for failed checks/log inspection and CI-driven fix loops.
38
+ 4. `gh-address-comments` when unresolved review threads are blocking merge.
39
+
40
+ ## Merge Policy
41
+
42
+ Evaluate policy in this order:
43
+
44
+ 1. Explicit user instruction in the current session.
45
+ 2. Optional repo config at `project/release-policy.json`.
46
+ 3. Defaults if config is absent.
47
+
48
+ Supported repo config shape:
49
+
50
+ ```json
51
+ {
52
+ "wrapUp": {
53
+ "autoMergeTest": true,
54
+ "autoMergeMain": false
55
+ }
56
+ }
57
+ ```
58
+
59
+ Default behavior:
60
+
61
+ - Auto-merge to `test`: enabled.
62
+ - Per-repo override: allowed.
63
+ - Auto-merge to `main`: never allowed.
64
+
65
+ If the workflow targets `main` directly (no `test` branch flow), stop before merge and tell the developer to merge manually.
66
+
67
+ ## Guardrails
68
+
69
+ - Never auto-merge to `main`.
70
+ - Do not skip `mds doctor --ci` between fix cycles.
71
+ - Do not assume omitted files are intentional; confirm them.
72
+ - If checks or blocking threads still fail after 5 cycles, stop and request human help with a concise blocker summary.
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@mr.dj2u/mcp-server"
7
+ "@mr.dj2u/mcp-server@0.1.2"
8
8
  ]
9
9
  }
10
10
  }
@@ -18,13 +18,21 @@ Resume work on an onboarded project by following MDS phase order from `project/t
18
18
  3. Pull `get_skill` for `continue-development` to enforce phase-first sequencing.
19
19
  4. If blockers appear, use `doctor_scan_project` and `doctor_explain_result` for targeted remediation before feature work.
20
20
 
21
+ ## MDS Routing Guardrails
22
+
23
+ - Treat a request to continue development with MDS as a request for the MDS MCP tool and phase rules first.
24
+ - Do not jump directly into app edits until `continue_project` or the CLI fallback has identified the active phase and blockers.
25
+ - Never invoke `@mrdj/cli`; that package name is wrong. The published CLI package is `@mr.dj2u/cli` and its executable is `mds`.
26
+
21
27
  ## CLI / Manual Fallback
22
28
 
23
29
  1. If MCP is not configured, install it manually:
24
- - `mds mcp install --client codex --scope project`
30
+ - `mds mcp install --client <client> --scope project`
25
31
  2. Direct CLI flow:
26
32
  - `mds continue <projectPath>`
27
33
  - `mds doctor <projectPath>` when blockers are unclear.
34
+ 3. If `mds` is not on PATH, invoke the published CLI by binary name:
35
+ - `npx -y -p @mr.dj2u/cli@latest mds continue <projectPath>`
28
36
 
29
37
  ## Verification And Output
30
38
 
@@ -23,7 +23,7 @@ Create a new Expo app with the MDS Super Stack flow, using this knowledge packag
23
23
  ## CLI / Manual Fallback
24
24
 
25
25
  1. If MCP is not configured, install it manually:
26
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
27
27
  2. Direct CLI generation:
28
28
  - `npx -y create-expo-super-stack <appName>`
29
29
  3. Then onboard/continue from inside the generated app using the current CLI behavior:
@@ -23,7 +23,7 @@ Apply SEO metadata fixes for Expo web routes with MCP guidance and post-fix veri
23
23
  ## CLI / Manual Fallback
24
24
 
25
25
  1. If MCP is not configured, install it manually:
26
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
27
27
  2. Direct CLI checks:
28
28
  - `mds doctor <projectPath> --ci`
29
29
  - Run project-specific web build/preview commands to verify metadata output.
@@ -18,13 +18,12 @@ Prepare an Expo project for release using deployment-focused skills plus Doctor
18
18
  2. Run `doctor_scan_project` in `ci` mode for release parity.
19
19
  3. Pull `get_skill` for `deployment`; if web is involved also pull `seo-metadata`.
20
20
  4. Use `knowledge_list_resources` (`kind: "rule"`) to confirm env hygiene, SSR safety, and metadata requirements.
21
- 5. Call `generate_deploy_checklist` so SEO, scripts, and release-readiness gaps are reflected in the next steps.
22
- 6. Produce a release checklist mapped to current failing checks.
21
+ 5. Produce a release checklist mapped to current failing checks.
23
22
 
24
23
  ## CLI / Manual Fallback
25
24
 
26
25
  1. If MCP is not configured, install it manually:
27
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
28
27
  2. Direct CLI path:
29
28
  - `mds doctor <projectPath> --ci`
30
29
  - Run project scripts: `lint`, `type-check`, `test`, and production build/profile scripts.
@@ -32,5 +31,4 @@ Prepare an Expo project for release using deployment-focused skills plus Doctor
32
31
  ## Verification And Output
33
32
 
34
33
  - Re-run `doctor_scan_project` (or CLI equivalent) until blockers are cleared.
35
- - Keep the response user-facing and checklist-driven; avoid internal tool chatter and avoid asking for a PR unless the user requested GitHub workflow.
36
34
  - Output: release readiness status, unresolved blockers, and rollback/readiness notes.
@@ -23,7 +23,7 @@ Turn rough product notes/research into actionable MDS project memory and next-ph
23
23
  ## CLI / Manual Fallback
24
24
 
25
25
  1. If MCP is not configured, install it manually:
26
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
27
27
  2. Direct CLI fallback:
28
28
  - Use `mds onboard <projectPath>` for structured intake when memory files are missing.
29
29
  - Use `mds continue <projectPath>` after memory normalization to select the next task.
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: "MDS Push Merge Loop"
3
+ description: "Run the MDS Push Merge Loop workflow in VS Code Copilot user scope."
4
+ ---
5
+
6
+ # /push-merge-loop
7
+
8
+ Execute the short PR iteration loop for the test branch with strict quality gates.
9
+
10
+ ## Goal
11
+
12
+ Push intentional changes with a meaningful commit message, open/update a PR to `test`, poll for feedback and failed checks, fix issues, and merge to `test` once all checks are green.
13
+
14
+ ## Loop Rules
15
+
16
+ 1. Run `mds doctor --ci` before any git mutation.
17
+ 2. Stage only intentional files and create a meaningful commit message.
18
+ 3. Push branch and open or update a PR targeting `test`.
19
+ 4. Wait about 2 minutes, then poll PR comments, review threads, and failed checks.
20
+ 5. Fix issues locally, rerun Doctor, push updates, and poll again.
21
+ 6. Repeat polling/fix cycles up to 5 total iterations.
22
+ 7. Merge to `test` only when all required checks are green and no unresolved blocking feedback remains.
23
+
24
+ ## Guardrails
25
+
26
+ - Do not merge when required checks are failing.
27
+ - Do not skip Doctor between fix cycles.
28
+ - Keep a concise changelog per iteration: what failed, what was changed, what passed.
29
+ - If still failing after 5 cycles, stop and summarize remaining blockers with concrete next actions.
30
+
@@ -18,20 +18,17 @@ Review an Expo project with MCP-first diagnostics and skill-guided remediation.
18
18
  2. Call `continue_project` to summarize current project state and blockers.
19
19
  3. Call `doctor_scan_project` with `projectPath` and `mode`.
20
20
  4. For each warning/error, call `doctor_explain_result`, then pull targeted guidance with `get_skill` (for example: `project-onboarding`, `debugging`, `deployment`).
21
- 5. If the findings affect release readiness, call `generate_deploy_checklist` so the next steps stay checklist-driven instead of PR-driven.
22
- 6. Call `knowledge_list_resources` with `kind: "guide"` if extra reference context is needed.
21
+ 5. Call `knowledge_list_resources` with `kind: "guide"` if extra reference context is needed.
23
22
 
24
23
  ## CLI / Manual Fallback
25
24
 
26
25
  1. If MCP is not configured, install it manually:
27
- - `mds mcp install --client codex --scope project`
26
+ - `mds mcp install --client <client> --scope project`
28
27
  2. If MCP still cannot run, use direct CLI flows:
29
28
  - `mds continue <projectPath>`
30
29
  - `mds doctor <projectPath> --ci`
31
30
 
32
31
  ## Verification And Output
33
32
 
34
- - Keep the response user-facing: summarize findings and next steps without echoing internal tool chatter or file-read noise.
35
33
  - Re-run `doctor_scan_project` (or `mds doctor --ci`) after fixes.
36
- - If the user is validating an installed agent bundle, include `mds agent verify --client <client> --target <path>` in the follow-up commands.
37
- - Output: blocker summary, failing checks, recommended next task, and concrete follow-up commands. Avoid proposing a PR unless the user explicitly asks for a GitHub workflow.
34
+ - Output: blocker summary, failing checks, recommended next task, and concrete follow-up commands.
@@ -18,20 +18,26 @@ Run MDS Doctor as the primary health check for an Expo project.
18
18
  1. Confirm the `mds` MCP server is available.
19
19
  2. Call `doctor_scan_project` with selected arguments.
20
20
  3. For each non-pass result, call `doctor_explain_result`.
21
- 4. If the check is release-related or web-facing, call `generate_deploy_checklist` before giving next steps.
22
- 5. Pull targeted implementation guidance with `get_skill` (typically `deployment`, `debugging`, or `dev-server-management`).
21
+ 4. Pull targeted implementation guidance with `get_skill` (typically `deployment`, `debugging`, or `dev-server-management`).
22
+
23
+ ## MDS Routing Guardrails
24
+
25
+ - Treat a request to run MDS Doctor as a request for the MDS MCP tool, not as a request to run app-local npm scripts.
26
+ - Do not run `npm run mds:doctor`, `npm run doctor`, or other project package scripts as the MDS Doctor path unless the user explicitly asks for app scripts.
27
+ - Never invoke `@mrdj/cli`; that package name is wrong. The published CLI package is `@mr.dj2u/cli` and its executable is `mds`.
23
28
 
24
29
  ## CLI / Manual Fallback
25
30
 
26
31
  1. If MCP is not configured, install it manually:
27
- - `mds mcp install --client codex --scope project`
32
+ - `mds mcp install --client <client> --scope project`
28
33
  2. Direct CLI alternatives:
29
34
  - `mds doctor <projectPath>`
30
35
  - `mds doctor <projectPath> --ci`
31
36
  - `mds doctor <projectPath> --json`
37
+ 3. If `mds` is not on PATH, invoke the published CLI by binary name:
38
+ - `npx -y -p @mr.dj2u/cli@latest mds doctor <projectPath> --ci`
32
39
 
33
40
  ## Verification And Output
34
41
 
35
42
  - Re-run Doctor after each fix batch.
36
- - Keep the response concise and user-facing; do not surface internal tool chatter or intermediate file reads.
37
43
  - Output: check summary, blocking errors first, and the exact command used for re-check.
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: "MDS Wrap Up"
3
+ description: "Run the MDS Wrap Up workflow in VS Code Copilot user scope."
4
+ ---
5
+
6
+ # /wrap-up
7
+
8
+ Run the post-testing release wrap-up flow: final local checks, git inclusion confirmation, PR loop, and merge handling.
9
+
10
+ ## Goal
11
+
12
+ When the developer says testing is complete, finish the handoff safely by:
13
+
14
+ 1. Marking completed todo items.
15
+ 2. Running `mds doctor --ci`.
16
+ 3. Reviewing `git status` and confirming intentionally excluded files.
17
+ 4. Running the publish/PR/check loop.
18
+ 5. Handling merge according to policy defaults and repo overrides.
19
+
20
+ ## Required Flow Order
21
+
22
+ 1. Update `project/todo.md` only for tasks clearly completed in this session.
23
+ 2. Run `mds doctor --ci` before any git mutation.
24
+ 3. Review `git status --short` and list changed files.
25
+ 4. Confirm any intentionally omitted files with the developer before staging.
26
+ 5. Publish through GitHub flow (branch push + PR).
27
+ 6. Poll checks and unresolved feedback.
28
+ 7. Fix failures locally, rerun Doctor, push updates, and poll again.
29
+ 8. Repeat up to 5 cycles total.
30
+
31
+ ## GitHub Skill Routing
32
+
33
+ Use GitHub workflows in this order when available:
34
+
35
+ 1. `github` for repo/PR context and routing.
36
+ 2. `yeet` for commit/push/open-or-update PR flow.
37
+ 3. `gh-fix-ci` for failed checks/log inspection and CI-driven fix loops.
38
+ 4. `gh-address-comments` when unresolved review threads are blocking merge.
39
+
40
+ ## Merge Policy
41
+
42
+ Evaluate policy in this order:
43
+
44
+ 1. Explicit user instruction in the current session.
45
+ 2. Optional repo config at `project/release-policy.json`.
46
+ 3. Defaults if config is absent.
47
+
48
+ Supported repo config shape:
49
+
50
+ ```json
51
+ {
52
+ "wrapUp": {
53
+ "autoMergeTest": true,
54
+ "autoMergeMain": false
55
+ }
56
+ }
57
+ ```
58
+
59
+ Default behavior:
60
+
61
+ - Auto-merge to `test`: enabled.
62
+ - Per-repo override: allowed.
63
+ - Auto-merge to `main`: never allowed.
64
+
65
+ If the workflow targets `main` directly (no `test` branch flow), stop before merge and tell the developer to merge manually.
66
+
67
+ ## Guardrails
68
+
69
+ - Never auto-merge to `main`.
70
+ - Do not skip `mds doctor --ci` between fix cycles.
71
+ - Do not assume omitted files are intentional; confirm them.
72
+ - If checks or blocking threads still fail after 5 cycles, stop and request human help with a concise blocker summary.
package/dist/cli.js CHANGED
@@ -162,6 +162,10 @@ async function main() {
162
162
  .option('core-flows', {
163
163
  describe: 'Primary user flows',
164
164
  type: 'string',
165
+ })
166
+ .option('screens', {
167
+ describe: 'Known screens that must be included in planning/implementation',
168
+ type: 'string',
165
169
  })
166
170
  .option('data-needs', {
167
171
  describe: 'Expected data/backend needs',
@@ -186,6 +190,10 @@ async function main() {
186
190
  .option('custom-backend-entry', {
187
191
  describe: 'Entry point for the custom backend server (e.g. server.js, api-server.ts)',
188
192
  type: 'string',
193
+ })
194
+ .option('save-defaults', {
195
+ describe: 'Persist selected onboarding defaults globally for future app generation (interactive runs ask unless this is set)',
196
+ type: 'boolean',
189
197
  }), async (argv) => {
190
198
  await runOnboardCommand(argv);
191
199
  })
@@ -373,7 +381,7 @@ async function main() {
373
381
  }), async (argv) => {
374
382
  await runReportCommand(argv);
375
383
  })
376
- .command(['test-and-iterate [branch]', 'ship [branch]'], 'Plan the push, PR, CI polling, fix, and merge-to-test workflow', (builder) => builder
384
+ .command(['test-and-iterate [branch]', 'ship [branch]', 'push-merge-loop [branch]'], 'Plan the push, PR, CI polling, fix, and merge-to-test workflow', (builder) => builder
377
385
  .positional('branch', {
378
386
  describe: 'Feature branch to push',
379
387
  type: 'string',