← 返回
开发者工具 中文

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/ AI 协作层。当智能体开始使用 Claude Code 进行开发、进入新项目目录时使用...
eaveluo
开发者工具 clawhub v1.0.1 1 版本 99859.6 Key: 无需
★ 0
Stars
📥 711
下载
💾 38
安装
1
版本
#latest

概述

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.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 00:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,975
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,998
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,767