@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.
- package/bundles/claude-code/.claude-plugin/plugin.json +12 -0
- package/bundles/claude-code/.mcp.json +8 -0
- package/bundles/claude-code/CLAUDE.md +59 -0
- package/bundles/claude-code/README.md +51 -0
- package/bundles/claude-code/agents/mds.md +35 -0
- package/bundles/claude-code/commands/continue-development.md +27 -0
- package/bundles/claude-code/commands/create-expo-super-stack.md +30 -0
- package/bundles/claude-code/commands/fix-seo.md +29 -0
- package/bundles/claude-code/commands/prepare-deploy.md +31 -0
- package/bundles/claude-code/commands/project-research-plan.md +29 -0
- package/bundles/claude-code/commands/review-expo-project.md +32 -0
- package/bundles/claude-code/commands/run-doctor.md +32 -0
- package/bundles/claude-code/settings.json +3 -0
- package/bundles/claude-code/skills/api-routes/SKILL.md +37 -0
- package/bundles/claude-code/skills/continue-development/SKILL.md +32 -0
- package/bundles/claude-code/skills/create-expo-super-stack/SKILL.md +35 -0
- package/bundles/claude-code/skills/debugging/SKILL.md +36 -0
- package/bundles/claude-code/skills/deployment/SKILL.md +36 -0
- package/bundles/claude-code/skills/dev-server-management/SKILL.md +36 -0
- package/bundles/claude-code/skills/env-vars/SKILL.md +36 -0
- package/bundles/claude-code/skills/expo-router-architecture/SKILL.md +37 -0
- package/bundles/claude-code/skills/expo-ssr-safety/SKILL.md +36 -0
- package/bundles/claude-code/skills/fix-seo/SKILL.md +34 -0
- package/bundles/claude-code/skills/plugin-creation/SKILL.md +45 -0
- package/bundles/claude-code/skills/prepare-deploy/SKILL.md +36 -0
- package/bundles/claude-code/skills/production-server-patterns/SKILL.md +35 -0
- package/bundles/claude-code/skills/project-onboarding/SKILL.md +35 -0
- package/bundles/claude-code/skills/project-research-plan/SKILL.md +34 -0
- package/bundles/claude-code/skills/research-plan-intake/SKILL.md +36 -0
- package/bundles/claude-code/skills/review-expo-project/SKILL.md +37 -0
- package/bundles/claude-code/skills/run-doctor/SKILL.md +37 -0
- package/bundles/claude-code/skills/seo-metadata/SKILL.md +35 -0
- package/bundles/claude-code/skills/super-stack-startup/SKILL.md +38 -0
- package/bundles/claude-code/skills/uniwind-theming/SKILL.md +36 -0
- package/bundles/codex/.codex-plugin/plugin.json +42 -0
- package/bundles/codex/.mcp.json +11 -0
- package/bundles/codex/README.md +47 -0
- package/bundles/codex/commands/continue-development.md +27 -0
- package/bundles/codex/commands/create-expo-super-stack.md +30 -0
- package/bundles/codex/commands/fix-seo.md +29 -0
- package/bundles/codex/commands/prepare-deploy.md +31 -0
- package/bundles/codex/commands/project-research-plan.md +29 -0
- package/bundles/codex/commands/review-expo-project.md +32 -0
- package/bundles/codex/commands/run-doctor.md +32 -0
- package/bundles/codex/skills/api-routes/SKILL.md +32 -0
- package/bundles/codex/skills/continue-development/SKILL.md +32 -0
- package/bundles/codex/skills/debugging/SKILL.md +32 -0
- package/bundles/codex/skills/deployment/SKILL.md +31 -0
- package/bundles/codex/skills/dev-server-management/SKILL.md +32 -0
- package/bundles/codex/skills/env-vars/SKILL.md +31 -0
- package/bundles/codex/skills/expo-router-architecture/SKILL.md +32 -0
- package/bundles/codex/skills/expo-ssr-safety/SKILL.md +31 -0
- package/bundles/codex/skills/plugin-creation/SKILL.md +41 -0
- package/bundles/codex/skills/production-server-patterns/SKILL.md +31 -0
- package/bundles/codex/skills/project-onboarding/SKILL.md +31 -0
- package/bundles/codex/skills/research-plan-intake/SKILL.md +32 -0
- package/bundles/codex/skills/seo-metadata/SKILL.md +31 -0
- package/bundles/codex/skills/super-stack-startup/SKILL.md +34 -0
- package/bundles/codex/skills/uniwind-theming/SKILL.md +31 -0
- package/bundles/vscode-copilot/.github/agents/mds.agent.md +22 -0
- package/bundles/vscode-copilot/.github/copilot-instructions.md +8 -0
- package/bundles/vscode-copilot/.github/prompts/continue-development.prompt.md +32 -0
- package/bundles/vscode-copilot/.github/prompts/create-expo-super-stack.prompt.md +35 -0
- package/bundles/vscode-copilot/.github/prompts/fix-seo.prompt.md +34 -0
- package/bundles/vscode-copilot/.github/prompts/prepare-deploy.prompt.md +36 -0
- package/bundles/vscode-copilot/.github/prompts/project-research-plan.prompt.md +34 -0
- package/bundles/vscode-copilot/.github/prompts/review-expo-project.prompt.md +37 -0
- package/bundles/vscode-copilot/.github/prompts/run-doctor.prompt.md +37 -0
- package/bundles/vscode-copilot/.github/skills/api-routes/SKILL.md +38 -0
- package/bundles/vscode-copilot/.github/skills/continue-development/SKILL.md +37 -0
- package/bundles/vscode-copilot/.github/skills/debugging/SKILL.md +37 -0
- package/bundles/vscode-copilot/.github/skills/deployment/SKILL.md +37 -0
- package/bundles/vscode-copilot/.github/skills/dev-server-management/SKILL.md +37 -0
- package/bundles/vscode-copilot/.github/skills/env-vars/SKILL.md +37 -0
- package/bundles/vscode-copilot/.github/skills/expo-router-architecture/SKILL.md +38 -0
- package/bundles/vscode-copilot/.github/skills/expo-ssr-safety/SKILL.md +37 -0
- package/bundles/vscode-copilot/.github/skills/plugin-creation/SKILL.md +46 -0
- package/bundles/vscode-copilot/.github/skills/production-server-patterns/SKILL.md +36 -0
- package/bundles/vscode-copilot/.github/skills/project-onboarding/SKILL.md +36 -0
- package/bundles/vscode-copilot/.github/skills/research-plan-intake/SKILL.md +37 -0
- package/bundles/vscode-copilot/.github/skills/seo-metadata/SKILL.md +36 -0
- package/bundles/vscode-copilot/.github/skills/super-stack-startup/SKILL.md +39 -0
- package/bundles/vscode-copilot/.github/skills/uniwind-theming/SKILL.md +37 -0
- package/bundles/vscode-copilot/.vscode/mcp.json +11 -0
- package/bundles/vscode-copilot/.vscode/settings.json +14 -0
- package/bundles/vscode-copilot/README.md +32 -0
- package/bundles/vscode-copilot/user/.copilot/agents/mds.agent.md +22 -0
- package/bundles/vscode-copilot/user/.copilot/instructions.md +8 -0
- package/bundles/vscode-copilot/user/.copilot/skills/api-routes/SKILL.md +38 -0
- package/bundles/vscode-copilot/user/.copilot/skills/continue-development/SKILL.md +37 -0
- package/bundles/vscode-copilot/user/.copilot/skills/debugging/SKILL.md +37 -0
- package/bundles/vscode-copilot/user/.copilot/skills/deployment/SKILL.md +37 -0
- package/bundles/vscode-copilot/user/.copilot/skills/dev-server-management/SKILL.md +37 -0
- package/bundles/vscode-copilot/user/.copilot/skills/env-vars/SKILL.md +37 -0
- package/bundles/vscode-copilot/user/.copilot/skills/expo-router-architecture/SKILL.md +38 -0
- package/bundles/vscode-copilot/user/.copilot/skills/expo-ssr-safety/SKILL.md +37 -0
- package/bundles/vscode-copilot/user/.copilot/skills/plugin-creation/SKILL.md +46 -0
- package/bundles/vscode-copilot/user/.copilot/skills/production-server-patterns/SKILL.md +36 -0
- package/bundles/vscode-copilot/user/.copilot/skills/project-onboarding/SKILL.md +36 -0
- package/bundles/vscode-copilot/user/.copilot/skills/research-plan-intake/SKILL.md +37 -0
- package/bundles/vscode-copilot/user/.copilot/skills/seo-metadata/SKILL.md +36 -0
- package/bundles/vscode-copilot/user/.copilot/skills/super-stack-startup/SKILL.md +39 -0
- package/bundles/vscode-copilot/user/.copilot/skills/uniwind-theming/SKILL.md +37 -0
- package/bundles/vscode-copilot/user/.copilot/skills/workflow-continue-development/SKILL.md +32 -0
- package/bundles/vscode-copilot/user/.copilot/skills/workflow-create-expo-super-stack/SKILL.md +35 -0
- package/bundles/vscode-copilot/user/.copilot/skills/workflow-fix-seo/SKILL.md +34 -0
- package/bundles/vscode-copilot/user/.copilot/skills/workflow-prepare-deploy/SKILL.md +36 -0
- package/bundles/vscode-copilot/user/.copilot/skills/workflow-project-research-plan/SKILL.md +34 -0
- package/bundles/vscode-copilot/user/.copilot/skills/workflow-review-expo-project/SKILL.md +37 -0
- package/bundles/vscode-copilot/user/.copilot/skills/workflow-run-doctor/SKILL.md +37 -0
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/agent.d.ts.map +1 -1
- package/dist/commands/agent.js +26 -12
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/mcp-install.d.ts +2 -2
- package/dist/commands/mcp-install.d.ts.map +1 -1
- package/dist/commands/mcp-install.js +7 -7
- package/dist/commands/mcp-install.js.map +1 -1
- package/dist/commands/onboard.d.ts +2 -2
- package/dist/commands/onboard.d.ts.map +1 -1
- package/dist/commands/onboard.js +4 -4
- package/dist/commands/onboard.js.map +1 -1
- package/package.json +66 -64
- package/templates/project/guidelines.md +88 -88
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Skill: Uniwind Theming
|
|
2
|
+
|
|
3
|
+
Use when setting up or maintaining Tailwind v4 + Uniwind styling in Expo projects.
|
|
4
|
+
|
|
5
|
+
## Main rule
|
|
6
|
+
|
|
7
|
+
Prefer Uniwind with Tailwind v4 defaults, keep theme tokens centralized, and ensure bundler/style wiring is consistent across environments.
|
|
8
|
+
|
|
9
|
+
## Checks
|
|
10
|
+
|
|
11
|
+
- Confirm Tailwind v4 and Uniwind dependencies/config are aligned with project SDK.
|
|
12
|
+
- Confirm `global.css` import order loads Tailwind before Uniwind layers.
|
|
13
|
+
- Confirm Metro/bundler integration uses `withUniwindConfig` (or project-equivalent wiring).
|
|
14
|
+
- Confirm design tokens are centralized and reused instead of ad-hoc values.
|
|
15
|
+
- Confirm platform-specific style behavior is intentional and documented.
|
|
16
|
+
|
|
17
|
+
## Preferred structure
|
|
18
|
+
|
|
19
|
+
- Keep token definitions in one source module/file.
|
|
20
|
+
- Keep style-system setup in project bootstrap/config files, not scattered across screens.
|
|
21
|
+
- Keep shared class patterns in reusable UI components.
|
|
22
|
+
|
|
23
|
+
## Example fix
|
|
24
|
+
|
|
25
|
+
- Problem: Global styles load in the wrong order, causing token classes to fail on web.
|
|
26
|
+
- Fix: Reorder style imports, verify Metro integration, and move duplicate token literals into shared theme config.
|
|
27
|
+
|
|
28
|
+
## Agent behavior
|
|
29
|
+
|
|
30
|
+
- Preserve existing design intent while fixing setup drift.
|
|
31
|
+
- Delegate framework styling primitives to official Expo/Uniwind docs, then apply MDS conventions for token consistency and onboarding readiness.
|
|
@@ -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,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: "agent"
|
|
3
|
+
description: "Run the MDS Continue Development workflow with MCP-first diagnostics and CLI fallback."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /continue-development
|
|
7
|
+
|
|
8
|
+
Resume work on an onboarded project by following MDS phase order from `project/todo.md`.
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
|
|
12
|
+
- `projectPath`: onboarded app path (default: current directory).
|
|
13
|
+
|
|
14
|
+
## MCP-First Workflow
|
|
15
|
+
|
|
16
|
+
1. Confirm the `mds` MCP server is available.
|
|
17
|
+
2. Call `continue_project` first to get the active-phase brief.
|
|
18
|
+
3. Pull `get_skill` for `continue-development` to enforce phase-first sequencing.
|
|
19
|
+
4. If blockers appear, use `doctor_scan_project` and `doctor_explain_result` for targeted remediation before feature work.
|
|
20
|
+
|
|
21
|
+
## CLI / Manual Fallback
|
|
22
|
+
|
|
23
|
+
1. If MCP is not configured, install it manually:
|
|
24
|
+
- `mds mcp install --client codex --scope project`
|
|
25
|
+
2. Direct CLI flow:
|
|
26
|
+
- `mds continue <projectPath>`
|
|
27
|
+
- `mds doctor <projectPath>` when blockers are unclear.
|
|
28
|
+
|
|
29
|
+
## Verification And Output
|
|
30
|
+
|
|
31
|
+
- Confirm the chosen task belongs to the active phase or has an explicit deferral note.
|
|
32
|
+
- Output: selected next task, blockers, and validation commands to run after implementation.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: "agent"
|
|
3
|
+
description: "Run the MDS Create Expo Super Stack workflow with MCP-first diagnostics and CLI fallback."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /create-expo-super-stack
|
|
7
|
+
|
|
8
|
+
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.
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
|
|
12
|
+
- `parentDir`: folder where the new app directory should be created.
|
|
13
|
+
- `appName`: app folder name.
|
|
14
|
+
|
|
15
|
+
## MCP-First Workflow
|
|
16
|
+
|
|
17
|
+
1. Confirm the `mds` MCP server is available.
|
|
18
|
+
2. Invoke the MCP prompt `create_expo_super_stack` from a parent directory when you want guided intake.
|
|
19
|
+
3. Keep the conversation one question per turn and summarize the captured choices before generation.
|
|
20
|
+
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.
|
|
21
|
+
5. After generation, move into the new app folder and invoke `continue_project` (or prompt `continue_mds_project`) for the first implementation session.
|
|
22
|
+
|
|
23
|
+
## CLI / Manual Fallback
|
|
24
|
+
|
|
25
|
+
1. If MCP is not configured, install it manually:
|
|
26
|
+
- `mds mcp install --client codex --scope project`
|
|
27
|
+
2. Direct CLI generation:
|
|
28
|
+
- `npx -y create-expo-super-stack <appName>`
|
|
29
|
+
3. Then onboard/continue from inside the generated app using the current CLI behavior:
|
|
30
|
+
- `mds continue <new-app-path>`
|
|
31
|
+
|
|
32
|
+
## Verification And Output
|
|
33
|
+
|
|
34
|
+
- Confirm generated app has `project/info.md`, `project/todo.md`, `project/style.md`, and `project/guidelines.md`.
|
|
35
|
+
- Output: generated app path, onboarding status, and immediate next command.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: "agent"
|
|
3
|
+
description: "Run the MDS Fix Seo workflow with MCP-first diagnostics and CLI fallback."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /fix-seo
|
|
7
|
+
|
|
8
|
+
Apply SEO metadata fixes for Expo web routes with MCP guidance and post-fix verification.
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
|
|
12
|
+
- `projectPath`: Expo project path (default: current directory).
|
|
13
|
+
- `routeOrFile`: optional route/file focus for targeted checks.
|
|
14
|
+
|
|
15
|
+
## MCP-First Workflow
|
|
16
|
+
|
|
17
|
+
1. Confirm the `mds` MCP server is available.
|
|
18
|
+
2. Pull `get_skill` for `seo-metadata`.
|
|
19
|
+
3. Optionally run `doctor_scan_file` for focused route files, then `doctor_scan_project` for full checks.
|
|
20
|
+
4. Use `knowledge_list_resources` (`kind: "rule"`) to ensure canonical/indexing strategy is complete.
|
|
21
|
+
5. Implement metadata, canonical, robots, and sitemap corrections in route ownership boundaries.
|
|
22
|
+
|
|
23
|
+
## CLI / Manual Fallback
|
|
24
|
+
|
|
25
|
+
1. If MCP is not configured, install it manually:
|
|
26
|
+
- `mds mcp install --client codex --scope project`
|
|
27
|
+
2. Direct CLI checks:
|
|
28
|
+
- `mds doctor <projectPath> --ci`
|
|
29
|
+
- Run project-specific web build/preview commands to verify metadata output.
|
|
30
|
+
|
|
31
|
+
## Verification And Output
|
|
32
|
+
|
|
33
|
+
- Confirm canonical tags, social metadata, and sitemap/robots behavior on affected routes.
|
|
34
|
+
- Output: changed files, resolved SEO gaps, and any remaining manual verification steps.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: "agent"
|
|
3
|
+
description: "Run the MDS Prepare Deploy workflow with MCP-first diagnostics and CLI fallback."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /prepare-deploy
|
|
7
|
+
|
|
8
|
+
Prepare an Expo project for release using deployment-focused skills plus Doctor parity checks.
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
|
|
12
|
+
- `projectPath`: release candidate project path (default: current directory).
|
|
13
|
+
- `includeSeo`: whether to include web metadata/indexing checks (default: `true` when web is targeted).
|
|
14
|
+
|
|
15
|
+
## MCP-First Workflow
|
|
16
|
+
|
|
17
|
+
1. Confirm the `mds` MCP server is available.
|
|
18
|
+
2. Run `doctor_scan_project` in `ci` mode for release parity.
|
|
19
|
+
3. Pull `get_skill` for `deployment`; if web is involved also pull `seo-metadata`.
|
|
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.
|
|
23
|
+
|
|
24
|
+
## CLI / Manual Fallback
|
|
25
|
+
|
|
26
|
+
1. If MCP is not configured, install it manually:
|
|
27
|
+
- `mds mcp install --client codex --scope project`
|
|
28
|
+
2. Direct CLI path:
|
|
29
|
+
- `mds doctor <projectPath> --ci`
|
|
30
|
+
- Run project scripts: `lint`, `type-check`, `test`, and production build/profile scripts.
|
|
31
|
+
|
|
32
|
+
## Verification And Output
|
|
33
|
+
|
|
34
|
+
- 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
|
+
- Output: release readiness status, unresolved blockers, and rollback/readiness notes.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: "agent"
|
|
3
|
+
description: "Run the MDS Project Research Plan workflow with MCP-first diagnostics and CLI fallback."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /project-research-plan
|
|
7
|
+
|
|
8
|
+
Turn rough product notes/research into actionable MDS project memory and next-phase plan.
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
|
|
12
|
+
- `projectPath`: target project path (default: current directory).
|
|
13
|
+
- `inputs`: attached notes/docs to normalize into canonical memory files.
|
|
14
|
+
|
|
15
|
+
## MCP-First Workflow
|
|
16
|
+
|
|
17
|
+
1. Confirm the `mds` MCP server is available.
|
|
18
|
+
2. Pull `get_skill` for `research-plan-intake` (and `project-onboarding` when onboarding context is mixed in).
|
|
19
|
+
3. Call `knowledge_list_resources` for `guide` and `reference` resources as needed for structure and validation.
|
|
20
|
+
4. Normalize clear context directly; ask focused follow-up only where ambiguity changes implementation direction.
|
|
21
|
+
5. Update project memory files and produce an implementation-ready next-phase plan.
|
|
22
|
+
|
|
23
|
+
## CLI / Manual Fallback
|
|
24
|
+
|
|
25
|
+
1. If MCP is not configured, install it manually:
|
|
26
|
+
- `mds mcp install --client codex --scope project`
|
|
27
|
+
2. Direct CLI fallback:
|
|
28
|
+
- Use `mds onboard <projectPath>` for structured intake when memory files are missing.
|
|
29
|
+
- Use `mds continue <projectPath>` after memory normalization to select the next task.
|
|
30
|
+
|
|
31
|
+
## Verification And Output
|
|
32
|
+
|
|
33
|
+
- Confirm `project/info.md`, `project/style.md`, and `project/todo.md` align with extracted research context.
|
|
34
|
+
- Output: resolved unknowns, outstanding questions, and the recommended next implementation slice.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: "agent"
|
|
3
|
+
description: "Run the MDS Review Expo Project workflow with MCP-first diagnostics and CLI fallback."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /review-expo-project
|
|
7
|
+
|
|
8
|
+
Review an Expo project with MCP-first diagnostics and skill-guided remediation.
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
|
|
12
|
+
- `projectPath`: absolute or relative project path (default: current directory).
|
|
13
|
+
- `mode`: Doctor mode (`fast`, `ci`, or `full`; default: `ci`).
|
|
14
|
+
|
|
15
|
+
## MCP-First Workflow
|
|
16
|
+
|
|
17
|
+
1. Confirm the `mds` MCP server is available.
|
|
18
|
+
2. Call `continue_project` to summarize current project state and blockers.
|
|
19
|
+
3. Call `doctor_scan_project` with `projectPath` and `mode`.
|
|
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.
|
|
23
|
+
|
|
24
|
+
## CLI / Manual Fallback
|
|
25
|
+
|
|
26
|
+
1. If MCP is not configured, install it manually:
|
|
27
|
+
- `mds mcp install --client codex --scope project`
|
|
28
|
+
2. If MCP still cannot run, use direct CLI flows:
|
|
29
|
+
- `mds continue <projectPath>`
|
|
30
|
+
- `mds doctor <projectPath> --ci`
|
|
31
|
+
|
|
32
|
+
## Verification And Output
|
|
33
|
+
|
|
34
|
+
- Keep the response user-facing: summarize findings and next steps without echoing internal tool chatter or file-read noise.
|
|
35
|
+
- 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.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
mode: "agent"
|
|
3
|
+
description: "Run the MDS Run Doctor workflow with MCP-first diagnostics and CLI fallback."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /run-doctor
|
|
7
|
+
|
|
8
|
+
Run MDS Doctor as the primary health check for an Expo project.
|
|
9
|
+
|
|
10
|
+
## Arguments
|
|
11
|
+
|
|
12
|
+
- `projectPath`: project root path (default: current directory).
|
|
13
|
+
- `mode`: `fast`, `ci`, or `full` (default: `ci`).
|
|
14
|
+
- `runScripts`: whether Doctor should execute project scripts (default: `true` for `ci` mode).
|
|
15
|
+
|
|
16
|
+
## MCP-First Workflow
|
|
17
|
+
|
|
18
|
+
1. Confirm the `mds` MCP server is available.
|
|
19
|
+
2. Call `doctor_scan_project` with selected arguments.
|
|
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`).
|
|
23
|
+
|
|
24
|
+
## CLI / Manual Fallback
|
|
25
|
+
|
|
26
|
+
1. If MCP is not configured, install it manually:
|
|
27
|
+
- `mds mcp install --client codex --scope project`
|
|
28
|
+
2. Direct CLI alternatives:
|
|
29
|
+
- `mds doctor <projectPath>`
|
|
30
|
+
- `mds doctor <projectPath> --ci`
|
|
31
|
+
- `mds doctor <projectPath> --json`
|
|
32
|
+
|
|
33
|
+
## Verification And Output
|
|
34
|
+
|
|
35
|
+
- 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
|
+
- Output: check summary, blocking errors first, and the exact command used for re-check.
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "Expo SSR Safety Skill"
|
|
3
|
+
description: "Instructions for avoiding web/server runtime crashes."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Skill: Expo SSR Safety
|
|
7
|
+
|
|
8
|
+
Use when preparing or debugging Expo Router web/server output paths.
|
|
9
|
+
|
|
10
|
+
## Main rule
|
|
11
|
+
|
|
12
|
+
Assume server runtime first: guard browser-only APIs, isolate native-only code, and keep shared modules safe in both client and server contexts.
|
|
13
|
+
|
|
14
|
+
## Checks
|
|
15
|
+
|
|
16
|
+
- Guard `window`, `document`, `navigator`, `localStorage`, and `sessionStorage` access.
|
|
17
|
+
- Confirm client-only packages are not imported by server/API execution paths.
|
|
18
|
+
- Confirm storage/session access happens in client-safe lifecycle points.
|
|
19
|
+
- Verify API routes and server modules do not rely on browser globals.
|
|
20
|
+
- Validate dynamic imports or adapters for platform-specific behavior.
|
|
21
|
+
|
|
22
|
+
## Preferred structure
|
|
23
|
+
|
|
24
|
+
- Use small environment-check helpers for browser-global access.
|
|
25
|
+
- Split client-only logic behind platform/runtime-specific modules.
|
|
26
|
+
- Keep server-safe defaults and explicit fallbacks in shared utilities.
|
|
27
|
+
|
|
28
|
+
## Example fix
|
|
29
|
+
|
|
30
|
+
- Problem: Shared auth helper reads `localStorage` at module load and crashes SSR.
|
|
31
|
+
- Fix: Move storage access into guarded runtime functions and provide a server-safe fallback.
|
|
32
|
+
|
|
33
|
+
## Agent behavior
|
|
34
|
+
|
|
35
|
+
- Fix crash-risk paths first, then clean up architecture.
|
|
36
|
+
- Delegate framework SSR primitives to official Expo docs, then apply MDS-specific guard patterns and Doctor rule compatibility.
|
|
37
|
+
|