一键导入
codebti
Run CodeBTI interviews to infer project and language coding-style preferences and generate project-specific CodeStyle.md, SKILL.md, or SPEC.md guidance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run CodeBTI interviews to infer project and language coding-style preferences and generate project-specific CodeStyle.md, SKILL.md, or SPEC.md guidance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | codebti |
| description | Run CodeBTI interviews to infer project and language coding-style preferences and generate project-specific CodeStyle.md, SKILL.md, or SPEC.md guidance. |
Use this skill when a user wants to establish consistent coding style, design-pattern posture, testing policy, dependency policy, or collaboration workflow for a project. Trigger on: "run a CodeBTI interview", "define our coding style", "create a CodeStyle.md", "generate a SKILL.md", "create a SPEC.md", "what's our project style", or any explicit request to use CodeBTI.
| Pack | Purpose |
|---|---|
project/ | Project-wide decisions: collaboration, output shape, validation gates, shared-vs-language rules, dependency governance, and change records. |
python/ | Python-specific style, typing, error handling, folder structure, tests, comments, Git, and dependencies. |
typescript/ | TypeScript-specific style, typing, interfaces/types, error handling, folder structure, tests, comments, Git, and dependencies. |
shared/ | Language-neutral question format, adaptive question rules, templates, and session record structure. |
Recording.md in the target project root using shared/records/session-record.template.md as the structure.SPEC.md draft using shared/templates/SPEC.template.md. Preserve what and why; leave implementation details for later feature planning unless the user named them as constraints.project/questions/fixed-project.md. Save the full user-facing question card in Recording.md before each question, then record the answer and feedback.python/questions/fixed-python.mdtypescript/questions/fixed-typescript.mdRecording.md.shared/questions/adaptive-question-guide.md. The adaptive questions may target project-level ambiguity, one language, or a cross-language conflict.Recording.md and the current SPEC.md draft, then use them as the source of truth for profile inference.project/profiles/project-profile-taxonomy.md.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 with shared project rules first, then language-specific sections;project/templates/ProjectStyle.template.md when helpful;SKILL.md or SPEC.md: use shared/templates/SKILL.template.md and shared/templates/SPEC.template.md.| File | Purpose |
|---|---|
project/questions/fixed-project.md | 6 project-wide interview questions |
project/profiles/project-profile-taxonomy.md | Project-level workflow and governance profiles |
project/templates/ProjectStyle.template.md | Project-level style and workflow output template |
project/templates/MultiLanguageCodeStyle.template.md | Multi-language CodeStyle.md output template |
python/questions/fixed-python.md | 10 fixed Python interview questions |
typescript/questions/fixed-typescript.md | 10 fixed TypeScript interview questions |
shared/questions/adaptive-question-guide.md | Rules for 5 adaptive follow-up questions |
shared/questions/editorial-guide.md | Editorial rules for questions |
shared/questions/question-format.md | Standard question card format |
shared/records/session-record.template.md | Multi-round session recording template |
shared/templates/SKILL.template.md | SKILL.md output template |
shared/templates/SPEC.template.md | SPEC.md output template |
Recording.md, not just the answer.SPEC.md immediately after the opening answer, then revise it after later replanning or feature work.Recording.md, give one or two sentences of project-specific feedback, then ask the next question.Recording.md and SPEC.md before generating CodeStyle.md, ProjectStyle.md, SKILL.md, or final SPEC updates.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。
运行 CodeBTI 访谈,推断项目级和语言级编码风格偏好,并生成项目专属的 CodeStyle.md、SKILL.md 或 SPEC.md 指导。