agentsclimarketplace

Init rules

Skill lifedever/claude-rules/.claude/skills/init-rules

Coding standards for AI coding assistants. Auto-detect tech stack, generate project rules. Works with Claude Code, Cursor, Antigravity, GitHub Copilot.

Install
npx -y skills add lifedever/claude-rules --skill init-rules

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

2.6 KB, as published. Nobody here has run it

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:

SignalRule File
tsconfig.json or *.ts fileslanguages/typescript.md
package.json with "vue" dependencyframeworks/vue.md
package.json with "react" dependencyframeworks/react.md
src-tauri/ directoryframeworks/tauri.md
*.js files without tsconfig.jsonlanguages/javascript.md
*.java files or pom.xmllanguages/java.md
build.gradle.kts or *.kt fileslanguages/kotlin.md
pom.xml/build.gradle with spring-bootframeworks/springboot.md
Package.swift or *.swift fileslanguages/swift.md
Swift files with import SwiftUIframeworks/swiftui.md
pyproject.toml or requirements.txtlanguages/python.md
*.html fileslanguages/html.md
*.css/*.scss fileslanguages/css.md
go.mod or *.go fileslanguages/go.md
Cargo.toml or *.rs fileslanguages/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:

  1. ${CLAUDE_SKILL_DIR}/base/core.md
  2. ${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:

  1. <!-- Generated by init-claude-rules | https://github.com/lifedever/claude-rules -->
  2. Empty line
  3. Content of base/core.md
  4. Content of base/git.md
  5. Each detected language file
  6. 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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.