一键导入
styleguide
Detect project languages and inject code style guides into CLAUDE.md. Provides consistent coding conventions for all Claude Code interactions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Detect project languages and inject code style guides into CLAUDE.md. Provides consistent coding conventions for all Claude Code interactions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
UI/UX design intelligence with searchable database
Generate comprehensive implementation plans through systematic discovery, synthesis, verification, and decomposition into beads. Use when asked to plan a feature, create a roadmap, design an implementation approach, or decompose work into trackable issues. Do NOT use for simple one-step tasks, quick fixes, or when the user just wants to execute an existing plan — use the work skill instead.
Execute a plan or direct task with worker delegation and verification.
Deep investigation mode. Gather context, analyze, synthesize recommendations without making code changes.
Fetch up-to-date library documentation via Context7 MCP. Use when working with external libraries, APIs, or frameworks.
Start interview-driven planning with Prometheus. Asks clarifying questions before generating implementation plan.
| name | styleguide |
| description | Detect project languages and inject code style guides into CLAUDE.md. Provides consistent coding conventions for all Claude Code interactions. |
| argument-hint | [--remove] |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion |
| disable-model-invocation | true |
Detect project languages, select matching style guides, and inject them into the host project's
CLAUDE.md.
$ARGUMENTS
--remove: Remove the injected code style section from CLAUDE.md and exit.If $ARGUMENTS contains --remove:
CLAUDE.md<!-- maestro:code-styleguides:start --> and <!-- maestro:code-styleguides:end -->If markers not found, report: "No code style guides found in CLAUDE.md" and stop.
Scan the project root for configuration files to determine which languages are used. Collect ALL matches — a project can use multiple languages.
Detection rules (check all, collect matches):
| Config File | Language | Guide File |
|---|---|---|
package.json | JavaScript | javascript.md |
tsconfig.json OR tsconfig*.json | TypeScript | typescript.md |
pyproject.toml OR setup.py OR requirements.txt OR Pipfile | Python | python.md |
go.mod | Go | go.md |
CMakeLists.txt OR *.cpp/*.cc/*.cxx in src/ | C++ | cpp.md |
*.csproj OR *.sln | C# | csharp.md |
pubspec.yaml | Dart | dart.md |
*.html in root or src/ OR *.css/*.scss in root or src/ | HTML/CSS | html-css.md |
Use Glob to check for each config file. Run these checks in parallel where possible:
Glob(pattern: "package.json")
Glob(pattern: "tsconfig*.json")
Glob(pattern: "pyproject.toml")
Glob(pattern: "setup.py")
Glob(pattern: "requirements.txt")
Glob(pattern: "Pipfile")
Glob(pattern: "go.mod")
Glob(pattern: "CMakeLists.txt")
Glob(pattern: "*.csproj")
Glob(pattern: "*.sln")
Glob(pattern: "pubspec.yaml")
TypeScript refinement: If package.json is found, also check for tsconfig.json. If both exist, include both JavaScript AND TypeScript guides. If only package.json exists (no tsconfig), include only JavaScript.
If no languages detected: Ask the user which languages to include:
AskUserQuestion(
questions: [{
question: "No language config files detected. Which languages does this project use?",
header: "Select Languages",
options: [
{ label: "JavaScript", description: "Google JavaScript Style Guide" },
{ label: "TypeScript", description: "Google TypeScript Style Guide" },
{ label: "Python", description: "Google Python Style Guide" },
{ label: "Go", description: "Effective Go" },
{ label: "C++", description: "Google C++ Style Guide" },
{ label: "C#", description: "Google C# Style Guide" },
{ label: "Dart", description: "Effective Dart" },
{ label: "HTML/CSS", description: "Google HTML/CSS Style Guide" }
],
multiSelect: true
}]
)
Present the detected languages and ask for confirmation:
AskUserQuestion(
questions: [{
question: "Detected languages: {list}. Inject these style guides into CLAUDE.md?",
header: "Confirm Style Guides",
options: [
{ label: "Yes, inject", description: "Add style guides for detected languages + general principles" },
{ label: "Customize", description: "Let me choose which languages to include" },
{ label: "Cancel", description: "Do not modify CLAUDE.md" }
],
multiSelect: false
}]
)
On "Customize": Show the multi-select language picker from Step 2's fallback. On "Cancel": Stop without modifying anything.
Build the injection content:
<!-- maestro:code-styleguides:start -->## Code Style Guidelines<!-- Auto-generated by Maestro /styleguide. Do not edit manually. Re-run /styleguide to update. -->> Source: [conductor style guides](https://github.com/gemini-cli-extensions/conductor/tree/main/templates/code_styleguides)general.md from the Maestro plugin's styleguides library<!-- maestro:code-styleguides:end -->Locating the guide files: The guide templates live in this skill's references/ directory (.claude/skills/styleguide/references/). To find them:
# Try project path first (if Maestro is the current project)
ls .claude/skills/styleguide/references/ 2>/dev/null
# Fall back to global plugin path
find ~/.claude/plugins/marketplaces -path "*/maestro/.claude/skills/styleguide/references" -type d 2>/dev/null
Try the project path first, then fall back to the global plugin path.
Assembled content example:
<!-- maestro:code-styleguides:start -->
## Code Style Guidelines
<!-- Auto-generated by Maestro /styleguide. Do not edit manually. Re-run /styleguide to update. -->
> Source: [conductor style guides](https://github.com/gemini-cli-extensions/conductor/tree/main/templates/code_styleguides)
{content of general.md}
{content of typescript.md}
{content of python.md}
<!-- maestro:code-styleguides:end -->
If CLAUDE.md exists in the project root:
<!-- maestro:code-styleguides:start --> and <!-- maestro:code-styleguides:end -->)
If CLAUDE.md does not exist:
CLAUDE.md with a minimal header and the assembled content:
# Project
{assembled style guide content}
Output a summary:
## Style Guides Injected
**Languages**: {list of languages}
**File**: CLAUDE.md
**Guides included**:
- General Code Style Principles
- {Language 1} Style Guide
- {Language 2} Style Guide
- ...
To update: `/styleguide`
To remove: `/styleguide --remove`