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.
DeepseekModel
官方收录技能
质量 优秀 · 78
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=lifedever-claude-rules-claude-skills-init-rules-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name init-rules description 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. 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-rules to get latest rules
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |