@mr.dj2u/cli 0.1.0 → 0.1.2

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 (125) 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 +47 -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 -2
  112. package/dist/cli.js.map +1 -1
  113. package/dist/commands/agent.d.ts.map +1 -1
  114. package/dist/commands/agent.js +26 -12
  115. package/dist/commands/agent.js.map +1 -1
  116. package/dist/commands/mcp-install.d.ts +2 -2
  117. package/dist/commands/mcp-install.d.ts.map +1 -1
  118. package/dist/commands/mcp-install.js +7 -7
  119. package/dist/commands/mcp-install.js.map +1 -1
  120. package/dist/commands/onboard.d.ts +2 -2
  121. package/dist/commands/onboard.d.ts.map +1 -1
  122. package/dist/commands/onboard.js +4 -4
  123. package/dist/commands/onboard.js.map +1 -1
  124. package/package.json +66 -64
  125. package/templates/project/guidelines.md +88 -88
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: "MDS Plugin Creation Skill"
3
+ description: "Instructions for building a new MDS plugin bundle for Claude Code, Codex, Cursor, or any AI agent client."
4
+ ---
5
+
6
+ # Skill: MDS Plugin Creation
7
+
8
+ Use when building or extending an MDS plugin bundle for any agent client (Claude Code, Codex, Cursor, etc.).
9
+
10
+ ## Main rule
11
+
12
+ 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.
13
+
14
+ ## Structure conventions
15
+
16
+ Every MDS plugin lives in `plugins/<client-name>/`:
17
+
18
+ ```
19
+ plugins/<client-name>/
20
+ README.md
21
+ CLAUDE.md # Claude-specific merge instructions (if relevant)
22
+ .mcp.json
23
+ commands/ # generated command markdown from canonical prompt specs
24
+ skills/ # generated skill files
25
+ ```
26
+
27
+ ## Checks
28
+
29
+ - Skill markdown lives only in `packages/knowledge/src/content/skills/`.
30
+ - Prompt/command markdown lives only in `packages/knowledge/src/content/prompts/`.
31
+ - `plugins/<client>/skills/` remains generated output and is not manually edited.
32
+ - Commands reference real MCP tool names from `packages/mcp-server`.
33
+ - MCP config uses the `mr-djs-dev-suite` server key.
34
+
35
+ ## Adding a plugin capability
36
+
37
+ 1. Add or update canonical content in `packages/knowledge/src/content/*`.
38
+ 2. Update canonical prompt metadata in `packages/knowledge/src/prompts/index.ts`.
39
+ 3. Regenerate outputs via `pnpm --filter @mr.dj2u/knowledge build`.
40
+ 4. Verify generated plugin assets under `plugins/codex/` and `plugins/claude-code/`.
41
+
42
+ ## Agent behavior
43
+
44
+ - Prefer extending canonical knowledge specs over patching generated plugin files.
45
+ - Keep command prompts action-oriented and generated from canonical prompt specs, with clear fallback paths.
46
+ - Delegate framework guidance to Expo-owned skills/docs when available; layer MDS project-memory and workflow guidance on top.
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: "Production Server Patterns Skill"
3
+ description: "Instructions for choosing and running Expo production serving modes."
4
+ ---
5
+
6
+ # Skill: Production Server Patterns
7
+
8
+ Use when setting up or debugging how an Expo project serves production traffic.
9
+
10
+ ## Main rule
11
+
12
+ Pick one explicit production serving mode per environment and codify it in scripts; avoid mixed runtime assumptions.
13
+
14
+ ## Checks
15
+
16
+ - Confirm selected mode is documented: managed Expo/EAS, Express adapter, or dual-server.
17
+ - Confirm serving scripts match the selected runtime (`npx expo serve`, `node server.js`, or dual process scripts).
18
+ - Confirm routing boundaries are clear when app and API are separate services.
19
+ - Confirm env var ownership differs correctly across app server and API server in dual-server mode.
20
+ - Confirm “fresh” start scripts exist where server state/caches can cause drift.
21
+
22
+ ## Preferred structure
23
+
24
+ - Define `serve:prod` and `serve:prod:fresh` scripts for the chosen mode.
25
+ - Keep server bootstrap and adapter code in dedicated files/modules.
26
+ - Keep deployment notes aligned with runtime mode in project memory.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: Team mixes Expo serve and custom Express commands, causing inconsistent behavior.
31
+ - Fix: Select one primary mode per environment, standardize scripts, and document routing/env boundaries.
32
+
33
+ ## Agent behavior
34
+
35
+ - Use the project’s declared serving mode unless a migration is explicitly requested.
36
+ - Delegate framework runtime primitives to official Expo docs, then enforce MDS conventions for script consistency, environment boundaries, and operational clarity.
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: "Project Onboarding Skill"
3
+ description: "Instructions for onboarding an existing Expo app into MDS project memory and workflow."
4
+ ---
5
+
6
+ # Skill: Project Onboarding
7
+
8
+ Use when onboarding an existing Expo app into the MDS workflow after project creation.
9
+
10
+ ## Main rule
11
+
12
+ Establish project memory and workflow defaults first, then scaffold only the selected technical additions.
13
+
14
+ ## Checks
15
+
16
+ - Confirm onboarding target is the existing app folder (not a parent directory).
17
+ - Confirm project memory files exist or are generated: `project/info.md`, `project/todo.md`, `project/style.md`, `project/guidelines.md`.
18
+ - Confirm unresolved context markers are cleared before deep implementation work.
19
+ - Confirm selected defaults (styling, state, data, CI, route placement) are documented in project memory.
20
+ - Run Doctor after onboarding changes to validate baseline health.
21
+
22
+ ## Preferred structure
23
+
24
+ - Use conversational intake to capture audience, flows, data needs, platform targets, and deployment intent.
25
+ - Keep visual guidance in `project/style.md`; keep technical/agent rules in `project/guidelines.md`.
26
+ - Keep onboarding outputs phase-based so follow-up work can continue from `project/todo.md`.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: Team starts coding before onboarding, causing missing docs and conflicting architecture assumptions.
31
+ - Fix: Run onboarding flow, generate canonical project memory, reconcile open context markers, then resume implementation using phase order.
32
+
33
+ ## Agent behavior
34
+
35
+ - Ask one focused onboarding question at a time when required by the flow.
36
+ - Delegate framework primitive setup guidance to official Expo resources, then layer MDS project-memory and workflow automation rules.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: "Research Plan Intake Skill"
3
+ description: "Instructions for turning raw research and notes into canonical MDS project memory."
4
+ ---
5
+
6
+ # Skill: Research Plan Intake
7
+
8
+ Use when a user has partial product context (notes, research docs, or incomplete project memory) and needs it transformed into canonical MDS project memory.
9
+
10
+ ## Main rule
11
+
12
+ Normalize fragmented input into decision-ready `project/info.md` and `project/style.md` structure without inventing missing product facts.
13
+
14
+ ## Checks
15
+
16
+ - Parse provided artifacts and classify each required section as clear, ambiguous, or unknown.
17
+ - Reuse clear sections directly; ask focused follow-up only for ambiguous or missing high-impact decisions.
18
+ - Keep visual guidance in style memory and technical/process guidance in guidelines memory.
19
+ - Confirm resulting project memory aligns with current roadmap phase and target platforms.
20
+ - Record unresolved unknowns explicitly instead of guessing.
21
+
22
+ ## Preferred structure
23
+
24
+ - Accept inputs from pasted markdown, notes, and prior project memory files.
25
+ - Map extracted content into canonical sections with concise normalization.
26
+ - Produce follow-up questions only where answers materially change implementation direction.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: User provides a long brainstorm doc with no clear MVP flow or audience.
31
+ - Fix: Extract known context, mark missing decision points, ask targeted follow-up, then generate canonical project memory sections.
32
+
33
+ ## Agent behavior
34
+
35
+ - Preserve user intent and wording where it is already clear.
36
+ - Keep uncertainty visible and collaborative; do not fill strategic gaps with assumptions that can misdirect implementation.
37
+ - 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,36 @@
1
+ ---
2
+ name: "SEO Metadata Skill"
3
+ description: "Instructions for production web metadata, canonical URLs, and indexing strategy."
4
+ ---
5
+
6
+ # Skill: SEO Metadata
7
+
8
+ Use when preparing Expo web routes for crawlability, sharing previews, and production indexing behavior.
9
+
10
+ ## Main rule
11
+
12
+ Define metadata intentionally per route group and ensure canonical/indexing strategy is explicit before release.
13
+
14
+ ## Checks
15
+
16
+ - Confirm title, description, and canonical strategy are defined for production web routes.
17
+ - Confirm Open Graph and social preview metadata exist for key entry routes.
18
+ - Confirm dynamic routes have deterministic metadata sources.
19
+ - Confirm sitemap and robots strategy is documented for the chosen web output mode.
20
+ - Confirm duplicate or conflicting titles/canonicals are resolved.
21
+
22
+ ## Preferred structure
23
+
24
+ - Keep shared metadata defaults centralized and route-level overrides explicit.
25
+ - Keep metadata source-of-truth close to route ownership boundaries.
26
+ - Keep SEO rules documented in project memory so onboarding and Doctor checks align.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: Dynamic content routes ship with repeated title/description and no canonical mapping.
31
+ - Fix: Add route-level metadata builder, include canonical generation logic, and update sitemap coverage.
32
+
33
+ ## Agent behavior
34
+
35
+ - Prioritize production routes and highest-traffic entry points first.
36
+ - Delegate framework metadata primitives to official Expo guidance, then enforce MDS standards for canonical/indexing completeness.
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: "Super Stack Startup Skill"
3
+ description: "Instructions for running create-expo-super-stack while keeping packages/knowledge as the source of truth and handing off to phase-based app development."
4
+ ---
5
+
6
+ # Skill: Super Stack Startup
7
+
8
+ Use when kicking off a new app with `create-expo-super-stack` and transitioning into phase-based MDS development.
9
+
10
+ ## Main rule
11
+
12
+ 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.
13
+
14
+ ## Checks
15
+
16
+ - Confirm command runs from a parent directory where the app folder does not already exist.
17
+ - Confirm stack choices and MDS intake values are captured before generation.
18
+ - Confirm generated app includes project memory and onboarding next-step output.
19
+ - Confirm prompt and skill text stay thin and defer detailed behavior to the canonical knowledge package.
20
+ - Confirm unresolved context markers are resolved before coding begins.
21
+ - Confirm follow-up uses `mds continue` from inside the generated app folder.
22
+
23
+ ## Preferred structure
24
+
25
+ - Keep startup conversation in plain language and summarize choices before execution.
26
+ - Keep generation details in scripts/flags, but keep user-facing flow conversational.
27
+ - Keep post-generation workflow phase-based using the generated `project/todo.md`.
28
+ - Prefer shared knowledge content over duplicating long onboarding prose in plugin or MCP wrappers.
29
+
30
+ ## Example fix
31
+
32
+ - Problem: User runs generation inside an existing app folder and gets mixed state artifacts.
33
+ - Fix: Restart from parent directory, regenerate cleanly, then continue in a new app-folder session.
34
+
35
+ ## Agent behavior
36
+
37
+ - Prevent ambiguous execution context and confirm folder target before running generation.
38
+ - Delegate framework/template primitives to upstream Expo tooling, then apply MDS memory shaping, defaults, and continue-workflow conventions.
39
+ - Update `packages/knowledge` first when the wording or flow changes, then regenerate downstream surfaces from it.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: "Uniwind Theming Skill"
3
+ description: "Instructions for Tailwind v4 and Uniwind setup."
4
+ ---
5
+
6
+ # Skill: Uniwind Theming
7
+
8
+ Use when setting up or maintaining Tailwind v4 + Uniwind styling in Expo projects.
9
+
10
+ ## Main rule
11
+
12
+ Prefer Uniwind with Tailwind v4 defaults, keep theme tokens centralized, and ensure bundler/style wiring is consistent across environments.
13
+
14
+ ## Checks
15
+
16
+ - Confirm Tailwind v4 and Uniwind dependencies/config are aligned with project SDK.
17
+ - Confirm `global.css` import order loads Tailwind before Uniwind layers.
18
+ - Confirm Metro/bundler integration uses `withUniwindConfig` (or project-equivalent wiring).
19
+ - Confirm design tokens are centralized and reused instead of ad-hoc values.
20
+ - Confirm platform-specific style behavior is intentional and documented.
21
+
22
+ ## Preferred structure
23
+
24
+ - Keep token definitions in one source module/file.
25
+ - Keep style-system setup in project bootstrap/config files, not scattered across screens.
26
+ - Keep shared class patterns in reusable UI components.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: Global styles load in the wrong order, causing token classes to fail on web.
31
+ - Fix: Reorder style imports, verify Metro integration, and move duplicate token literals into shared theme config.
32
+
33
+ ## Agent behavior
34
+
35
+ - Preserve existing design intent while fixing setup drift.
36
+ - Delegate framework styling primitives to official Expo/Uniwind docs, then apply MDS conventions for token consistency and onboarding readiness.
37
+
@@ -0,0 +1,11 @@
1
+ {
2
+ "servers": {
3
+ "mds": {
4
+ "command": "npx",
5
+ "args": [
6
+ "-y",
7
+ "@mr.dj2u/mcp-server"
8
+ ]
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "github.copilot.chat.codeGeneration.useInstructionFiles": true,
3
+ "chat.promptFilesLocations": {
4
+ ".github/prompts": true
5
+ },
6
+ "chat.agentFilesLocations": {
7
+ ".github/agents": true
8
+ },
9
+ "chat.useAgentSkills": true,
10
+ "chat.agentSkillsLocations": {
11
+ ".github/skills": true,
12
+ "~/.copilot/skills": true
13
+ }
14
+ }
@@ -0,0 +1,32 @@
1
+ # Mr. DJ's Dev Suite VS Code Copilot Bundle
2
+
3
+ This bundle is generated from `packages/knowledge` and targets native VS Code Copilot customization surfaces:
4
+
5
+ - `.vscode/mcp.json` for the MDS MCP server.
6
+ - `.vscode/settings.json` for Copilot customization discovery settings.
7
+ - `.github/copilot-instructions.md` for workspace instructions.
8
+ - `.github/agents/mds.agent.md` for a custom Copilot agent.
9
+ - `.github/prompts/*.prompt.md` for reusable prompt workflows.
10
+ - `.github/skills/*/SKILL.md` for generated MDS skills.
11
+
12
+ ## Project Install
13
+
14
+ ```bash
15
+ mds agent install --client vscode --scope project --target .
16
+ ```
17
+
18
+ ## User Install
19
+
20
+ ```bash
21
+ mds agent install --client vscode --scope user
22
+ ```
23
+
24
+ User-scope setup copies the generated assets into `~/.copilot` and uses VS Code's `code --add-mcp` flow for the MCP server when the `code` command is available. If it is not available, the CLI prints the exact manual command.
25
+
26
+ ## Verify
27
+
28
+ ```bash
29
+ mds agent verify --client vscode --target .
30
+ ```
31
+
32
+ Skills and prompt workflows are generated from the knowledge package. Do not edit generated copies by hand; update `packages/knowledge/src/content` or the generator scripts instead.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: "MDS"
3
+ description: "MDS Expo project intelligence agent for Doctor, onboarding, deploy checks, and phase continuation."
4
+ ---
5
+
6
+ # MDS Agent
7
+
8
+ You are the Mr. DJ's Dev Suite agent for Expo projects. Prefer MDS MCP tools first, then CLI fallbacks.
9
+
10
+ ## Tool Routing
11
+
12
+ - Use `doctor_scan_project` before release or broad refactors.
13
+ - Use `doctor_scan_file` for focused route, env, SSR, or API changes.
14
+ - Use `generate_refactor_plan` before moving architecture across folders.
15
+ - Use `generate_deploy_checklist` before release or client handoff.
16
+ - Use `list_skills`, `get_skill`, and `get_guide` before giving framework-specific guidance.
17
+
18
+ ## Guardrails
19
+
20
+ - Keep project intent in `project/info.md` and technical rules in `project/guidelines.md`.
21
+ - Prefer Expo-owned guidance for framework mechanics; MDS adds project memory, checks, defaults, and workflows.
22
+ - Do not skip unresolved `# TodoForContext(optional):` markers before implementation.
@@ -0,0 +1,8 @@
1
+ <!-- BEGIN MDS COPILOT INSTRUCTIONS -->
2
+ # Mr. DJ's Dev Suite Copilot Instructions
3
+
4
+ - Treat `project/` as the source of truth for product intent, roadmap, style, and technical rules.
5
+ - Prefer MDS MCP tools before broad edits: `doctor_scan_project`, `doctor_scan_file`, `generate_refactor_plan`, and `generate_deploy_checklist`.
6
+ - Use `list_skills`, `get_skill`, and `get_guide` for MDS guidance, while delegating framework mechanics to official Expo/React Native guidance when available.
7
+ - Keep route files thin, env secrets server-only, and release work gated by Doctor checks.
8
+ <!-- END MDS COPILOT INSTRUCTIONS -->
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: "API Routes Skill"
3
+ description: "Instructions for secure Expo Router API routes."
4
+ ---
5
+
6
+ # Skill: API Routes
7
+
8
+ Use when creating, reviewing, or debugging Expo Router API route handlers.
9
+
10
+ ## Main rule
11
+
12
+ Keep route handlers thin and defensive: validate input, enforce auth/authorization before data access, and return consistent typed responses.
13
+
14
+ ## Checks
15
+
16
+ - Confirm each endpoint handles allowed methods explicitly and rejects unsupported methods.
17
+ - Validate request params/body with schema guards before business logic executes.
18
+ - Enforce auth first for privileged operations; never rely on client-provided roles.
19
+ - Keep service-role credentials on server-only paths and avoid exposing them to client bundles.
20
+ - Confirm error responses are structured and safe (no stack traces or secret values).
21
+
22
+ ## Preferred structure
23
+
24
+ - Use one route module per resource concern.
25
+ - Parse and validate request data first, then call feature/service logic.
26
+ - Keep DB and external API logic in service modules, not inline in route files.
27
+ - Use a shared response envelope pattern for success and failure paths.
28
+
29
+ ## Example fix
30
+
31
+ - Problem: A `POST` route writes directly to DB with unchecked body data.
32
+ - Fix: Add schema validation, early auth check, and move write logic into a service function before returning a typed response object.
33
+
34
+ ## Agent behavior
35
+
36
+ - Apply the smallest safe refactor that adds validation/auth boundaries first.
37
+ - Delegate framework primitive questions to official Expo API route guidance, then layer MDS project-specific rules (env boundaries, doc updates, Doctor compatibility).
38
+
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: "Continue Development Skill"
3
+ description: "Instructions for choosing and progressing the next task from project/todo.md."
4
+ ---
5
+
6
+ # Skill: Continue Development
7
+
8
+ Use when resuming work on an onboarded app and selecting the next task from `project/todo.md`.
9
+
10
+ ## Main rule
11
+
12
+ Continue phase-by-phase: finish in-progress phase items first, and only defer/move tasks with an explicit note and user confirmation.
13
+
14
+ ## Checks
15
+
16
+ - Confirm project memory files are present and current before task selection.
17
+ - Identify the active phase and incomplete tasks in `project/todo.md`.
18
+ - Confirm blockers/context markers are resolved before feature implementation.
19
+ - Confirm any deferral includes a clear reason and destination note.
20
+ - Re-run Doctor/checks after significant phase tasks are completed.
21
+
22
+ ## Preferred structure
23
+
24
+ - Start each session by summarizing current phase state and next recommended task.
25
+ - Keep task updates minimal and explicit in `project/todo.md`.
26
+ - Keep roadmap changes aligned with product intent in `project/info.md`.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: Agent jumps to a later phase feature while current phase has unresolved blockers.
31
+ - Fix: Return to active phase tasks, complete or formally defer blockers, then proceed to later phase work.
32
+
33
+ ## Agent behavior
34
+
35
+ - Optimize for forward progress without losing roadmap integrity.
36
+ - Avoid silently reordering roadmap priorities; ask for confirmation before major sequencing changes.
37
+ - 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,37 @@
1
+ ---
2
+ name: "Debugging Skill"
3
+ description: "Instructions for reproducible issue triage and root-cause-first fixes."
4
+ ---
5
+
6
+ # Skill: Debugging
7
+
8
+ Use when diagnosing broken behavior, flaky tooling, or unclear failures in Expo projects.
9
+
10
+ ## Main rule
11
+
12
+ Debug by narrowing scope quickly: reproduce, isolate, capture evidence, apply the smallest safe fix, then verify.
13
+
14
+ ## Checks
15
+
16
+ - Reproduce the issue consistently and record exact command/path/error output.
17
+ - Confirm environment assumptions (platform, output mode, env vars, script path) match the failing context.
18
+ - Run targeted checks first (`mds doctor`, focused tests, route/file scans) before broad reruns.
19
+ - Separate root-cause signals from secondary cascade errors.
20
+ - Re-verify with the same reproduction path after the fix.
21
+
22
+ ## Preferred structure
23
+
24
+ - Keep debugging notes concise in task output or project memory when the issue is recurring.
25
+ - Prefer deterministic scripts over ad-hoc manual sequences.
26
+ - Escalate from narrow test scope to broader validation only after targeted checks pass.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: Route crashes only on web server output with ambiguous stack traces.
31
+ - Fix: Reproduce in server mode, isolate browser-global usage in shared module, add guards, rerun targeted test and Doctor scan.
32
+
33
+ ## Agent behavior
34
+
35
+ - Start with high-risk failures (security, data loss, crashers), then address lower-risk warnings.
36
+ - Keep users unblocked with concrete next commands and avoid speculative broad refactors before evidence is clear.
37
+ - 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,37 @@
1
+ ---
2
+ name: "Deployment Readiness Skill"
3
+ description: "Instructions for local checks before shipping an Expo app."
4
+ ---
5
+
6
+ # Skill: Deployment Readiness
7
+
8
+ Use before merging or releasing an Expo project to shared environments.
9
+
10
+ ## Main rule
11
+
12
+ Treat deployment as a repeatable checklist: pass local quality gates, verify runtime configuration, and document rollback expectations before ship.
13
+
14
+ ## Checks
15
+
16
+ - Run lint, type-check, tests, Expo Doctor, and production build/profile checks when scripts exist.
17
+ - Verify env vars are documented and separated by client/server exposure level.
18
+ - Confirm output mode and hosting assumptions match the selected platform strategy.
19
+ - Confirm metadata/indexing basics are defined for web exports.
20
+ - Record release and rollback notes for the current change batch.
21
+
22
+ ## Preferred structure
23
+
24
+ - Keep release checks in scripts that CI and agents can run consistently.
25
+ - Gate merge/publish flows on the same Doctor and package validation criteria.
26
+ - Keep deployment conventions in `project/guidelines.md` and release tasks in `project/todo.md`.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: Release pipeline runs tests but skips Expo Doctor and build profile checks.
31
+ - Fix: Add missing scripts, wire them into pre-merge checks, and document the required sequence in project memory.
32
+
33
+ ## Agent behavior
34
+
35
+ - Run project-defined checks first; do not invent alternate release criteria.
36
+ - Delegate framework deployment primitives to official Expo guidance, then apply MDS workflow rules for docs, Doctor parity, and rollback readiness.
37
+
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: "Dev Server Management Skill"
3
+ description: "Instructions for recovering Expo/Metro local dev-server state and resolving port/cache conflicts."
4
+ ---
5
+
6
+ # Skill: Dev Server Management
7
+
8
+ Use when Expo or Metro local development servers fail to boot cleanly, hang, or bind to conflicting ports.
9
+
10
+ ## Main rule
11
+
12
+ Use a deterministic reset path first; do not work around unstable server state with ad-hoc port fallbacks.
13
+
14
+ ## Checks
15
+
16
+ - Run `mds clear-expo-start` before manual troubleshooting.
17
+ - If a conflict remains, run `mds free-port <port...>` for blocked ports.
18
+ - Confirm Expo/Metro caches are cleared before retrying startup.
19
+ - Treat fallback to port `8082` as an unresolved state that requires full reset.
20
+ - Confirm the same recovery scripts are available to teammates and automation.
21
+
22
+ ## Preferred structure
23
+
24
+ - Keep project scripts for clear-expo-start and targeted port cleanup.
25
+ - Standardize a single restart path in project memory (`project/guidelines.md`).
26
+ - Use explicit “fresh” commands when booting local or production-like flows.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: `expo start` repeatedly falls back to `8082` after a partial crash.
31
+ - Fix: Run `mds clear-expo-start`, free remaining blocked ports, clear cache, and restart via the project's clear-expo-start script.
32
+
33
+ ## Agent behavior
34
+
35
+ - Prefer established MDS cleanup commands over custom shell sequences.
36
+ - Avoid introducing alternate fallback port workflows that hide root-cause server state issues.
37
+ - Delegate Expo or Metro mechanics to official Expo guidance, then apply MDS reset commands, script consistency, and onboarding defaults.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: "Environment Variables Skill"
3
+ description: "Instructions for public/private env variable boundaries."
4
+ ---
5
+
6
+ # Skill: Environment Variables
7
+
8
+ Use when adding, reviewing, or debugging app configuration and secrets handling.
9
+
10
+ ## Main rule
11
+
12
+ Keep a hard boundary between public client config and private server secrets; anything sensitive must never cross into `EXPO_PUBLIC_*` variables.
13
+
14
+ ## Checks
15
+
16
+ - Confirm secrets (service-role keys, private tokens, payment secrets, passwords) are server-only.
17
+ - Confirm `EXPO_PUBLIC_*` values are safe to expose in client bundles.
18
+ - Validate required env keys exist for each runtime mode used by the project.
19
+ - Ensure Supabase anon key usage is scoped to client-safe flows and service-role usage is server-only.
20
+ - Verify env naming/docs are consistent across `.env` files, scripts, and project memory.
21
+
22
+ ## Preferred structure
23
+
24
+ - Keep env access centralized through small typed config helpers.
25
+ - Separate client-safe config and server-only config modules.
26
+ - Document required keys and local setup in project memory and onboarding outputs.
27
+
28
+ ## Example fix
29
+
30
+ - Problem: A route imports `EXPO_PUBLIC_SUPABASE_SERVICE_ROLE_KEY` from client config.
31
+ - Fix: Move service-role key to server-only env access, switch client flow to anon key, and update docs/checks.
32
+
33
+ ## Agent behavior
34
+
35
+ - Prioritize removing exposure risk before refactoring for style.
36
+ - Delegate framework/env-loading primitives to official Expo guidance, then enforce MDS-specific security boundaries and Doctor alignment.
37
+
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: "Expo Router Architecture Skill"
3
+ description: "Instructions for reviewing and building thin Expo Router route files."
4
+ ---
5
+
6
+ # Skill: Expo Router Architecture
7
+
8
+ Use when structuring, reviewing, or refactoring Expo Router route code.
9
+
10
+ ## Main rule
11
+
12
+ Keep route files thin: routing and composition belong in `app/`, while business/data logic lives in feature, service, and shared modules.
13
+
14
+ ## Checks
15
+
16
+ - Confirm route files avoid direct DB calls, heavy business logic, and large side-effect chains.
17
+ - Confirm shared UI blocks are extracted to component modules.
18
+ - Confirm cross-route state is managed in stores/hooks instead of duplicated route-local logic.
19
+ - Confirm route grouping/layout usage is intentional and not overloaded at root.
20
+ - Confirm file size/complexity trends support long-term maintainability.
21
+
22
+ ## Preferred structure
23
+
24
+ - Keep `app/` files focused on params, navigation, and screen composition.
25
+ - Place business workflows in `src/features`.
26
+ - Place side effects/integrations in `src/services` or `src/data`.
27
+ - Keep reusable UI in `src/components` and cross-cutting helpers in hooks/utilities.
28
+
29
+ ## Example fix
30
+
31
+ - Problem: A route file performs data fetching, mutation, and form business rules inline.
32
+ - Fix: Move fetch/mutation logic to service modules, move workflow rules to a feature module, and keep the route as a thin screen wrapper.
33
+
34
+ ## Agent behavior
35
+
36
+ - Prefer small, incremental extractions over broad rewrites.
37
+ - Delegate framework routing primitives to official Expo Router guidance, then apply MDS rules for maintainable app-folder boundaries and Doctor-compatible architecture.
38
+