ワンクリックで
codebti
运行 CodeBTI 访谈,推断项目级和语言级编码风格偏好,并生成项目专属的 CodeStyle.md、SKILL.md 或 SPEC.md 指导。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
运行 CodeBTI 访谈,推断项目级和语言级编码风格偏好,并生成项目专属的 CodeStyle.md、SKILL.md 或 SPEC.md 指导。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Run CodeBTI interviews to infer project and language coding-style preferences and generate project-specific CodeStyle.md, SKILL.md, or SPEC.md guidance.
End-of-session knowledge cleanup with OCD-level rigor — reconciles project docs (CLAUDE.md, README.md, docs/) and agent memory against the code so nothing rots. 会话结束后对项目文档和记忆进行洁癖级审查与同步。MUST trigger when the user says: "sync up", "tidy up docs", "update memory", "clean up docs", "/sync", "/neat", "同步一下", "整理文档", "整理一下", "更新记忆", "梳理一下", "收尾", "这个阶段做完了", "新人能直接上手", or any phrase suggesting a dev milestone where knowledge needs reconciliation. Also trigger when the user reports stale docs, conflicting memories, or wants a clean handoff to teammates or other agents. Bare "整理" / "tidy" with prior dev context counts — do not under-trigger. Cross-platform: works on Claude Code, OpenAI Codex, OpenCode, and OpenClaw.
会话结束后的知识库洁癖式收尾同步:把项目文档(README.md、docs/、CLAUDE.md、 AGENTS.md 等)和 agent 记忆拿代码逐项对齐,合并重复、删除过期、修正冲突,避免知识腐烂。 当用户说 "sync up"、"tidy up docs"、"update memory"、"clean up docs"、"/sync"、 "/neat"、"同步一下"、"整理文档"、"整理一下"、"更新记忆"、"梳理一下"、"收尾"、 "这个阶段做完了"、"新人能直接上手",或任何表示开发阶段结束、文档需要对齐、 记忆冲突、交接给同事/其他 agent 的表达时必须触发。已有开发上下文里的裸 "整理" / "tidy" 也算触发,不要漏触发。适用于 Claude Code、OpenAI Codex、OpenCode、OpenClaw。
| name | codebti |
| description | 运行 CodeBTI 访谈,推断项目级和语言级编码风格偏好,并生成项目专属的 CodeStyle.md、SKILL.md 或 SPEC.md 指导。 |
当用户想为项目建立一致的编码风格、设计模式姿态、测试策略、依赖策略或协作工作流时使用本技能。触发语包括:"运行 CodeBTI 访谈"、"定义我们的编码风格"、"创建 CodeStyle.md"、"生成 SKILL.md"、"创建 SPEC.md"、"我们的项目风格是什么",或任何明确要求使用 CodeBTI 的请求。
| 包 | 用途 |
|---|---|
project/ | 项目级决策:协作、输出形态、验证门禁、共享与语言规则边界、依赖治理和变更记录。 |
python/ | Python 专属风格、类型、错误处理、目录结构、测试、注释、Git 和依赖。 |
typescript/ | TypeScript 专属风格、类型、interface/type、错误处理、目录结构、测试、注释、Git 和依赖。 |
shared/ | 语言中立的问题格式、适应性追问规则、模板和会话记录结构。 |
shared/records/session-record.template.md 作为结构,在目标项目根目录创建或更新实时 Recording.md。shared/templates/SPEC.template.md 创建或更新初始 SPEC.md 草稿。保留 what 和 why;除非用户将实现细节指定为约束,否则把实现细节留到后续 feature planning。project/questions/fixed-project.md 中的 6 个固定项目问题。每个问题提问前,将完整用户面对题目卡保存到 Recording.md,然后记录答案和反馈。python/questions/fixed-python.mdtypescript/questions/fixed-typescript.mdRecording.md 中按语言目标记录每组语言答案。shared/questions/adaptive-question-guide.md 在整个会话中总共提出恰好 5 个适应性追问。适应性问题可以针对项目级模糊点、某个语言或跨语言冲突。Recording.md 和当前 SPEC.md 草稿,并将它们作为 Profile 推断的事实来源。project/profiles/project-profile-taxonomy.md 推断项目级 Profile。python/profiles/python-profile-taxonomy.md, python/patterns/gof/typescript/profiles/typescript-profile-taxonomy.md, typescript/patterns/gof/templates/CodeStyle.template.md;project/templates/MultiLanguageCodeStyle.template.md,先写共享项目规则,再写语言专属章节;project/templates/ProjectStyle.template.md;SKILL.md 或 SPEC.md:使用 shared/templates/SKILL.template.md 和 shared/templates/SPEC.template.md。| 文件 | 用途 |
|---|---|
project/questions/fixed-project.md | 6 个项目级访谈问题 |
project/profiles/project-profile-taxonomy.md | 项目级工作流和治理 Profile |
project/templates/ProjectStyle.template.md | 项目级风格和工作流输出模板 |
project/templates/MultiLanguageCodeStyle.template.md | 多语言 CodeStyle.md 输出模板 |
python/questions/fixed-python.md | 10 个固定 Python 访谈问题 |
typescript/questions/fixed-typescript.md | 10 个固定 TypeScript 访谈问题 |
shared/questions/adaptive-question-guide.md | 5 个适应性追问的规则 |
shared/questions/editorial-guide.md | 问题编辑规则 |
shared/questions/question-format.md | 标准题目卡格式 |
shared/records/session-record.template.md | 多轮会话记录模板 |
shared/templates/SKILL.template.md | SKILL.md 输出模板 |
shared/templates/SPEC.template.md | SPEC.md 输出模板 |
Recording.md,而不仅仅是答案。SPEC.md,并在后续 replanning 或 feature work 后继续修订。Recording.md,再给出一两句项目相关反馈,然后问下一个问题。CodeStyle.md、ProjectStyle.md、SKILL.md 或最终 SPEC 更新前,重新阅读 Recording.md 和 SPEC.md。