trellis-spec-bootstrap
Skill này làm gì
Skill xây dựng các file hướng dẫn code của dự án từ mã nguồn thật. Dành cho nhóm muốn các quy tắc chính xác, đặc thù cho dự án để agent AI làm theo.
Khi nào nên dùng
- ✓Khi bạn bắt đầu dùng Trellis và cần hướng dẫn viết code cho codebase của mình.
- ✓Khi các file spec của dự án bị thiếu, lỗi thời hoặc vẫn còn đầy chữ mẫu.
- ✓Khi codebase đã thay đổi nhiều và hướng dẫn cần được làm mới.
Liên kết skill
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-spec-bootstrap/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo hướng dẫn viết code cho repository này từ code thật, có ví dụ và không còn chữ giữ chỗ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent phân tích cấu trúc repository bằng công cụ code và việc đọc trực tiếp mã nguồn, quyết định ranh giới package và tầng ở đâu, viết các file hướng dẫn cụ thể kèm đường dẫn file và ví dụ, rồi kiểm tra xem còn chữ giữ chỗ nào không.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Trellis Spec Bootstrap
Use this skill to create or refresh .trellis/spec/ guidelines from the real codebase. One capable agent owns the full loop: analyze the repository, choose the spec boundaries, write the docs, and verify the result. The workflow does not depend on a specific host, CLI, or agent brand.
Workflow
- Confirm Trellis is initialized and inspect the current
.trellis/spec/tree. - Analyze the repository architecture with the best available tools: GitNexus, ABCoder, language tooling, and direct source reads.
- Decompose the spec work by package and layer only when that reflects the actual codebase.
- Fill or reshape the spec files with concrete patterns, file paths, examples, and anti-patterns from the project.
- Verify that the final specs are internally consistent and contain no template placeholders.
Reference Routing
| Need | Read |
|---|---|
| Repository architecture analysis | references/repository-analysis.md |
| Spec work decomposition and task planning | references/spec-task-planning.md |
| Writing high-signal Trellis spec files | references/spec-writing.md |
| GitNexus and ABCoder MCP setup | references/mcp-setup.md |
Operating Rules
- Treat templates as starting points, not contracts. Delete, rename, split, or add spec files when the repository calls for it.
- Prefer source-backed rules over generic advice. Every important recommendation should point at a real file or repeated local pattern.
- Keep execution single-owner by default. Optional helper agents are an implementation detail, not a requirement or user-visible dependency.
- Do not write platform-specific instructions unless the target project already standardizes on that platform.
- Do not leave placeholder text, empty headings, or copied boilerplate in
.trellis/spec/.
Done Criteria
.trellis/spec/describes the project as it exists now.- Each relevant package or layer has practical coding guidance with real examples.
- Non-applicable template sections are removed.
index.mdfiles match the final spec file set.- Any required setup or analysis assumptions are documented in the relevant spec or task notes.
Câu hỏi thường gặp
Nó có giữ lại chữ mẫu không?
Không. Skill coi mẫu là điểm khởi đầu và loại bỏ chữ giữ chỗ.
Nó dùng công cụ nào để phân tích code?
Nó dùng các công cụ sẵn có như GitNexus và ABCoder, cùng công cụ ngôn ngữ và việc đọc trực tiếp mã nguồn.
Nó có cần một sản phẩm AI cụ thể không?
Không. Quy trình không phụ thuộc nền tảng và chạy với một agent có năng lực.
Chi tiết
Mô tả gốc của tác giả
Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow. Use when creating or refreshing .trellis/spec guidelines, analyzing a codebase with GitNexus, ABCoder, or source inspection, decomposing package/layer spec work, and writing real codebase-backed spec docs without placeholder text.
repo: mindfold-ai/Trellis
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #11033
- Giấy phép
- AGPL-3.0
- Cập nhật
- 29/9/2026
Bình luận
- …
Thêm skill từ kho mã này
first-principles-thinking
15kGiúp agent kiểm tra kế hoạch hoặc thiết kế bằng cách chia nó thành sự thật cơ bản và suy luận từ đó, thay vì dựa vào thói quen hay quy ước.
python-design
15kGiúp agent viết và review script dòng lệnh Python với module rõ ràng, giao diện đơn giản và ít sự phức tạp ẩn.
trellis-before-dev
15kGiúp agent đọc các hướng dẫn viết code và ghi chú công việc của dự án trước khi bắt đầu viết code, để nó làm theo quy ước của nhóm.
trellis-brainstorm
15kGiúp agent làm rõ một tính năng mới hoặc tác vụ chưa rõ bằng cách hỏi một câu hữu ích mỗi lần, kiểm tra code và thống nhất phạm vi hẹp.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.