@craft-ts/mcp 0.8.5 → 0.8.7
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/content/agents.md +10 -1
- package/content/docs-index.json +39 -14
- package/package.json +2 -2
- package/skills/craft-ts/SKILL.md +5 -3
- package/skills/craft-ts-style/SKILL.md +62 -8
package/content/agents.md
CHANGED
|
@@ -12,7 +12,9 @@ For SSR, use `renderCraft` to render one isolated request. On the browser,
|
|
|
12
12
|
|
|
13
13
|
1. Read https://craft-ts.github.io/craft/llms.txt and follow the linked markdown pages.
|
|
14
14
|
2. If the CraftTS MCP server is configured, call `get_best_practices`, then `search_documentation` / `get_skill` instead of guessing APIs.
|
|
15
|
-
3. Skills live in `node_modules/@craft-ts/mcp/skills/` (architecture tests,
|
|
15
|
+
3. Skills live in `node_modules/@craft-ts/mcp/skills/` (architecture tests,
|
|
16
|
+
routes, typed styles and contrast, spec translation, service migration,
|
|
17
|
+
full-app migration). Read `craft-ts-style` before changing visual rules.
|
|
16
18
|
|
|
17
19
|
## Non-negotiable rules
|
|
18
20
|
|
|
@@ -21,6 +23,13 @@ For SSR, use `renderCraft` to render one isolated request. On the browser,
|
|
|
21
23
|
- `craftService` + generated `X()` helpers for explicit dependency composition.
|
|
22
24
|
- `craftRoutes` + `componentDeps` + a per-file DI check. Split with `loadChildren` on `TS2589`.
|
|
23
25
|
- Enable `@craft-ts/dev-tools` ESLint rules and run `eslint --fix` after DI or route edits.
|
|
26
|
+
- In a typed-style project, name palettes, represent hover with
|
|
27
|
+
`when(interaction.hover, ...)`, and run `npm run style:check` after changing
|
|
28
|
+
colours, backgrounds, typography, template classes, themes or visual axes.
|
|
29
|
+
The command proves WCAG AA text contrast from the style and template graphs;
|
|
30
|
+
it needs no browser. Indeterminate and empty reports are failures. Use
|
|
31
|
+
`--allow-indeterminate` only to inventory an old project, never as the CI
|
|
32
|
+
policy, and do not present this check as a full accessibility audit.
|
|
24
33
|
- The `architecture/` suite is the graph contract. `craft create` scaffolds it
|
|
25
34
|
at bootstrap and adds `npm run architecture`. Run it during a feature. Do not
|
|
26
35
|
add an architecture rule for the feature; encode a smell only when it is a
|