trae-rules-writer
SKILL.md
Trae Rules Writer
Create rules that solve specific problems - not generic rules.
Activation
When user says:
- "Create rules for..."
- "Make AI always..."
- "Enforce naming convention"
- ".trae/rules/..."
- "#RuleName"
Workflow
1. Understand the problem → What problem does this rule solve?
2. Analyze project → What conventions already exist?
3. Design rule → What should AI do differently?
4. Validate with user → Show design, get confirmation
5. Generate → Create .trae/rules/xxx.md
Rule Format
---
description: When this rule applies
globs: *.ts,*.tsx
alwaysApply: false
---
# Rule Title
Rule content...
⚠️ Critical (MUST FOLLOW)
| Wrong | Correct |
|---|---|
globs: "*.ts" |
globs: *.ts,*.tsx |
globs: ["*.ts"] |
globs: *.ts |
/Users/.../src/ |
src/ |
Application Modes
| Mode | Config |
|---|---|
| Always | alwaysApply: true |
| File-Specific | globs: *.tsx + alwaysApply: false |
| Intelligent | description: "..." + alwaysApply: false |
| Manual | No frontmatter, use #RuleName |
Quality Gates
Before delivery:
- globs format: comma-separated, no quotes
- No absolute paths
- Description present
- No conflicts with existing rules
Output
Always produce:
- Problem Understanding
- Rule Design (application mode + content)
- Deliverables
- Quality Report
References
Load these as needed:
- Rule Types: Choose rule type based on problem
- Application Modes: All mode examples
- Project Scanner: For large projects
- Quality Validator: Check conflicts
Official Docs
Weekly Installs
44
Repository
learnwy/skillsFirst Seen
Feb 25, 2026
Security Audits
Installed on
gemini-cli43
github-copilot43
codex43
amp43
kimi-cli43
cursor43