skills/learnwy/skills/trae-rules-writer

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:

  1. Problem Understanding
  2. Rule Design (application mode + content)
  3. Deliverables
  4. Quality Report

References

Load these as needed:

Official Docs

Weekly Installs
44
Repository
learnwy/skills
First Seen
Feb 25, 2026
Installed on
gemini-cli43
github-copilot43
codex43
amp43
kimi-cli43
cursor43