trae-rules-writer

Create Trae IDE rules (.trae/rules/*.md) for AI behavior constraints. Use when: create rule, set up code style, enforce naming convention, make AI always do X, configure AI behavior. NOT for skills (use project-skill-writer) or agents (use project-agent-writer).

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "trae-rules-writer" with this command: npx skills add learnwy/skills/learnwy-skills-trae-rules-writer

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)

WrongCorrect
globs: "*.ts"globs: *.ts,*.tsx
globs: ["*.ts"]globs: *.ts
/Users/.../src/src/

Application Modes

ModeConfig
AlwaysalwaysApply: true
File-Specificglobs: *.tsx + alwaysApply: false
Intelligentdescription: "..." + alwaysApply: false
ManualNo 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

memory-manager

No summary provided by upstream source.

Repository SourceNeeds Review
General

english-learner

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

requirement-workflow

No summary provided by upstream source.

Repository SourceNeeds Review
Research

knowledge-consolidation

No summary provided by upstream source.

Repository SourceNeeds Review