write-claude-md

Create CLAUDE.md files with six immutable <law> blocks and a Self-Reinforcing Display.

16|5|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/wayne930242/Reflexive-Claude-Code --skill write-claude-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-claude-md
Source: https://github.com/wayne930242/Reflexive-Claude-Code/tree/main/skills/write-claude-md
Command: npx skills add https://github.com/wayne930242/Reflexive-Claude-Code --skill write-claude-md

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates CLAUDE.md creation with proper constitution using <law> blocks, ensuring a Self-Reinforcing Display that appears in every response.

Core Features & Use Cases

  • Constitution Blocks: Insert <law> blocks to enforce behavior and display rules.
  • Automation: Init script to scaffold CLAUDE.md with best practices, backups, and templates.
  • Validation: Checks for core laws and size constraints to prevent drift.

Quick Start

Initialize CLAUDE.md: python3 scripts/init_claude_md.py --name "Project Name" --description "Description" --output root

Frequently Asked Questions about write-claude-md

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

FAQPage Schema
How do I create a CLAUDE.md file with constitution blocks?

Use the init script to generate CLAUDE.md with <law> blocks enforcing your project's constitution. Run `python3 scripts/init_claude_md.py --name "Project Name" --description "Description" --output root` to scaffold a file with all six core laws and a self-reinforcing display that appears in every response.

What are law blocks and how do they work in documentation?

<law> blocks are immutable constitution rules embedded in CLAUDE.md that enforce consistent behavior and display requirements. They create a self-reinforcing mechanism where specified laws appear automatically, preventing configuration drift and ensuring compliance across project interactions.

Can I automate CLAUDE.md creation for an existing project?

Yes. The Skill provides an init script that scaffolds CLAUDE.md with automatic backups and validates that all six core laws are present. You can apply it to new project setup or improve existing configurations by ensuring constitutional requirements are met and enforced.

What happens if a law is missing from my CLAUDE.md?

The validation checks for all six core laws to prevent drift. Missing laws break the self-reinforcing display mechanism. The Skill flags gaps and guides you to add them, maintaining constitutional integrity across your documentation.

Does this work with minimal or full template options?

Yes. The CLI offers both minimal and full template modes via command-line options, letting you choose between a lightweight constitution or a comprehensive one depending on your project's complexity and documentation needs.