A Claude Code skill that maps Stephen Covey's 7 Habits of Highly Effective People onto AI-assisted software engineering practices.
一个 Claude Code skill,把柯维《高效能人士的七个习惯》的理念映射到 AI 辅助编码实践上。
Not a step-by-step workflow. A diagnostic mental model: when your AI coding session feels reactive, off-target, or low quality, run the symptom through the seven-habit lens to find the missing discipline, then reach for a concrete skill/tool to fix it.
不是一个固定流程,而是一份诊断心智模型:当你和 AI 协作的过程感觉混乱、跑偏、产出质量低时,用 7 个习惯做切片定位"缺哪个",再用对应的具体 skill 修复。
| # | Habit | AI Coding Practice |
|---|---|---|
| 1 | Be Proactive · 积极主动 | Curate CLAUDE.md / MEMORY.md / lessons.md before failure. Capture corrections as durable memory. |
| 2 | Begin with End in Mind · 以终为始 | Plan mode + spec / acceptance criteria / TDD before prompting. Define "done" first. |
| 3 | First Things First · 要事第一 | TodoWrite + Quadrant-II discipline. No scope creep. Architecture before crunch. |
| 4 | Think Win-Win · 双赢思维 | Human = judgment & context; AI = speed & breadth. Match the work to the actor. |
| 5 | Seek First to Understand · 知彼解己 | Read existing code/docs before editing. Verify APIs — never let the model guess. |
| 6 | Synergize · 统合综效 | Parallel subagents, adversarial review, model mix (Opus/Sonnet/Haiku). |
| 7 | Sharpen the Saw · 不断更新 | Renew tooling, knowledge, principles, collaboration habits. |
Full diagnostic table, pre-task heuristic, and habit→skill cheatsheet are inside SKILL.md.
完整诊断表、任务前 3 问启发式、习惯→工具速查表见 SKILL.md。
git clone https://github.com/xiaot945/seven-habits-coding ~/.claude/skills/seven-habits-codingAfter installation, the skill is auto-discoverable. Invoke it explicitly:
/seven-habits-coding
…or just describe the situation it's meant for ("audit my AI coding workflow", "diagnose why this collaboration feels off") and Claude Code will pick it up.
安装后 Claude Code 会自动发现。可以显式调用 /seven-habits-coding,也可以直接描述场景(例如"审一下我现在的 AI 协作流程"),Claude 会自动识别并调用。
mkdir -p ~/.agents/skills
git clone https://github.com/xiaot945/seven-habits-coding ~/.agents/skills/seven-habits-codingCodex auto-discovers skills under ~/.agents/skills/. Activate via activate_skill or describe the scenario directly, same as with Claude Code.
Codex 会自动扫描 ~/.agents/skills/ 下的 skill。可通过 activate_skill 激活,也可直接描述场景由 Codex 自行识别。
Note on tool names / 关于工具名: The "habit → skill/tool" cheatsheet inside
SKILL.mdis written in Claude Code vocabulary (TodoWrite,EnterPlanMode,superpowers:*,adversarial-review, etc.). The principles are platform-agnostic; on Codex, substitute your equivalents (Codex's planning, todo, subagent, and review tools). The mapping table itself — symptom → which habit is failing — works identically across harnesses.SKILL.md 内的"习惯 → 工具"速查表用的是 Claude Code 的工具命名。理念跨平台通用;在 Codex 上请把工具名替换成 Codex 的对应工具(计划、todo、子 agent、review 等)。诊断表(症状 → 缺哪个习惯)跨 harness 通用。
Copy SKILL.md to any agent harness that supports the agent skills format.
- Auditing your AI coding workflow for blind spots
- Onboarding to a new project — picking which disciplines to enforce
- AI output feels off and you need to find the missing piece
- Designing team-wide AI engineering practices
- Post-mortem after a botched AI task
Not for: ten-second edits, narrow bug fixes, or one-shot questions. Use the specific debug/test/docs skill for those.
不适用于: 几秒钟的小改、单点 bug、一次性问题——那些场景请用专门的 debug/test/docs skill。
Stephen R. Covey, The 7 Habits of Highly Effective People, 1989. This skill applies Covey's principles to a domain he never imagined; the framework belongs to him, the mapping is mine.
柯维原作版权与思想框架归原作者所有;本仓库只是一个面向 AI coding 的应用映射。
MIT — see LICENSE.