setup

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

A project setup assistant that scans a code project and recommends configuration. It supports new projects, existing configuration, upgrades, and resets.

In plain words
What is it for?
For initializing or updating project settings, choosing development preferences, and recording setup details after a short guided configuration.
Why use it?
It reduces the manual work of figuring out a project's language, testing tools, package manager, Git state, and existing assistant configuration.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/znlnzi/claude-config-studio/setup
Any agent
npx skills add znlnzi/claude-config-studio --skill setup
Clone the repo
git clone --depth 1 https://github.com/znlnzi/claude-config-studio

Made for: Claude Code, Codex.

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 setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/setup.svg)](https://agentmods.dev/skills/znlnzi/claude-config-studio/setup)
Your own site
<a href="https://agentmods.dev/skills/znlnzi/claude-config-studio/setup"><img src="https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,409 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.02409
Opus 5 $0.00011 $0.01205
Sonnet 5 $0.00004 $0.00482
Haiku 4.5 $0.00002 $0.00241

Measured 4d ago against content hash 51cffabe6c30, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 4d 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/setup/SKILL.md · 241 lines

How it starts

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

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

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


模式判断

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

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

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

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 都是同一作者

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

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

问题 1: 开发风格偏好

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

问题 2: 团队规模

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

问题 3: 跨会话记忆

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

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 · 241 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. 4d ago First seen · 241 lines · 22 tokens per session scan A 51cffabe6c30

Subscribe to this mod's changes

setup is a skill published in the GitHub repository znlnzi/claude-config-studio (0 stars, last pushed 6mo ago), licensed MIT. It adds 22 tokens to every session and 2,409 once invoked, about $0.0001 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-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

specification-writing

Write the full patent specification from claims and invention disclosure. Use when user says "撰写说明书", "write specification", "写说明书", "patent description", or wants to draft the complete patent specification.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens

golden-rss

Use when testing the rss golden build.

yusufkaraaslan/Skill_Seekers · 12 tokens

overleaf-sync

Two-way sync between a local paper directory and an Overleaf project, so ARIS audit/edit workflows stay on the local copy while collaborators edit in the Overleaf web UI. Use when user says "同步 overleaf", "overleaf sync", "推送到 overleaf", "connect overleaf", "Overleaf 桥接", "pull overleaf", "push overleaf", or wants to…

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens

omh-rust

This is a Hermes-native rust workflow skill.

rlaope/oh-my-hermes · 69 tokens