Skip to content

Commit b1f48c3

Browse files
committed
feat: 添加多个Trellis技能文档
添加了trellis-before-dev、trellis-brainstorm、trellis-break-loop、 trellis-check、trellis-continue、trellis-finish-work、trellis-meta等 核心技能的详细操作指南,并新增项目本地约定定制参考文档。
1 parent 08e917d commit b1f48c3

103 files changed

Lines changed: 16227 additions & 6 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: trellis-before-dev
3+
description: "Discovers and injects project-specific coding guidelines from .trellis/spec/ before implementation begins. Reads spec indexes, pre-development checklists, and shared thinking guides for the target package. Use when starting a new coding task, before writing any code, switching to a different package, or needing to refresh project conventions and standards."
4+
---
5+
6+
Read the relevant development guidelines before starting your task.
7+
8+
Execute these steps:
9+
10+
1. **Discover packages and their spec layers**:
11+
```bash
12+
python ./.trellis/scripts/get_context.py --mode packages
13+
```
14+
15+
2. **Identify which specs apply** to your task based on:
16+
- Which package you're modifying (e.g., `cli/`, `docs-site/`)
17+
- What type of work (backend, frontend, unit-test, docs, etc.)
18+
19+
3. **Read the spec index** for each relevant module:
20+
```bash
21+
cat .trellis/spec/<package>/<layer>/index.md
22+
```
23+
Follow the **"Pre-Development Checklist"** section in the index.
24+
25+
4. **Read the specific guideline files** listed in the Pre-Development Checklist that are relevant to your task. The index is NOT the goal — it points you to the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`). Read those files to understand the coding standards and patterns.
26+
27+
5. **Always read shared guides**:
28+
```bash
29+
cat .trellis/spec/guides/index.md
30+
```
31+
32+
6. Understand the coding standards and patterns you need to follow, then proceed with your development plan.
33+
34+
This step is **mandatory** before writing any code.

0 commit comments

Comments
 (0)