配置生成器

CLAUDE.md 生成器

创建 Claude Code 项目记忆,说明技术栈、命令、协作期待和交付检查习惯。

最后更新: 2026年6月12日

CLAUDE.md
# Claude Code Project Memory

Use this file as durable project memory for Claude Code.

## Project Context

- Project type: Next.js
- Tech stack: Next.js, TypeScript, React, CSS modules
- Coding style: Prefer small components, explicit types, accessible UI, and existing project patterns.
- AI tool target: CLAUDE.md 生成器

## Project Commands

- Package manager: npm
- Test: `npm test`
- Build: `npm run build`
- Lint: `npm run lint`

## Working Agreement

- Read nearby files and reuse established project patterns.
- Make small, reviewable changes.
- Do not introduce new dependencies unless they clearly reduce complexity.
- Keep user-facing text concise and accessible.
- Preserve unrelated user changes in the working tree.

## Validation

1. Run `npm run lint` for style and static checks.
2. Run `npm test` for behavior.
3. Run `npm run build` before release or handoff.

## Extra Instructions

Before handoff, summarize changed files and mention any checks that could not be run.

使用 CLAUDE.md 生成器,把零散的项目习惯整理成 Claude Code 可长期读取的指令文件。好的输出会说明如何安装项目、用哪些命令验证改动,以及代理应该保留哪些代码模式。

CLAUDE.md 应该包含什么

有用的 CLAUDE.md 应聚焦稳定项目上下文,而不是临时任务备注。建议包含技术栈、包管理器、测试命令、构建命令、架构边界和审查期待。

什么时候重新生成

当仓库更换包管理器、加入主要框架、修改测试命令,或新增数据库、API、前端规则时,应该重新生成或更新文件。

常见问题

CLAUDE.md 应该提交到仓库吗?

如果指导对整个团队有用且不包含密钥,应该提交。

CLAUDE.md 应该多长?

保持足够简洁,便于扫读;同时具体到命令、目录和审查期待。