claude-config-studio: Skill for Claude Code

.claude/skills/luoshu.setup/SKILL.md

luoshu.setup is a skill for Claude Code from znlnzi/claude-config-studio. It costs 32 tokens per session (2,853 once invoked), scanned A, original, MIT.

A project setup guide that scans a code project and helps configure its Claude Code files. It asks up to three questions and supports new setups, existing setups, upgrades, and resets.

In plain words
What is it for?
It helps initialize or upgrade a project's .claude configuration, configure the language model, install templates, and record setup details.
Why use it?
It removes the need to inspect the project and choose configuration manually. It adapts the setup to the project's language, test tools, package manager, and Git state.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool.

This is znlnzi/claude-config-studio's own configuration. It tells Claude Code how to work on claude-config-studio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-config-studio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to znlnzi/claude-config-studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/znlnzi/claude-config-studio/main/.claude/skills/luoshu.setup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/znlnzi/claude-config-studio

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for luoshu.setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/luoshu.setup/github.svg)](https://agentmods.dev/skills/znlnzi/claude-config-studio/luoshu.setup)
Your own site
<a href="https://agentmods.dev/skills/znlnzi/claude-config-studio/luoshu.setup"><img src="https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/luoshu.setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for luoshu.setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlnzi/claude-config-studio/luoshu.setup"><img src="https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/luoshu.setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,853 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.02853
Opus 5 $0.00016 $0.01426
Sonnet 5 $0.00006 $0.00571
Haiku 4.5 $0.00003 $0.00285

Measured 8d ago against content hash 69854e6a95a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

luoshu.setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/luoshu.setup/SKILL.md · 301 lines

How it starts

The opening of the file, as written. The whole thing — 301 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/luoshu.setup -- 项目初始化与升级

根据项目特征自动推荐配置。新项目走完整初始化流程,已配置项目走增量升级流程。


模式判断

根据项目状态自动选择模式:

条件 模式 行为
.claude/ 目录 全新初始化 检测项目 → 3 个问题 → 安装模板 → LLM 配置 → 写 meta
.claude/ + 无 .setup-meta.json 注册现有配置 扫描已有配置 → 问用户偏好 → LLM 配置 → 写 meta
.setup-meta.json 或传 --upgrade 增量升级 对比已安装 vs 可用 → 展示新功能 → 检查 LLM 配置
传了 --reset 重新配置 备份 → 重走完整流程

模式 A: 全新初始化(无 .claude/)

Step 1. 检测项目特征(自动,零操作)

调用 detect_project 工具,传入当前项目路径。该工具一次调用即返回完整的项目特征:

  • 语言/框架: 自动识别(TypeScript, Go, Python, Rust 等)
  • 测试框架: 从依赖和配置文件中提取(Jest, Vitest, pytest, go test 等)
  • 包管理器: 通过 lock 文件优先匹配(pnpm, yarn, npm, poetry 等)
  • Git 状态: 是否初始化、最近作者(判断独立/团队)、当前分支
  • Claude 配置: .claude/ 目录和 .setup-meta.json 状态(可直接用于模式判断)

返回结果中的 claude_config 字段可直接用于模式判断:

  • has_claude_dir == false → 模式 A(全新初始化)
  • has_claude_dir == true && has_setup_meta == false → 模式 B(注册现有配置)
  • has_setup_meta == true → 模式 C(增量升级)

简洁呈现检测结果:

我快速扫描了一下:
- 项目类型: Next.js 14 + TypeScript
- 测试框架: Jest + React Testing Library
- 包管理器: pnpm
- Git: 已初始化,最近 3 个 commit 都是同一作者

Step 2. 快速配置(严格控制在 3 个问题以内)

使用 AskUserQuestion 工具,一次性问 3 个问题:

问题 1: 开发风格偏好

  • (a) 严谨型 -- TDD、代码审查、严格类型检查(推荐给生产项目)
  • (b) 快速型 -- 重速度,轻流程(推荐给原型/实验/hackathon)
  • (c) 平衡型 -- 关键路径严谨,其余灵活

问题 2: 团队规模

  • (a) 独立开发(根据 git log 判断是否只有一个作者,如果是则标注 [检测到])
  • (b) 团队协作

问题 3: 跨会话记忆

  • (a) 启用(推荐)-- Claude 记住上次聊到哪里、你的偏好、项目知识
  • (b) 不需要

Step 3. 配置映射与安装

根据选择调用 MCP 工具安装模板:

选择组合 安装的模板 核心能力
严谨 + 独立 + 记忆 hackathon-core + cross-session-memory + code-review-checkpoint TDD、代码审查、记忆、构建诊断
严谨 + 团队 + 记忆 hackathon-core + cross-session-memory + code-review-checkpoint 同上 + 架构审查、安全审查
快速 + 独立 + 无记忆 hackathon-core 基础验证、构建诊断
快速 + 独立 + 记忆 hackathon-core + cross-session-memory 基础验证 + 记忆
平衡 + 任意 + 记忆 hackathon-core + cross-session-memory + code-review-checkpoint 规划、验证、代码审查、记忆
平衡 + 任意 + 无记忆 hackathon-core + code-review-checkpoint 规划、验证、代码审查

Read the full file on GitHub · 301 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 301 lines · 32 tokens per session scan A 69854e6a95a2

Subscribe to this mod's changes

luoshu.setup is a skill published in the GitHub repository znlnzi/claude-config-studio (0 stars, last pushed 6mo ago), licensed MIT. It adds 32 tokens to every session and 2,853 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

opencli-usage

Use at the start of any OpenCLI session — this is the top-level map of what opencli can do, how to discover adapters, what flags and output formats are universal, and which specialized skill to load next. Point here when an agent asks "what can opencli do?" or "how do I find the right command?".

jackwener/OpenCLI · 74 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

opencli-browser-sitemap

Use when driving a website with opencli browser and sitemap context is available, requested, or needed to avoid blind navigation. Guides agents to consume site sitemap files lazily, choose adapter/browser fallback paths, resume from state signatures, and mark stale sitemap entries without trusting them over live…

jackwener/OpenCLI · 64 tokens

crit-story

Author a crit story and continue the interactive review loop only when the user explicitly invokes crit-story or directly asks you to generate a crit story. Do not infer this skill from generic review, PR, or diff-review requests.

tomasz-tomczyk/crit · 47 tokens

gpt-vis

A chart-generation tool that recommends visual formats for data and produces either chart settings or runnable code. It uses GPT-Vis, a library for rendering data visualisations.

antvis/chart-visualization-skills · 63 tokens

antv-x6-editor

A skill for creating and troubleshooting interactive diagrams with AntV X6, a JavaScript engine for editors made of connected nodes and lines. It supports diagram types such as flowcharts, dependency graphs, entity-relationship diagrams, and organization charts.

antvis/chart-visualization-skills · 253 tokens