当设计或修改 REST API 响应结构、处理 API 返回值时触发。防止 API 设计缺陷导致的字段错位、类型歧义等问题。
The English summary is being prepared. Showing the original description.
扫描当前仓库并生成或更新项目级 AGENTS.md / README.md / 全套脚手架文件(restart.sh、ignore、Dockerfile、docker-compose),适用于显式 project-scan、项目认知初始化或刷新项目级 Codex 上下文的场景。
The English summary is being prepared. Showing the original description.
Review the instructions the agent will receive before you install.
当用户明确要求 project-scan、扫描项目、生成项目级 AGENTS.md、生成或刷新 README.md,或刷新项目级 Codex 上下文时,使用本技能。
不要用于:
AGENTS.md、README.md、Dockerfile 或脚本扫描结束后,默认按以下清单一次性补齐项目脚手架(已存在的逐个询问"覆盖 / 跳过 / 增量更新"):
| 序号 | 文件 | 用途 |
|---|---|---|
| 1 | AGENTS.md | 项目级 Codex 上下文 |
| 2 | README.md | 项目说明 |
| 3 | restart.sh | 前后端打包 + 启动脚本 |
| 4 | .claudeignore | Claude Code 忽略 |
| 5 | .geminiignore | Gemini CLI 忽略(内容复制自 .claudeignore) |
| 6 | .gitignore | Git 忽略 |
| 7 | .dockerignore | Docker 忽略 |
| 8 | Dockerfile | 容器构建 |
| 9 | docker-compose.yml | 容器编排 |
清单不可缩减;与 Claude /project-scan、Cursor 同名命令的产出对齐。
.codex/tasks/、.codex/tasks/archived/、.codex/templates/ 存在;若项目根目录写入触发权限边界,先走平台审批,不静默跳过。AGENTS.md、README.md、.claude/CLAUDE.md,并复用 cc-project-init/assets/AGENTS.project.md 作为 AGENTS.md 模板来源。<!-- AUTO:* --> 区块 → 优先增量更新自动区块,保留手写内容cc-project-init/assets/ 选模板按技术栈渲染后落盘.geminiignore 内容必须与 .claudeignore 保持一致restart.sh 落盘后必须 chmod +x。cc-project-init/references/template-selection.md;忽略文件内容规范参见 references/scaffold-files.md。.codex 骨架,以及仍需用户补充的项目事实。AGENTS.md 模板资产复用 cc-project-init/assets/AGENTS.project.mdcc-project-init/assets/(restart-go.sh.tmpl、Dockerfile-go.tmpl、docker-compose-*.yml.tmpl、gitignore-go.tmpl、dockerignore.tmpl 等)README.md 生成和更新遵循 references/readme-update.mdnew-featurecc-api-contract-safety 的方式,不臆测响应结构.codex/tasks/、.codex/tasks/archived/、.codex/templates/,必须明确说明AGENTS.md 中标注"待用户确认",不要伪造规范README.md 中必须标注"待确认",不要编造命令Cargo.toml、go.mod、pom.xml、package.json 之一可推断技术栈,必须先和用户确认目标技术栈,再选模板,避免按错栈生成脚手架references/scan-checks.mdreferences/agents-blocks.mdreferences/rebuild-strategy.mdreferences/readme-update.mdreferences/scaffold-files.mdcc-project-init/references/template-selection.mdNo reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
当设计或修改 REST API 响应结构、处理 API 返回值时触发。防止 API 设计缺陷导致的字段错位、类型歧义等问题。
The English summary is being prepared. Showing the original description.
当设计或修改 REST API 响应结构、处理 API 返回值,或生成 Excel/CSV/PDF/对账文件等下游产物时触发。防止 API 设计缺陷导致的字段错位、类型歧义,以及生成产物时关键字段缺失但静默成功的问题。
The English summary is being prepared. Showing the original description.
网关/代理/WAF/CDN 中间件的安全关键词匹配实现规范,防止纯子串匹配误判正常响应内容中的技术术语(如 Cloudflare、502、error)
The English summary is being prepared. Showing the original description.
当 API/任务可能执行超过 10 秒(批量数据处理、远程 API 批量调用、全表扫描、跨租户聚合)时触发。防止同步接口被网关 30s 超时切断、用户重复点击触发并发、状态缓存内存泄漏等问题。提供异步任务状态机标准模板。
The English summary is being prepared. Showing the original description.
Bash 脚本与系统命令规范。禁止行尾注释,强制使用 tee/heredoc 写入,提升命令执行的可维护性。
The English summary is being prepared. Showing the original description.
当用户操作 .sh、Dockerfile、Makefile、.yml、.yaml 文件,或在 Markdown 中编写 bash 代码块时触发。提供 Bash 编写规范。
The English summary is being prepared. Showing the original description.