@mindfoldhq/trellis 0.5.0-beta.16 → 0.5.0-beta.18

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 (104) hide show
  1. package/README.md +60 -98
  2. package/dist/commands/init.d.ts.map +1 -1
  3. package/dist/commands/init.js +1 -29
  4. package/dist/commands/init.js.map +1 -1
  5. package/dist/commands/update.d.ts.map +1 -1
  6. package/dist/commands/update.js +92 -5
  7. package/dist/commands/update.js.map +1 -1
  8. package/dist/configurators/antigravity.d.ts.map +1 -1
  9. package/dist/configurators/antigravity.js +2 -8
  10. package/dist/configurators/antigravity.js.map +1 -1
  11. package/dist/configurators/claude.d.ts.map +1 -1
  12. package/dist/configurators/claude.js +3 -9
  13. package/dist/configurators/claude.js.map +1 -1
  14. package/dist/configurators/codebuddy.d.ts.map +1 -1
  15. package/dist/configurators/codebuddy.js +2 -2
  16. package/dist/configurators/codebuddy.js.map +1 -1
  17. package/dist/configurators/codex.d.ts.map +1 -1
  18. package/dist/configurators/codex.js +2 -7
  19. package/dist/configurators/codex.js.map +1 -1
  20. package/dist/configurators/copilot.d.ts.map +1 -1
  21. package/dist/configurators/copilot.js +2 -9
  22. package/dist/configurators/copilot.js.map +1 -1
  23. package/dist/configurators/cursor.d.ts.map +1 -1
  24. package/dist/configurators/cursor.js +2 -2
  25. package/dist/configurators/cursor.js.map +1 -1
  26. package/dist/configurators/droid.d.ts.map +1 -1
  27. package/dist/configurators/droid.js +2 -2
  28. package/dist/configurators/droid.js.map +1 -1
  29. package/dist/configurators/gemini.d.ts.map +1 -1
  30. package/dist/configurators/gemini.js +2 -2
  31. package/dist/configurators/gemini.js.map +1 -1
  32. package/dist/configurators/index.d.ts.map +1 -1
  33. package/dist/configurators/index.js +13 -11
  34. package/dist/configurators/index.js.map +1 -1
  35. package/dist/configurators/kilo.d.ts.map +1 -1
  36. package/dist/configurators/kilo.js +2 -8
  37. package/dist/configurators/kilo.js.map +1 -1
  38. package/dist/configurators/kiro.d.ts.map +1 -1
  39. package/dist/configurators/kiro.js +2 -2
  40. package/dist/configurators/kiro.js.map +1 -1
  41. package/dist/configurators/opencode.d.ts.map +1 -1
  42. package/dist/configurators/opencode.js +3 -3
  43. package/dist/configurators/opencode.js.map +1 -1
  44. package/dist/configurators/pi.d.ts.map +1 -1
  45. package/dist/configurators/pi.js +9 -4
  46. package/dist/configurators/pi.js.map +1 -1
  47. package/dist/configurators/qoder.d.ts.map +1 -1
  48. package/dist/configurators/qoder.js +2 -2
  49. package/dist/configurators/qoder.js.map +1 -1
  50. package/dist/configurators/shared.d.ts +21 -2
  51. package/dist/configurators/shared.d.ts.map +1 -1
  52. package/dist/configurators/shared.js +32 -3
  53. package/dist/configurators/shared.js.map +1 -1
  54. package/dist/configurators/windsurf.d.ts.map +1 -1
  55. package/dist/configurators/windsurf.js +2 -8
  56. package/dist/configurators/windsurf.js.map +1 -1
  57. package/dist/constants/paths.d.ts +2 -0
  58. package/dist/constants/paths.d.ts.map +1 -1
  59. package/dist/constants/paths.js +2 -0
  60. package/dist/constants/paths.js.map +1 -1
  61. package/dist/migrations/manifests/0.5.0-beta.17.json +9 -0
  62. package/dist/migrations/manifests/0.5.0-beta.18.json +9 -0
  63. package/dist/templates/codex/skills/finish-work/SKILL.md +41 -109
  64. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +73 -0
  65. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/add-project-local-conventions.md +83 -0
  66. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +54 -0
  67. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +81 -0
  68. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +57 -0
  69. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-skills-or-commands.md +78 -0
  70. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-spec-structure.md +83 -0
  71. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-task-lifecycle.md +79 -0
  72. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-workflow.md +48 -0
  73. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/overview.md +55 -0
  74. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +68 -0
  75. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +80 -0
  76. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +51 -0
  77. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +102 -0
  78. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/task-system.md +101 -0
  79. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/workflow.md +75 -0
  80. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/workspace-memory.md +71 -0
  81. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +79 -0
  82. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +69 -0
  83. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +59 -0
  84. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +74 -0
  85. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +83 -0
  86. package/dist/templates/common/commands/finish-work.md +34 -10
  87. package/dist/templates/common/index.d.ts +22 -2
  88. package/dist/templates/common/index.d.ts.map +1 -1
  89. package/dist/templates/common/index.js +53 -4
  90. package/dist/templates/common/index.js.map +1 -1
  91. package/dist/templates/common/skills/brainstorm.md +3 -0
  92. package/dist/templates/copilot/prompts/finish-work.prompt.md +44 -112
  93. package/dist/templates/markdown/agents.md +8 -0
  94. package/dist/templates/opencode/plugins/inject-subagent-context.js +20 -5
  95. package/dist/templates/opencode/plugins/inject-workflow-state.js +6 -1
  96. package/dist/templates/pi/extensions/trellis/index.ts.txt +499 -51
  97. package/dist/templates/shared-hooks/inject-workflow-state.py +6 -1
  98. package/dist/templates/trellis/scripts/common/task_store.py +4 -16
  99. package/dist/templates/trellis/scripts/common/tasks.py +4 -1
  100. package/dist/templates/trellis/workflow.md +59 -3
  101. package/dist/utils/template-hash.d.ts.map +1 -1
  102. package/dist/utils/template-hash.js +19 -1
  103. package/dist/utils/template-hash.js.map +1 -1
  104. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/configurators/shared.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,MAAM,UAAU,2BAA2B,CACzC,WAA4B,OAAO,CAAC,QAAQ;IAE5C,OAAO,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AACrD,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,kDAAkD;AAClD,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAC5C,MAAM,UAAU,GAAG,+BAA+B,CAAC;AACnD,MAAM,cAAc,GAAG,sBAAsB,CAAC;AAC9C,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAC1D,MAAM,WAAW,GAAG,mBAAmB,CAAC;AACxC,MAAM,cAAc,GAAG,SAAS,CAAC;AAEjC,MAAM,iBAAiB,GAAG,CAAC,eAAe,EAAE,WAAW,CAAU,CAAC;AAClE,MAAM,mBAAmB,GAAG,MAAM,CAAC,WAAW,CAC5C,iBAAiB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;IAC9B,IAAI;IACJ;QACE,GAAG,EAAE,IAAI,MAAM,CACb,UAAU,IAAI,4BAA4B,IAAI,QAAQ,EACtD,GAAG,CACJ;QACD,GAAG,EAAE,IAAI,MAAM,CACb,YAAY,IAAI,4BAA4B,IAAI,QAAQ,EACxD,GAAG,CACJ;KACF;CACF,CAAC,CACyE,CAAC;AAE9E,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,OAAyB;IAEzB,IAAI,MAA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AC,CAAC,OAAO,EAAE,CAAC,CAAC;SAClD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"windsurf.d.ts","sourceRoot":"","sources":["../../src/configurators/windsurf.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBlE"}
1
+ {"version":3,"file":"windsurf.d.ts","sourceRoot":"","sources":["../../src/configurators/windsurf.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBlE"}
@@ -1,7 +1,7 @@
1
1
  import path from "node:path";
2
2
  import { AI_TOOLS } from "../types/ai-tools.js";
3
3
  import { ensureDir, writeFile } from "../utils/file-writer.js";
4
- import { resolveCommands, resolveSkills } from "./shared.js";
4
+ import { resolveBundledSkills, resolveCommands, resolveSkills, writeSkills, } from "./shared.js";
5
5
  /**
6
6
  * Configure Windsurf:
7
7
  * - workflows/ — start + finish-work as slash commands
@@ -14,12 +14,6 @@ export async function configureWindsurf(cwd) {
14
14
  for (const cmd of resolveCommands(ctx)) {
15
15
  await writeFile(path.join(workflowsDir, `trellis-${cmd.name}.md`), cmd.content);
16
16
  }
17
- const skillsDir = path.join(cwd, ".windsurf", "skills");
18
- ensureDir(skillsDir);
19
- for (const skill of resolveSkills(ctx)) {
20
- const skillDir = path.join(skillsDir, skill.name);
21
- ensureDir(skillDir);
22
- await writeFile(path.join(skillDir, "SKILL.md"), skill.content);
23
- }
17
+ await writeSkills(path.join(cwd, ".windsurf", "skills"), resolveSkills(ctx), resolveBundledSkills(ctx));
24
18
  }
25
19
  //# sourceMappingURL=windsurf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"windsurf.js","sourceRoot":"","sources":["../../src/configurators/windsurf.ts"],"names":[],"mappings":"AAAA,OAAO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AC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACZ,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,GAAW;IACjD,MAAM,GAAG,GAAG,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC;IAE9C,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IAC9D,SAAS,CAAC,YAAY,CAAC,CAAC;IACxB,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,MAAM,SAAS,CACb,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,CAAC,IAAI,KAAK,CAAC,EACjD,GAAG,CAAC,OAAO,CACZ,CAAC;IACJ,CAAC;IAED,MAAM,WAAW,CACf,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,QAAQ,CAAC,EACrC,aAAa,CAAC,GAAG,CAAC,EAClB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,CAAC;AACJ,CAAC"}
@@ -19,6 +19,8 @@ export declare const DIR_NAMES: {
19
19
  readonly SCRIPTS: "scripts";
20
20
  };
21
21
  export declare const FILE_NAMES: {
22
+ /** Root agent instructions file */
23
+ readonly AGENTS: "AGENTS.md";
22
24
  /** Developer identity file */
23
25
  readonly DEVELOPER: ".developer";
24
26
  /** Current task pointer */
@@ -1 +1 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/constants/paths.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,eAAO,MAAM,SAAS;IACpB,8BAA8B;;IAE9B,mEAAmE;;IAEnE,+DAA+D;;IAE/D,u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AAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
@@ -21,6 +21,8 @@ export const DIR_NAMES = {
21
21
  };
22
22
  // File names
23
23
  export const FILE_NAMES = {
24
+ /** Root agent instructions file */
25
+ AGENTS: "AGENTS.md",
24
26
  /** Developer identity file */
25
27
  DEVELOPER: ".developer",
26
28
  /** Current task pointer */
@@ -1 +1 @@
1
- {"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/constants/paths.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,mCAAmC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,8BAA8B;IAC9B,QAAQ,EAAE,UAAU;IACpB,mEAAmE;IACnE,SAAS,EAAE,WAAW;IACtB,+DAA+D;IAC/D,KAAK,EAAE,OAAO;IACd,uCAAuC;IACvC,OAAO,EAAE,SAAS;IAClB,kDAAkD;IAClD,IAAI,EAAE,MAAM;IACZ,0CAA0C;IAC1C,OAAO,EAAE,SAAS;CACV,CAAC;AAEX,aAAa;AACb,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,8BAA8B;IAC9B,SAAS,EAAE,YAAY;IACvB,2BAA2B;IAC3B,YAAY,EAAE,eAAe;IAC7B,oBAAoB;IACpB,SAAS,EAAE,WAAW;IACtB,4BAA4B;IAC5B,GAAG,EAAE,QAAQ;IACb,qBAAqB;IACrB,cAAc,EAAE,aAAa;IAC7B,0BAA0B;IAC1B,cAAc,EAAE,UAAU;CAClB,CAAC;AAEX,+CAA+C;AAC/C,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,gBAAgB;IAChB,QAAQ,EAAE,SAAS,CAAC,QAAQ;IAC5B,0BAA0B;IAC1B,SAAS,EAAE,GAAG,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,SAAS,EAAE;IACzD,sBAAsB;IACtB,KAAK,EAAE,GAAG,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,E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AAC,QAAgB;IACzC,OAAO,GAAG,KAAK,CAAC,KAAK,IAAI,QAAQ,EAAE,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,GAAG,KAAK,CAAC,KAAK,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.5.0-beta.17",
3
+ "description": "Beta.17 installs trellis-meta as a bundled built-in skill, hardens Pi subagent launch/configuration, removes promotional init completion output, and improves subagent context wiring. No migration actions are required.",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Enhancements:**\n- feat(cli): Install `trellis-meta` as a bundled multi-file built-in skill under every platform skill root. The shared template pipeline now supports `packages/cli/src/templates/common/bundled-skills/<skill>/` through `getBundledSkillTemplates()`, `resolveBundledSkills()`, `collectSkillTemplates()`, and `writeSkills()`.\n- feat(pi): Harden the Trellis Pi `subagent` launcher. The generated extension resolves `@mariozechner/pi-coding-agent/dist/cli.js` when possible, runs child Pi with `--mode text -p --no-session`, sends delegated prompts through stdin, bounds stdout/stderr buffers, forwards `TRELLIS_CONTEXT_ID`, and wires `AbortSignal` cancellation.\n- feat(pi): Add Pi subagent model/thinking configuration. `.pi/agents/*.md` frontmatter may provide `model`, `thinking`, and `fallbackModels`, while the `subagent` tool accepts per-call `model` and `thinking` overrides and maps them to `--model <model[:thinking]>` or `--thinking <level>`.\n- docs(workflow): Clarify that `task.py create --slug <auto>` receives a slug without a date prefix because the script adds the `MM-DD-` directory prefix automatically.\n\n**Behavior Changes:**\n- chore(init): Remove promotional completion output from `trellis init`; completion output now stays focused on generated files and next actions.\n\n**Bug Fixes:**\n- fix(trellis): Improve subagent context wiring across local platform files. Cursor native custom-agent payloads are parsed from `Task`/`Subagent` tool input, workflow-state breadcrumbs require exact `trellis-implement` / `trellis-check` / `trellis-research` agent names, and Claude/Cursor/Codex hook paths preserve session identity for later shell or subagent context loading.",
7
+ "migrations": [],
8
+ "notes": "Run `trellis update` to receive the bundled `trellis-meta` skill, Pi subagent launcher/config updates, init output cleanup, and subagent context wiring fixes. No `--migrate` flag is required."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.5.0-beta.18",
3
+ "description": "Beta.18 redesigns the Phase 3 workflow: Phase 3.4 adds an AI-driven batched commit step, and `/trellis:finish-work` becomes a 4-step survey + archive + journal flow that refuses to run on a dirty working tree. Also fixes parent-task progress regression on child archive, hash-tracks AGENTS.md during update, and supports OpenCode PowerShell context injection on Windows. No migration actions are required.",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Enhancements:**\n- feat(workflow): Add `Phase 3.4 Commit changes` to `workflow.md`. The AI inspects `git status --porcelain`, learns commit-message style from `git log --oneline -5`, classifies dirty files into AI-edited-this-session vs unrecognized groups, drafts a batched commit plan, and commits per batch only after one-shot user confirmation. Rejecting the plan exits to manual mode without a flag. Wrap-up reminder renumbers from 3.4 to 3.5. The `[workflow-state:completed]` breadcrumb (and the four hook fallbacks in `inject-workflow-state.py`/`.js`) now direct users at `/trellis:finish-work` instead of the legacy `task.py finish` + `task.py archive` sequence.\n- feat(skills): Rewrite `/trellis:finish-work` as a 4-step survey + archive + journal flow. Step 1 runs `get_context.py --mode record` to print active tasks, git status, and recent commits — when other completed-but-unarchived tasks surface, the AI prompts once for one-shot batch cleanup. Step 2 runs `git status --porcelain` (excluding `.trellis/workspace/` and `.trellis/tasks/`) and bails out if anything else is dirty. Step 3 archives the active task plus any cleanup tasks the user confirmed in Step 1. Step 4 records the session journal using hashes from Step 1's recent-commits output. Code commits belong in Phase 3.4, not here. The common skill template uses `{{CMD_REF:finish-work}}` so `cmdRefPrefix` resolves correctly per platform (`/trellis:` for Claude/OpenCode, `$` for Codex, `/trellis-` for Cursor).\n\n**Bug Fixes:**\n- fix(scripts): Stop pruning archived children from a parent task's `children` list. `cmd_archive` previously removed the child name on archive, which made `children_progress` shrink both numerator and denominator (e.g. `[1/6 done]` → `[0/5 done]`, hiding completed work). The list now stays intact; `children_progress` treats children missing from active statuses as completed (cmd_archive sets `status=completed` before moving the dir).\n- fix(update): Hash-track `AGENTS.md` during `trellis update`. Pre-0.5.0-beta.18 projects wrote `AGENTS.md` without recording its template hash, which would surface as a false \"modified by you\" conflict on update. The new `<!-- TRELLIS:START -->` / `<!-- TRELLIS:END -->` managed-block replacement plus a legacy pristine-hash allowlist (`LEGACY_UNTRACKED_AGENTS_MD_BLOCK_HASHES`) lets old untouched projects update cleanly while still preserving any user customizations outside the block.\n- fix(opencode): Support PowerShell context injection in OpenCode on Windows. `inject-subagent-context.js` now emits `$env:TRELLIS_CONTEXT_ID = '...'; ` instead of the POSIX `export` form when the host platform is `win32`, and the explicit-assignment dedup detector matches both POSIX and PowerShell forms.\n\n**Internal:**\n- test: Add `test/setup.ts` registered via `setupFiles` in `vitest.config.ts`. It deletes `process.env.TRELLIS_CONTEXT_ID` and `process.env.OPENCODE_RUN_ID` at vitest process start so the OpenCode resolver tests no longer pick up a Claude/OpenCode host-session env that would hijack the platform-input-derived contextKey.\n- docs(spec): Document the parent-child `children` list invariant in `script-conventions.md` and the host-shell env-leak isolation pattern in `unit-test/conventions.md`.",
7
+ "migrations": [],
8
+ "notes": "Run `trellis update` to receive the Phase 3.4 commit step, the rewritten `/trellis:finish-work` skill, the parent-child progress fix, AGENTS.md hash tracking, and OpenCode PowerShell support. No `--migrate` flag is required."
9
+ }
@@ -1,148 +1,80 @@
1
1
  ---
2
2
  name: finish-work
3
- description: "Pre-commit quality checklist covering lint, typecheck, tests, code-spec sync, API changes, database migrations, cross-layer verification, and manual testing. Blocks commit if infra or cross-layer specs lack executable depth. Use when code is written and tested but not yet committed, before submitting changes, or as a final review before git commit."
3
+ description: "Wrap up an active Trellis task: archive it (and any other completed-but-unarchived tasks the user wants to clean up) and record a session journal. Refuses to run if the working tree has uncommitted code changes (those belong in workflow Phase 3.4 first). Use when the user asks to finish / wrap up / call it a day, or invokes $finish-work."
4
4
  ---
5
5
 
6
- # Finish Work - Pre-Commit Checklist
6
+ # Finish Work
7
7
 
8
- Before submitting or committing, use this checklist to ensure work completeness.
8
+ Wrap up the current session: archive the active task (and any other completed-but-unarchived tasks the user wants to clean up) and record the session journal. Code commits are NOT done here — those happen in workflow Phase 3.4 before you invoke this skill.
9
9
 
10
- **Timing**: After code is written and tested, before commit
11
-
12
- ---
13
-
14
- ## Checklist
15
-
16
- ### 1. Code Quality
10
+ ## Step 1: Survey current state
17
11
 
18
12
  ```bash
19
- # Must pass
20
- pnpm lint
21
- pnpm type-check
22
- pnpm test
13
+ python3 ./.trellis/scripts/get_context.py --mode record
23
14
  ```
24
15
 
25
- - [ ] `pnpm lint` passes with 0 errors?
26
- - [ ] `pnpm type-check` passes with no type errors?
27
- - [ ] Tests pass?
28
- - [ ] No `console.log` statements (use logger)?
29
- - [ ] No non-null assertions (the `x!` operator)?
30
- - [ ] No `any` types?
31
-
32
- ### 2. Code-Spec Sync
33
-
34
- **Code-Spec Docs**:
35
- - [ ] Does `.trellis/spec/backend/` need updates?
36
- - New patterns, new modules, new conventions
37
- - [ ] Does `.trellis/spec/frontend/` need updates?
38
- - New components, new hooks, new patterns
39
- - [ ] Does `.trellis/spec/guides/` need updates?
40
- - New cross-layer flows, lessons from bugs
41
-
42
- **Key Question**:
43
- > "If I fixed a bug or discovered something non-obvious, should I document it so future me (or others) won't hit the same issue?"
16
+ This prints:
44
17
 
45
- If YES -> Update the relevant code-spec doc.
18
+ - **My active tasks** — review whether any besides the current one are actually done (code merged, AC met) and should be archived this round.
19
+ - **Git status** — quick visual on what's dirty.
20
+ - **Recent commits** — you'll need their hashes in Step 4 for `--commit`.
46
21
 
47
- ### 2.5. Code-Spec Hard Block (Infra/Cross-Layer)
22
+ If `--mode record` surfaces other completed tasks not tied to the current session, surface them to the user with a one-shot confirmation: "These N tasks look done — archive them too in this round? [y/N]". Default is no; the current active task is always archived in Step 3 regardless.
48
23
 
49
- If this change touches infra or cross-layer contracts, this is a blocking checklist:
24
+ ## Step 2: Sanity check working tree must be clean
50
25
 
51
- - [ ] Spec content is executable (real signatures/contracts), not principle-only text
52
- - [ ] Includes file path + command/API name + payload field names
53
- - [ ] Includes validation and error matrix
54
- - [ ] Includes Good/Base/Bad cases
55
- - [ ] Includes required tests and assertion points
26
+ Run:
56
27
 
57
- **Block Rule**:
58
- If infra/cross-layer changed but the related spec is still abstract, do NOT finish. Run `$update-spec` manually first.
59
-
60
- ### 3. API Changes
61
-
62
- If you modified API endpoints:
63
-
64
- - [ ] Input schema updated?
65
- - [ ] Output schema updated?
66
- - [ ] API documentation updated?
67
- - [ ] Client code updated to match?
68
-
69
- ### 4. Database Changes
28
+ ```bash
29
+ git status --porcelain
30
+ ```
70
31
 
71
- If you modified database schema:
32
+ Filter out paths under `.trellis/workspace/` and `.trellis/tasks/` — those are managed by `add_session.py` and `task.py archive` auto-commits and will appear dirty as part of this skill's own work.
72
33
 
73
- - [ ] Migration file created?
74
- - [ ] Schema file updated?
75
- - [ ] Related queries updated?
76
- - [ ] Seed data updated (if applicable)?
34
+ If anything else is dirty (any path outside those two prefixes), **stop and bail out** with:
77
35
 
78
- ### 5. Cross-Layer Verification
36
+ > "Working tree has uncommitted code changes. Return to workflow Phase 3.4 to commit them before running `$finish-work`."
79
37
 
80
- If the change spans multiple layers:
38
+ Do NOT run `git commit` here. Do NOT prompt the user to commit. The user goes back to Phase 3.4 and the AI drives the batched commit there.
81
39
 
82
- - [ ] Data flows correctly through all layers?
83
- - [ ] Error handling works at each boundary?
84
- - [ ] Types are consistent across layers?
85
- - [ ] Loading states handled?
40
+ ## Step 3: Archive task(s)
86
41
 
87
- ### 6. Manual Testing
42
+ ```bash
43
+ python3 ./.trellis/scripts/task.py archive <task-name>
44
+ ```
88
45
 
89
- - [ ] Feature works in browser/app?
90
- - [ ] Edge cases tested?
91
- - [ ] Error states tested?
92
- - [ ] Works after page refresh?
46
+ At minimum: the current active task (if any). Plus any extra tasks the user confirmed in Step 1. Each archive produces a `chore(task): archive ...` commit via the script's auto-commit.
93
47
 
94
- ---
48
+ If there is no active task and the user did not confirm any cleanup archives, skip this step.
95
49
 
96
- ## Quick Check Flow
50
+ ## Step 4: Record session journal
97
51
 
98
52
  ```bash
99
- # 1. Code checks
100
- pnpm lint && pnpm type-check
101
-
102
- # 2. View changes
103
- git status
104
- git diff --name-only
105
-
106
- # 3. Based on changed files, check relevant items above
53
+ python3 ./.trellis/scripts/add_session.py \
54
+ --title "Session Title" \
55
+ --commit "hash1,hash2" \
56
+ --summary "Brief summary"
107
57
  ```
108
58
 
109
- ---
110
-
111
- ## Common Oversights
59
+ Use the work-commit hashes produced in Phase 3.4 (visible in Step 1's `Recent commits` list, or via `git log --oneline`) for `--commit`. Do not include the archive commit hashes from Step 3. This produces a `chore: record journal` commit.
112
60
 
113
- | Oversight | Consequence | Check |
114
- |-----------|-------------|-------|
115
- | Code-spec docs not updated | Others don't know the change | Check .trellis/spec/ |
116
- | Spec text is abstract only | Easy regressions in infra/cross-layer changes | Require signature/contract/matrix/cases/tests |
117
- | Migration not created | Schema out of sync | Check db/migrations/ |
118
- | Types not synced | Runtime errors | Check shared types |
119
- | Tests not updated | False confidence | Run full test suite |
120
- | Console.log left in | Noisy production logs | Search for console.log |
61
+ Final git log order: `<work commits from 3.4>` → `chore(task): archive ...` (one or more) → `chore: record journal`.
121
62
 
122
63
  ---
123
64
 
124
- ## Relationship to Other Commands
65
+ ## Relationship to Other Skills
125
66
 
126
67
  ```
127
68
  Development Flow:
128
- Write code -> Test -> $finish-work -> git commit -> $record-session
129
- | |
130
- Ensure completeness Record progress
131
-
69
+ Phase 3.4 (workflow.md) -> AI drafts batched commits -> user confirms -> git commit
70
+ |
71
+ v
72
+ $finish-work
73
+ (survey + archive + journal)
74
+
132
75
  Debug Flow:
133
76
  Hit bug -> Fix -> $break-loop -> Knowledge capture
134
- |
135
- Deep analysis
136
77
  ```
137
78
 
138
- - `$finish-work` - Check work completeness (this skill)
139
- - `$record-session` - Record session and commits
140
- - `$break-loop` - Deep analysis after debugging
141
-
142
- ---
143
-
144
- ## Core Principle
145
-
146
- > **Delivery includes not just code, but also documentation, verification, and knowledge capture.**
147
-
148
- Complete work = Code + Docs + Tests + Verification
79
+ - `$finish-work` this skill, survey + archive + record session
80
+ - `$break-loop` deep analysis after debugging
@@ -0,0 +1,73 @@
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 directories: `.claude/`, `.codex/`, `.cursor/`, `.opencode/`, `.kiro/`, `.gemini/`, `.qoder/`, `.codebuddy/`, `.github/`, `.factory/`, `.pi/`, `.kilocode/`, `.agent/`, `.windsurf/`, and similar directories.
14
+ - Shared skill layer: `.agents/skills/`.
15
+
16
+ Do not assume the user has the Trellis source repository. Do not default to modifying the global npm install directory or `node_modules`.
17
+
18
+ ## How To Use
19
+
20
+ 1. Read `references/local-architecture/overview.md` first to establish the local Trellis system model.
21
+ 2. If the request involves a specific AI tool, read `references/platform-files/platform-map.md` and the relevant platform file notes.
22
+ 3. If the user wants to change behavior, read `references/customize-local/overview.md`, then open the specific customization topic.
23
+ 4. Before editing, read the actual files in the user project and treat local content as authoritative.
24
+
25
+ ## References
26
+
27
+ ### Local Architecture
28
+
29
+ - `references/local-architecture/overview.md`: The three-layer local Trellis architecture and customization principles.
30
+ - `references/local-architecture/generated-files.md`: Files generated by `trellis init` and their customization boundaries.
31
+ - `references/local-architecture/workflow.md`: Phases, routing, and workflow-state blocks in `.trellis/workflow.md`.
32
+ - `references/local-architecture/task-system.md`: Task directories, active tasks, JSONL context, and task runtime.
33
+ - `references/local-architecture/spec-system.md`: How `.trellis/spec/` is organized and injected.
34
+ - `references/local-architecture/workspace-memory.md`: `.trellis/workspace/`, journals, and cross-session memory.
35
+ - `references/local-architecture/context-injection.md`: Hooks, sub-agent preludes, and context injection paths.
36
+
37
+ ### Platform Files
38
+
39
+ - `references/platform-files/overview.md`: How shared `.trellis/` files relate to platform directories.
40
+ - `references/platform-files/platform-map.md`: Platform directories and paths for skills, agents, hooks, and extensions.
41
+ - `references/platform-files/hooks-and-settings.md`: How settings/config files, hooks, plugins, and extensions connect to Trellis.
42
+ - `references/platform-files/agents.md`: Local file responsibilities for `trellis-research`, `trellis-implement`, and `trellis-check`.
43
+ - `references/platform-files/skills-and-commands.md`: Differences between skills, commands, prompts, and workflows, plus how to change them.
44
+
45
+ ### Local Customization
46
+
47
+ - `references/customize-local/overview.md`: Choose the right local customization entry point for the user's request.
48
+ - `references/customize-local/change-workflow.md`: Change phases, routing, next actions, and workflow-state.
49
+ - `references/customize-local/change-task-lifecycle.md`: Change task creation, status, archive behavior, and hooks.
50
+ - `references/customize-local/change-context-loading.md`: Change how tasks, specs, journals, and hook context are loaded.
51
+ - `references/customize-local/change-hooks.md`: Change platform hooks, settings, and shell session bridges.
52
+ - `references/customize-local/change-agents.md`: Change research, implement, and check agent behavior.
53
+ - `references/customize-local/change-skills-or-commands.md`: Add or modify local skills, commands, prompts, and workflows.
54
+ - `references/customize-local/change-spec-structure.md`: Adjust the project spec structure under `.trellis/spec/`.
55
+ - `references/customize-local/add-project-local-conventions.md`: Put team rules into project-local specs or local skills.
56
+
57
+ ## Current Rules
58
+
59
+ - `.trellis/workflow.md` is the local workflow source of truth.
60
+ - `.trellis/config.yaml` is the project-level Trellis configuration and task hook configuration entry point.
61
+ - `.trellis/spec/` stores the user's project-specific coding conventions and design constraints.
62
+ - `.trellis/tasks/` stores task PRDs, technical notes, research files, and JSONL context.
63
+ - `.trellis/workspace/` stores developer journals and cross-session memory.
64
+ - Platform settings/config files decide which hooks, agents, skills, commands, prompts, and workflows actually run.
65
+ - `.trellis/.template-hashes.json` and `.trellis/.runtime/` are management/runtime state files. Confirm necessity before editing them.
66
+
67
+ ## Do Not
68
+
69
+ - Do not treat Trellis upstream source code as the default target for local customization.
70
+ - Do not modify the global npm install directory or `node_modules/@mindfoldhq/trellis` to implement project needs.
71
+ - Do not overwrite user-modified local files with default templates.
72
+ - Do not put team-private project rules into the public `trellis-meta`; put project rules in `.trellis/spec/` or a project-local skill.
73
+ - Do not describe removed historical mechanisms as current Trellis behavior.
@@ -0,0 +1,83 @@
1
+ # Add Project-Local Conventions
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`.
4
+
5
+ ## Where To Put Things
6
+
7
+ | Content type | Location |
8
+ | --- | --- |
9
+ | Rules code must follow | `.trellis/spec/<layer>/` |
10
+ | Cross-layer thinking methods | `.trellis/spec/guides/` |
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` |
14
+
15
+ ## Create A Project-Local Skill
16
+
17
+ If the user wants AI to know "how this project customizes Trellis," create a local skill:
18
+
19
+ ```text
20
+ .claude/skills/trellis-local/
21
+ └── SKILL.md
22
+ ```
23
+
24
+ Example:
25
+
26
+ ```md
27
+ ---
28
+ name: trellis-local
29
+ description: "Project-local Trellis customizations for this repository. Use when changing this project's Trellis workflow, hooks, local agents, or team-specific conventions."
30
+ ---
31
+
32
+ # Trellis Local
33
+
34
+ ## Local Scope
35
+
36
+ This skill documents this repository's Trellis customizations only.
37
+
38
+ ## Custom Workflow Rules
39
+
40
+ - ...
41
+
42
+ ## Local Hook Changes
43
+
44
+ - ...
45
+
46
+ ## Local Agent Changes
47
+
48
+ - ...
49
+ ```
50
+
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
+
53
+ ## Write To `.trellis/spec/`
54
+
55
+ If the content is a coding convention, write it to spec. Examples:
56
+
57
+ ```text
58
+ .trellis/spec/backend/error-handling.md
59
+ .trellis/spec/frontend/components.md
60
+ .trellis/spec/guides/cross-platform-thinking-guide.md
61
+ ```
62
+
63
+ After writing it, update the corresponding `index.md` so AI can find the new rule from the entry point.
64
+
65
+ ## Make The Current Task Use New Conventions
66
+
67
+ After writing a spec, add it to the current task context:
68
+
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"
72
+ ```
73
+
74
+ ## Do Not Store Project-Private Rules In `trellis-meta`
75
+
76
+ `trellis-meta` is a public skill for understanding Trellis architecture and local customization entry points. Put project-private content in:
77
+
78
+ - `.trellis/spec/`
79
+ - a project-local skill
80
+ - the current task
81
+ - workspace journal
82
+
83
+ This prevents future updates to Trellis's built-in `trellis-meta` from overwriting the team's own conventions.
@@ -0,0 +1,54 @@
1
+ # Change Local Agents
2
+
3
+ When the user wants to change `trellis-research`, `trellis-implement`, or `trellis-check` behavior, edit platform agent files in the user project.
4
+
5
+ ## Read These Files First
6
+
7
+ 1. Target platform agent directory
8
+ 2. `.trellis/workflow.md` Phase 2 / research routing
9
+ 3. Current task `prd.md`
10
+ 4. Current task `implement.jsonl` / `check.jsonl`
11
+ 5. Relevant hook or agent prelude
12
+
13
+ ## Common Paths
14
+
15
+ | Platform | Path |
16
+ | --- | --- |
17
+ | Claude Code | `.claude/agents/trellis-*.md` |
18
+ | Cursor | `.cursor/agents/trellis-*.md` |
19
+ | OpenCode | `.opencode/agents/trellis-*.md` |
20
+ | Codex | `.codex/agents/trellis-*.toml` |
21
+ | Kiro | `.kiro/agents/trellis-*.json` |
22
+ | Gemini CLI | `.gemini/agents/trellis-*.md` |
23
+ | Qoder | `.qoder/agents/trellis-*.md` |
24
+ | CodeBuddy | `.codebuddy/agents/trellis-*.md` |
25
+ | Factory Droid | `.factory/droids/trellis-*.md` |
26
+ | Pi Agent | `.pi/agents/trellis-*.md` |
27
+
28
+ Use the actual paths in the user project as authoritative.
29
+
30
+ ## Common Needs
31
+
32
+ | Need | Which agent to edit |
33
+ | --- | --- |
34
+ | Research must write files, not only reply in chat | `trellis-research` |
35
+ | Certain local specs must be read before implementation | `trellis-implement` + `implement.jsonl` configuration rules |
36
+ | Specific commands must run during checking | `trellis-check` |
37
+ | Agent must not modify certain directories | The corresponding agent's write boundary instructions |
38
+ | Agent output format must be fixed | The corresponding agent's final/reporting instructions |
39
+
40
+ ## Modification Principles
41
+
42
+ 1. **Preserve role boundaries**: research investigates and persists; implement writes implementation; check reviews and fixes.
43
+ 2. **Do not hard-code project specs into agents**: long-term specs belong in `.trellis/spec/`; agents are responsible for reading them.
44
+ 3. **Make read order explicit**: active task -> PRD -> info -> JSONL -> spec/research.
45
+ 4. **Make write boundaries explicit**: which directories may be written and which may not.
46
+ 5. **Synchronize across platforms**: when the user configured multiple platforms, decide whether to change only the current platform or all platform agents.
47
+
48
+ ## Agent Pull Platforms
49
+
50
+ If an agent file contains a prelude for "read task/context after startup," do not remove those steps when editing. Otherwise the agent will work only from chat context and bypass Trellis's core mechanism.
51
+
52
+ ## Hook Push Platforms
53
+
54
+ If context is injected by a hook, the agent file should still retain responsibility boundaries. Do not remove PRD/spec requirements from the agent just because a hook injects context.
@@ -0,0 +1,81 @@
1
+ # Change Local Context Loading
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 current task," "the agent did not read specs," or "there is too much/too little context."
4
+
5
+ ## Read These Files First
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`
12
+ 6. Current platform hooks or agent files
13
+ 7. The current task's `implement.jsonl` / `check.jsonl`
14
+
15
+ ## Context Sources
16
+
17
+ | Source | Purpose |
18
+ | --- | --- |
19
+ | `.trellis/workflow.md` | Workflow and next-action hints. |
20
+ | `.trellis/tasks/<task>/prd.md` | Current task requirements. |
21
+ | `.trellis/tasks/<task>/implement.jsonl` | Spec/research to read before implementation. |
22
+ | `.trellis/tasks/<task>/check.jsonl` | Spec/research to read during checking. |
23
+ | `.trellis/spec/` | Project specs. |
24
+ | `.trellis/workspace/` | Session records. |
25
+ | git status | Current working tree changes. |
26
+
27
+ ## Common Needs And Edit Points
28
+
29
+ | Need | Edit point |
30
+ | --- | --- |
31
+ | Inject more/less information in new sessions | `session_context.py` or the platform `session-start` hook. |
32
+ | Change hints on each user input | State blocks in `.trellis/workflow.md` and `inject-workflow-state` hook. |
33
+ | Agent did not read specs | Task JSONL, agent prelude, `inject-subagent-context` hook. |
34
+ | Active task is lost | `active_task.py` and platform session identity propagation. |
35
+ | Change JSONL validation rules | `task_context.py`. |
36
+
37
+ ## JSONL Rules
38
+
39
+ `implement.jsonl` / `check.jsonl` are the key context loading interface:
40
+
41
+ ```jsonl
42
+ {"file": ".trellis/spec/backend/index.md", "reason": "Backend conventions"}
43
+ {"file": ".trellis/tasks/04-28-x/research/api.md", "reason": "API research"}
44
+ ```
45
+
46
+ Include only spec/research files. Do not put code files that will be modified into these manifests; agents read code files themselves during implementation.
47
+
48
+ ## Change Session Context
49
+
50
+ If the user wants every new session to see more project state, edit:
51
+
52
+ - `.trellis/scripts/common/session_context.py`
53
+ - the corresponding platform `session-start` hook
54
+
55
+ Context cannot grow without bound. Prefer injecting indexes and paths so the AI can read detailed files on demand.
56
+
57
+ ## Change Sub-Agent Context
58
+
59
+ First determine which mode the platform uses:
60
+
61
+ - hook push: edit the `inject-subagent-context` hook.
62
+ - agent pull: edit the read steps in the corresponding `trellis-implement` / `trellis-check` agent file.
63
+
64
+ In both modes, make sure the agent ultimately reads:
65
+
66
+ 1. active task
67
+ 2. `prd.md`
68
+ 3. `info.md` if present
69
+ 4. the corresponding JSONL
70
+ 5. spec/research referenced by the JSONL
71
+
72
+ ## Troubleshooting Order
73
+
74
+ ```bash
75
+ python3 ./.trellis/scripts/task.py current --source
76
+ python3 ./.trellis/scripts/task.py list-context <task>
77
+ python3 ./.trellis/scripts/task.py validate <task>
78
+ python3 ./.trellis/scripts/get_context.py --mode packages
79
+ ```
80
+
81
+ Confirm the task and JSONL are correct before editing hooks/agents.