@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,17 +1,17 @@
|
|
|
1
|
-
# Push-Merge Loop Checklist
|
|
2
|
-
|
|
3
|
-
Use this checklist when running the PR loop into `test`.
|
|
4
|
-
|
|
5
|
-
1. Doctor CI pass: `mds doctor --ci`.
|
|
6
|
-
2. Stage intentional files only.
|
|
7
|
-
3. Create meaningful commit message.
|
|
8
|
-
4. Push branch.
|
|
9
|
-
5. Open/update PR to `test`.
|
|
10
|
-
6. Wait ~2 minutes before polling checks/comments.
|
|
11
|
-
7. Collect failed checks + review comments.
|
|
12
|
-
8. Fix issues locally.
|
|
13
|
-
9. Rerun Doctor CI.
|
|
14
|
-
10. Push and poll again.
|
|
15
|
-
11. Repeat up to 5 cycles.
|
|
16
|
-
12. Merge only when checks are green and blockers are cleared.
|
|
17
|
-
|
|
1
|
+
# Push-Merge Loop Checklist
|
|
2
|
+
|
|
3
|
+
Use this checklist when running the PR loop into `test`.
|
|
4
|
+
|
|
5
|
+
1. Doctor CI pass: `mds doctor --ci`.
|
|
6
|
+
2. Stage intentional files only.
|
|
7
|
+
3. Create meaningful commit message.
|
|
8
|
+
4. Push branch.
|
|
9
|
+
5. Open/update PR to `test`.
|
|
10
|
+
6. Wait ~2 minutes before polling checks/comments.
|
|
11
|
+
7. Collect failed checks + review comments.
|
|
12
|
+
8. Fix issues locally.
|
|
13
|
+
9. Rerun Doctor CI.
|
|
14
|
+
10. Push and poll again.
|
|
15
|
+
11. Repeat up to 5 cycles.
|
|
16
|
+
12. Merge only when checks are green and blockers are cleared.
|
|
17
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# Unified Agent Bundle Validation Checklist
|
|
2
|
-
|
|
3
|
-
Phase 9 validation artifact intent:
|
|
4
|
-
|
|
5
|
-
1. Run Doctor (`--ci`) through the agent.
|
|
6
|
-
2. Fetch one guide via MCP resource (`animation-performance`).
|
|
7
|
-
3. Execute one CLI workflow (`mds continue` or `/push-merge-loop`).
|
|
8
|
-
4. Confirm tools/resources are visible in the target client.
|
|
9
|
-
|
|
1
|
+
# Unified Agent Bundle Validation Checklist
|
|
2
|
+
|
|
3
|
+
Phase 9 validation artifact intent:
|
|
4
|
+
|
|
5
|
+
1. Run Doctor (`--ci`) through the agent.
|
|
6
|
+
2. Fetch one guide via MCP resource (`animation-performance`).
|
|
7
|
+
3. Execute one CLI workflow (`mds continue` or `/push-merge-loop`).
|
|
8
|
+
4. Confirm tools/resources are visible in the target client.
|
|
9
|
+
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# Push-Merge Loop Example
|
|
2
|
-
|
|
3
|
-
Example iteration log for `/push-merge-loop`:
|
|
4
|
-
|
|
5
|
-
- Iteration 1:
|
|
6
|
-
- Failed: `lint` and one requested review change.
|
|
7
|
-
- Fixes: remove dead import, update API guard clause.
|
|
8
|
-
- Result: `lint` green, one test still failing.
|
|
9
|
-
- Iteration 2:
|
|
10
|
-
- Failed: `test` in `packages/cli`.
|
|
11
|
-
- Fixes: update stale skill ID expectation.
|
|
12
|
-
- Result: all checks green.
|
|
13
|
-
- Merge: PR merged into `test`.
|
|
14
|
-
|
|
1
|
+
# Push-Merge Loop Example
|
|
2
|
+
|
|
3
|
+
Example iteration log for `/push-merge-loop`:
|
|
4
|
+
|
|
5
|
+
- Iteration 1:
|
|
6
|
+
- Failed: `lint` and one requested review change.
|
|
7
|
+
- Fixes: remove dead import, update API guard clause.
|
|
8
|
+
- Result: `lint` green, one test still failing.
|
|
9
|
+
- Iteration 2:
|
|
10
|
+
- Failed: `test` in `packages/cli`.
|
|
11
|
+
- Fixes: update stale skill ID expectation.
|
|
12
|
+
- Result: all checks green.
|
|
13
|
+
- Merge: PR merged into `test`.
|
|
14
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Unified Agent Bundle Bootstrap Example
|
|
2
|
-
|
|
3
|
-
Phase 9 bootstrap artifact intent:
|
|
4
|
-
|
|
5
|
-
1. Install MCP server config.
|
|
6
|
-
2. Install generated skills/prompts package.
|
|
7
|
-
3. Verify the agent can call Doctor + knowledge tools.
|
|
8
|
-
4. Verify the agent can run one CLI workflow.
|
|
1
|
+
# Unified Agent Bundle Bootstrap Example
|
|
2
|
+
|
|
3
|
+
Phase 9 bootstrap artifact intent:
|
|
4
|
+
|
|
5
|
+
1. Install MCP server config.
|
|
6
|
+
2. Install generated skills/prompts package.
|
|
7
|
+
3. Verify the agent can call Doctor + knowledge tools.
|
|
8
|
+
4. Verify the agent can run one CLI workflow.
|
|
@@ -1,49 +1,59 @@
|
|
|
1
|
-
# Post-Create Expo Onboarding
|
|
2
|
-
|
|
3
|
-
MDS onboarding runs after `rn-new`, `create-expo-app`, `create-expo-stack`, or
|
|
4
|
-
another generator has created an Expo project. `create-expo-super-stack` wraps
|
|
5
|
-
that same idea by running `create-expo-stack` first and then applying the MDS
|
|
6
|
-
onboarding pass.
|
|
7
|
-
|
|
8
|
-
## Flow
|
|
9
|
-
|
|
10
|
-
1. Detect package manager, Expo SDK, Expo Router, app directory, aliases, and
|
|
11
|
-
styling stack.
|
|
12
|
-
2. Explain project memory first, then ask what the app is for, who it serves,
|
|
13
|
-
primary flows, data needs, and release/deployment intent.
|
|
14
|
-
3. Use friendly Clack prompts with visible defaults, helpful explanations, and
|
|
15
|
-
no blank required answers.
|
|
16
|
-
4. Derive defaults from selected answers instead of asking for comma-separated
|
|
17
|
-
internal keywords.
|
|
18
|
-
5. Offer rich boilerplate by default: project memory docs, exposition pages,
|
|
19
|
-
Uniwind repair for existing apps, Software Mansion core examples, Supabase or
|
|
20
|
-
local data guidance, MCP/Codex/Claude instructions, and CI/release safeguards.
|
|
21
|
-
6. Scaffold only selected pieces.
|
|
22
|
-
7. Add generated cleanup scripts such as `clear-expo-start` and `free-port`.
|
|
23
|
-
8.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
mds
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
# Post-Create Expo Onboarding
|
|
2
|
+
|
|
3
|
+
MDS onboarding runs after `rn-new`, `create-expo-app`, `create-expo-stack`, or
|
|
4
|
+
another generator has created an Expo project. `create-expo-super-stack` wraps
|
|
5
|
+
that same idea by running `create-expo-stack` first and then applying the MDS
|
|
6
|
+
onboarding pass.
|
|
7
|
+
|
|
8
|
+
## Flow
|
|
9
|
+
|
|
10
|
+
1. Detect package manager, Expo SDK, Expo Router, app directory, aliases, and
|
|
11
|
+
styling stack.
|
|
12
|
+
2. Explain project memory first, then ask what the app is for, who it serves,
|
|
13
|
+
primary flows, data needs, and release/deployment intent.
|
|
14
|
+
3. Use friendly Clack prompts with visible defaults, helpful explanations, and
|
|
15
|
+
no blank required answers.
|
|
16
|
+
4. Derive defaults from selected answers instead of asking for comma-separated
|
|
17
|
+
internal keywords.
|
|
18
|
+
5. Offer rich boilerplate by default: project memory docs, exposition pages,
|
|
19
|
+
Uniwind repair for existing apps, Software Mansion core examples, Supabase or
|
|
20
|
+
local data guidance, MCP/Codex/Claude instructions, and CI/release safeguards.
|
|
21
|
+
6. Scaffold only selected pieces.
|
|
22
|
+
7. Add generated cleanup scripts such as `clear-expo-start` and `free-port`.
|
|
23
|
+
8. Add default-enabled React Doctor support: `react-doctor` in `devDependencies`,
|
|
24
|
+
`doctor.config.json`, README section, and `mds run react-doctor` /
|
|
25
|
+
`npm run react-doctor` scripts. React Doctor stays off the Expo/Metro startup
|
|
26
|
+
path for minimal overhead. Disable with `MDS_REACT_DOCTOR=0` or
|
|
27
|
+
`"mds": { "reactDoctor": false }` in `package.json`.
|
|
28
|
+
9. Install added dependencies immediately with the project's package manager,
|
|
29
|
+
then validate that newly declared packages exist in `node_modules`. Standalone
|
|
30
|
+
`mds onboard` does this lockfile install unless `--no-install` is passed.
|
|
31
|
+
`create-expo-super-stack` then continues with create-time Expo repair:
|
|
32
|
+
`expo install --fix`, known missing Expo peers such as `expo-font` for
|
|
33
|
+
`@expo/vector-icons`, and Expo Doctor. Do not treat onboarding as complete if
|
|
34
|
+
install failed or was explicitly skipped.
|
|
35
|
+
|
|
36
|
+
## Agentic Onboarding (MCP)
|
|
37
|
+
|
|
38
|
+
The terminal `mds onboard` command writes the project memory files. The
|
|
39
|
+
agentic version is a conversation with Copilot, Claude Code, Codex, or Cursor that
|
|
40
|
+
fills those files in collaboratively.
|
|
41
|
+
|
|
42
|
+
Install **once, globally** (user scope, default) so every workspace gets
|
|
43
|
+
the prompts:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
mds mcp install --client claude # merges into ~/.claude.json
|
|
47
|
+
mds mcp install --client codex # merges into ~/.codex/config.toml
|
|
48
|
+
mds mcp install --client cursor # merges into ~/.cursor/mcp.json
|
|
49
|
+
mds mcp install --dry-run # preview merge before writing
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Restart the host (or run `claude mcp reload`) and the MDS prompts are
|
|
53
|
+
available from any workspace.
|
|
54
|
+
|
|
55
|
+
Two prompts and several callable MDS MCP tools ship with the server:
|
|
56
|
+
|
|
47
57
|
- `create_expo_super_stack` — invoke from a **parent folder** (e.g.
|
|
48
58
|
`F:\ReactNativeApps`) when the app folder does not exist yet. This is
|
|
49
59
|
now a thin orchestration prompt: `mds_runtime_versions` checks for
|
|
@@ -52,27 +62,27 @@ Two prompts and several callable MDS MCP tools ship with the server:
|
|
|
52
62
|
`create_expo_super_stack_intake_step` is only the manual fallback for
|
|
53
63
|
missing or ambiguous answers, and generation happens through
|
|
54
64
|
`create_expo_super_stack_generate`.
|
|
55
|
-
- `onboard_new_expo_app` — invoke from **inside an existing Expo app
|
|
56
|
-
folder** (a freshly generated one or a year-old project). Runs the
|
|
57
|
-
intake → normalize → plan → scaffold flow.
|
|
58
|
-
|
|
59
|
-
After generation, the user-dev should open the generated app folder
|
|
60
|
-
directly in a new agent session and run `mds continue`. That fresh
|
|
61
|
-
app-root session reduces token usage and saves money because future
|
|
62
|
-
searches, reads, and plans are scoped to the app instead of the parent
|
|
63
|
-
folder and old generator conversation.
|
|
64
|
-
|
|
65
|
-
Both prompts enforce or surface a **TodoForContext blocker** before
|
|
66
|
-
implementation work: they scan every `project/` file for the literal
|
|
67
|
-
marker `# TodoForContext(optional):` and ask the user to fill it in or
|
|
68
|
-
delete the marker line.
|
|
69
|
-
|
|
70
|
-
`mds doctor` mirrors this rule with a `todo-for-context markers`
|
|
71
|
-
error so the same blocker stops CI and editor surfaces until the user
|
|
72
|
-
fills the section or deletes the marker line.
|
|
73
|
-
|
|
74
|
-
### What's new in the agentic prompts and tools
|
|
75
|
-
|
|
65
|
+
- `onboard_new_expo_app` — invoke from **inside an existing Expo app
|
|
66
|
+
folder** (a freshly generated one or a year-old project). Runs the
|
|
67
|
+
intake → normalize → plan → scaffold flow.
|
|
68
|
+
|
|
69
|
+
After generation, the user-dev should open the generated app folder
|
|
70
|
+
directly in a new agent session and run `mds continue`. That fresh
|
|
71
|
+
app-root session reduces token usage and saves money because future
|
|
72
|
+
searches, reads, and plans are scoped to the app instead of the parent
|
|
73
|
+
folder and old generator conversation.
|
|
74
|
+
|
|
75
|
+
Both prompts enforce or surface a **TodoForContext blocker** before
|
|
76
|
+
implementation work: they scan every `project/` file for the literal
|
|
77
|
+
marker `# TodoForContext(optional):` and ask the user to fill it in or
|
|
78
|
+
delete the marker line.
|
|
79
|
+
|
|
80
|
+
`mds doctor` mirrors this rule with a `todo-for-context markers`
|
|
81
|
+
error so the same blocker stops CI and editor surfaces until the user
|
|
82
|
+
fills the section or deletes the marker line.
|
|
83
|
+
|
|
84
|
+
### What's new in the agentic prompts and tools
|
|
85
|
+
|
|
76
86
|
- **PHASE 0 file intake.** The agent offers to digest an existing
|
|
77
87
|
`project/info.md` and `project/style.md` if the user has them already.
|
|
78
88
|
Questions whose answers are unambiguous in the file are skipped; the
|
|
@@ -84,80 +94,80 @@ fills the section or deletes the marker line.
|
|
|
84
94
|
merges explicit overrides, returns missing or ambiguous fields, and
|
|
85
95
|
produces a ready-to-pass generate payload so the user is not forced
|
|
86
96
|
through redundant question-by-question discovery.
|
|
87
|
-
- **Android TV alongside Apple TV.** The platform multi-select now
|
|
88
|
-
includes Android TV. Android TV builds from the same Android target
|
|
89
|
-
with leanback config in `app.json`; Apple TV is a separate tvOS build
|
|
90
|
-
target via `react-native-tvos`. Selecting either records the intent
|
|
91
|
-
in project memory.
|
|
92
|
-
- **Shared CLI-backed intake contract.** The agentic CESS flow now uses
|
|
93
|
-
callable MCP tools backed by the shared `@mr.dj2u/cli` intake
|
|
94
|
-
contract. That keeps the questionnaire, defaults, dependency rules,
|
|
95
|
-
and flag mapping aligned with the published CLI behavior.
|
|
96
|
-
- **No silent defaults.** Guided intake must explicitly collect answers
|
|
97
|
-
or explicitly present visible defaults. If the CESS intake tools are
|
|
98
|
-
unavailable, the agent should stop and tell the user to refresh the
|
|
99
|
-
plugin or MCP install instead of inventing `--mds-yes` defaults.
|
|
97
|
+
- **Android TV alongside Apple TV.** The platform multi-select now
|
|
98
|
+
includes Android TV. Android TV builds from the same Android target
|
|
99
|
+
with leanback config in `app.json`; Apple TV is a separate tvOS build
|
|
100
|
+
target via `react-native-tvos`. Selecting either records the intent
|
|
101
|
+
in project memory.
|
|
102
|
+
- **Shared CLI-backed intake contract.** The agentic CESS flow now uses
|
|
103
|
+
callable MCP tools backed by the shared `@mr.dj2u/cli` intake
|
|
104
|
+
contract. That keeps the questionnaire, defaults, dependency rules,
|
|
105
|
+
and flag mapping aligned with the published CLI behavior.
|
|
106
|
+
- **No silent defaults.** Guided intake must explicitly collect answers
|
|
107
|
+
or explicitly present visible defaults. If the CESS intake tools are
|
|
108
|
+
unavailable, the agent should stop and tell the user to refresh the
|
|
109
|
+
plugin or MCP install instead of inventing `--mds-yes` defaults.
|
|
100
110
|
- **Runtime version diagnostics.** `mds_runtime_versions` reports the
|
|
101
111
|
active MCP server version, CLI version, concrete installed
|
|
102
112
|
`create-expo-super-stack` version, and the published generation path
|
|
103
113
|
in use.
|
|
104
|
-
- **Credits while waiting.** When generation kicks off, the agent
|
|
105
|
-
prints a recognition note for the upstream teams and individuals
|
|
106
|
-
whose work fills the MDS knowledge base.
|
|
107
|
-
- **Success message surfaced.** After a successful run, the agent
|
|
108
|
-
quotes the generator's `MDS onboarding complete` tail block back
|
|
109
|
-
verbatim so the Mr. DJ personal thank-you text appears in chat the same way
|
|
110
|
-
it does in a terminal CLI run.
|
|
111
|
-
- **MDS Continue handoff.** The agent runs `mds continue` from the
|
|
112
|
-
generated app folder, then tells the user-dev to open that app folder
|
|
113
|
-
in a fresh agent session to lower token usage and cost.
|
|
114
|
-
|
|
115
|
-
## Defaults
|
|
116
|
-
|
|
117
|
-
- Prefer Uniwind and Tailwind v4 for new projects.
|
|
118
|
-
- Keep route files thin and move business logic into features, services, hooks,
|
|
119
|
-
and utilities.
|
|
120
|
-
- Always add `project/info.md`, `project/todo.md`, `project/style.md`, and
|
|
121
|
-
`project/guidelines.md` when project memory is selected.
|
|
122
|
-
- Normalize existing `project/info.md` and `project/style.md` into canonical
|
|
123
|
-
sections while preserving unknown content under Imported Notes.
|
|
124
|
-
- Add `project
|
|
125
|
-
follow-up agent conversation.
|
|
126
|
-
- Keep `project/style.md` visual-only; put technical and agent rules in
|
|
127
|
-
`project/guidelines.md`.
|
|
128
|
-
- Treat monorepo-aware scaffolding as a future step after the single-app MVP is
|
|
129
|
-
stable.
|
|
130
|
-
|
|
131
|
-
## VS Code & GitHub Copilot Integration
|
|
132
|
-
|
|
133
|
-
This guide is authored as canonical knowledge consumed by agent bundles; it is not the agent itself. To enable the generated Copilot/VS Code surface and the custom MDS agent in a workspace, regenerate the VS Code bundle and install the generated prompts/settings into the target repository or your user profile.
|
|
134
|
-
|
|
135
|
-
- Regenerate VS Code assets (from repository root):
|
|
136
|
-
|
|
137
|
-
```powershell
|
|
138
|
-
pnpm --filter @mr.dj2u/knowledge build:vscode
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
- Copy the generated workspace assets into your project (PowerShell):
|
|
142
|
-
|
|
143
|
-
```powershell
|
|
144
|
-
Copy-Item -Path .\plugins\vscode-copilot\.github\* -Destination . -Recurse -Force
|
|
145
|
-
Copy-Item -Path .\plugins\vscode-copilot\.vscode\* -Destination .\.vscode -Recurse -Force
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
- Then restart VS Code. Ensure the `GitHub Copilot Chat` extension is installed and enabled. The generated `.vscode/settings.json` enables agent skill locations and prompt file lookup under `.github/prompts`.
|
|
149
|
-
|
|
150
|
-
- If you prefer user-scope installs, copy the `user/.copilot` content into your user profile per the extension docs, or run `mds agent install --client codex --scope user` (if available) to automate the merge.
|
|
151
|
-
|
|
152
|
-
## Install Path & What This MD Is For
|
|
153
|
-
|
|
154
|
-
- This markdown is a human- and agent-facing guide. It documents the onboarding flow and explains what the agent prompts do. It is used as input to the `packages/knowledge` build which generates plugin/agent bundles for Codex, Claude Code, and VS Code Copilot.
|
|
155
|
-
- The agent itself is not this file — it is a runtime that loads generated prompts/skills from the plugin bundles or the MCP server. To activate the agent surfaces you must either:
|
|
156
|
-
- Install the MCP prompts via `mds mcp install --client <client>` (user or project scope), or
|
|
157
|
-
- Copy the generated plugin files from `plugins/vscode-copilot` / `plugins/codex` / `plugins/claude-code` into the target workspace or user profile and restart the corresponding client.
|
|
158
|
-
- If a host keeps using stale prompt or plugin behavior after republish,
|
|
159
|
-
refresh the local plugin cache, reinstall the MDS MCP server, and run
|
|
160
|
-
`mds_runtime_versions` from the host surface to confirm which version
|
|
161
|
-
is actually active.
|
|
162
|
-
|
|
163
|
-
If you want, I can: regenerate the VS Code bundle now, copy the assets into the current workspace, and verify Copilot sees the prompts. Say "Do it" and I'll run the build and copy steps for you.
|
|
114
|
+
- **Credits while waiting.** When generation kicks off, the agent
|
|
115
|
+
prints a recognition note for the upstream teams and individuals
|
|
116
|
+
whose work fills the MDS knowledge base.
|
|
117
|
+
- **Success message surfaced.** After a successful run, the agent
|
|
118
|
+
quotes the generator's `MDS onboarding complete` tail block back
|
|
119
|
+
verbatim so the Mr. DJ personal thank-you text appears in chat the same way
|
|
120
|
+
it does in a terminal CLI run.
|
|
121
|
+
- **MDS Continue handoff.** The agent runs `mds continue` from the
|
|
122
|
+
generated app folder, then tells the user-dev to open that app folder
|
|
123
|
+
in a fresh agent session to lower token usage and cost.
|
|
124
|
+
|
|
125
|
+
## Defaults
|
|
126
|
+
|
|
127
|
+
- Prefer Uniwind and Tailwind v4 for new projects.
|
|
128
|
+
- Keep route files thin and move business logic into features, services, hooks,
|
|
129
|
+
and utilities.
|
|
130
|
+
- Always add `project/info.md`, `project/todo.md`, `project/style.md`, and
|
|
131
|
+
`project/guidelines.md` when project memory is selected.
|
|
132
|
+
- Normalize existing `project/info.md` and `project/style.md` into canonical
|
|
133
|
+
sections while preserving unknown content under Imported Notes.
|
|
134
|
+
- Add a temporary `temp/onboarding/project-memory-review.md` packet when
|
|
135
|
+
context is thin or imported notes need a follow-up agent conversation.
|
|
136
|
+
- Keep `project/style.md` visual-only; put technical and agent rules in
|
|
137
|
+
`project/guidelines.md`.
|
|
138
|
+
- Treat monorepo-aware scaffolding as a future step after the single-app MVP is
|
|
139
|
+
stable.
|
|
140
|
+
|
|
141
|
+
## VS Code & GitHub Copilot Integration
|
|
142
|
+
|
|
143
|
+
This guide is authored as canonical knowledge consumed by agent bundles; it is not the agent itself. To enable the generated Copilot/VS Code surface and the custom MDS agent in a workspace, regenerate the VS Code bundle and install the generated prompts/settings into the target repository or your user profile.
|
|
144
|
+
|
|
145
|
+
- Regenerate VS Code assets (from repository root):
|
|
146
|
+
|
|
147
|
+
```powershell
|
|
148
|
+
pnpm --filter @mr.dj2u/knowledge build:vscode
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
- Copy the generated workspace assets into your project (PowerShell):
|
|
152
|
+
|
|
153
|
+
```powershell
|
|
154
|
+
Copy-Item -Path .\plugins\vscode-copilot\.github\* -Destination . -Recurse -Force
|
|
155
|
+
Copy-Item -Path .\plugins\vscode-copilot\.vscode\* -Destination .\.vscode -Recurse -Force
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
- Then restart VS Code. Ensure the `GitHub Copilot Chat` extension is installed and enabled. The generated `.vscode/settings.json` enables agent skill locations and prompt file lookup under `.github/prompts`.
|
|
159
|
+
|
|
160
|
+
- If you prefer user-scope installs, copy the `user/.copilot` content into your user profile per the extension docs, or run `mds agent install --client codex --scope user` (if available) to automate the merge.
|
|
161
|
+
|
|
162
|
+
## Install Path & What This MD Is For
|
|
163
|
+
|
|
164
|
+
- This markdown is a human- and agent-facing guide. It documents the onboarding flow and explains what the agent prompts do. It is used as input to the `packages/knowledge` build which generates plugin/agent bundles for Codex, Claude Code, and VS Code Copilot.
|
|
165
|
+
- The agent itself is not this file — it is a runtime that loads generated prompts/skills from the plugin bundles or the MCP server. To activate the agent surfaces you must either:
|
|
166
|
+
- Install the MCP prompts via `mds mcp install --client <client>` (user or project scope), or
|
|
167
|
+
- Copy the generated plugin files from `plugins/vscode-copilot` / `plugins/codex` / `plugins/claude-code` into the target workspace or user profile and restart the corresponding client.
|
|
168
|
+
- If a host keeps using stale prompt or plugin behavior after republish,
|
|
169
|
+
refresh the local plugin cache, reinstall the MDS MCP server, and run
|
|
170
|
+
`mds_runtime_versions` from the host surface to confirm which version
|
|
171
|
+
is actually active.
|
|
172
|
+
|
|
173
|
+
If you want, I can: regenerate the VS Code bundle now, copy the assets into the current workspace, and verify Copilot sees the prompts. Say "Do it" and I'll run the build and copy steps for you.
|