Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

init-rules (CLAUDE.md Initializer)

Auto-detects your project's tech stack and assembles a CLAUDE.md coding-standards file from a bundled rule template library.

Dev & CodingBeginner1897AI score 8/10Last updated: Mar 19, 2026

What it does

  • Scans the current working directory to detect languages and frameworks (tsconfig.json, vue/react deps in package.json, pom.xml, go.mod, Cargo.toml, Package.swift, pyproject.toml, src-tauri/, and more).
  • Shows the detection result and asks you to confirm or adjust before writing anything.
  • Reads the rule files bundled with the skill (base/core.md, base/git.md, languages/*, frameworks/*) and concatenates them in a fixed order into CLAUDE.md.
  • Warns before overwriting an existing CLAUDE.md, then reports which rule files were included and the total line count.
  • Explicitly forbids the model from inventing rules from memory — output stays consistent across projects.

Who it's for

  • Developers tired of hand-writing a CLAUDE.md for every new repo.
  • Teams working across multiple stacks (TS/Vue/React/Spring Boot/Go/Rust/Swift) that want one consistent convention set.
  • Tech leads maintaining a central rule library and rolling it out per project.

Examples

  1. In a Vue + TypeScript repo, say "init rules" → you get a CLAUDE.md combining core + git rules with typescript.md and vue.md.
  2. In a Spring Boot repo (spring-boot in pom.xml) → java.md and springboot.md rules are merged in.
  3. In a repo that already has CLAUDE.md → the skill asks for confirmation before regenerating it from the latest templates.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/lifedever/claude-rules/HEAD/.claude/skills/init-rules/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the .claude/skills/init-rules folder from the GitHub repo lifedever/claude-rules into my ~/.claude/skills/init-rules/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/lifedever/claude-rules.git /tmp/claude-rules && mkdir -p ~/.claude/skills && cp -r /tmp/claude-rules/.claude/skills/init-rules ~/.claude/skills/

This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/lifedever/claude-rules.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the entire skill directory (the rule files must come with it): cp -r claude-rules/.claude/skills/init-rules ~/.claude/skills/
  5. Verify with ls ~/.claude/skills/init-rules — you should see base/, languages/, and frameworks/.
  6. Open Claude Code inside the project you want standards for and type "init rules".
  7. Confirm or tweak the detected stack list, and CLAUDE.md will be written to the project root.