> Initialize or update CLAUDE.md coding standards for any project by auto-detecting tech stack and assembling rules from the claude-rules template library. Use when user says "init rules", "初始化规范", "生成 CLAUDE.md", or wants to set up coding standards.
npx skills add https://github.com/lifedever/claude-rules --skill init-rules
IMPORTANT: You MUST read rule files from this skill's bundled files. Do NOT generate rules from your own knowledge.
Rule files are bundled in this skill's directory. Use ${CLAUDE_SKILL_DIR} to reference them.
Scan the current working directory to identify languages and frameworks:
| Signal | Rule File |
|--------|-----------|
| tsconfig.json or *.ts files | languages/typescript.md |
| package.json with "vue" dependency | frameworks/vue.md |
| package.json with "react" dependency | frameworks/react.md |
| src-tauri/ directory | frameworks/tauri.md |
| *.js files without tsconfig.json | languages/javascript.md |
| *.java files or pom.xml | languages/java.md |
| build.gradle.kts or *.kt files | languages/kotlin.md |
| pom.xml/build.gradle with spring-boot | frameworks/springboot.md |
| Package.swift or *.swift files | languages/swift.md |
| Swift files with import SwiftUI | frameworks/swiftui.md |
| pyproject.toml or requirements.txt | languages/python.md |
| *.html files | languages/html.md |
| *.css/*.scss files | languages/css.md |
| go.mod or *.go files | languages/go.md |
| Cargo.toml or *.rs files | languages/rust.md |
Present detection results and ask user to confirm or adjust before proceeding.
Read files from this skill's bundled directory using the Read tool.
Always read:
${CLAUDE_SKILL_DIR}/base/core.md${CLAUDE_SKILL_DIR}/base/git.mdThen read each detected language and framework file, e.g.:
${CLAUDE_SKILL_DIR}/languages/typescript.md${CLAUDE_SKILL_DIR}/frameworks/vue.mdConcatenate ALL fetched content in this exact order:
<!-- Generated by init-claude-rules | https://github.com/lifedever/claude-rules -->base/core.mdbase/git.mdWrite to CLAUDE.md in the current working directory.
If CLAUDE.md already exists, warn user and ask before overwriting.
claude plugin marketplace update claude-rules to get latest rulesGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take lifedever/init-rules from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.