chore: bootstrap trellis workspace and sync deployment settings

This commit is contained in:
qzl
2026-04-20 17:15:50 +08:00
parent 0842e04c39
commit eeed737949
82 changed files with 16522 additions and 11 deletions
+31
View File
@@ -30,6 +30,14 @@ Do not place backend/frontend implementation details here.
- Keep AGENTS layered and lean: shared rules at root, domain rules in sub-AGENTS.
- **No Error Swallowing**: All exceptions must propagate or be converted to typed errors. Never catch an exception, log it, and silently continue. This destroys debuggability.
## Git Safety (CRITICAL)
- **NEVER execute `git checkout -- <file>` or any git command that modifies files without explicit user approval.**
- **NEVER reset, revert, or discard uncommitted changes without user consent.**
- If you need to discard changes, ask the user first and explain exactly what will be lost.
- Before any destructive git operation, list the affected files and get confirmation.
- This rule is non-negotiable. Violation will cause irreversible loss of user work.
## Protocol Source of Truth
`docs/protocols/` is the single source of truth for protocol and data format.
@@ -41,3 +49,26 @@ Do not place backend/frontend implementation details here.
## Database Access
When viewing data in the database, use `supabase mcp` tools (`supabase_execute_sql`, `supabase_list_tables`, etc.) instead of direct queries or other methods.
## Image Handling
When reading images, check whether the model has native multimodal capability first. If it does, use `Read` tool to read images directly. If it does not, fall back to `understand_image` tool. Only use `Read` tool for non-image files.
<!-- TRELLIS:START -->
# Trellis Instructions
These instructions are for AI assistants working in this project.
Use the `/trellis:start` command when starting a new session to:
- Initialize your developer identity
- Understand current project context
- Read relevant guidelines
Use `@/.trellis/` to learn:
- Development workflow (`workflow.md`)
- Project structure guidelines (`spec/`)
- Developer workspace (`workspace/`)
Keep this managed block so 'trellis update' can refresh the instructions.
<!-- TRELLIS:END -->