@fifine/aim-studio 0.0.2 → 0.0.4

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 +65 -99
  2. package/dist/commands/init.d.ts.map +1 -1
  3. package/dist/commands/init.js +123 -101
  4. package/dist/commands/init.js.map +1 -1
  5. package/dist/configurators/workflow.d.ts.map +1 -1
  6. package/dist/configurators/workflow.js +91 -65
  7. package/dist/configurators/workflow.js.map +1 -1
  8. package/dist/constants/paths.d.ts +5 -5
  9. package/dist/constants/paths.d.ts.map +1 -1
  10. package/dist/constants/paths.js +5 -5
  11. package/dist/constants/paths.js.map +1 -1
  12. package/dist/templates/aim/index.d.ts +1 -0
  13. package/dist/templates/aim/index.d.ts.map +1 -1
  14. package/dist/templates/aim/index.js +2 -0
  15. package/dist/templates/aim/index.js.map +1 -1
  16. package/dist/templates/aim/scripts/common/developer.py +2 -1
  17. package/dist/templates/aim/scripts/common/paths.py +3 -2
  18. package/dist/templates/aim/scripts/export.py +718 -0
  19. package/dist/templates/aim/workflow.md +12 -13
  20. package/dist/templates/claude/commands/aim/export.md +258 -108
  21. package/dist/templates/claude/commands/aim/finish-work.md +23 -0
  22. package/dist/templates/claude/commands/aim/onboard.md +10 -8
  23. package/dist/templates/claude/commands/aim/start.md +104 -37
  24. package/dist/templates/claude/commands/aim/story.md +275 -67
  25. package/dist/templates/claude/hooks/inject-subagent-context.py +6 -10
  26. package/dist/templates/claude/hooks/session-start.py +134 -24
  27. package/dist/templates/markdown/index.d.ts +5 -0
  28. package/dist/templates/markdown/index.d.ts.map +1 -1
  29. package/dist/templates/markdown/index.js +6 -0
  30. package/dist/templates/markdown/index.js.map +1 -1
  31. package/dist/templates/markdown/spec/cli/directory-structure.md.txt +71 -0
  32. package/dist/templates/markdown/spec/cli/error-handling.md.txt +91 -0
  33. package/dist/templates/markdown/spec/cli/index.md.txt +37 -0
  34. package/dist/templates/markdown/spec/cli/options-flags.md.txt +71 -0
  35. package/dist/templates/markdown/spec/cli/output-formatting.md.txt +93 -0
  36. package/dist/utils/project-detector.d.ts +1 -1
  37. package/dist/utils/project-detector.d.ts.map +1 -1
  38. package/dist/utils/project-detector.js +20 -0
  39. package/dist/utils/project-detector.js.map +1 -1
  40. package/package.json +1 -1
  41. package/dist/templates/claude/commands/trellis/before-backend-dev.md +0 -13
  42. package/dist/templates/claude/commands/trellis/before-frontend-dev.md +0 -13
  43. package/dist/templates/claude/commands/trellis/break-loop.md +0 -125
  44. package/dist/templates/claude/commands/trellis/check-backend.md +0 -13
  45. package/dist/templates/claude/commands/trellis/check-cross-layer.md +0 -153
  46. package/dist/templates/claude/commands/trellis/check-frontend.md +0 -13
  47. package/dist/templates/claude/commands/trellis/create-command.md +0 -154
  48. package/dist/templates/claude/commands/trellis/finish-work.md +0 -129
  49. package/dist/templates/claude/commands/trellis/integrate-skill.md +0 -219
  50. package/dist/templates/claude/commands/trellis/onboard.md +0 -358
  51. package/dist/templates/claude/commands/trellis/parallel.md +0 -193
  52. package/dist/templates/claude/commands/trellis/record-session.md +0 -62
  53. package/dist/templates/claude/commands/trellis/start.md +0 -280
  54. package/dist/templates/claude/commands/trellis/update-spec.md +0 -285
  55. package/dist/templates/trellis/gitignore.txt +0 -29
  56. package/dist/templates/trellis/index.d.ts +0 -49
  57. package/dist/templates/trellis/index.d.ts.map +0 -1
  58. package/dist/templates/trellis/index.js +0 -92
  59. package/dist/templates/trellis/index.js.map +0 -1
  60. package/dist/templates/trellis/scripts/__init__.py +0 -5
  61. package/dist/templates/trellis/scripts/add_session.py +0 -392
  62. package/dist/templates/trellis/scripts/common/__init__.py +0 -80
  63. package/dist/templates/trellis/scripts/common/cli_adapter.py +0 -435
  64. package/dist/templates/trellis/scripts/common/developer.py +0 -190
  65. package/dist/templates/trellis/scripts/common/git_context.py +0 -383
  66. package/dist/templates/trellis/scripts/common/paths.py +0 -347
  67. package/dist/templates/trellis/scripts/common/phase.py +0 -253
  68. package/dist/templates/trellis/scripts/common/registry.py +0 -366
  69. package/dist/templates/trellis/scripts/common/task_queue.py +0 -255
  70. package/dist/templates/trellis/scripts/common/task_utils.py +0 -178
  71. package/dist/templates/trellis/scripts/common/worktree.py +0 -219
  72. package/dist/templates/trellis/scripts/create_bootstrap.py +0 -290
  73. package/dist/templates/trellis/scripts/get_context.py +0 -16
  74. package/dist/templates/trellis/scripts/get_developer.py +0 -26
  75. package/dist/templates/trellis/scripts/init_developer.py +0 -51
  76. package/dist/templates/trellis/scripts/multi_agent/__init__.py +0 -5
  77. package/dist/templates/trellis/scripts/multi_agent/cleanup.py +0 -403
  78. package/dist/templates/trellis/scripts/multi_agent/create_pr.py +0 -329
  79. package/dist/templates/trellis/scripts/multi_agent/plan.py +0 -233
  80. package/dist/templates/trellis/scripts/multi_agent/start.py +0 -461
  81. package/dist/templates/trellis/scripts/multi_agent/status.py +0 -817
  82. package/dist/templates/trellis/scripts/task.py +0 -1056
  83. package/dist/templates/trellis/scripts-shell-archive/add-session.sh +0 -384
  84. package/dist/templates/trellis/scripts-shell-archive/common/developer.sh +0 -129
  85. package/dist/templates/trellis/scripts-shell-archive/common/git-context.sh +0 -263
  86. package/dist/templates/trellis/scripts-shell-archive/common/paths.sh +0 -208
  87. package/dist/templates/trellis/scripts-shell-archive/common/phase.sh +0 -150
  88. package/dist/templates/trellis/scripts-shell-archive/common/registry.sh +0 -247
  89. package/dist/templates/trellis/scripts-shell-archive/common/task-queue.sh +0 -142
  90. package/dist/templates/trellis/scripts-shell-archive/common/task-utils.sh +0 -151
  91. package/dist/templates/trellis/scripts-shell-archive/common/worktree.sh +0 -128
  92. package/dist/templates/trellis/scripts-shell-archive/create-bootstrap.sh +0 -299
  93. package/dist/templates/trellis/scripts-shell-archive/get-context.sh +0 -7
  94. package/dist/templates/trellis/scripts-shell-archive/get-developer.sh +0 -15
  95. package/dist/templates/trellis/scripts-shell-archive/init-developer.sh +0 -34
  96. package/dist/templates/trellis/scripts-shell-archive/multi-agent/cleanup.sh +0 -396
  97. package/dist/templates/trellis/scripts-shell-archive/multi-agent/create-pr.sh +0 -241
  98. package/dist/templates/trellis/scripts-shell-archive/multi-agent/plan.sh +0 -207
  99. package/dist/templates/trellis/scripts-shell-archive/multi-agent/start.sh +0 -317
  100. package/dist/templates/trellis/scripts-shell-archive/multi-agent/status.sh +0 -828
  101. package/dist/templates/trellis/scripts-shell-archive/task.sh +0 -1204
  102. package/dist/templates/trellis/tasks/.gitkeep +0 -0
  103. package/dist/templates/trellis/workflow.md +0 -416
  104. package/dist/templates/trellis/worktree.yaml +0 -47
@@ -1 +1 @@
1
- {"version":3,"file":"project-detector.js","sourceRoot":"","sources":["../../src/utils/project-detector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAO7B;;GAEG;AACH,MAAM,mBAAmB,GAAG;IAC1B,sCAAsC;IACtC,cAAc,EAAE,uCAAuC;IACvD,cAAc;IACd,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,mBAAmB;IACnB,kBAAkB;IAClB,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,qBAAqB;IACrB,aAAa;IACb,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,cAAc;IACd,iBAAiB;IACjB,iBAAiB;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,kBAAkB,GAAG;IACzB,KAAK;IACL,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,YAAY;IACZ,SAAS;IACT,kBAAkB;IAClB,gBAAgB;IAChB,UAAU;IACV,SAAS;IACT,aAAa;IACb,cAAc;IACd,SAAS;IACT,cAAc;IACd,kBAAkB;IAClB,OAAO;IACP,SAAS;IACT,MAAM;IACN,eAAe;IACf,OAAO;IACP,UAAU;IACV,UAAU;IACV,SAAS;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C;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fifine/aim-studio",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "AIM Studio — Specialized CLI for AI comic and drama generation. Formerly Trellis.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,13 +0,0 @@
1
- Read the backend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/backend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Database work → `.trellis/spec/backend/database-guidelines.md`
7
- - Error handling → `.trellis/spec/backend/error-handling.md`
8
- - Logging → `.trellis/spec/backend/logging-guidelines.md`
9
- - Type questions → `.trellis/spec/backend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any backend code.
@@ -1,13 +0,0 @@
1
- Read the frontend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Component work → `.trellis/spec/frontend/component-guidelines.md`
7
- - Hook work → `.trellis/spec/frontend/hook-guidelines.md`
8
- - State management → `.trellis/spec/frontend/state-management.md`
9
- - Type questions → `.trellis/spec/frontend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any frontend code.
@@ -1,125 +0,0 @@
1
- # Break the Loop - Deep Bug Analysis
2
-
3
- When debug is complete, use this command for deep analysis to break the "fix bug -> forget -> repeat" cycle.
4
-
5
- ---
6
-
7
- ## Analysis Framework
8
-
9
- Analyze the bug you just fixed from these 5 dimensions:
10
-
11
- ### 1. Root Cause Category
12
-
13
- Which category does this bug belong to?
14
-
15
- | Category | Characteristics | Example |
16
- |----------|-----------------|---------|
17
- | **A. Missing Spec** | No documentation on how to do it | New feature without checklist |
18
- | **B. Cross-Layer Contract** | Interface between layers unclear | API returns different format than expected |
19
- | **C. Change Propagation Failure** | Changed one place, missed others | Changed function signature, missed call sites |
20
- | **D. Test Coverage Gap** | Unit test passes, integration fails | Works alone, breaks when combined |
21
- | **E. Implicit Assumption** | Code relies on undocumented assumption | Timestamp seconds vs milliseconds |
22
-
23
- ### 2. Why Fixes Failed (if applicable)
24
-
25
- If you tried multiple fixes before succeeding, analyze each failure:
26
-
27
- - **Surface Fix**: Fixed symptom, not root cause
28
- - **Incomplete Scope**: Found root cause, didn't cover all cases
29
- - **Tool Limitation**: grep missed it, type check wasn't strict
30
- - **Mental Model**: Kept looking in same layer, didn't think cross-layer
31
-
32
- ### 3. Prevention Mechanisms
33
-
34
- What mechanisms would prevent this from happening again?
35
-
36
- | Type | Description | Example |
37
- |------|-------------|---------|
38
- | **Documentation** | Write it down so people know | Update thinking guide |
39
- | **Architecture** | Make the error impossible structurally | Type-safe wrappers |
40
- | **Compile-time** | TypeScript strict, no any | Signature change causes compile error |
41
- | **Runtime** | Monitoring, alerts, scans | Detect orphan entities |
42
- | **Test Coverage** | E2E tests, integration tests | Verify full flow |
43
- | **Code Review** | Checklist, PR template | "Did you check X?" |
44
-
45
- ### 4. Systematic Expansion
46
-
47
- What broader problems does this bug reveal?
48
-
49
- - **Similar Issues**: Where else might this problem exist?
50
- - **Design Flaw**: Is there a fundamental architecture issue?
51
- - **Process Flaw**: Is there a development process improvement?
52
- - **Knowledge Gap**: Is the team missing some understanding?
53
-
54
- ### 5. Knowledge Capture
55
-
56
- Solidify insights into the system:
57
-
58
- - [ ] Update `.trellis/spec/guides/` thinking guides
59
- - [ ] Update `.trellis/spec/backend/` or `frontend/` docs
60
- - [ ] Create issue record (if applicable)
61
- - [ ] Create feature ticket for root fix
62
- - [ ] Update check commands if needed
63
-
64
- ---
65
-
66
- ## Output Format
67
-
68
- Please output analysis in this format:
69
-
70
- ```markdown
71
- ## Bug Analysis: [Short Description]
72
-
73
- ### 1. Root Cause Category
74
- - **Category**: [A/B/C/D/E] - [Category Name]
75
- - **Specific Cause**: [Detailed description]
76
-
77
- ### 2. Why Fixes Failed (if applicable)
78
- 1. [First attempt]: [Why it failed]
79
- 2. [Second attempt]: [Why it failed]
80
- ...
81
-
82
- ### 3. Prevention Mechanisms
83
- | Priority | Mechanism | Specific Action | Status |
84
- |----------|-----------|-----------------|--------|
85
- | P0 | ... | ... | TODO/DONE |
86
-
87
- ### 4. Systematic Expansion
88
- - **Similar Issues**: [List places with similar problems]
89
- - **Design Improvement**: [Architecture-level suggestions]
90
- - **Process Improvement**: [Development process suggestions]
91
-
92
- ### 5. Knowledge Capture
93
- - [ ] [Documents to update / tickets to create]
94
- ```
95
-
96
- ---
97
-
98
- ## Core Philosophy
99
-
100
- > **The value of debugging is not in fixing the bug, but in making this class of bugs never happen again.**
101
-
102
- Three levels of insight:
103
- 1. **Tactical**: How to fix THIS bug
104
- 2. **Strategic**: How to prevent THIS CLASS of bugs
105
- 3. **Philosophical**: How to expand thinking patterns
106
-
107
- 30 minutes of analysis saves 30 hours of future debugging.
108
-
109
- ---
110
-
111
- ## After Analysis: Immediate Actions
112
-
113
- **IMPORTANT**: After completing the analysis above, you MUST immediately:
114
-
115
- 1. **Update spec/guides** - Don't just list TODOs, actually update the relevant files:
116
- - If it's a cross-platform issue → update `cross-platform-thinking-guide.md`
117
- - If it's a cross-layer issue → update `cross-layer-thinking-guide.md`
118
- - If it's a code reuse issue → update `code-reuse-thinking-guide.md`
119
- - If it's domain-specific → update `backend/*.md` or `frontend/*.md`
120
-
121
- 2. **Sync templates** - After updating `.trellis/spec/`, sync to `src/templates/markdown/spec/`
122
-
123
- 3. **Commit the spec updates** - This is the primary output, not just the analysis text
124
-
125
- > **The analysis is worthless if it stays in chat. The value is in the updated specs.**
@@ -1,13 +0,0 @@
1
- Check if the code you just wrote follows the backend development guidelines.
2
-
3
- Execute these steps:
4
- 1. Run `git status` to see modified files
5
- 2. Read `.trellis/spec/backend/index.md` to understand which guidelines apply
6
- 3. Based on what you changed, read the relevant guideline files:
7
- - Database changes → `.trellis/spec/backend/database-guidelines.md`
8
- - Error handling → `.trellis/spec/backend/error-handling.md`
9
- - Logging changes → `.trellis/spec/backend/logging-guidelines.md`
10
- - Type changes → `.trellis/spec/backend/type-safety.md`
11
- - Any changes → `.trellis/spec/backend/quality-guidelines.md`
12
- 4. Review your code against the guidelines
13
- 5. Report any violations and fix them if found
@@ -1,153 +0,0 @@
1
- # Cross-Layer Check
2
-
3
- Check if your changes considered all dimensions. Most bugs come from "didn't think of it", not lack of technical skill.
4
-
5
- > **Note**: This is a **post-implementation** safety net. Ideally, read the [Pre-Implementation Checklist](.trellis/spec/guides/pre-implementation-checklist.md) **before** writing code.
6
-
7
- ---
8
-
9
- ## Related Documents
10
-
11
- | Document | Purpose | Timing |
12
- |----------|---------|--------|
13
- | [Pre-Implementation Checklist](.trellis/spec/guides/pre-implementation-checklist.md) | Questions before coding | **Before** writing code |
14
- | [Code Reuse Thinking Guide](.trellis/spec/guides/code-reuse-thinking-guide.md) | Pattern recognition | During implementation |
15
- | **`/trellis:check-cross-layer`** (this) | Verification check | **After** implementation |
16
-
17
- ---
18
-
19
- ## Execution Steps
20
-
21
- ### 1. Identify Change Scope
22
-
23
- ```bash
24
- git status
25
- git diff --name-only
26
- ```
27
-
28
- ### 2. Select Applicable Check Dimensions
29
-
30
- Based on your change type, execute relevant checks below:
31
-
32
- ---
33
-
34
- ## Dimension A: Cross-Layer Data Flow (Required when 3+ layers)
35
-
36
- **Trigger**: Changes involve 3 or more layers
37
-
38
- | Layer | Common Locations |
39
- |-------|------------------|
40
- | API/Routes | `routes/`, `api/`, `handlers/`, `controllers/` |
41
- | Service/Business Logic | `services/`, `lib/`, `core/`, `domain/` |
42
- | Database/Storage | `db/`, `models/`, `repositories/`, `schema/` |
43
- | UI/Presentation | `components/`, `views/`, `templates/`, `pages/` |
44
- | Utility | `utils/`, `helpers/`, `common/` |
45
-
46
- **Checklist**:
47
- - [ ] Read flow: Database -> Service -> API -> UI
48
- - [ ] Write flow: UI -> API -> Service -> Database
49
- - [ ] Types/schemas correctly passed between layers?
50
- - [ ] Errors properly propagated to caller?
51
- - [ ] Loading/pending states handled at each layer?
52
-
53
- **Detailed Guide**: `.trellis/spec/guides/cross-layer-thinking-guide.md`
54
-
55
- ---
56
-
57
- ## Dimension B: Code Reuse (Required when modifying constants/config)
58
-
59
- **Trigger**:
60
- - Modifying UI constants (label, icon, color)
61
- - Modifying any hardcoded value
62
- - Seeing similar code in multiple places
63
- - Creating a new utility/helper function
64
- - Just finished batch modifications across files
65
-
66
- **Checklist**:
67
- - [ ] Search first: How many places define this value?
68
- ```bash
69
- # Search in source files (adjust extensions for your project)
70
- grep -r "value-to-change" src/
71
- ```
72
- - [ ] If 2+ places define same value -> Should extract to shared constant
73
- - [ ] After modification, all usage sites updated?
74
- - [ ] If creating utility: Does similar utility already exist?
75
-
76
- **Detailed Guide**: `.trellis/spec/guides/code-reuse-thinking-guide.md`
77
-
78
- ---
79
-
80
- ## Dimension B2: New Utility Functions
81
-
82
- **Trigger**: About to create a new utility/helper function
83
-
84
- **Checklist**:
85
- - [ ] Search for existing similar utilities first
86
- ```bash
87
- grep -r "functionNamePattern" src/
88
- ```
89
- - [ ] If similar exists, can you extend it instead?
90
- - [ ] If creating new, is it in the right location (shared vs domain-specific)?
91
-
92
- ---
93
-
94
- ## Dimension B3: After Batch Modifications
95
-
96
- **Trigger**: Just modified similar patterns in multiple files
97
-
98
- **Checklist**:
99
- - [ ] Did you check ALL files with similar patterns?
100
- ```bash
101
- grep -r "patternYouChanged" src/
102
- ```
103
- - [ ] Any files missed that should also be updated?
104
- - [ ] Should this pattern be abstracted to prevent future duplication?
105
-
106
- ---
107
-
108
- ## Dimension C: Import/Dependency Paths (Required when creating new files)
109
-
110
- **Trigger**: Creating new source files
111
-
112
- **Checklist**:
113
- - [ ] Using correct import paths (relative vs absolute)?
114
- - [ ] No circular dependencies?
115
- - [ ] Consistent with project's module organization?
116
-
117
- ---
118
-
119
- ## Dimension D: Same-Layer Consistency
120
-
121
- **Trigger**:
122
- - Modifying display logic or formatting
123
- - Same domain concept used in multiple places
124
-
125
- **Checklist**:
126
- - [ ] Search for other places using same concept
127
- ```bash
128
- grep -r "ConceptName" src/
129
- ```
130
- - [ ] Are these usages consistent?
131
- - [ ] Should they share configuration/constants?
132
-
133
- ---
134
-
135
- ## Common Issues Quick Reference
136
-
137
- | Issue | Root Cause | Prevention |
138
- |-------|------------|------------|
139
- | Changed one place, missed others | Didn't search impact scope | `grep` before changing |
140
- | Data lost at some layer | Didn't check data flow | Trace data source to destination |
141
- | Type/schema mismatch | Cross-layer types inconsistent | Use shared type definitions |
142
- | UI/output inconsistent | Same concept in multiple places | Extract shared constants |
143
- | Similar utility exists | Didn't search first | Search before creating |
144
- | Batch fix incomplete | Didn't verify all occurrences | grep after fixing |
145
-
146
- ---
147
-
148
- ## Output
149
-
150
- Report:
151
- 1. Which dimensions your changes involve
152
- 2. Check results for each dimension
153
- 3. Issues found and fix suggestions
@@ -1,13 +0,0 @@
1
- Check if the code you just wrote follows the frontend development guidelines.
2
-
3
- Execute these steps:
4
- 1. Run `git status` to see modified files
5
- 2. Read `.trellis/spec/frontend/index.md` to understand which guidelines apply
6
- 3. Based on what you changed, read the relevant guideline files:
7
- - Component changes → `.trellis/spec/frontend/component-guidelines.md`
8
- - Hook changes → `.trellis/spec/frontend/hook-guidelines.md`
9
- - State changes → `.trellis/spec/frontend/state-management.md`
10
- - Type changes → `.trellis/spec/frontend/type-safety.md`
11
- - Any changes → `.trellis/spec/frontend/quality-guidelines.md`
12
- 4. Review your code against the guidelines
13
- 5. Report any violations and fix them if found
@@ -1,154 +0,0 @@
1
- # Create New Slash Command
2
-
3
- Create a new slash command in both `.cursor/commands/` (with `trellis-` prefix) and `.claude/commands/trellis/` directories based on user requirements.
4
-
5
- ## Usage
6
-
7
- ```
8
- /trellis:create-command <command-name> <description>
9
- ```
10
-
11
- **Example**:
12
- ```
13
- /trellis:create-command review-pr Check PR code changes against project guidelines
14
- ```
15
-
16
- ## Execution Steps
17
-
18
- ### 1. Parse Input
19
-
20
- Extract from user input:
21
- - **Command name**: Use kebab-case (e.g., `review-pr`)
22
- - **Description**: What the command should accomplish
23
-
24
- ### 2. Analyze Requirements
25
-
26
- Determine command type based on description:
27
- - **Initialization**: Read docs, establish context
28
- - **Pre-development**: Read guidelines, check dependencies
29
- - **Code check**: Validate code quality and guideline compliance
30
- - **Recording**: Record progress, questions, structure changes
31
- - **Generation**: Generate docs, code templates
32
-
33
- ### 3. Generate Command Content
34
-
35
- Based on command type, generate appropriate content:
36
-
37
- **Simple command** (1-3 lines):
38
- ```markdown
39
- Concise instruction describing what to do
40
- ```
41
-
42
- **Complex command** (with steps):
43
- ```markdown
44
- # Command Title
45
-
46
- Command description
47
-
48
- ## Steps
49
-
50
- ### 1. First Step
51
- Specific action
52
-
53
- ### 2. Second Step
54
- Specific action
55
-
56
- ## Output Format (if needed)
57
-
58
- Template
59
- ```
60
-
61
- ### 4. Create Files
62
-
63
- Create in both directories:
64
- - `.cursor/commands/trellis-<command-name>.md`
65
- - `.claude/commands/trellis/<command-name>.md`
66
-
67
- ### 5. Confirm Creation
68
-
69
- Output result:
70
- ```
71
- [OK] Created Slash Command: /<command-name>
72
-
73
- File paths:
74
- - .cursor/commands/trellis-<command-name>.md
75
- - .claude/commands/trellis/<command-name>.md
76
-
77
- Usage:
78
- /trellis:<command-name>
79
-
80
- Description:
81
- <description>
82
- ```
83
-
84
- ## Command Content Guidelines
85
-
86
- ### [OK] Good command content
87
-
88
- 1. **Clear and concise**: Immediately understandable
89
- 2. **Executable**: AI can follow steps directly
90
- 3. **Well-scoped**: Clear boundaries of what to do and not do
91
- 4. **Has output**: Specifies expected output format (if needed)
92
-
93
- ### [X] Avoid
94
-
95
- 1. **Too vague**: e.g., "optimize code"
96
- 2. **Too complex**: Single command should not exceed 100 lines
97
- 3. **Duplicate functionality**: Check if similar command exists first
98
-
99
- ## Naming Conventions
100
-
101
- | Command Type | Prefix | Example |
102
- |--------------|--------|---------|
103
- | Session Start | `start` | `start` |
104
- | Pre-development | `before-` | `before-frontend-dev` |
105
- | Check | `check-` | `check-frontend` |
106
- | Record | `record-` | `record-session` |
107
- | Generate | `generate-` | `generate-api-doc` |
108
- | Update | `update-` | `update-changelog` |
109
- | Other | Verb-first | `review-code`, `sync-data` |
110
-
111
- ## Example
112
-
113
- ### Input
114
- ```
115
- /trellis:create-command review-pr Check PR code changes against project guidelines
116
- ```
117
-
118
- ### Generated Command Content
119
- ```markdown
120
- # PR Code Review
121
-
122
- Check current PR code changes against project guidelines.
123
-
124
- ## Steps
125
-
126
- ### 1. Get Changed Files
127
- ```bash
128
- git diff main...HEAD --name-only
129
- ```
130
-
131
- ### 2. Categorized Review
132
-
133
- **Frontend files** (`apps/web/`):
134
- - Reference `.trellis/spec/frontend/index.md`
135
-
136
- **Backend files** (`packages/api/`):
137
- - Reference `.trellis/spec/backend/index.md`
138
-
139
- ### 3. Output Review Report
140
-
141
- Format:
142
-
143
- ## PR Review Report
144
-
145
- ### Changed Files
146
- - [file list]
147
-
148
- ### Check Results
149
- - [OK] Passed items
150
- - [X] Issues found
151
-
152
- ### Suggestions
153
- - [improvement suggestions]
154
- ```
@@ -1,129 +0,0 @@
1
- # Finish Work - Pre-Commit Checklist
2
-
3
- Before submitting or committing, use this checklist to ensure work completeness.
4
-
5
- **Timing**: After code is written and tested, before commit
6
-
7
- ---
8
-
9
- ## Checklist
10
-
11
- ### 1. Code Quality
12
-
13
- ```bash
14
- # Must pass
15
- pnpm lint
16
- pnpm type-check
17
- pnpm test
18
- ```
19
-
20
- - [ ] `pnpm lint` passes with 0 errors?
21
- - [ ] `pnpm type-check` passes with no type errors?
22
- - [ ] Tests pass?
23
- - [ ] No `console.log` statements (use logger)?
24
- - [ ] No non-null assertions (the `x!` operator)?
25
- - [ ] No `any` types?
26
-
27
- ### 2. Documentation Sync
28
-
29
- **Structure Docs**:
30
- - [ ] Does `.trellis/spec/backend/` need updates?
31
- - New patterns, new modules, new conventions
32
- - [ ] Does `.trellis/spec/frontend/` need updates?
33
- - New components, new hooks, new patterns
34
- - [ ] Does `.trellis/spec/guides/` need updates?
35
- - New cross-layer flows, lessons from bugs
36
-
37
- **Key Question**:
38
- > "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?"
39
-
40
- If YES -> Update the relevant spec doc.
41
-
42
- ### 3. API Changes
43
-
44
- If you modified API endpoints:
45
-
46
- - [ ] Input schema updated?
47
- - [ ] Output schema updated?
48
- - [ ] API documentation updated?
49
- - [ ] Client code updated to match?
50
-
51
- ### 4. Database Changes
52
-
53
- If you modified database schema:
54
-
55
- - [ ] Migration file created?
56
- - [ ] Schema file updated?
57
- - [ ] Related queries updated?
58
- - [ ] Seed data updated (if applicable)?
59
-
60
- ### 5. Cross-Layer Verification
61
-
62
- If the change spans multiple layers:
63
-
64
- - [ ] Data flows correctly through all layers?
65
- - [ ] Error handling works at each boundary?
66
- - [ ] Types are consistent across layers?
67
- - [ ] Loading states handled?
68
-
69
- ### 6. Manual Testing
70
-
71
- - [ ] Feature works in browser/app?
72
- - [ ] Edge cases tested?
73
- - [ ] Error states tested?
74
- - [ ] Works after page refresh?
75
-
76
- ---
77
-
78
- ## Quick Check Flow
79
-
80
- ```bash
81
- # 1. Code checks
82
- pnpm lint && pnpm type-check
83
-
84
- # 2. View changes
85
- git status
86
- git diff --name-only
87
-
88
- # 3. Based on changed files, check relevant items above
89
- ```
90
-
91
- ---
92
-
93
- ## Common Oversights
94
-
95
- | Oversight | Consequence | Check |
96
- |-----------|-------------|-------|
97
- | Structure docs not updated | Others don't know the change | Check .trellis/spec/ |
98
- | Migration not created | Schema out of sync | Check db/migrations/ |
99
- | Types not synced | Runtime errors | Check shared types |
100
- | Tests not updated | False confidence | Run full test suite |
101
- | Console.log left in | Noisy production logs | Search for console.log |
102
-
103
- ---
104
-
105
- ## Relationship to Other Commands
106
-
107
- ```
108
- Development Flow:
109
- Write code -> Test -> /trellis:finish-work -> git commit -> /trellis:record-session
110
- | |
111
- Ensure completeness Record progress
112
-
113
- Debug Flow:
114
- Hit bug -> Fix -> /trellis:break-loop -> Knowledge capture
115
- |
116
- Deep analysis
117
- ```
118
-
119
- - `/trellis:finish-work` - Check work completeness (this command)
120
- - `/trellis:record-session` - Record session and commits
121
- - `/trellis:break-loop` - Deep analysis after debugging
122
-
123
- ---
124
-
125
- ## Core Principle
126
-
127
- > **Delivery includes not just code, but also documentation, verification, and knowledge capture.**
128
-
129
- Complete work = Code + Docs + Tests + Verification