@blxzer/cursor-trellis 0.2.9 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/README.md +85 -19
  3. package/README.zh-CN.md +60 -21
  4. package/bin/smart-search.js +1 -1
  5. package/dist/cli/index.d.ts.map +1 -1
  6. package/dist/cli/index.js +46 -18
  7. package/dist/cli/index.js.map +1 -1
  8. package/dist/commands/capability-smoke.d.ts +24 -0
  9. package/dist/commands/capability-smoke.d.ts.map +1 -0
  10. package/dist/commands/capability-smoke.js +83 -0
  11. package/dist/commands/capability-smoke.js.map +1 -0
  12. package/dist/commands/channel/agent-loader.d.ts +1 -1
  13. package/dist/commands/channel/agent-loader.js +4 -4
  14. package/dist/commands/channel/agent-loader.js.map +1 -1
  15. package/dist/commands/channel/guard.d.ts +2 -2
  16. package/dist/commands/channel/guard.js +3 -3
  17. package/dist/commands/channel/guard.js.map +1 -1
  18. package/dist/commands/channel/index.js +3 -3
  19. package/dist/commands/channel/index.js.map +1 -1
  20. package/dist/commands/channel/list.d.ts +1 -1
  21. package/dist/commands/channel/list.js +1 -1
  22. package/dist/commands/channel/rm.d.ts +1 -1
  23. package/dist/commands/channel/rm.js +1 -1
  24. package/dist/commands/channel/store/lock.d.ts +1 -1
  25. package/dist/commands/channel/store/lock.js +1 -1
  26. package/dist/commands/channel/store/paths.js +1 -1
  27. package/dist/commands/channel/store/paths.js.map +1 -1
  28. package/dist/commands/init.d.ts.map +1 -1
  29. package/dist/commands/init.js +197 -91
  30. package/dist/commands/init.js.map +1 -1
  31. package/dist/commands/uninstall.d.ts +4 -4
  32. package/dist/commands/uninstall.js +12 -12
  33. package/dist/commands/uninstall.js.map +1 -1
  34. package/dist/commands/update.d.ts +7 -2
  35. package/dist/commands/update.d.ts.map +1 -1
  36. package/dist/commands/update.js +161 -61
  37. package/dist/commands/update.js.map +1 -1
  38. package/dist/commands/upgrade.js +2 -2
  39. package/dist/commands/upgrade.js.map +1 -1
  40. package/dist/commands/workflow.d.ts +4 -4
  41. package/dist/commands/workflow.d.ts.map +1 -1
  42. package/dist/commands/workflow.js +10 -9
  43. package/dist/commands/workflow.js.map +1 -1
  44. package/dist/configurators/cursor.d.ts +2 -2
  45. package/dist/configurators/cursor.js +4 -4
  46. package/dist/configurators/cursor.js.map +1 -1
  47. package/dist/configurators/index.d.ts.map +1 -1
  48. package/dist/configurators/index.js +4 -4
  49. package/dist/configurators/index.js.map +1 -1
  50. package/dist/configurators/shared.d.ts +10 -10
  51. package/dist/configurators/shared.d.ts.map +1 -1
  52. package/dist/configurators/shared.js +32 -32
  53. package/dist/configurators/shared.js.map +1 -1
  54. package/dist/configurators/workflow.d.ts +6 -6
  55. package/dist/configurators/workflow.js +1 -1
  56. package/dist/constants/paths.d.ts +24 -24
  57. package/dist/constants/paths.d.ts.map +1 -1
  58. package/dist/constants/paths.js +16 -16
  59. package/dist/constants/paths.js.map +1 -1
  60. package/dist/migrations/manifests/0.2.10.json +374 -0
  61. package/dist/migrations/manifests/0.3.0.json +89 -0
  62. package/dist/migrations/manifests/0.3.1.json +32 -0
  63. package/dist/templates/common/bundled-skills/{trellis-cursor2plus-setup → cstl-cursor2plus-setup}/SKILL.md +15 -14
  64. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/SKILL.md +75 -75
  65. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/customize-local/add-project-local-conventions.md +19 -19
  66. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/customize-local/change-agents.md +8 -8
  67. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/customize-local/change-context-loading.md +26 -26
  68. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/customize-local/change-hooks.md +9 -9
  69. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/customize-local/change-skills-or-commands.md +8 -8
  70. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/customize-local/change-spec-structure.md +17 -17
  71. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/customize-local/change-task-lifecycle.md +46 -46
  72. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/customize-local/change-workflow.md +18 -18
  73. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/customize-local/overview.md +55 -55
  74. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/local-architecture/context-injection.md +20 -20
  75. package/dist/templates/common/bundled-skills/cstl-meta/references/local-architecture/generated-files.md +83 -0
  76. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/local-architecture/overview.md +15 -15
  77. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/local-architecture/spec-system.md +12 -12
  78. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/local-architecture/task-system.md +34 -34
  79. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/local-architecture/workflow.md +8 -8
  80. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/local-architecture/workspace-memory.md +19 -19
  81. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/platform-files/agents.md +12 -12
  82. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/platform-files/hooks-and-settings.md +7 -7
  83. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/platform-files/overview.md +9 -9
  84. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/platform-files/platform-map.md +7 -7
  85. package/dist/templates/common/bundled-skills/{trellis-meta → cstl-meta}/references/platform-files/skills-and-commands.md +19 -19
  86. package/dist/templates/common/bundled-skills/{trellis-micro-grill → cstl-micro-grill}/SKILL.md +62 -47
  87. package/dist/templates/common/bundled-skills/{trellis-skill-creator → cstl-skill-creator}/SKILL.md +44 -44
  88. package/dist/templates/common/bundled-skills/{trellis-skill-creator → cstl-skill-creator}/references/authoring-rules.md +97 -97
  89. package/dist/templates/common/bundled-skills/{trellis-skill-creator/references/trellis-skill-locations.md → cstl-skill-creator/references/cstl-skill-locations.md} +52 -52
  90. package/dist/templates/common/bundled-skills/{trellis-skill-creator → cstl-skill-creator}/references/review-checklist.md +47 -47
  91. package/dist/templates/common/bundled-skills/{trellis-spec-bootstrap → cstl-spec-bootstrap}/SKILL.md +6 -6
  92. package/dist/templates/common/bundled-skills/{trellis-spec-bootstrap → cstl-spec-bootstrap}/references/repository-analysis.md +1 -1
  93. package/dist/templates/common/bundled-skills/{trellis-spec-bootstrap → cstl-spec-bootstrap}/references/spec-task-planning.md +3 -3
  94. package/dist/templates/common/bundled-skills/{trellis-spec-bootstrap → cstl-spec-bootstrap}/references/spec-writing.md +1 -1
  95. package/dist/templates/common/commands/continue.md +24 -24
  96. package/dist/templates/common/commands/finish-work.md +5 -5
  97. package/dist/templates/common/commands/start.md +20 -20
  98. package/dist/templates/common/index.d.ts +1 -1
  99. package/dist/templates/common/index.d.ts.map +1 -1
  100. package/dist/templates/common/skills/before-dev.md +4 -4
  101. package/dist/templates/common/skills/brainstorm.md +188 -164
  102. package/dist/templates/common/skills/break-loop.md +3 -3
  103. package/dist/templates/common/skills/check.md +5 -5
  104. package/dist/templates/common/skills/update-spec.md +4 -4
  105. package/dist/templates/cursor/agents/{trellis-check.md → cstl-check.md} +14 -14
  106. package/dist/templates/cursor/agents/{trellis-implement.md → cstl-implement.md} +14 -14
  107. package/dist/templates/cursor/agents/{trellis-research.md → cstl-research.md} +11 -11
  108. package/dist/templates/cursor/commands/cursor2plus-setup.md +15 -15
  109. package/dist/templates/cursor/fixtures/expected-rules.d.ts +1 -1
  110. package/dist/templates/cursor/fixtures/expected-rules.d.ts.map +1 -1
  111. package/dist/templates/cursor/fixtures/expected-rules.js +2 -2
  112. package/dist/templates/cursor/fixtures/expected-rules.js.map +1 -1
  113. package/dist/templates/cursor/rules/{trellis-subagent-dispatch.mdc → cstl-subagent-dispatch.mdc} +4 -4
  114. package/dist/templates/cursor/rules/{trellis-triage.mdc → cstl-triage.mdc} +3 -3
  115. package/dist/templates/cursor/rules/retrieval-routing.mdc +4 -4
  116. package/dist/templates/extract.d.ts +1 -1
  117. package/dist/templates/extract.js +1 -1
  118. package/dist/templates/markdown/agents.md +13 -13
  119. package/dist/templates/markdown/prompts/run-semantic-slice-12.md.txt +1 -1
  120. package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +634 -634
  121. package/dist/templates/markdown/spec/guides/cursor-context-injection-guide.md.txt +5 -5
  122. package/dist/templates/markdown/spec/guides/cursor-semantic-compliance.md.txt +7 -1
  123. package/dist/templates/markdown/spec/guides/cursor-subagent-policy.md.txt +393 -391
  124. package/dist/templates/markdown/spec/guides/durable-learning-decision-guide.md.txt +14 -14
  125. package/dist/templates/markdown/spec/guides/execution-strategy.md.txt +5 -5
  126. package/dist/templates/markdown/spec/guides/index.md.txt +3 -2
  127. package/dist/templates/markdown/spec/guides/retrieval-daily-guide.md.txt +10 -10
  128. package/dist/templates/markdown/workspace-index.md +3 -3
  129. package/dist/templates/markdown/worktree.yaml.txt +1 -1
  130. package/dist/templates/shared-hooks/index.d.ts +2 -2
  131. package/dist/templates/shared-hooks/index.js +2 -2
  132. package/dist/templates/shared-hooks/inject-retrieval-plan.py +3 -3
  133. package/dist/templates/shared-hooks/inject-shell-session-context.py +7 -7
  134. package/dist/templates/shared-hooks/inject-subagent-context.py +4 -4
  135. package/dist/templates/shared-hooks/inject-workflow-state.py +37 -37
  136. package/dist/templates/shared-hooks/research-end-retrieval-pack.py +2 -2
  137. package/dist/templates/shared-hooks/session-start.py +16 -16
  138. package/dist/templates/trellis/config/execution-strategy-rules.json +1 -1
  139. package/dist/templates/trellis/config.yaml +5 -25
  140. package/dist/templates/trellis/index.d.ts +2 -2
  141. package/dist/templates/trellis/index.js +2 -2
  142. package/dist/templates/trellis/local/README.md +15 -13
  143. package/dist/templates/trellis/local/patch_wpelc8.py +7 -7
  144. package/dist/templates/trellis/local/subagent-models.json.example +1 -1
  145. package/dist/templates/trellis/local/trellis-task-models.json.example +3 -3
  146. package/dist/templates/trellis/local/trellis-task-models.json5.example +5 -5
  147. package/dist/templates/trellis/local/trellis_task_models_config.py +6 -6
  148. package/dist/templates/trellis/scripts/add_session.py +20 -20
  149. package/dist/templates/trellis/scripts/common/active_task.py +2 -2
  150. package/dist/templates/trellis/scripts/common/artifact_search.py +587 -587
  151. package/dist/templates/trellis/scripts/common/cli_adapter.py +3 -3
  152. package/dist/templates/trellis/scripts/common/codebase_retrieval_router.py +6 -6
  153. package/dist/templates/trellis/scripts/common/config.py +3 -3
  154. package/dist/templates/trellis/scripts/common/developer.py +2 -2
  155. package/dist/templates/trellis/scripts/common/execution_strategy.py +1 -1
  156. package/dist/templates/trellis/scripts/common/packages_context.py +23 -23
  157. package/dist/templates/trellis/scripts/common/parent_orchestration.py +702 -702
  158. package/dist/templates/trellis/scripts/common/paths.py +107 -107
  159. package/dist/templates/trellis/scripts/common/project_file_stats.py +1 -1
  160. package/dist/templates/trellis/scripts/common/retrieval_agent_instructions.py +1 -1
  161. package/dist/templates/trellis/scripts/common/safe_commit.py +31 -31
  162. package/dist/templates/trellis/scripts/common/session_context.py +1159 -1159
  163. package/dist/templates/trellis/scripts/common/session_memory.py +360 -360
  164. package/dist/templates/trellis/scripts/common/smart_search_evidence.py +514 -514
  165. package/dist/templates/trellis/scripts/common/smart_search_resolve.py +1 -1
  166. package/dist/templates/trellis/scripts/common/subagent_dispatch.py +7 -7
  167. package/dist/templates/trellis/scripts/common/task_context.py +1 -1
  168. package/dist/templates/trellis/scripts/common/task_dashboard.py +140 -140
  169. package/dist/templates/trellis/scripts/common/task_gates.py +2056 -2034
  170. package/dist/templates/trellis/scripts/common/task_store.py +1594 -1594
  171. package/dist/templates/trellis/scripts/common/task_utils.py +3 -3
  172. package/dist/templates/trellis/scripts/common/tasks.py +1 -1
  173. package/dist/templates/trellis/scripts/common/trellis_config.py +3 -3
  174. package/dist/templates/trellis/scripts/common/workflow_phase.py +1 -1
  175. package/dist/templates/trellis/scripts/cursor_retrieval_probe.py +3 -3
  176. package/dist/templates/trellis/scripts/cursor_retrieval_probe_prompt.md +11 -11
  177. package/dist/templates/trellis/scripts/hooks/linear_sync.py +8 -8
  178. package/dist/templates/trellis/scripts/init_developer.py +2 -2
  179. package/dist/templates/trellis/scripts/retrieval_probe_matrix_template.json +4 -4
  180. package/dist/templates/trellis/scripts/route_codebase_retrieval.py +1 -1
  181. package/dist/templates/trellis/scripts/task.py +918 -918
  182. package/dist/templates/trellis/tasks/templates/release-readiness/implement.md +2 -2
  183. package/dist/templates/trellis/workflow.md +805 -805
  184. package/dist/types/ai-tools.d.ts +1 -1
  185. package/dist/types/ai-tools.d.ts.map +1 -1
  186. package/dist/types/ai-tools.js +1 -1
  187. package/dist/types/ai-tools.js.map +1 -1
  188. package/dist/types/migration.d.ts +1 -1
  189. package/dist/types/migration.d.ts.map +1 -1
  190. package/dist/utils/agents-md.d.ts +37 -0
  191. package/dist/utils/agents-md.d.ts.map +1 -0
  192. package/dist/utils/agents-md.js +82 -0
  193. package/dist/utils/agents-md.js.map +1 -0
  194. package/dist/utils/codebase-retrieval-router.js +5 -5
  195. package/dist/utils/codebase-retrieval-router.js.map +1 -1
  196. package/dist/utils/manifest-prune.d.ts +2 -2
  197. package/dist/utils/manifest-prune.js +4 -4
  198. package/dist/utils/manifest-prune.js.map +1 -1
  199. package/dist/utils/mirror-check.d.ts +3 -1
  200. package/dist/utils/mirror-check.d.ts.map +1 -1
  201. package/dist/utils/mirror-check.js +22 -11
  202. package/dist/utils/mirror-check.js.map +1 -1
  203. package/dist/utils/project-capabilities.d.ts +14 -3
  204. package/dist/utils/project-capabilities.d.ts.map +1 -1
  205. package/dist/utils/project-capabilities.js +127 -17
  206. package/dist/utils/project-capabilities.js.map +1 -1
  207. package/dist/utils/readiness.d.ts +10 -0
  208. package/dist/utils/readiness.d.ts.map +1 -1
  209. package/dist/utils/readiness.js +6 -3
  210. package/dist/utils/readiness.js.map +1 -1
  211. package/dist/utils/retrieval-agent-instructions.js +1 -1
  212. package/dist/utils/retrieval-agent-instructions.js.map +1 -1
  213. package/dist/utils/retrieval-execution-telemetry.js +1 -1
  214. package/dist/utils/retrieval-execution-telemetry.js.map +1 -1
  215. package/dist/utils/template-fetcher.js +1 -1
  216. package/dist/utils/template-fetcher.js.map +1 -1
  217. package/dist/utils/template-hash.d.ts +2 -2
  218. package/dist/utils/template-hash.d.ts.map +1 -1
  219. package/dist/utils/template-hash.js +12 -10
  220. package/dist/utils/template-hash.js.map +1 -1
  221. package/dist/utils/workflow-dir.d.ts +13 -0
  222. package/dist/utils/workflow-dir.d.ts.map +1 -0
  223. package/dist/utils/workflow-dir.js +35 -0
  224. package/dist/utils/workflow-dir.js.map +1 -0
  225. package/dist/utils/workflow-ownership.d.ts +36 -0
  226. package/dist/utils/workflow-ownership.d.ts.map +1 -0
  227. package/dist/utils/workflow-ownership.js +137 -0
  228. package/dist/utils/workflow-ownership.js.map +1 -0
  229. package/dist/utils/workflow-resolver.d.ts +1 -1
  230. package/dist/utils/workflow-resolver.js +1 -1
  231. package/package.json +3 -4
  232. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +0 -83
  233. /package/bin/{trellis.js → cstl.js} +0 -0
  234. /package/dist/templates/common/bundled-skills/{trellis-spec-bootstrap → cstl-spec-bootstrap}/references/mcp-setup.md +0 -0
@@ -1,75 +1,75 @@
1
- ---
2
- name: trellis-meta
3
- description: "Understand and customize the local Trellis architecture inside a user project. Use when modifying .trellis plus platform hooks, settings, agents, skills, commands, prompts, or workflows generated by trellis init."
4
- ---
5
-
6
- # Trellis Meta
7
-
8
- This skill is for local Trellis users who have already run `trellis init` in a project. After reading it, an AI should understand the Trellis architecture, operating model, and customization entry points inside that user project, then modify the generated `.trellis/` and platform directory files according to the user's request.
9
-
10
- The default operating scope is local files in the user project:
11
-
12
- - `.trellis/`: workflow, config, tasks, spec, workspace, scripts, and runtime state.
13
- - Platform directory: `.cursor/` — skills, agents, hooks, commands, rules.
14
- - Shared skill layer: `.agents/skills/` (industry skill-sharing path, kept when present but not extended by new Trellis behavior).
15
-
16
- Trellis previously supported many AI-platform adapter directories (`.claude/`, `.codex/`, `.opencode/`, `.kiro/`, `.gemini/`, `.qoder/`, `.codebuddy/`, `.github/`, `.factory/`, `.pi/`, `.kilocode/`, `.agent/`, `.windsurf/`). The project has converged on **Cursor-only**. Legacy adapter directories in upgraded projects are preserved by `trellis update` but new Trellis behavior ships to `.cursor/` only.
17
-
18
- Do not assume the user has the Trellis source repository. Do not default to modifying the global npm install directory or `node_modules`.
19
-
20
- ## How To Use
21
-
22
- 1. Read `references/local-architecture/overview.md` first to establish the local Trellis system model.
23
- 2. If the request involves a specific AI tool, read `references/platform-files/platform-map.md` and the relevant platform file notes.
24
- 3. If the user wants to change behavior, read `references/customize-local/overview.md`, then open the specific customization topic.
25
- 4. Before editing, read the actual files in the user project and treat local content as authoritative.
26
-
27
- ## References
28
-
29
- ### Local Architecture
30
-
31
- - `references/local-architecture/overview.md`: The three-layer local Trellis architecture and customization principles.
32
- - `references/local-architecture/generated-files.md`: Files generated by `trellis init` and their customization boundaries.
33
- - `references/local-architecture/workflow.md`: Phases, routing, and workflow-state blocks in `.trellis/workflow.md`.
34
- - `references/local-architecture/task-system.md`: Task directories, selected tasks, JSONL context, and task runtime.
35
- - `references/local-architecture/spec-system.md`: How `.trellis/spec/` is organized and injected.
36
- - `references/local-architecture/workspace-memory.md`: `.trellis/workspace/`, journals, and cross-session memory.
37
- - `references/local-architecture/context-injection.md`: Hooks, sub-agent preludes, and context injection paths.
38
-
39
- ### Platform Files
40
-
41
- - `references/platform-files/overview.md`: How shared `.trellis/` files relate to platform directories.
42
- - `references/platform-files/platform-map.md`: Platform directories and paths for skills, agents, hooks, and extensions.
43
- - `references/platform-files/hooks-and-settings.md`: How settings/config files, hooks, plugins, and extensions connect to Trellis.
44
- - `references/platform-files/agents.md`: Local file responsibilities for `trellis-research`, `trellis-implement`, and `trellis-check`.
45
- - `references/platform-files/skills-and-commands.md`: Differences between skills, commands, prompts, and workflows, plus how to change them.
46
-
47
- ### Local Customization
48
-
49
- - `references/customize-local/overview.md`: Choose the right local customization entry point for the user's request.
50
- - `references/customize-local/change-workflow.md`: Change phases, routing, next actions, and workflow-state.
51
- - `references/customize-local/change-task-lifecycle.md`: Change task creation, status, archive behavior, and hooks.
52
- - `references/customize-local/change-context-loading.md`: Change how tasks, specs, journals, and hook context are loaded.
53
- - `references/customize-local/change-hooks.md`: Change platform hooks, settings, and shell session bridges.
54
- - `references/customize-local/change-agents.md`: Change research, implement, and check agent behavior.
55
- - `references/customize-local/change-skills-or-commands.md`: Add or modify local skills, commands, prompts, and workflows.
56
- - `references/customize-local/change-spec-structure.md`: Adjust the project spec structure under `.trellis/spec/`.
57
- - `references/customize-local/add-project-local-conventions.md`: Put team rules into project-local specs or local skills.
58
-
59
- ## Current Rules
60
-
61
- - `.trellis/workflow.md` is the local workflow source of truth.
62
- - `.trellis/config.yaml` is the project-level Trellis configuration and task hook configuration entry point.
63
- - `.trellis/spec/` stores the user's project-specific coding conventions and design constraints.
64
- - `.trellis/tasks/` stores task PRDs, technical notes, research files, and JSONL context.
65
- - `.trellis/workspace/` stores developer journals and cross-session memory.
66
- - Platform settings/config files decide which hooks, agents, skills, commands, prompts, and workflows actually run.
67
- - `.trellis/.template-hashes.json` and `.trellis/.runtime/` are management/runtime state files. Confirm necessity before editing them.
68
-
69
- ## Do Not
70
-
71
- - Do not treat Trellis upstream source code as the default target for local customization.
72
- - Do not modify the global npm install directory or `node_modules/@blxzer/cursor-trellis` to implement project needs.
73
- - Do not overwrite user-modified local files with default templates.
74
- - Do not put team-private project rules into the public `trellis-meta`; put project rules in `.trellis/spec/` or a project-local skill.
75
- - Do not describe removed historical mechanisms as current Trellis behavior.
1
+ ---
2
+ name: cstl-meta
3
+ description: "Understand and customize the local Trellis architecture inside a user project. Use when modifying .cstl plus platform hooks, settings, agents, skills, commands, prompts, or workflows generated by cstl init."
4
+ ---
5
+
6
+ # Trellis Meta
7
+
8
+ This skill is for local Trellis users who have already run `cstl init` in a project. After reading it, an AI should understand the Trellis architecture, operating model, and customization entry points inside that user project, then modify the generated `.cstl/` and platform directory files according to the user's request.
9
+
10
+ The default operating scope is local files in the user project:
11
+
12
+ - `.cstl/`: workflow, config, tasks, spec, workspace, scripts, and runtime state.
13
+ - Platform directory: `.cursor/` — skills, agents, hooks, commands, rules.
14
+ - Shared skill layer: `.agents/skills/` (industry skill-sharing path, kept when present but not extended by new Trellis behavior).
15
+
16
+ Trellis previously supported many AI-platform adapter directories (`.claude/`, `.codex/`, `.opencode/`, `.kiro/`, `.gemini/`, `.qoder/`, `.codebuddy/`, `.github/`, `.factory/`, `.pi/`, `.kilocode/`, `.agent/`, `.windsurf/`). The project has converged on **Cursor-only**. Legacy adapter directories in upgraded projects are preserved by `cstl update` but new Trellis behavior ships to `.cursor/` only.
17
+
18
+ Do not assume the user has the Trellis source repository. Do not default to modifying the global npm install directory or `node_modules`.
19
+
20
+ ## How To Use
21
+
22
+ 1. Read `references/local-architecture/overview.md` first to establish the local Trellis system model.
23
+ 2. If the request involves a specific AI tool, read `references/platform-files/platform-map.md` and the relevant platform file notes.
24
+ 3. If the user wants to change behavior, read `references/customize-local/overview.md`, then open the specific customization topic.
25
+ 4. Before editing, read the actual files in the user project and treat local content as authoritative.
26
+
27
+ ## References
28
+
29
+ ### Local Architecture
30
+
31
+ - `references/local-architecture/overview.md`: The three-layer local Trellis architecture and customization principles.
32
+ - `references/local-architecture/generated-files.md`: Files generated by `cstl init` and their customization boundaries.
33
+ - `references/local-architecture/workflow.md`: Phases, routing, and workflow-state blocks in `.cstl/workflow.md`.
34
+ - `references/local-architecture/task-system.md`: Task directories, selected tasks, JSONL context, and task runtime.
35
+ - `references/local-architecture/spec-system.md`: How `.cstl/spec/` is organized and injected.
36
+ - `references/local-architecture/workspace-memory.md`: `.cstl/workspace/`, journals, and cross-session memory.
37
+ - `references/local-architecture/context-injection.md`: Hooks, sub-agent preludes, and context injection paths.
38
+
39
+ ### Platform Files
40
+
41
+ - `references/platform-files/overview.md`: How shared `.cstl/` files relate to platform directories.
42
+ - `references/platform-files/platform-map.md`: Platform directories and paths for skills, agents, hooks, and extensions.
43
+ - `references/platform-files/hooks-and-settings.md`: How settings/config files, hooks, plugins, and extensions connect to Trellis.
44
+ - `references/platform-files/agents.md`: Local file responsibilities for `cstl-research`, `cstl-implement`, and `cstl-check`.
45
+ - `references/platform-files/skills-and-commands.md`: Differences between skills, commands, prompts, and workflows, plus how to change them.
46
+
47
+ ### Local Customization
48
+
49
+ - `references/customize-local/overview.md`: Choose the right local customization entry point for the user's request.
50
+ - `references/customize-local/change-workflow.md`: Change phases, routing, next actions, and workflow-state.
51
+ - `references/customize-local/change-task-lifecycle.md`: Change task creation, status, archive behavior, and hooks.
52
+ - `references/customize-local/change-context-loading.md`: Change how tasks, specs, journals, and hook context are loaded.
53
+ - `references/customize-local/change-hooks.md`: Change platform hooks, settings, and shell session bridges.
54
+ - `references/customize-local/change-agents.md`: Change research, implement, and check agent behavior.
55
+ - `references/customize-local/change-skills-or-commands.md`: Add or modify local skills, commands, prompts, and workflows.
56
+ - `references/customize-local/change-spec-structure.md`: Adjust the project spec structure under `.cstl/spec/`.
57
+ - `references/customize-local/add-project-local-conventions.md`: Put team rules into project-local specs or local skills.
58
+
59
+ ## Current Rules
60
+
61
+ - `.cstl/workflow.md` is the local workflow source of truth.
62
+ - `.cstl/config.yaml` is the project-level Trellis configuration and task hook configuration entry point.
63
+ - `.cstl/spec/` stores the user's project-specific coding conventions and design constraints.
64
+ - `.cstl/tasks/` stores task PRDs, technical notes, research files, and JSONL context.
65
+ - `.cstl/workspace/` stores developer journals and cross-session memory.
66
+ - Platform settings/config files decide which hooks, agents, skills, commands, prompts, and workflows actually run.
67
+ - `.cstl/.template-hashes.json` and `.cstl/.runtime/` are management/runtime state files. Confirm necessity before editing them.
68
+
69
+ ## Do Not
70
+
71
+ - Do not treat Trellis upstream source code as the default target for local customization.
72
+ - Do not modify the global npm install directory or `node_modules/@blxzer/cursor-trellis` to implement project needs.
73
+ - Do not overwrite user-modified local files with default templates.
74
+ - Do not put team-private project rules into the public `cstl-meta`; put project rules in `.cstl/spec/` or a project-local skill.
75
+ - Do not describe removed historical mechanisms as current Trellis behavior.
@@ -1,16 +1,16 @@
1
1
  # Add Project-Local Conventions
2
2
 
3
- Often the user does not need to change Trellis mechanics; they need local AI to understand their team's conventions. In that case, prefer `.trellis/spec/` or a project-local skill instead of editing `trellis-meta`.
3
+ Often the user does not need to change Trellis mechanics; they need local AI to understand their team's conventions. In that case, prefer `.cstl/spec/` or a project-local skill instead of editing `cstl-meta`.
4
4
 
5
5
  ## Where To Put Things
6
6
 
7
7
  | Content type | Location |
8
8
  | --- | --- |
9
- | Rules code must follow | `.trellis/spec/<layer>/` |
10
- | Cross-layer thinking methods | `.trellis/spec/guides/` |
9
+ | Rules code must follow | `.cstl/spec/<layer>/` |
10
+ | Cross-layer thinking methods | `.cstl/spec/guides/` |
11
11
  | AI capability for a project-specific flow | Platform-local skill |
12
- | One-off task material | `.trellis/tasks/<task>/` |
13
- | Session summary | `.trellis/workspace/<developer>/journal-N.md` |
12
+ | One-off task material | `.cstl/tasks/<task>/` |
13
+ | Session summary | `.cstl/workspace/<developer>/journal-N.md` |
14
14
 
15
15
  ## Create A Project-Local Skill
16
16
 
@@ -50,34 +50,34 @@ This skill documents this repository's Trellis customizations only.
50
50
 
51
51
  For multi-platform projects, place equivalent versions in other platform skill directories, or use `.agents/skills/` for platforms that support the shared layer.
52
52
 
53
- ## Write To `.trellis/spec/`
53
+ ## Write To `.cstl/spec/`
54
54
 
55
55
  If the content is a coding convention, write it to spec. Examples:
56
56
 
57
57
  ```text
58
- .trellis/spec/backend/error-handling.md
59
- .trellis/spec/frontend/components.md
60
- .trellis/spec/guides/cross-platform-thinking-guide.md
58
+ .cstl/spec/backend/error-handling.md
59
+ .cstl/spec/frontend/components.md
60
+ .cstl/spec/guides/cross-platform-thinking-guide.md
61
61
  ```
62
62
 
63
63
  After writing it, update the corresponding `index.md` so AI can find the new rule from the entry point.
64
64
 
65
- ## Make The Selected Task Use New Conventions
66
-
67
- After writing a spec, add it to the selected task context:
65
+ ## Make The Selected Task Use New Conventions
66
+
67
+ After writing a spec, add it to the selected task context:
68
68
 
69
69
  ```bash
70
- python3 ./.trellis/scripts/task.py add-context <task> implement ".trellis/spec/backend/error-handling.md" "Error handling conventions"
71
- python3 ./.trellis/scripts/task.py add-context <task> check ".trellis/spec/backend/error-handling.md" "Review error handling"
70
+ python3 ./.cstl/scripts/task.py add-context <task> implement ".cstl/spec/backend/error-handling.md" "Error handling conventions"
71
+ python3 ./.cstl/scripts/task.py add-context <task> check ".cstl/spec/backend/error-handling.md" "Review error handling"
72
72
  ```
73
73
 
74
- ## Do Not Store Project-Private Rules In `trellis-meta`
74
+ ## Do Not Store Project-Private Rules In `cstl-meta`
75
75
 
76
- `trellis-meta` is a public skill for understanding Trellis architecture and local customization entry points. Put project-private content in:
76
+ `cstl-meta` is a public skill for understanding Trellis architecture and local customization entry points. Put project-private content in:
77
77
 
78
- - `.trellis/spec/`
78
+ - `.cstl/spec/`
79
79
  - a project-local skill
80
- - the selected task
80
+ - the selected task
81
81
  - workspace journal
82
82
 
83
- This prevents future updates to Trellis's built-in `trellis-meta` from overwriting the team's own conventions.
83
+ This prevents future updates to Trellis's built-in `cstl-meta` from overwriting the team's own conventions.
@@ -1,11 +1,11 @@
1
1
  # Change Local Agents
2
2
 
3
- When the user wants to change `trellis-research`, `trellis-implement`, or `trellis-check` behavior, edit platform agent files in the user project.
3
+ When the user wants to change `cstl-research`, `cstl-implement`, or `cstl-check` behavior, edit platform agent files in the user project.
4
4
 
5
5
  ## Read These Files First
6
6
 
7
7
  1. Target platform agent directory
8
- 2. `.trellis/workflow.md` Phase 2 / research routing
8
+ 2. `.cstl/workflow.md` Phase 2 / research routing
9
9
  3. Selected task `prd.md`
10
10
  4. Selected task `implement.jsonl` / `check.jsonl`
11
11
  5. Relevant hook or agent prelude
@@ -14,7 +14,7 @@ When the user wants to change `trellis-research`, `trellis-implement`, or `trell
14
14
 
15
15
  | Platform | Path |
16
16
  | --- | --- |
17
- | Cursor | `.cursor/agents/trellis-*.md` |
17
+ | Cursor | `.cursor/agents/cstl-*.md` |
18
18
 
19
19
  If a user project still contains legacy platform agent directories (`.claude/agents/`, `.codex/agents/`, etc.), inspect them but route new agent definitions to `.cursor/agents/`.
20
20
 
@@ -24,19 +24,19 @@ Use the actual paths in the user project as authoritative.
24
24
 
25
25
  | Need | Which agent to edit |
26
26
  | --- | --- |
27
- | Research must write files, not only reply in chat | `trellis-research` |
28
- | Certain local specs must be read before implementation | `trellis-implement` + `implement.jsonl` configuration rules |
29
- | Specific commands must run during checking | `trellis-check` |
27
+ | Research must write files, not only reply in chat | `cstl-research` |
28
+ | Certain local specs must be read before implementation | `cstl-implement` + `implement.jsonl` configuration rules |
29
+ | Specific commands must run during checking | `cstl-check` |
30
30
  | Agent must not modify certain directories | The corresponding agent's write boundary instructions |
31
31
  | Agent output format must be fixed | The corresponding agent's final/reporting instructions |
32
32
 
33
33
  ## Modification Principles
34
34
 
35
35
  1. **Preserve role boundaries**: research investigates and persists; implement writes implementation; check reviews and fixes.
36
- 2. **Do not hard-code project specs into agents**: long-term specs belong in `.trellis/spec/`; agents are responsible for reading them.
36
+ 2. **Do not hard-code project specs into agents**: long-term specs belong in `.cstl/spec/`; agents are responsible for reading them.
37
37
  3. **Make read order explicit**: selected task -> PRD -> info -> JSONL -> spec/research.
38
38
  4. **Make write boundaries explicit**: which directories may be written and which may not.
39
- 5. **Treat dogfood + published copies consistently**: `.cursor/agents/trellis-*.md` (dogfooded) and `packages/cli/src/templates/cursor/agents/trellis-*.md` (published template) must stay in sync — see `cross-layer-thinking-guide.md.txt` → Cross-Package Template Consistency.
39
+ 5. **Treat dogfood + published copies consistently**: `.cursor/agents/cstl-*.md` (dogfooded) and `packages/cli/src/templates/cursor/agents/cstl-*.md` (published template) must stay in sync — see `cross-layer-thinking-guide.md.txt` → Cross-Package Template Consistency.
40
40
 
41
41
  ## Agent Pull Mode
42
42
 
@@ -1,29 +1,29 @@
1
1
  # Change Local Context Loading
2
2
 
3
- Context loading determines when AI reads workflow, task, spec, research, workspace, and git status. Read this page when the user says "AI does not know the selected task," "the agent did not read specs," or "there is too much/too little context."
3
+ Context loading determines when AI reads workflow, task, spec, research, workspace, and git status. Read this page when the user says "AI does not know the selected task," "the agent did not read specs," or "there is too much/too little context."
4
4
 
5
5
  ## Read These Files First
6
6
 
7
- 1. `.trellis/workflow.md`
8
- 2. `.trellis/scripts/get_context.py`
9
- 3. `.trellis/scripts/common/session_context.py`
10
- 4. `.trellis/scripts/common/task_context.py`
11
- 5. `.trellis/scripts/common/active_task.py`
7
+ 1. `.cstl/workflow.md`
8
+ 2. `.cstl/scripts/get_context.py`
9
+ 3. `.cstl/scripts/common/session_context.py`
10
+ 4. `.cstl/scripts/common/task_context.py`
11
+ 5. `.cstl/scripts/common/active_task.py`
12
12
  6. Current platform hooks or agent files
13
- 7. The selected task's `implement.jsonl` / `check.jsonl`
13
+ 7. The selected task's `implement.jsonl` / `check.jsonl`
14
14
 
15
15
  ## Context Sources
16
16
 
17
17
  | Source | Purpose |
18
18
  | --- | --- |
19
- | `.trellis/workflow.md` | Workflow and next-action hints. |
20
- | `.trellis/tasks/<task>/prd.md` | Selected task requirements. |
21
- | `.trellis/tasks/<task>/design.md` | Complex task technical design. |
22
- | `.trellis/tasks/<task>/implement.md` | Complex task execution plan. |
23
- | `.trellis/tasks/<task>/implement.jsonl` | Spec/research to read before implementation. |
24
- | `.trellis/tasks/<task>/check.jsonl` | Spec/research to read during checking. |
25
- | `.trellis/spec/` | Project specs. |
26
- | `.trellis/workspace/` | Session records. |
19
+ | `.cstl/workflow.md` | Workflow and next-action hints. |
20
+ | `.cstl/tasks/<task>/prd.md` | Selected task requirements. |
21
+ | `.cstl/tasks/<task>/design.md` | Complex task technical design. |
22
+ | `.cstl/tasks/<task>/implement.md` | Complex task execution plan. |
23
+ | `.cstl/tasks/<task>/implement.jsonl` | Spec/research to read before implementation. |
24
+ | `.cstl/tasks/<task>/check.jsonl` | Spec/research to read during checking. |
25
+ | `.cstl/spec/` | Project specs. |
26
+ | `.cstl/workspace/` | Session records. |
27
27
  | git status | Current working tree changes. |
28
28
 
29
29
  ## Common Needs And Edit Points
@@ -31,9 +31,9 @@ Context loading determines when AI reads workflow, task, spec, research, workspa
31
31
  | Need | Edit point |
32
32
  | --- | --- |
33
33
  | Inject more/less information in new sessions | `session_context.py` or the platform `session-start` hook. |
34
- | Change hints on each user input | `[workflow-state:STATUS]` block in `.trellis/workflow.md`. The `inject-workflow-state` hook is parser-only and reads the block verbatim. |
34
+ | Change hints on each user input | `[workflow-state:STATUS]` block in `.cstl/workflow.md`. The `inject-workflow-state` hook is parser-only and reads the block verbatim. |
35
35
  | Agent did not read specs | Task JSONL, agent prelude, `inject-subagent-context` hook. |
36
- | Selected task is lost | `active_task.py` and platform session identity propagation. |
36
+ | Selected task is lost | `active_task.py` and platform session identity propagation. |
37
37
  | Change JSONL validation rules | `task_context.py`. |
38
38
 
39
39
  ## JSONL Rules
@@ -41,8 +41,8 @@ Context loading determines when AI reads workflow, task, spec, research, workspa
41
41
  `implement.jsonl` / `check.jsonl` are the key context loading interface:
42
42
 
43
43
  ```jsonl
44
- {"file": ".trellis/spec/backend/index.md", "reason": "Backend conventions"}
45
- {"file": ".trellis/tasks/04-28-x/research/api.md", "reason": "API research"}
44
+ {"file": ".cstl/spec/backend/index.md", "reason": "Backend conventions"}
45
+ {"file": ".cstl/tasks/04-28-x/research/api.md", "reason": "API research"}
46
46
  ```
47
47
 
48
48
  Include only spec/research files. Do not put code files that will be modified into these manifests; agents read code files themselves during implementation.
@@ -51,7 +51,7 @@ Include only spec/research files. Do not put code files that will be modified in
51
51
 
52
52
  If the user wants every new session to see more project state, edit:
53
53
 
54
- - `.trellis/scripts/common/session_context.py`
54
+ - `.cstl/scripts/common/session_context.py`
55
55
  - the corresponding platform `session-start` hook
56
56
 
57
57
  Context cannot grow without bound. Prefer injecting indexes and paths so the AI can read detailed files on demand.
@@ -61,11 +61,11 @@ Context cannot grow without bound. Prefer injecting indexes and paths so the AI
61
61
  First determine which mode the platform uses:
62
62
 
63
63
  - hook push: edit the `inject-subagent-context` hook.
64
- - agent pull: edit the read steps in the corresponding `trellis-implement` / `trellis-check` agent file.
64
+ - agent pull: edit the read steps in the corresponding `cstl-implement` / `cstl-check` agent file.
65
65
 
66
66
  In both modes, make sure the agent ultimately reads:
67
67
 
68
- 1. selected task
68
+ 1. selected task
69
69
  2. the corresponding JSONL
70
70
  3. spec/research referenced by the JSONL
71
71
  4. `prd.md`
@@ -75,10 +75,10 @@ In both modes, make sure the agent ultimately reads:
75
75
  ## Troubleshooting Order
76
76
 
77
77
  ```bash
78
- python3 ./.trellis/scripts/task.py selected --source
79
- python3 ./.trellis/scripts/task.py list-context <task>
80
- python3 ./.trellis/scripts/task.py validate <task>
81
- python3 ./.trellis/scripts/get_context.py --mode packages
78
+ python3 ./.cstl/scripts/task.py selected --source
79
+ python3 ./.cstl/scripts/task.py list-context <task>
80
+ python3 ./.cstl/scripts/task.py validate <task>
81
+ python3 ./.cstl/scripts/get_context.py --mode packages
82
82
  ```
83
83
 
84
84
  Confirm the task and JSONL are correct before editing hooks/agents.
@@ -6,9 +6,9 @@ Hooks are the automation layer that connects a platform to Trellis. When the use
6
6
 
7
7
  1. Target platform settings/config: `.cursor/hooks.json`
8
8
  2. Target platform hooks directory
9
- 3. `.trellis/scripts/common/active_task.py`
10
- 4. `.trellis/scripts/common/session_context.py`
11
- 5. `.trellis/workflow.md`
9
+ 3. `.cstl/scripts/common/active_task.py`
10
+ 4. `.cstl/scripts/common/session_context.py`
11
+ 5. `.cstl/workflow.md`
12
12
 
13
13
  ## Common Hook Types
14
14
 
@@ -23,9 +23,9 @@ Hooks are the automation layer that connects a platform to Trellis. When the use
23
23
 
24
24
  1. Find the hook registration in settings/config.
25
25
  2. Confirm the registered script path exists.
26
- 3. Read the hook script and identify inputs, outputs, and called `.trellis/scripts/`.
26
+ 3. Read the hook script and identify inputs, outputs, and called `.cstl/scripts/`.
27
27
  4. Modify hook behavior.
28
- 5. If the hook depends on workflow content, synchronize `.trellis/workflow.md`.
28
+ 5. If the hook depends on workflow content, synchronize `.cstl/workflow.md`.
29
29
 
30
30
  ## Example: Change New-Session Injection Content
31
31
 
@@ -36,15 +36,15 @@ First find the session-start hook:
36
36
  .cursor/hooks/session-start.py
37
37
  ```
38
38
 
39
- If the hook ultimately calls `.trellis/scripts/get_context.py` or `session_context.py`, editing the local script is usually more robust than hard-coding content in the hook.
39
+ If the hook ultimately calls `.cstl/scripts/get_context.py` or `session_context.py`, editing the local script is usually more robust than hard-coding content in the hook.
40
40
 
41
41
  ## Example: Agent Did Not Read JSONL
42
42
 
43
43
  First confirm:
44
44
 
45
45
  ```bash
46
- python3 ./.trellis/scripts/task.py selected --source
47
- python3 ./.trellis/scripts/task.py validate <task>
46
+ python3 ./.cstl/scripts/task.py selected --source
47
+ python3 ./.cstl/scripts/task.py validate <task>
48
48
  ```
49
49
 
50
50
  If the task and JSONL are correct, determine whether the platform uses hook push or agent pull. For hook push, edit `inject-subagent-context`; for agent pull, edit the agent file.
@@ -53,5 +53,5 @@ If the task and JSONL are correct, determine whether the platform uses hook push
53
53
 
54
54
  - Settings handle registration, hook scripts handle behavior; inspect both together.
55
55
  - Cursor's hook event surface has changed between releases; confirm against the current Cursor build before wiring a new event.
56
- - Hooks should read project-local `.trellis/`; they should not depend on Trellis upstream source paths.
56
+ - Hooks should read project-local `.cstl/`; they should not depend on Trellis upstream source paths.
57
57
  - Hook failures should produce visible errors so AI does not silently lose context.
@@ -4,10 +4,10 @@ When the user wants to change AI entry points, auto-trigger rules, or explicit c
4
4
 
5
5
  ## Read These Files First
6
6
 
7
- 1. `.trellis/workflow.md`
7
+ 1. `.cstl/workflow.md`
8
8
  2. Target platform skill/command/prompt/workflow directory
9
9
  3. Related agent or hook files
10
- 4. Whether project rules already exist in `.trellis/spec/`
10
+ 4. Whether project rules already exist in `.cstl/spec/`
11
11
 
12
12
  ## Which Entry Type To Choose
13
13
 
@@ -15,8 +15,8 @@ When the user wants to change AI entry points, auto-trigger rules, or explicit c
15
15
  | --- | --- |
16
16
  | AI should automatically know a capability | Add or modify a skill. |
17
17
  | User wants to trigger manually with a command | Add or modify a command/prompt/workflow. |
18
- | Team project conventions | Prefer `.trellis/spec/` or a project-local skill. |
19
- | Change Trellis flow semantics | Synchronize `.trellis/workflow.md`. |
18
+ | Team project conventions | Prefer `.cstl/spec/` or a project-local skill. |
19
+ | Change Trellis flow semantics | Synchronize `.cstl/workflow.md`. |
20
20
 
21
21
  ## Modify A Skill
22
22
 
@@ -30,7 +30,7 @@ A skill is usually:
30
30
 
31
31
  `SKILL.md` should be short and responsible for triggering/routing. Put long content in `references/` so AI can read it on demand.
32
32
 
33
- For detailed skill authoring and review rules, use `trellis-skill-creator`. This `trellis-meta` page only identifies where local Trellis skill, command, prompt, and workflow changes belong.
33
+ For detailed skill authoring and review rules, use `cstl-skill-creator`. This `cstl-meta` page only identifies where local Trellis skill, command, prompt, and workflow changes belong.
34
34
 
35
35
  The frontmatter description should specify when to use the skill. Example:
36
36
 
@@ -45,11 +45,11 @@ Do not write vague descriptions such as "helpful project skill"; they can trigge
45
45
  Explicit entry points should state:
46
46
 
47
47
  - How the user triggers it.
48
- - Which `.trellis/` files to read.
48
+ - Which `.cstl/` files to read.
49
49
  - Which scripts to run.
50
50
  - How to report after completion.
51
51
 
52
- If a command only repeats workflow rules, prefer making it reference/read `.trellis/workflow.md` instead of maintaining a second copy of the flow.
52
+ If a command only repeats workflow rules, prefer making it reference/read `.cstl/workflow.md` instead of maintaining a second copy of the flow.
53
53
 
54
54
  ## Common Paths
55
55
 
@@ -74,4 +74,4 @@ For shared skill layers across tools, consider `.agents/skills/` on platforms th
74
74
 
75
75
  - Do not mix platform-specific syntax from removed adapters into the Cursor skill files.
76
76
  - Do not change only the dogfooded `.cursor/skills/` copy while forgetting to mirror the published template `packages/cli/src/templates/cursor/skills/` (and vice versa); see `cross-layer-thinking-guide.md.txt` → Cross-Package Template Consistency.
77
- - Do not hide long-term engineering conventions inside a command; write them to `.trellis/spec/`.
77
+ - Do not hide long-term engineering conventions inside a command; write them to `.cstl/spec/`.
@@ -1,23 +1,23 @@
1
1
  # Change Local Spec Structure
2
2
 
3
- When the user wants to change the engineering conventions AI follows, add new spec layers, or adjust monorepo package mapping, edit `.trellis/spec/` and `.trellis/config.yaml`.
3
+ When the user wants to change the engineering conventions AI follows, add new spec layers, or adjust monorepo package mapping, edit `.cstl/spec/` and `.cstl/config.yaml`.
4
4
 
5
5
  ## Read These Files First
6
6
 
7
- 1. `.trellis/config.yaml`
8
- 2. `.trellis/spec/`
9
- 3. `.trellis/workflow.md` planning artifact guidance and Phase 3.3
10
- 4. Selected task `implement.jsonl` / `check.jsonl`
7
+ 1. `.cstl/config.yaml`
8
+ 2. `.cstl/spec/`
9
+ 3. `.cstl/workflow.md` planning artifact guidance and Phase 3.3
10
+ 4. Selected task `implement.jsonl` / `check.jsonl`
11
11
 
12
12
  ## Common Needs
13
13
 
14
14
  | Need | Edit location |
15
15
  | --- | --- |
16
- | Add backend/frontend/docs/test spec layer | `.trellis/spec/<layer>/` or `.trellis/spec/<package>/<layer>/` |
17
- | Add shared thinking guides | `.trellis/spec/guides/` |
18
- | Adjust monorepo packages | `packages` in `.trellis/config.yaml` |
19
- | Change default package | `default_package` in `.trellis/config.yaml` |
20
- | Control spec scanning scope | `spec_scope` in `.trellis/config.yaml` |
16
+ | Add backend/frontend/docs/test spec layer | `.cstl/spec/<layer>/` or `.cstl/spec/<package>/<layer>/` |
17
+ | Add shared thinking guides | `.cstl/spec/guides/` |
18
+ | Adjust monorepo packages | `packages` in `.cstl/config.yaml` |
19
+ | Change default package | `default_package` in `.cstl/config.yaml` |
20
+ | Control spec scanning scope | `spec_scope` in `.cstl/config.yaml` |
21
21
  | Make a task read a new spec | Task `implement.jsonl` / `check.jsonl` |
22
22
 
23
23
  ## Add A Spec Layer
@@ -25,7 +25,7 @@ When the user wants to change the engineering conventions AI follows, add new sp
25
25
  Single-repository example:
26
26
 
27
27
  ```text
28
- .trellis/spec/security/
28
+ .cstl/spec/security/
29
29
  ├── index.md
30
30
  └── auth.md
31
31
  ```
@@ -33,7 +33,7 @@ Single-repository example:
33
33
  Monorepo example:
34
34
 
35
35
  ```text
36
- .trellis/spec/webapp/security/
36
+ .cstl/spec/webapp/security/
37
37
  ├── index.md
38
38
  └── auth.md
39
39
  ```
@@ -47,16 +47,16 @@ Monorepo example:
47
47
 
48
48
  ## Update Context
49
49
 
50
- Adding a spec does not mean every task automatically reads it. The selected task must reference it in JSONL:
50
+ Adding a spec does not mean every task automatically reads it. The selected task must reference it in JSONL:
51
51
 
52
52
  ```bash
53
- python3 ./.trellis/scripts/task.py add-context <task> implement ".trellis/spec/webapp/security/index.md" "Security conventions"
54
- python3 ./.trellis/scripts/task.py add-context <task> check ".trellis/spec/webapp/security/index.md" "Security review rules"
53
+ python3 ./.cstl/scripts/task.py add-context <task> implement ".cstl/spec/webapp/security/index.md" "Security conventions"
54
+ python3 ./.cstl/scripts/task.py add-context <task> check ".cstl/spec/webapp/security/index.md" "Security review rules"
55
55
  ```
56
56
 
57
57
  ## Change Monorepo Packages
58
58
 
59
- Example `.trellis/config.yaml`:
59
+ Example `.cstl/config.yaml`:
60
60
 
61
61
  ```yaml
62
62
  packages:
@@ -70,7 +70,7 @@ default_package: webapp
70
70
  After editing, run:
71
71
 
72
72
  ```bash
73
- python3 ./.trellis/scripts/get_context.py --mode packages
73
+ python3 ./.cstl/scripts/get_context.py --mode packages
74
74
  ```
75
75
 
76
76
  Use this output to confirm AI can see the correct packages and spec layers.