@mr.dj2u/knowledge 0.1.7 → 0.1.9
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/dist/content/checklists/push-merge-loop.md +17 -17
- package/dist/content/checklists/unified-agent-bundle-validation.md +9 -9
- package/dist/content/examples/push-merge-loop.md +14 -14
- package/dist/content/examples/unified-agent-bundle-bootstrap.md +8 -8
- package/dist/content/guides/post-create-onboarding.md +150 -140
- package/dist/content/patterns/api/api-routes.md +313 -313
- package/dist/content/patterns/api/error-handling.md +310 -310
- package/dist/content/patterns/database/drizzle-schema.md +279 -279
- package/dist/content/patterns/database/migrations.md +364 -364
- package/dist/content/patterns/database/query-organization.md +536 -536
- package/dist/content/patterns/database/relations.md +449 -449
- package/dist/content/patterns/deployment/build-configuration.md +440 -440
- package/dist/content/patterns/deployment/ci-cd-patterns.md +447 -447
- package/dist/content/patterns/deployment/environment-config.md +379 -379
- package/dist/content/patterns/deployment/hosting-setup.md +424 -424
- package/dist/content/patterns/project/configuration-patterns.md +459 -459
- package/dist/content/patterns/project/documentation-org.md +506 -506
- package/dist/content/patterns/project/folder-structure.md +397 -397
- package/dist/content/patterns/project/library-exports.md +464 -464
- package/dist/content/patterns/project/monorepo-structure.md +500 -500
- package/dist/content/patterns/routing/dynamic-routes.md +220 -220
- package/dist/content/patterns/routing/file-based-routing.md +185 -185
- package/dist/content/patterns/routing/route-groups.md +428 -428
- package/dist/content/patterns/state/persistence-middleware.md +520 -520
- package/dist/content/patterns/state/selector-hooks.md +537 -537
- package/dist/content/patterns/state/store-organization.md +538 -538
- package/dist/content/patterns/state/zustand-patterns.md +347 -347
- package/dist/content/patterns/styling/component-styling.md +467 -467
- package/dist/content/patterns/styling/responsive-patterns.md +397 -397
- package/dist/content/patterns/styling/theme-configuration.md +425 -425
- package/dist/content/patterns/styling/uniwind-setup.md +411 -411
- package/dist/content/prompts/continue-development.md +41 -35
- package/dist/content/prompts/create-expo-super-stack.md +4 -1
- package/dist/content/prompts/fix-seo.md +29 -29
- package/dist/content/prompts/onboard-new-expo-app.md +11 -11
- package/dist/content/prompts/prepare-deploy.md +29 -29
- package/dist/content/prompts/project-research-plan.md +29 -29
- package/dist/content/prompts/push-merge-loop.md +25 -25
- package/dist/content/prompts/retrospective-project-onboarding.md +23 -0
- package/dist/content/prompts/review-expo-project.md +29 -29
- package/dist/content/prompts/run-doctor.md +38 -38
- package/dist/content/prompts/wrap-up.md +70 -67
- package/dist/content/reference/create-expo-stack-uniwind.md +29 -29
- package/dist/content/reference/doctor-dogfood.md +1 -1
- package/dist/content/reference/mcp-sdk-transport.md +30 -30
- package/dist/content/reference/reference-repo-evacuation.md +31 -31
- package/dist/content/resource-index.json +1 -0
- package/dist/content/rules/env-hygiene.md +10 -0
- package/dist/content/rules/ssr-safety.md +7 -0
- package/dist/content/skills/api-routes.md +34 -33
- package/dist/content/skills/continue-development.md +49 -32
- package/dist/content/skills/debugging.md +32 -32
- package/dist/content/skills/deployment.md +32 -32
- package/dist/content/skills/dev-server-management.md +32 -32
- package/dist/content/skills/env-vars.md +32 -32
- package/dist/content/skills/expo-router-architecture.md +34 -33
- package/dist/content/skills/expo-ssr-safety.md +32 -32
- package/dist/content/skills/plugin-creation.md +41 -41
- package/dist/content/skills/production-server-patterns.md +31 -31
- package/dist/content/skills/project-onboarding.md +35 -31
- package/dist/content/skills/research-plan-intake.md +32 -32
- package/dist/content/skills/seo-metadata.md +31 -31
- package/dist/content/skills/super-stack-startup.md +38 -34
- package/dist/content/skills/uniwind-theming.md +32 -32
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +11 -0
- package/dist/prompts/index.js.map +1 -1
- package/package.json +7 -1
|
@@ -1,32 +1,32 @@
|
|
|
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.
|
|
32
|
-
|
|
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.
|
|
32
|
+
|
|
@@ -1,32 +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.
|
|
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.
|
|
@@ -1,32 +1,32 @@
|
|
|
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.
|
|
32
|
-
|
|
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.
|
|
32
|
+
|
|
@@ -1,33 +1,34 @@
|
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
- Place
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
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
|
+
- Doctor flags confusing groups, missing layouts, string-assembled hrefs, and mixed route concerns via the `router safety` check (`mds explain "router safety"`).
|
|
17
|
+
|
|
18
|
+
## Preferred structure
|
|
19
|
+
|
|
20
|
+
- Keep `app/` files focused on params, navigation, and screen composition.
|
|
21
|
+
- Place business workflows in `src/features`.
|
|
22
|
+
- Place side effects/integrations in `src/services` or `src/data`.
|
|
23
|
+
- Keep reusable UI in `src/components` and cross-cutting helpers in hooks/utilities.
|
|
24
|
+
|
|
25
|
+
## Example fix
|
|
26
|
+
|
|
27
|
+
- Problem: A route file performs data fetching, mutation, and form business rules inline.
|
|
28
|
+
- Fix: Move fetch/mutation logic to service modules, move workflow rules to a feature module, and keep the route as a thin screen wrapper.
|
|
29
|
+
|
|
30
|
+
## Agent behavior
|
|
31
|
+
|
|
32
|
+
- Prefer small, incremental extractions over broad rewrites.
|
|
33
|
+
- Delegate framework routing primitives to official Expo Router guidance, then apply MDS rules for maintainable app-folder boundaries and Doctor-compatible architecture.
|
|
34
|
+
|
|
@@ -1,32 +1,32 @@
|
|
|
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.
|
|
32
|
-
|
|
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.
|
|
32
|
+
|
|
@@ -1,41 +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.
|
|
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.
|
|
@@ -1,31 +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.
|
|
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.
|
|
@@ -1,31 +1,35 @@
|
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
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
|
+
- Confirm `mds onboard` installed newly declared packages, or that
|
|
17
|
+
`--no-install` was explicit and the printed install command is still
|
|
18
|
+
pending. Do not treat onboarding as complete while those modules are
|
|
19
|
+
missing.
|
|
20
|
+
|
|
21
|
+
## Preferred structure
|
|
22
|
+
|
|
23
|
+
- Use conversational intake to capture audience, flows, data needs, platform targets, and deployment intent.
|
|
24
|
+
- Keep visual guidance in `project/style.md`; keep technical/agent rules in `project/guidelines.md`.
|
|
25
|
+
- Keep onboarding outputs phase-based so follow-up work can continue from `project/todo.md`.
|
|
26
|
+
|
|
27
|
+
## Example fix
|
|
28
|
+
|
|
29
|
+
- Problem: Team starts coding before onboarding, causing missing docs and conflicting architecture assumptions.
|
|
30
|
+
- Fix: Run onboarding flow, generate canonical project memory, reconcile open context markers, then resume implementation using phase order.
|
|
31
|
+
|
|
32
|
+
## Agent behavior
|
|
33
|
+
|
|
34
|
+
- Ask one focused onboarding question at a time when required by the flow.
|
|
35
|
+
- Delegate framework primitive setup guidance to official Expo resources, then layer MDS project-memory and workflow automation rules.
|
|
@@ -1,32 +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.
|
|
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.
|