← 提示词库 Anthropic/claude-code/skills/init/SKILL.md 原文 md
🌐 中英双语对照

name: init
description: Initialize a new CLAUDE.md file with codebase documentation

Please analyze this codebase and create a CLAUDE.md file, which will be given to future instances of Claude Code to operate in this repository.

请分析此代码库并创建一个 CLAUDE.md 文件,该文件将提供给未来的 Claude Code 实例,用于在此仓库中开展工作。

What to add:

  1. Commands that will be commonly used, such as how to build, lint, and run tests. Include the necessary commands to develop in this codebase, such as how to run a single test.
  2. High-level code architecture and structure so that future instances can be productive more quickly. Focus on the "big picture" architecture that requires reading multiple files to understand.

需要添加的内容:

  1. Commands that will be commonly used, such as how to build, lint, and run tests. Include the necessary commands to develop in this codebase, such as how to run a single test.
  2. 常用的命令,例如如何构建、运行 lint 和执行测试。包括在此代码库中开发所需的必要命令,例如如何运行单个测试。
  3. High-level code architecture and structure so that future instances can be productive more quickly. Focus on the "big picture" architecture that requires reading multiple files to understand.
  4. 高层代码架构与结构,使未来的实例能更快上手。重点关注那些需要阅读多个文件才能理解的"全局性"架构。

Usage notes:

使用说明:

# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

【评论】其中"不编造 Common Development Tasks 之类章节"的条款,是对早期 CLAUDE.md 生成常出现"模板化填充内容"这一问题的针对性约束;对其他代理(Codex/Gemini)配置的导入指引则显示该技能已内置跨工具迁移路径,且特意禁止代理自行解析外部配置以防路径穿越风险。