claude-rules

Create reusable instruction files in .claude/rules/ to codify project conventions.

Updated Oct 24, 2024
One-click install
npx skills add https://github.com/tuannguyen151/nestjs-clean-architecture --skill claude-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-rules
Source: https://github.com/tuannguyen151/nestjs-clean-architecture/tree/main/.claude/skills/claude-rules
Command: npx skills add https://github.com/tuannguyen151/nestjs-clean-architecture --skill claude-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardize project conventions by creating reusable, centralized rule files in .claude/rules/ that inform AI-assisted workflows and reduce ad-hoc guidance.

Core Features & Use Cases

  • Create focused rule files (e.g., FORMATTING.md, ARCHITECTURE.md) that codify team standards.
  • Reference rules from CLAUDE.md to ensure consistent guidance across projects.
  • Use as a single source of truth for conventions, templates, and patterns.

Quick Start

Create a new rule file in .claude/rules/ following the naming conventions and reference it from CLAUDE.md.

Frequently Asked Questions about claude-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce project conventions using Claude rules?

You can enforce project conventions by creating reusable instruction files in the .claude/rules/ directory. These files codify team standards like formatting and architecture patterns to provide consistent AI-assisted workflow guidance.

What is the best way to standardize formatting standards across multiple projects?

Standardizing formatting standards is best achieved by creating centralized rule files like FORMATTING.md in .claude/rules/. You then reference these rules from CLAUDE.md to ensure consistent guidance across multiple projects.

How does YAML frontmatter work in SKILL.md files?

YAML frontmatter in SKILL.md files works by requiring name and description fields to define the rule's metadata. It also supports optional references to related rules and tooling to extend the instruction context.

Do I need dependencies to create reusable instruction files for architecture patterns?

No, you do not need any dependencies to create reusable instruction files. The skill operates independently to generate rule files in .claude/rules/ that codify your architecture patterns and workflow guidelines.

Can I use project rules as a single source of truth for templates and patterns?

Yes, you can use project rules as a single source of truth for templates and patterns. By organizing focused rule files in .claude/rules/ and referencing them centrally, you reduce ad-hoc guidance and maintain consistent standards.