← 返回 Skills 市场
eaveluo

Claude Code Setup

作者 Eave Luo · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
435
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install claude-code-setup
功能描述
Setup production-grade .claude/ AI collaboration layer for projects. Use when an agent starts using Claude Code for development, enters a new project directo...
使用说明 (SKILL.md)

Claude Code Setup

Setup production-grade `.claude/` AI collaboration layer for projects.

Overview

This skill ensures projects have a proper `.claude/` configuration before agents start development work with Claude Code. It acts as a supervisor to maintain and enforce project standards.

Important: Target Project Directory

.claude/ must be created in the target project directory, NOT in your workspace root.

Example:

  • ❌ Wrong: /home/user/workspace-xiaolong/.claude/ (workspace root)
  • ✅ Correct: /home/user/eave-web/.claude/ (actual project being developed)

Always identify which project you're working on first, then check/create .claude/ in that directory.

When to Use

  • Starting a new development task with Claude Code
  • Entering a new project directory
  • User mentions "Claude Code", ".claude", "AI collaboration layer", or "project standards"

Workflow

Step 1 — Check First

Always check if `.claude/` directory already exists in the target project directory:

```bash ls -la .claude/ 2>/dev/null ```

Step 2 — If Missing → Create

If the project doesn't have `.claude/` directory, create it first before development:

```bash node ~/.openclaw/skills/claude-code-setup/index.js ```

Step 3 — If Exists → Supervise

If `.claude/` already exists:

  • DO NOT overwrite existing files
  • DO NOT recreate the structure
  • ✅ Let Claude Code naturally maintain and update during development

Step 4 — Be a Supervisor

Your role is supervisor, not executor:

  • Ensure Claude Code follows rules in `.claude/`
  • During development, let Claude Code update configs based on actual code
  • Periodically review if `.claude/` content matches the project reality

Core Principles

  1. CLAUDE.md is core — Highest priority project instructions
  2. Modular — Separate rules/skills/context
  3. Clear directives — Use MUST/ALWAYS/NEVER
  4. Project context — Must include project overview and tech stack
  5. Don't reinvent — Reuse and maintain existing configs

.claude/ Directory Structure

``` .claude/ ├── CLAUDE.md # ⭐ Project-level global instructions (most important) ├── rules/ # Team rule library │ ├── frontend.md │ ├── typescript.md │ └── commit.md ├── context/ # Project context knowledge │ ├── project.md │ └── stack.md ├── skills/ # Project-private skills │ └── generate-crud.md └── prompts/ # Reusable prompt templates └── review.md ```

Common Mistakes to Avoid

❌ Writing as requirements doc or README
❌ Vague rules ("try to", "should")
❌ Only CLAUDE.md without modularity
❌ Missing project context
❌ Overwriting existing configs
❌ Redundant recreation

Collaboration with Claude Code

When using Claude Code:

  1. Before starting: Ensure `.claude/` exists
  2. During development: Let Claude Code reference rules in `.claude/`
  3. After completion: Update `.claude/` with any new standards learned

Template Files

See `index.js` for template definitions.

安全使用建议
This skill appears to do what it says: create a .claude/ directory and populate it with templates. Before running it: (1) ensure your shell's current working directory is the exact project directory you intend — running it in the wrong folder will create .claude/ there; (2) inspect index.js if you want to verify templates or behavior (it is included and easy to read); (3) you can run it without --force to avoid overwriting existing files (the script checks and skips existing files); (4) there are no network calls or credential requests, but treat any file-write operation carefully in sensitive repositories (consider running in a disposable test repo first).
功能分析
Type: OpenClaw Skill Name: claude-code-setup Version: 1.0.1 The skill's primary purpose is to set up a `.claude/` directory structure with configuration files for an AI agent (Claude Code) in the current project directory. The `SKILL.md` instructs the OpenClaw agent to execute the `index.js` script, which then uses standard Node.js file system operations (`fs.mkdirSync`, `fs.writeFileSync`) to create the specified directories and populate them with markdown templates. These templates contain guidelines and rules for the *target* AI, including security best practices (e.g., 'No hardcoded secrets', 'Input validation present' in `prompts/review.md`). There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection against the OpenClaw agent to perform unauthorized actions. The script is transparent and avoids overwriting existing configurations by default.
能力评估
Purpose & Capability
Name/description match the actual behavior: SKILL.md and index.js both set up a .claude/ directory and populate it with template files. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
Runtime instructions tell the agent to check for .claude/ and, if missing, run the bundled index.js to create templates. That is appropriate for the purpose, but the instructions and script will write files into the current working directory — the SKILL.md warns about choosing the correct project directory. Confirm you run it in the intended project to avoid accidental writes.
Install Mechanism
No install spec or remote downloads. The skill is instruction-only for install but includes a local index.js script (no obfuscated code or external fetch). This is low-risk compared with network installs.
Credentials
The skill requests no environment variables or credentials and only accesses the working directory and .claude/ path; access is proportional to its stated function.
Persistence & Privilege
always:false and default autonomous invocation are set. The skill does write files to the project but does not request persistent elevated privileges or modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claude-code-setup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claude-code-setup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Add important note: .claude/ must be created in target project directory, not workspace root
v1.0.0
Initial release: Setup production-grade .claude/ AI collaboration layer for projects
元数据
Slug claude-code-setup
版本 1.0.1
许可证
累计安装 2
当前安装数 2
历史版本数 2
常见问题

Claude Code Setup 是什么?

Setup production-grade .claude/ AI collaboration layer for projects. Use when an agent starts using Claude Code for development, enters a new project directo... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 435 次。

如何安装 Claude Code Setup?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claude-code-setup」即可一键安装,无需额外配置。

Claude Code Setup 是免费的吗?

是的,Claude Code Setup 完全免费(开源免费),可自由下载、安装和使用。

Claude Code Setup 支持哪些平台?

Claude Code Setup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Claude Code Setup?

由 Eave Luo(@eaveluo)开发并维护,当前版本 v1.0.1。

💬 留言讨论