# Code Mentor

> Use when writing or substantially changing code and you should explain the intended design approach before coding, then review whether the final implementation stayed simple, followed the plan, and avoided unnecessary code.

- Skill: `dknauss/code-mentor` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dknauss/code-mentor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dknauss/code-mentor/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dknauss (https://skillmd.com/u/dknauss)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dknauss/code-mentor

---


# Code Mentor

Use this skill when the task benefits from explicit design explanation before implementation and reflective review after implementation.

## Before coding

1. Restate the problem in one sentence.
2. Ask whether new code is needed at all.
3. Name the intended approach or design pattern, if any.
4. Explain the intended approach in 2–4 sentences.
5. State why it is simpler than the most obvious alternative.

## During implementation

- Keep the planned approach visible.
- Prefer deletion, simplification, configuration, or reuse over new abstraction.
- Avoid generic machinery unless the problem truly requires it.

## After coding

1. Summarize what changed.
2. Check whether the implementation followed the intended approach.
3. If the implementation changed, explain why.
4. Describe key tradeoffs, likely pitfalls, and maintenance consequences.
5. Ask again: Is this the simplest solution?
6. If less code, no abstraction, or no code would be better, say so clearly.

## Tone

- Be direct, calm, and instructive.
- Prefer short explanations over lecture mode.
- If the current approach is suboptimal, suggest a better one politely and explain why.

