init-rules
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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기포함된 파일(18)
- SKILL.md2.6 KB
- base/core.md3.4 KB
- base/git.md886 B
- frameworks/react.md3.1 KB
- frameworks/springboot.md3.0 KB
- frameworks/swiftui.md3.7 KB
- frameworks/tauri.md1.9 KB
- frameworks/vue.md3.7 KB
- languages/css.md2.8 KB
- languages/go.md6.5 KB
- languages/html.md1.9 KB
- languages/java.md3.7 KB
- languages/javascript.md2.1 KB
- languages/kotlin.md3.4 KB
- languages/python.md2.1 KB
- languages/rust.md7.8 KB
- languages/swift.md3.0 KB
- languages/typescript.md2.6 KB
SKILL.md(원문)
설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Init Claude 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.
Workflow
Step 1: Detect Tech Stack
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.
Step 2: Read Rule Files
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.md
Then read each detected language and framework file, e.g.:
${CLAUDE_SKILL_DIR}/languages/typescript.md${CLAUDE_SKILL_DIR}/frameworks/vue.md
Step 3: Assemble & Write CLAUDE.md
Concatenate ALL fetched content in this exact order:
<!-- Generated by init-claude-rules | https://github.com/lifedever/claude-rules -->- Empty line
- Content of
base/core.md - Content of
base/git.md - Each detected language file
- Each detected framework file
Write to CLAUDE.md in the current working directory.
If CLAUDE.md already exists, warn user and ask before overwriting.
Step 4: Report
- List included rule files
- Total line count
- Remind user to run
claude plugin marketplace update claude-rulesto get latest rules
리뷰
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
댓글
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.