skillfed

lwy-project-rules-writer

lwy-project-rules-writer guides you through designing and generating project-specific AI rules that persist across sessions. It analyzes your codebase, confirms the rule design with you, then outputs frontmatter+markdown files to `.agents/rules/` — compatible with Trae, Cursor, Windsurf, and Claude Code. Use it to enforce naming conventions, code style, commit formats, or consistent AI behavior without creating skills or agents.

lwy-project-rules-writer creates persistent project-level rules that constrain AI behavior across Trae, Cursor, and Windsurf.

AI-generated summary based on this skill's SKILL.md

2 0 MIT updated by learnwy

Install

learnwy/skills/lwy-project-rules-writer · repository language: TypeScript

CLI (skillfed)coming soon
git clone https://github.com/learnwy/skills
cp -r skills/skills/lwy-project-rules-writer ~/.claude/skills/lwy-project-rules-writer

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I set up AI behavior rules in my project?

lwy-project-rules-writer helps you create persistent AI behavior rules stored in your `.agents/rules/` directory. The tool analyzes your codebase, confirms your rule design with you, then generates frontmatter+markdown files that work across Trae, Cursor, Windsurf, and Claude Code. These rules constrain AI behavior across sessions without requiring custom skills or agents.

What can lwy-project-rules-writer enforce in my codebase?

lwy-project-rules-writer enforces code style, naming conventions (like camelCase in TypeScript), commit message formats, consistent logger usage, and architecture boundaries. It creates project-level constraints that apply to all AI interactions, ensuring generated code respects your project patterns and conventions automatically across all supported IDE assistants.

Can I create a rule to make AI always use the project logger?

Yes. lwy-project-rules-writer lets you define rules that enforce specific patterns like mandatory logger usage. You describe the requirement, the tool analyzes your codebase to understand your logging setup, confirms the rule design with you, then generates a rule file in `.agents/rules/` that constrains AI to follow this pattern consistently.

Where does lwy-project-rules-writer store the generated rules?

lwy-project-rules-writer outputs all generated rules to the `.agents/rules/` directory in your project. Each rule is a frontmatter+markdown file compatible with Trae, Cursor, Windsurf, and Claude Code. This persistent location ensures your AI behavior constraints apply automatically across all sessions and supported IDE assistants.

How does lwy-project-rules-writer prevent wrong imports?

lwy-project-rules-writer creates architecture boundary rules that constrain AI code generation. You specify which modules or patterns should never be imported together, the tool confirms the design against your codebase structure, then generates a rule file that makes AI respect these boundaries automatically in all generated code.

Does lwy-project-rules-writer require creating custom skills?

No. lwy-project-rules-writer generates project-level rules directly—no custom skills or agents needed. It writes frontmatter+markdown files to `.agents/rules/` that work natively with Trae, Cursor, Windsurf, and Claude Code, making AI behavior enforcement straightforward and maintainable across your entire team.

SKILL.md

rendered from the published skill — quoted content, verbatim

Project Rules Writer

Create rules that solve a specific problem in a specific project — never generic ones. Analyse the project first, design, confirm with AskUserQuestion, then generate.

> Core discipline: understand the problem → analyse the project → design the rule → confirm → generate. No file lands without user confirmation.

Shared writing-discipline rules across this and the other writer skills (project-skill-writer / project-agent-writer /

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 11 files
skills/lwy-project-rules-writer/SKILL.md
skills/lwy-project-rules-writer/agents/convention-detector.md
skills/lwy-project-rules-writer/agents/project-scanner.md
skills/lwy-project-rules-writer/agents/quality-validator.md
skills/lwy-project-rules-writer/assets/rule.md.template
skills/lwy-project-rules-writer/assets/trae-rules-docs.md
skills/lwy-project-rules-writer/evals/evals.json
skills/lwy-project-rules-writer/examples/application-modes.md
skills/lwy-project-rules-writer/references/conditional-reflection.md
skills/lwy-project-rules-writer/references/rule-types.md
skills/lwy-project-rules-writer/scripts/cli.cjs

Related skills

Tags

ai-governance code-standards project-config behavior-constraints convention-enforcement ide-agnostic frontmatter-rules persistent-settings style-enforcement architecture-patterns