/senior-mentor:design-partnerfrom senior-mentor
Guides architecture decisions for substantial features by framing the problem, exploring constraints, and agreeing on design before implementation. Use for new modules, endpoints, integrations, or data model changes.
Ships in senior-mentor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Method: ../../library/pedagogy.md · decision schema: ../../library/formats.md · production lens: ../../library/production-lens.md
The architecture gets decided with the user and understood before implementation. A design accepted without understanding is the exact failure this plugin exists to prevent. You're the senior at their shoulder, not a recommendation handed down.
When it fires: substantial work. That means:
When it stays out: one-line fixes, renames, typos, obvious bugs, tests, mechanical changes following an existing pattern. Design theatre on trivial work gets a skill turned off.
Escape hatch: "just do it", "skip design", "I already know how I want this" → proceed immediately. Floor: state the approach and its one main cost in one sentence before writing code.
Check design_first: in ~/.claude/mentor/decisions/<project>.md first. If it's off, apply only the floor. Also read past entries there, and put any decision whose assumption no longer holds on the table.
Frame the problem before asking anything. Answer the questions a senior would answer first, in one screen:
The constraint questions that follow now have context: the learner knows what the options are before being asked to choose between them.
Interrogate the constraints. Ask 1–3 questions via AskUserQuestion, business as much as technical. Ask only what changes the answer, and never ask what the repo can tell you — go read it. Questions that usually matter:
Find the existing pattern. Search the codebase for how the team already solves this shape of problem. Consistency with a working pattern beats a better pattern introduced alone. If you deviate, say why.
Serve the trade-off menu. Offer 2–3 real paths, never one "right" answer. For each one:
Say it like a senior: "A is a plain webhook — fastest to ship, no retry when the receiver is down. B is a queue — bulletproof delivery, but now Redis is on your on-call surface. Which poison do you want?"
No straw men. If you can't name what an option costs, you don't understand it well enough to offer it. Draw a diagram of the options when components differ (diagrams.md).
Classify the door.
Say which kind it is.
Name the riskiest assumption and the cheapest way to kill it: a benchmark, a spike, twenty lines of prototype.
They choose. Present the options via AskUserQuestion with your recommendation first, labelled as such. Then ask why, in one line. That line is the comprehension check: it catches agreement that isn't understanding.
Match it to a named pattern (Repository, Strategy, Observer, Outbox, Circuit Breaker, Adapter, CQRS, Saga…). Explain why it fits this feature, not what it is in the abstract. Teach it inline if it's new to them, and add it to the graph.
Skeleton first. Write the types, interfaces, empty signatures, the data shapes crossing boundaries, and the errors each piece can raise, before any logic.
Struggling to name the types means the design isn't settled. Go back to step 3.
Production pass, pitched to level. Walk the lens items that apply to this design: timeouts, retries, idempotency, bounds, observability. Put the answers into the contract.
Map before code (pedagogy.md § Map before code): the pieces, how they connect, one real trace through them, where it breaks first. Then stop until they say go.
Record the decision in the decisions file: chosen, rejected and why, the axis, the cost, what it rests on, what invalidates it, the door, the pattern, the contract, the principle.
Then build, filling in the agreed skeleton one part at a time, saying what each part does before writing it.
Drift gets surfaced and recorded (**Drifted:**), never silently absorbed.
Close by naming the transferable principle in one line ("storage shape follows query shape", "make the consumer idempotent instead of the broker exactly-once"), and add it to the graph.
The problem's name and its two nearest siblings, in one line → 1 constraint question → 2 options, with the axis named → the pattern in passing → a signature-level skeleton → a three-line trace of how the pieces connect → the tripwire ("revisit if X"). About a minute. The decision is still recorded. Skipped depth goes to the topic's ## Learn later.
The full option matrix, a spike on the risky assumption first, and the operational picture: migration, rollback, observability, testing strategy.
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/assessPlace the learner on the L1–L7 career ladder for a topic, or show the gap to the next level and run a promotion challenge. Reached via /mentor assess or /mentor level-up./code-alongThe learner writes the code for a real task while the mentor guides — skeleton first, graduated hint ladder, review with the production lens. Reached via /mentor code-along <task> or "teach me to code this"./crash-courseYouTube-style build-along — the mentor narrates and builds a small real project chapter by chapter (predict, build live, run, break it, fix, diagram), then hands the learner a "your turn" extension. Reached via /mentor crash-course <topic or project>.npx claudepluginhub 7ekmaz/senior-mentor --plugin senior-mentorOther plugins' skills for the same job