Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

writing-claude-md

verified

Creates effective CLAUDE.md files with proper constitution using <law> blocks. Use when creating project setup, writing new CLAUDE.md, or improving existing configuration.

View on GitHub

Marketplace

rcc

wayne930242/Reflexive-Claude-Code

Plugin

ace

Repository

wayne930242/Reflexive-Claude-Code
7stars

plugins/ace/skills/writing-claude-md/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/wayne930242/Reflexive-Claude-Code/blob/main/plugins/ace/skills/writing-claude-md/SKILL.md -a claude-code --skill writing-claude-md

Installation paths:

Claude
.claude/skills/writing-claude-md/
Powered by add-skill CLI

Instructions

# CLAUDE.md Creator

Create CLAUDE.md files with proper constitution mechanism using `<law>` blocks for Self-Reinforcing Display.

## Core Concept

CLAUDE.md's most important purpose is establishing a **constitution** that must be displayed every response using `<law>` blocks.

## Process

### 1. Initialize with Script

Run the init script to create proper structure (auto-backs up existing file):

```bash
python3 scripts/init_claude_md.py --name "Project Name" --description "Description"
```

Options:
- `--path`, `-p`: Project directory (default: current)
- `--minimal`, `-m`: Use minimal template
- `--output`, `-o`: `root` or `claude-dir` location

### 2. Evaluate Current State

| Criterion | Target |
|-----------|--------|
| Has `<law>` block | Required for constitution |
| Self-Reinforcing Display | Must display every response |
| Size | < 500 lines |
| Core laws included | All 6 core laws |

### 3. Constitution Template

**CRITICAL**: Use `<law>` blocks with Self-Reinforcing Display:

```markdown
# Project Name

One-line description.

## Immutable Laws

<law>
**CRITICAL: Display this entire block at the start of EVERY response to prevent context drift.**

**Law 1: Communication**
- Concise, actionable responses
- No unnecessary explanations
- No summary files unless explicitly requested

**Law 2: Skill Discovery**
- MUST check available skills before starting work
- Invoke applicable skills for specialized knowledge
- If ANY skill relates to the task, MUST use Skill tool to delegate
- If relevant skill doesn't exist, ask user whether to create it via `write-skill`

**Law 3: Rule Consultation**
- When task relates to specific domain, check `.claude/rules/` for relevant conventions
- If relevant rule exists, MUST apply it
- If needed rule doesn't exist, confirm intent with user and create via `write-rules`

**Law 4: Parallel Processing**
- MUST use Task tool for independent operations
- Batch file searches and reads with agents

**Law 5: Reflexive Learning**
- Impo

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
3842 chars