@mr.dj2u/cli 0.1.1 → 0.1.3

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 (119) hide show
  1. package/bundles/claude-code/.claude-plugin/plugin.json +12 -0
  2. package/bundles/claude-code/.mcp.json +8 -0
  3. package/bundles/claude-code/CLAUDE.md +59 -0
  4. package/bundles/claude-code/README.md +51 -0
  5. package/bundles/claude-code/agents/mds.md +35 -0
  6. package/bundles/claude-code/commands/continue-development.md +27 -0
  7. package/bundles/claude-code/commands/create-expo-super-stack.md +30 -0
  8. package/bundles/claude-code/commands/fix-seo.md +29 -0
  9. package/bundles/claude-code/commands/prepare-deploy.md +31 -0
  10. package/bundles/claude-code/commands/project-research-plan.md +29 -0
  11. package/bundles/claude-code/commands/review-expo-project.md +32 -0
  12. package/bundles/claude-code/commands/run-doctor.md +32 -0
  13. package/bundles/claude-code/settings.json +3 -0
  14. package/bundles/claude-code/skills/api-routes/SKILL.md +37 -0
  15. package/bundles/claude-code/skills/continue-development/SKILL.md +32 -0
  16. package/bundles/claude-code/skills/create-expo-super-stack/SKILL.md +35 -0
  17. package/bundles/claude-code/skills/debugging/SKILL.md +36 -0
  18. package/bundles/claude-code/skills/deployment/SKILL.md +36 -0
  19. package/bundles/claude-code/skills/dev-server-management/SKILL.md +36 -0
  20. package/bundles/claude-code/skills/env-vars/SKILL.md +36 -0
  21. package/bundles/claude-code/skills/expo-router-architecture/SKILL.md +37 -0
  22. package/bundles/claude-code/skills/expo-ssr-safety/SKILL.md +36 -0
  23. package/bundles/claude-code/skills/fix-seo/SKILL.md +34 -0
  24. package/bundles/claude-code/skills/plugin-creation/SKILL.md +45 -0
  25. package/bundles/claude-code/skills/prepare-deploy/SKILL.md +36 -0
  26. package/bundles/claude-code/skills/production-server-patterns/SKILL.md +35 -0
  27. package/bundles/claude-code/skills/project-onboarding/SKILL.md +35 -0
  28. package/bundles/claude-code/skills/project-research-plan/SKILL.md +34 -0
  29. package/bundles/claude-code/skills/research-plan-intake/SKILL.md +36 -0
  30. package/bundles/claude-code/skills/review-expo-project/SKILL.md +37 -0
  31. package/bundles/claude-code/skills/run-doctor/SKILL.md +37 -0
  32. package/bundles/claude-code/skills/seo-metadata/SKILL.md +35 -0
  33. package/bundles/claude-code/skills/super-stack-startup/SKILL.md +38 -0
  34. package/bundles/claude-code/skills/uniwind-theming/SKILL.md +36 -0
  35. package/bundles/codex/.codex-plugin/plugin.json +42 -0
  36. package/bundles/codex/.mcp.json +11 -0
  37. package/bundles/codex/README.md +48 -0
  38. package/bundles/codex/commands/continue-development.md +27 -0
  39. package/bundles/codex/commands/create-expo-super-stack.md +30 -0
  40. package/bundles/codex/commands/fix-seo.md +29 -0
  41. package/bundles/codex/commands/prepare-deploy.md +31 -0
  42. package/bundles/codex/commands/project-research-plan.md +29 -0
  43. package/bundles/codex/commands/review-expo-project.md +32 -0
  44. package/bundles/codex/commands/run-doctor.md +32 -0
  45. package/bundles/codex/skills/api-routes/SKILL.md +32 -0
  46. package/bundles/codex/skills/continue-development/SKILL.md +32 -0
  47. package/bundles/codex/skills/debugging/SKILL.md +32 -0
  48. package/bundles/codex/skills/deployment/SKILL.md +31 -0
  49. package/bundles/codex/skills/dev-server-management/SKILL.md +32 -0
  50. package/bundles/codex/skills/env-vars/SKILL.md +31 -0
  51. package/bundles/codex/skills/expo-router-architecture/SKILL.md +32 -0
  52. package/bundles/codex/skills/expo-ssr-safety/SKILL.md +31 -0
  53. package/bundles/codex/skills/plugin-creation/SKILL.md +41 -0
  54. package/bundles/codex/skills/production-server-patterns/SKILL.md +31 -0
  55. package/bundles/codex/skills/project-onboarding/SKILL.md +31 -0
  56. package/bundles/codex/skills/research-plan-intake/SKILL.md +32 -0
  57. package/bundles/codex/skills/seo-metadata/SKILL.md +31 -0
  58. package/bundles/codex/skills/super-stack-startup/SKILL.md +34 -0
  59. package/bundles/codex/skills/uniwind-theming/SKILL.md +31 -0
  60. package/bundles/vscode-copilot/.github/agents/mds.agent.md +22 -0
  61. package/bundles/vscode-copilot/.github/copilot-instructions.md +8 -0
  62. package/bundles/vscode-copilot/.github/prompts/continue-development.prompt.md +32 -0
  63. package/bundles/vscode-copilot/.github/prompts/create-expo-super-stack.prompt.md +35 -0
  64. package/bundles/vscode-copilot/.github/prompts/fix-seo.prompt.md +34 -0
  65. package/bundles/vscode-copilot/.github/prompts/prepare-deploy.prompt.md +36 -0
  66. package/bundles/vscode-copilot/.github/prompts/project-research-plan.prompt.md +34 -0
  67. package/bundles/vscode-copilot/.github/prompts/review-expo-project.prompt.md +37 -0
  68. package/bundles/vscode-copilot/.github/prompts/run-doctor.prompt.md +37 -0
  69. package/bundles/vscode-copilot/.github/skills/api-routes/SKILL.md +38 -0
  70. package/bundles/vscode-copilot/.github/skills/continue-development/SKILL.md +37 -0
  71. package/bundles/vscode-copilot/.github/skills/debugging/SKILL.md +37 -0
  72. package/bundles/vscode-copilot/.github/skills/deployment/SKILL.md +37 -0
  73. package/bundles/vscode-copilot/.github/skills/dev-server-management/SKILL.md +37 -0
  74. package/bundles/vscode-copilot/.github/skills/env-vars/SKILL.md +37 -0
  75. package/bundles/vscode-copilot/.github/skills/expo-router-architecture/SKILL.md +38 -0
  76. package/bundles/vscode-copilot/.github/skills/expo-ssr-safety/SKILL.md +37 -0
  77. package/bundles/vscode-copilot/.github/skills/plugin-creation/SKILL.md +46 -0
  78. package/bundles/vscode-copilot/.github/skills/production-server-patterns/SKILL.md +36 -0
  79. package/bundles/vscode-copilot/.github/skills/project-onboarding/SKILL.md +36 -0
  80. package/bundles/vscode-copilot/.github/skills/research-plan-intake/SKILL.md +37 -0
  81. package/bundles/vscode-copilot/.github/skills/seo-metadata/SKILL.md +36 -0
  82. package/bundles/vscode-copilot/.github/skills/super-stack-startup/SKILL.md +39 -0
  83. package/bundles/vscode-copilot/.github/skills/uniwind-theming/SKILL.md +37 -0
  84. package/bundles/vscode-copilot/.vscode/mcp.json +11 -0
  85. package/bundles/vscode-copilot/.vscode/settings.json +14 -0
  86. package/bundles/vscode-copilot/README.md +32 -0
  87. package/bundles/vscode-copilot/user/.copilot/agents/mds.agent.md +22 -0
  88. package/bundles/vscode-copilot/user/.copilot/instructions.md +8 -0
  89. package/bundles/vscode-copilot/user/.copilot/skills/api-routes/SKILL.md +38 -0
  90. package/bundles/vscode-copilot/user/.copilot/skills/continue-development/SKILL.md +37 -0
  91. package/bundles/vscode-copilot/user/.copilot/skills/debugging/SKILL.md +37 -0
  92. package/bundles/vscode-copilot/user/.copilot/skills/deployment/SKILL.md +37 -0
  93. package/bundles/vscode-copilot/user/.copilot/skills/dev-server-management/SKILL.md +37 -0
  94. package/bundles/vscode-copilot/user/.copilot/skills/env-vars/SKILL.md +37 -0
  95. package/bundles/vscode-copilot/user/.copilot/skills/expo-router-architecture/SKILL.md +38 -0
  96. package/bundles/vscode-copilot/user/.copilot/skills/expo-ssr-safety/SKILL.md +37 -0
  97. package/bundles/vscode-copilot/user/.copilot/skills/plugin-creation/SKILL.md +46 -0
  98. package/bundles/vscode-copilot/user/.copilot/skills/production-server-patterns/SKILL.md +36 -0
  99. package/bundles/vscode-copilot/user/.copilot/skills/project-onboarding/SKILL.md +36 -0
  100. package/bundles/vscode-copilot/user/.copilot/skills/research-plan-intake/SKILL.md +37 -0
  101. package/bundles/vscode-copilot/user/.copilot/skills/seo-metadata/SKILL.md +36 -0
  102. package/bundles/vscode-copilot/user/.copilot/skills/super-stack-startup/SKILL.md +39 -0
  103. package/bundles/vscode-copilot/user/.copilot/skills/uniwind-theming/SKILL.md +37 -0
  104. package/bundles/vscode-copilot/user/.copilot/skills/workflow-continue-development/SKILL.md +32 -0
  105. package/bundles/vscode-copilot/user/.copilot/skills/workflow-create-expo-super-stack/SKILL.md +35 -0
  106. package/bundles/vscode-copilot/user/.copilot/skills/workflow-fix-seo/SKILL.md +34 -0
  107. package/bundles/vscode-copilot/user/.copilot/skills/workflow-prepare-deploy/SKILL.md +36 -0
  108. package/bundles/vscode-copilot/user/.copilot/skills/workflow-project-research-plan/SKILL.md +34 -0
  109. package/bundles/vscode-copilot/user/.copilot/skills/workflow-review-expo-project/SKILL.md +37 -0
  110. package/bundles/vscode-copilot/user/.copilot/skills/workflow-run-doctor/SKILL.md +37 -0
  111. package/dist/cli.js +2 -3
  112. package/dist/cli.js.map +1 -1
  113. package/dist/commands/agent.d.ts +5 -4
  114. package/dist/commands/agent.d.ts.map +1 -1
  115. package/dist/commands/agent.js +155 -30
  116. package/dist/commands/agent.js.map +1 -1
  117. package/dist/project-memory.js +0 -2
  118. package/dist/project-memory.js.map +1 -1
  119. package/package.json +4 -3
@@ -0,0 +1,30 @@
1
+ # /create-expo-super-stack
2
+
3
+ Create a new Expo app with the MDS Super Stack flow, using this knowledge package as the shared source of truth for agent-facing text and the published CLI as the execution source of truth.
4
+
5
+ ## Arguments
6
+
7
+ - `parentDir`: folder where the new app directory should be created.
8
+ - `appName`: app folder name.
9
+
10
+ ## MCP-First Workflow
11
+
12
+ 1. Confirm the `mr-djs-dev-suite` MCP server is available.
13
+ 2. Invoke the MCP prompt `create_expo_super_stack` from a parent directory when you want guided intake.
14
+ 3. Keep the conversation one question per turn and summarize the captured choices before generation.
15
+ 4. Treat the MCP prompt as the intake surface and the CLI as the generator, so CLI changes are picked up automatically when the published command changes.
16
+ 5. After generation, move into the new app folder and invoke `continue_project` (or prompt `continue_mds_project`) for the first implementation session.
17
+
18
+ ## CLI / Manual Fallback
19
+
20
+ 1. If MCP is not configured, install it manually:
21
+ - `mds mcp install --client codex --scope project`
22
+ 2. Direct CLI generation:
23
+ - `npx -y create-expo-super-stack <appName>`
24
+ 3. Then onboard/continue from inside the generated app using the current CLI behavior:
25
+ - `mds continue <new-app-path>`
26
+
27
+ ## Verification And Output
28
+
29
+ - Confirm generated app has `project/info.md`, `project/todo.md`, `project/style.md`, and `project/guidelines.md`.
30
+ - Output: generated app path, onboarding status, and immediate next command.
@@ -0,0 +1,29 @@
1
+ # /fix-seo
2
+
3
+ Apply SEO metadata fixes for Expo web routes with MCP guidance and post-fix verification.
4
+
5
+ ## Arguments
6
+
7
+ - `projectPath`: Expo project path (default: current directory).
8
+ - `routeOrFile`: optional route/file focus for targeted checks.
9
+
10
+ ## MCP-First Workflow
11
+
12
+ 1. Confirm the `mr-djs-dev-suite` MCP server is available.
13
+ 2. Pull `get_skill` for `seo-metadata`.
14
+ 3. Optionally run `doctor_scan_file` for focused route files, then `doctor_scan_project` for full checks.
15
+ 4. Use `knowledge_list_resources` (`kind: "rule"`) to ensure canonical/indexing strategy is complete.
16
+ 5. Implement metadata, canonical, robots, and sitemap corrections in route ownership boundaries.
17
+
18
+ ## CLI / Manual Fallback
19
+
20
+ 1. If MCP is not configured, install it manually:
21
+ - `mds mcp install --client codex --scope project`
22
+ 2. Direct CLI checks:
23
+ - `mds doctor <projectPath> --ci`
24
+ - Run project-specific web build/preview commands to verify metadata output.
25
+
26
+ ## Verification And Output
27
+
28
+ - Confirm canonical tags, social metadata, and sitemap/robots behavior on affected routes.
29
+ - Output: changed files, resolved SEO gaps, and any remaining manual verification steps.
@@ -0,0 +1,31 @@
1
+ # /prepare-deploy
2
+
3
+ Prepare an Expo project for release using deployment-focused skills plus Doctor parity checks.
4
+
5
+ ## Arguments
6
+
7
+ - `projectPath`: release candidate project path (default: current directory).
8
+ - `includeSeo`: whether to include web metadata/indexing checks (default: `true` when web is targeted).
9
+
10
+ ## MCP-First Workflow
11
+
12
+ 1. Confirm the `mr-djs-dev-suite` MCP server is available.
13
+ 2. Run `doctor_scan_project` in `ci` mode for release parity.
14
+ 3. Pull `get_skill` for `deployment`; if web is involved also pull `seo-metadata`.
15
+ 4. Use `knowledge_list_resources` (`kind: "rule"`) to confirm env hygiene, SSR safety, and metadata requirements.
16
+ 5. Call `generate_deploy_checklist` so SEO, scripts, and release-readiness gaps are reflected in the next steps.
17
+ 6. Produce a release checklist mapped to current failing checks.
18
+
19
+ ## CLI / Manual Fallback
20
+
21
+ 1. If MCP is not configured, install it manually:
22
+ - `mds mcp install --client codex --scope project`
23
+ 2. Direct CLI path:
24
+ - `mds doctor <projectPath> --ci`
25
+ - Run project scripts: `lint`, `type-check`, `test`, and production build/profile scripts.
26
+
27
+ ## Verification And Output
28
+
29
+ - Re-run `doctor_scan_project` (or CLI equivalent) until blockers are cleared.
30
+ - Keep the response user-facing and checklist-driven; avoid internal tool chatter and avoid asking for a PR unless the user requested GitHub workflow.
31
+ - Output: release readiness status, unresolved blockers, and rollback/readiness notes.
@@ -0,0 +1,29 @@
1
+ # /project-research-plan
2
+
3
+ Turn rough product notes/research into actionable MDS project memory and next-phase plan.
4
+
5
+ ## Arguments
6
+
7
+ - `projectPath`: target project path (default: current directory).
8
+ - `inputs`: attached notes/docs to normalize into canonical memory files.
9
+
10
+ ## MCP-First Workflow
11
+
12
+ 1. Confirm the `mr-djs-dev-suite` MCP server is available.
13
+ 2. Pull `get_skill` for `research-plan-intake` (and `project-onboarding` when onboarding context is mixed in).
14
+ 3. Call `knowledge_list_resources` for `guide` and `reference` resources as needed for structure and validation.
15
+ 4. Normalize clear context directly; ask focused follow-up only where ambiguity changes implementation direction.
16
+ 5. Update project memory files and produce an implementation-ready next-phase plan.
17
+
18
+ ## CLI / Manual Fallback
19
+
20
+ 1. If MCP is not configured, install it manually:
21
+ - `mds mcp install --client codex --scope project`
22
+ 2. Direct CLI fallback:
23
+ - Use `mds onboard <projectPath>` for structured intake when memory files are missing.
24
+ - Use `mds continue <projectPath>` after memory normalization to select the next task.
25
+
26
+ ## Verification And Output
27
+
28
+ - Confirm `project/info.md`, `project/style.md`, and `project/todo.md` align with extracted research context.
29
+ - Output: resolved unknowns, outstanding questions, and the recommended next implementation slice.
@@ -0,0 +1,32 @@
1
+ # /review-expo-project
2
+
3
+ Review an Expo project with MCP-first diagnostics and skill-guided remediation.
4
+
5
+ ## Arguments
6
+
7
+ - `projectPath`: absolute or relative project path (default: current directory).
8
+ - `mode`: Doctor mode (`fast`, `ci`, or `full`; default: `ci`).
9
+
10
+ ## MCP-First Workflow
11
+
12
+ 1. Confirm the `mr-djs-dev-suite` MCP server is available.
13
+ 2. Call `continue_project` to summarize current project state and blockers.
14
+ 3. Call `doctor_scan_project` with `projectPath` and `mode`.
15
+ 4. For each warning/error, call `doctor_explain_result`, then pull targeted guidance with `get_skill` (for example: `project-onboarding`, `debugging`, `deployment`).
16
+ 5. If the findings affect release readiness, call `generate_deploy_checklist` so the next steps stay checklist-driven instead of PR-driven.
17
+ 6. Call `knowledge_list_resources` with `kind: "guide"` if extra reference context is needed.
18
+
19
+ ## CLI / Manual Fallback
20
+
21
+ 1. If MCP is not configured, install it manually:
22
+ - `mds mcp install --client codex --scope project`
23
+ 2. If MCP still cannot run, use direct CLI flows:
24
+ - `mds continue <projectPath>`
25
+ - `mds doctor <projectPath> --ci`
26
+
27
+ ## Verification And Output
28
+
29
+ - Keep the response user-facing: summarize findings and next steps without echoing internal tool chatter or file-read noise.
30
+ - Re-run `doctor_scan_project` (or `mds doctor --ci`) after fixes.
31
+ - If the user is validating an installed agent bundle, include `mds agent verify --client <client> --target <path>` in the follow-up commands.
32
+ - 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.
@@ -0,0 +1,32 @@
1
+ # /run-doctor
2
+
3
+ Run MDS Doctor as the primary health check for an Expo project.
4
+
5
+ ## Arguments
6
+
7
+ - `projectPath`: project root path (default: current directory).
8
+ - `mode`: `fast`, `ci`, or `full` (default: `ci`).
9
+ - `runScripts`: whether Doctor should execute project scripts (default: `true` for `ci` mode).
10
+
11
+ ## MCP-First Workflow
12
+
13
+ 1. Confirm the `mr-djs-dev-suite` MCP server is available.
14
+ 2. Call `doctor_scan_project` with selected arguments.
15
+ 3. For each non-pass result, call `doctor_explain_result`.
16
+ 4. If the check is release-related or web-facing, call `generate_deploy_checklist` before giving next steps.
17
+ 5. Pull targeted implementation guidance with `get_skill` (typically `deployment`, `debugging`, or `dev-server-management`).
18
+
19
+ ## CLI / Manual Fallback
20
+
21
+ 1. If MCP is not configured, install it manually:
22
+ - `mds mcp install --client codex --scope project`
23
+ 2. Direct CLI alternatives:
24
+ - `mds doctor <projectPath>`
25
+ - `mds doctor <projectPath> --ci`
26
+ - `mds doctor <projectPath> --json`
27
+
28
+ ## Verification And Output
29
+
30
+ - Re-run Doctor after each fix batch.
31
+ - Keep the response concise and user-facing; do not surface internal tool chatter or intermediate file reads.
32
+ - Output: check summary, blocking errors first, and the exact command used for re-check.
@@ -0,0 +1,32 @@
1
+ # Skill: API Routes
2
+
3
+ Use when creating, reviewing, or debugging Expo Router API route handlers.
4
+
5
+ ## Main rule
6
+
7
+ Keep route handlers thin and defensive: validate input, enforce auth/authorization before data access, and return consistent typed responses.
8
+
9
+ ## Checks
10
+
11
+ - Confirm each endpoint handles allowed methods explicitly and rejects unsupported methods.
12
+ - Validate request params/body with schema guards before business logic executes.
13
+ - Enforce auth first for privileged operations; never rely on client-provided roles.
14
+ - Keep service-role credentials on server-only paths and avoid exposing them to client bundles.
15
+ - Confirm error responses are structured and safe (no stack traces or secret values).
16
+
17
+ ## Preferred structure
18
+
19
+ - Use one route module per resource concern.
20
+ - Parse and validate request data first, then call feature/service logic.
21
+ - Keep DB and external API logic in service modules, not inline in route files.
22
+ - Use a shared response envelope pattern for success and failure paths.
23
+
24
+ ## Example fix
25
+
26
+ - Problem: A `POST` route writes directly to DB with unchecked body data.
27
+ - Fix: Add schema validation, early auth check, and move write logic into a service function before returning a typed response object.
28
+
29
+ ## Agent behavior
30
+
31
+ - Apply the smallest safe refactor that adds validation/auth boundaries first.
32
+ - Delegate framework primitive questions to official Expo API route guidance, then layer MDS project-specific rules (env boundaries, doc updates, Doctor compatibility).
@@ -0,0 +1,32 @@
1
+ # Skill: Continue Development
2
+
3
+ Use when resuming work on an onboarded app and selecting the next task from `project/todo.md`.
4
+
5
+ ## Main rule
6
+
7
+ Continue phase-by-phase: finish in-progress phase items first, and only defer/move tasks with an explicit note and user confirmation.
8
+
9
+ ## Checks
10
+
11
+ - Confirm project memory files are present and current before task selection.
12
+ - Identify the active phase and incomplete tasks in `project/todo.md`.
13
+ - Confirm blockers/context markers are resolved before feature implementation.
14
+ - Confirm any deferral includes a clear reason and destination note.
15
+ - Re-run Doctor/checks after significant phase tasks are completed.
16
+
17
+ ## Preferred structure
18
+
19
+ - Start each session by summarizing current phase state and next recommended task.
20
+ - Keep task updates minimal and explicit in `project/todo.md`.
21
+ - Keep roadmap changes aligned with product intent in `project/info.md`.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: Agent jumps to a later phase feature while current phase has unresolved blockers.
26
+ - Fix: Return to active phase tasks, complete or formally defer blockers, then proceed to later phase work.
27
+
28
+ ## Agent behavior
29
+
30
+ - Optimize for forward progress without losing roadmap integrity.
31
+ - Avoid silently reordering roadmap priorities; ask for confirmation before major sequencing changes.
32
+ - Treat this as an MDS-only workflow skill: use official Expo or React Native guidance for framework mechanics, then apply MDS phase order, project memory, and Doctor checks.
@@ -0,0 +1,32 @@
1
+ # Skill: Debugging
2
+
3
+ Use when diagnosing broken behavior, flaky tooling, or unclear failures in Expo projects.
4
+
5
+ ## Main rule
6
+
7
+ Debug by narrowing scope quickly: reproduce, isolate, capture evidence, apply the smallest safe fix, then verify.
8
+
9
+ ## Checks
10
+
11
+ - Reproduce the issue consistently and record exact command/path/error output.
12
+ - Confirm environment assumptions (platform, output mode, env vars, script path) match the failing context.
13
+ - Run targeted checks first (`mds doctor`, focused tests, route/file scans) before broad reruns.
14
+ - Separate root-cause signals from secondary cascade errors.
15
+ - Re-verify with the same reproduction path after the fix.
16
+
17
+ ## Preferred structure
18
+
19
+ - Keep debugging notes concise in task output or project memory when the issue is recurring.
20
+ - Prefer deterministic scripts over ad-hoc manual sequences.
21
+ - Escalate from narrow test scope to broader validation only after targeted checks pass.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: Route crashes only on web server output with ambiguous stack traces.
26
+ - Fix: Reproduce in server mode, isolate browser-global usage in shared module, add guards, rerun targeted test and Doctor scan.
27
+
28
+ ## Agent behavior
29
+
30
+ - Start with high-risk failures (security, data loss, crashers), then address lower-risk warnings.
31
+ - Keep users unblocked with concrete next commands and avoid speculative broad refactors before evidence is clear.
32
+ - Delegate framework primitive questions to official Expo or React Native guidance, then apply MDS reproduction discipline, Doctor checks, and project-memory context.
@@ -0,0 +1,31 @@
1
+ # Skill: Deployment Readiness
2
+
3
+ Use before merging or releasing an Expo project to shared environments.
4
+
5
+ ## Main rule
6
+
7
+ Treat deployment as a repeatable checklist: pass local quality gates, verify runtime configuration, and document rollback expectations before ship.
8
+
9
+ ## Checks
10
+
11
+ - Run lint, type-check, tests, Expo Doctor, and production build/profile checks when scripts exist.
12
+ - Verify env vars are documented and separated by client/server exposure level.
13
+ - Confirm output mode and hosting assumptions match the selected platform strategy.
14
+ - Confirm metadata/indexing basics are defined for web exports.
15
+ - Record release and rollback notes for the current change batch.
16
+
17
+ ## Preferred structure
18
+
19
+ - Keep release checks in scripts that CI and agents can run consistently.
20
+ - Gate merge/publish flows on the same Doctor and package validation criteria.
21
+ - Keep deployment conventions in `project/guidelines.md` and release tasks in `project/todo.md`.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: Release pipeline runs tests but skips Expo Doctor and build profile checks.
26
+ - Fix: Add missing scripts, wire them into pre-merge checks, and document the required sequence in project memory.
27
+
28
+ ## Agent behavior
29
+
30
+ - Run project-defined checks first; do not invent alternate release criteria.
31
+ - Delegate framework deployment primitives to official Expo guidance, then apply MDS workflow rules for docs, Doctor parity, and rollback readiness.
@@ -0,0 +1,32 @@
1
+ # Skill: Dev Server Management
2
+
3
+ Use when Expo or Metro local development servers fail to boot cleanly, hang, or bind to conflicting ports.
4
+
5
+ ## Main rule
6
+
7
+ Use a deterministic reset path first; do not work around unstable server state with ad-hoc port fallbacks.
8
+
9
+ ## Checks
10
+
11
+ - Run `mds clear-expo-start` before manual troubleshooting.
12
+ - If a conflict remains, run `mds free-port <port...>` for blocked ports.
13
+ - Confirm Expo/Metro caches are cleared before retrying startup.
14
+ - Treat fallback to port `8082` as an unresolved state that requires full reset.
15
+ - Confirm the same recovery scripts are available to teammates and automation.
16
+
17
+ ## Preferred structure
18
+
19
+ - Keep project scripts for clear-expo-start and targeted port cleanup.
20
+ - Standardize a single restart path in project memory (`project/guidelines.md`).
21
+ - Use explicit “fresh” commands when booting local or production-like flows.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: `expo start` repeatedly falls back to `8082` after a partial crash.
26
+ - Fix: Run `mds clear-expo-start`, free remaining blocked ports, clear cache, and restart via the project's clear-expo-start script.
27
+
28
+ ## Agent behavior
29
+
30
+ - Prefer established MDS cleanup commands over custom shell sequences.
31
+ - Avoid introducing alternate fallback port workflows that hide root-cause server state issues.
32
+ - Delegate Expo or Metro mechanics to official Expo guidance, then apply MDS reset commands, script consistency, and onboarding defaults.
@@ -0,0 +1,31 @@
1
+ # Skill: Environment Variables
2
+
3
+ Use when adding, reviewing, or debugging app configuration and secrets handling.
4
+
5
+ ## Main rule
6
+
7
+ Keep a hard boundary between public client config and private server secrets; anything sensitive must never cross into `EXPO_PUBLIC_*` variables.
8
+
9
+ ## Checks
10
+
11
+ - Confirm secrets (service-role keys, private tokens, payment secrets, passwords) are server-only.
12
+ - Confirm `EXPO_PUBLIC_*` values are safe to expose in client bundles.
13
+ - Validate required env keys exist for each runtime mode used by the project.
14
+ - Ensure Supabase anon key usage is scoped to client-safe flows and service-role usage is server-only.
15
+ - Verify env naming/docs are consistent across `.env` files, scripts, and project memory.
16
+
17
+ ## Preferred structure
18
+
19
+ - Keep env access centralized through small typed config helpers.
20
+ - Separate client-safe config and server-only config modules.
21
+ - Document required keys and local setup in project memory and onboarding outputs.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: A route imports `EXPO_PUBLIC_SUPABASE_SERVICE_ROLE_KEY` from client config.
26
+ - Fix: Move service-role key to server-only env access, switch client flow to anon key, and update docs/checks.
27
+
28
+ ## Agent behavior
29
+
30
+ - Prioritize removing exposure risk before refactoring for style.
31
+ - Delegate framework/env-loading primitives to official Expo guidance, then enforce MDS-specific security boundaries and Doctor alignment.
@@ -0,0 +1,32 @@
1
+ # Skill: Expo Router Architecture
2
+
3
+ Use when structuring, reviewing, or refactoring Expo Router route code.
4
+
5
+ ## Main rule
6
+
7
+ Keep route files thin: routing and composition belong in `app/`, while business/data logic lives in feature, service, and shared modules.
8
+
9
+ ## Checks
10
+
11
+ - Confirm route files avoid direct DB calls, heavy business logic, and large side-effect chains.
12
+ - Confirm shared UI blocks are extracted to component modules.
13
+ - Confirm cross-route state is managed in stores/hooks instead of duplicated route-local logic.
14
+ - Confirm route grouping/layout usage is intentional and not overloaded at root.
15
+ - Confirm file size/complexity trends support long-term maintainability.
16
+
17
+ ## Preferred structure
18
+
19
+ - Keep `app/` files focused on params, navigation, and screen composition.
20
+ - Place business workflows in `src/features`.
21
+ - Place side effects/integrations in `src/services` or `src/data`.
22
+ - Keep reusable UI in `src/components` and cross-cutting helpers in hooks/utilities.
23
+
24
+ ## Example fix
25
+
26
+ - Problem: A route file performs data fetching, mutation, and form business rules inline.
27
+ - Fix: Move fetch/mutation logic to service modules, move workflow rules to a feature module, and keep the route as a thin screen wrapper.
28
+
29
+ ## Agent behavior
30
+
31
+ - Prefer small, incremental extractions over broad rewrites.
32
+ - Delegate framework routing primitives to official Expo Router guidance, then apply MDS rules for maintainable app-folder boundaries and Doctor-compatible architecture.
@@ -0,0 +1,31 @@
1
+ # Skill: Expo SSR Safety
2
+
3
+ Use when preparing or debugging Expo Router web/server output paths.
4
+
5
+ ## Main rule
6
+
7
+ Assume server runtime first: guard browser-only APIs, isolate native-only code, and keep shared modules safe in both client and server contexts.
8
+
9
+ ## Checks
10
+
11
+ - Guard `window`, `document`, `navigator`, `localStorage`, and `sessionStorage` access.
12
+ - Confirm client-only packages are not imported by server/API execution paths.
13
+ - Confirm storage/session access happens in client-safe lifecycle points.
14
+ - Verify API routes and server modules do not rely on browser globals.
15
+ - Validate dynamic imports or adapters for platform-specific behavior.
16
+
17
+ ## Preferred structure
18
+
19
+ - Use small environment-check helpers for browser-global access.
20
+ - Split client-only logic behind platform/runtime-specific modules.
21
+ - Keep server-safe defaults and explicit fallbacks in shared utilities.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: Shared auth helper reads `localStorage` at module load and crashes SSR.
26
+ - Fix: Move storage access into guarded runtime functions and provide a server-safe fallback.
27
+
28
+ ## Agent behavior
29
+
30
+ - Fix crash-risk paths first, then clean up architecture.
31
+ - Delegate framework SSR primitives to official Expo docs, then apply MDS-specific guard patterns and Doctor rule compatibility.
@@ -0,0 +1,41 @@
1
+ # Skill: MDS Plugin Creation
2
+
3
+ Use when building or extending an MDS plugin bundle for any agent client (Claude Code, Codex, Cursor, etc.).
4
+
5
+ ## Main rule
6
+
7
+ Plugins are thin bundles. `packages/knowledge` is the source of truth for skills, command prompts, checklists, and examples. Do not hand-author plugin skill/command copies in plugin folders.
8
+
9
+ ## Structure conventions
10
+
11
+ Every MDS plugin lives in `plugins/<client-name>/`:
12
+
13
+ ```
14
+ plugins/<client-name>/
15
+ README.md
16
+ CLAUDE.md # Claude-specific merge instructions (if relevant)
17
+ .mcp.json
18
+ commands/ # generated command markdown from canonical prompt specs
19
+ skills/ # generated skill files
20
+ ```
21
+
22
+ ## Checks
23
+
24
+ - Skill markdown lives only in `packages/knowledge/src/content/skills/`.
25
+ - Prompt/command markdown lives only in `packages/knowledge/src/content/prompts/`.
26
+ - `plugins/<client>/skills/` remains generated output and is not manually edited.
27
+ - Commands reference real MCP tool names from `packages/mcp-server`.
28
+ - MCP config uses the `mr-djs-dev-suite` server key.
29
+
30
+ ## Adding a plugin capability
31
+
32
+ 1. Add or update canonical content in `packages/knowledge/src/content/*`.
33
+ 2. Update canonical prompt metadata in `packages/knowledge/src/prompts/index.ts`.
34
+ 3. Regenerate outputs via `pnpm --filter @mr.dj2u/knowledge build`.
35
+ 4. Verify generated plugin assets under `plugins/codex/` and `plugins/claude-code/`.
36
+
37
+ ## Agent behavior
38
+
39
+ - Prefer extending canonical knowledge specs over patching generated plugin files.
40
+ - Keep command prompts action-oriented and generated from canonical prompt specs, with clear fallback paths.
41
+ - Delegate framework guidance to Expo-owned skills/docs when available; layer MDS project-memory and workflow guidance on top.
@@ -0,0 +1,31 @@
1
+ # Skill: Production Server Patterns
2
+
3
+ Use when setting up or debugging how an Expo project serves production traffic.
4
+
5
+ ## Main rule
6
+
7
+ Pick one explicit production serving mode per environment and codify it in scripts; avoid mixed runtime assumptions.
8
+
9
+ ## Checks
10
+
11
+ - Confirm selected mode is documented: managed Expo/EAS, Express adapter, or dual-server.
12
+ - Confirm serving scripts match the selected runtime (`npx expo serve`, `node server.js`, or dual process scripts).
13
+ - Confirm routing boundaries are clear when app and API are separate services.
14
+ - Confirm env var ownership differs correctly across app server and API server in dual-server mode.
15
+ - Confirm “fresh” start scripts exist where server state/caches can cause drift.
16
+
17
+ ## Preferred structure
18
+
19
+ - Define `serve:prod` and `serve:prod:fresh` scripts for the chosen mode.
20
+ - Keep server bootstrap and adapter code in dedicated files/modules.
21
+ - Keep deployment notes aligned with runtime mode in project memory.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: Team mixes Expo serve and custom Express commands, causing inconsistent behavior.
26
+ - Fix: Select one primary mode per environment, standardize scripts, and document routing/env boundaries.
27
+
28
+ ## Agent behavior
29
+
30
+ - Use the project’s declared serving mode unless a migration is explicitly requested.
31
+ - Delegate framework runtime primitives to official Expo docs, then enforce MDS conventions for script consistency, environment boundaries, and operational clarity.
@@ -0,0 +1,31 @@
1
+ # Skill: Project Onboarding
2
+
3
+ Use when onboarding an existing Expo app into the MDS workflow after project creation.
4
+
5
+ ## Main rule
6
+
7
+ Establish project memory and workflow defaults first, then scaffold only the selected technical additions.
8
+
9
+ ## Checks
10
+
11
+ - Confirm onboarding target is the existing app folder (not a parent directory).
12
+ - Confirm project memory files exist or are generated: `project/info.md`, `project/todo.md`, `project/style.md`, `project/guidelines.md`.
13
+ - Confirm unresolved context markers are cleared before deep implementation work.
14
+ - Confirm selected defaults (styling, state, data, CI, route placement) are documented in project memory.
15
+ - Run Doctor after onboarding changes to validate baseline health.
16
+
17
+ ## Preferred structure
18
+
19
+ - Use conversational intake to capture audience, flows, data needs, platform targets, and deployment intent.
20
+ - Keep visual guidance in `project/style.md`; keep technical/agent rules in `project/guidelines.md`.
21
+ - Keep onboarding outputs phase-based so follow-up work can continue from `project/todo.md`.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: Team starts coding before onboarding, causing missing docs and conflicting architecture assumptions.
26
+ - Fix: Run onboarding flow, generate canonical project memory, reconcile open context markers, then resume implementation using phase order.
27
+
28
+ ## Agent behavior
29
+
30
+ - Ask one focused onboarding question at a time when required by the flow.
31
+ - Delegate framework primitive setup guidance to official Expo resources, then layer MDS project-memory and workflow automation rules.
@@ -0,0 +1,32 @@
1
+ # Skill: Research Plan Intake
2
+
3
+ Use when a user has partial product context (notes, research docs, or incomplete project memory) and needs it transformed into canonical MDS project memory.
4
+
5
+ ## Main rule
6
+
7
+ Normalize fragmented input into decision-ready `project/info.md` and `project/style.md` structure without inventing missing product facts.
8
+
9
+ ## Checks
10
+
11
+ - Parse provided artifacts and classify each required section as clear, ambiguous, or unknown.
12
+ - Reuse clear sections directly; ask focused follow-up only for ambiguous or missing high-impact decisions.
13
+ - Keep visual guidance in style memory and technical/process guidance in guidelines memory.
14
+ - Confirm resulting project memory aligns with current roadmap phase and target platforms.
15
+ - Record unresolved unknowns explicitly instead of guessing.
16
+
17
+ ## Preferred structure
18
+
19
+ - Accept inputs from pasted markdown, notes, and prior project memory files.
20
+ - Map extracted content into canonical sections with concise normalization.
21
+ - Produce follow-up questions only where answers materially change implementation direction.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: User provides a long brainstorm doc with no clear MVP flow or audience.
26
+ - Fix: Extract known context, mark missing decision points, ask targeted follow-up, then generate canonical project memory sections.
27
+
28
+ ## Agent behavior
29
+
30
+ - Preserve user intent and wording where it is already clear.
31
+ - Keep uncertainty visible and collaborative; do not fill strategic gaps with assumptions that can misdirect implementation.
32
+ - Treat this as an MDS-only project-memory skill: use official framework guidance only after product intent is clear, then record the MDS workflow context agents need.
@@ -0,0 +1,31 @@
1
+ # Skill: SEO Metadata
2
+
3
+ Use when preparing Expo web routes for crawlability, sharing previews, and production indexing behavior.
4
+
5
+ ## Main rule
6
+
7
+ Define metadata intentionally per route group and ensure canonical/indexing strategy is explicit before release.
8
+
9
+ ## Checks
10
+
11
+ - Confirm title, description, and canonical strategy are defined for production web routes.
12
+ - Confirm Open Graph and social preview metadata exist for key entry routes.
13
+ - Confirm dynamic routes have deterministic metadata sources.
14
+ - Confirm sitemap and robots strategy is documented for the chosen web output mode.
15
+ - Confirm duplicate or conflicting titles/canonicals are resolved.
16
+
17
+ ## Preferred structure
18
+
19
+ - Keep shared metadata defaults centralized and route-level overrides explicit.
20
+ - Keep metadata source-of-truth close to route ownership boundaries.
21
+ - Keep SEO rules documented in project memory so onboarding and Doctor checks align.
22
+
23
+ ## Example fix
24
+
25
+ - Problem: Dynamic content routes ship with repeated title/description and no canonical mapping.
26
+ - Fix: Add route-level metadata builder, include canonical generation logic, and update sitemap coverage.
27
+
28
+ ## Agent behavior
29
+
30
+ - Prioritize production routes and highest-traffic entry points first.
31
+ - Delegate framework metadata primitives to official Expo guidance, then enforce MDS standards for canonical/indexing completeness.
@@ -0,0 +1,34 @@
1
+ # Skill: Super Stack Startup
2
+
3
+ Use when kicking off a new app with `create-expo-super-stack` and transitioning into phase-based MDS development.
4
+
5
+ ## Main rule
6
+
7
+ Run generator + onboarding as one guided flow, keep agent-facing wording sourced from `packages/knowledge`, and let the current CLI implementation remain the execution source of truth.
8
+
9
+ ## Checks
10
+
11
+ - Confirm command runs from a parent directory where the app folder does not already exist.
12
+ - Confirm stack choices and MDS intake values are captured before generation.
13
+ - Confirm generated app includes project memory and onboarding next-step output.
14
+ - Confirm prompt and skill text stay thin and defer detailed behavior to the canonical knowledge package.
15
+ - Confirm unresolved context markers are resolved before coding begins.
16
+ - Confirm follow-up uses `mds continue` from inside the generated app folder.
17
+
18
+ ## Preferred structure
19
+
20
+ - Keep startup conversation in plain language and summarize choices before execution.
21
+ - Keep generation details in scripts/flags, but keep user-facing flow conversational.
22
+ - Keep post-generation workflow phase-based using the generated `project/todo.md`.
23
+ - Prefer shared knowledge content over duplicating long onboarding prose in plugin or MCP wrappers.
24
+
25
+ ## Example fix
26
+
27
+ - Problem: User runs generation inside an existing app folder and gets mixed state artifacts.
28
+ - Fix: Restart from parent directory, regenerate cleanly, then continue in a new app-folder session.
29
+
30
+ ## Agent behavior
31
+
32
+ - Prevent ambiguous execution context and confirm folder target before running generation.
33
+ - Delegate framework/template primitives to upstream Expo tooling, then apply MDS memory shaping, defaults, and continue-workflow conventions.
34
+ - Update `packages/knowledge` first when the wording or flow changes, then regenerate downstream surfaces from it.