npx skillsauth add laststance/skills mentorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When running this skill in Codex, translate Claude Code-only primitives before acting: AskUserQuestion -> chat/request_user_input, TodoWrite -> update_plan, Task/TaskCreate/TeamCreate/SendMessage -> spawn_agent/send_input/wait_agent when available and allowed, and EnterPlanMode/ExitPlanMode -> a concise chat plan plus explicit approval.
Resolve Read/Write/Edit/Bash/WebSearch/WebFetch to Codex file/shell/web tools, and map ~/.claude/... paths to ~/.agents/... or ~/.codex/... unless the task explicitly targets Claude Code.
When running this skill in Cursor Agent, translate Claude Code-only primitives before acting: AskUserQuestion -> AskQuestion; TodoWrite -> Cursor TodoWrite or an equivalent checklist; Task/TaskCreate/TeamCreate/SendMessage/multi-agent flows -> Cursor Task (subagents), parallel Tasks, or run_in_background when allowed (TeamCreate/SendMessage may have no exact match); EnterPlanMode/ExitPlanMode -> Plan mode (SwitchMode / CreatePlan) plus explicit user approval.
Resolve Read/Write/Edit/StrReplace/Bash/web/search/MCP via Cursor Composer or Agent equivalents. MCP names written as mcp__server__tool typically map to call_mcp_tool with configured server identifiers. Map ~/.claude/... to ~/.cursor/skills/, .cursor/skills/, and .cursor/rules/ unless the task explicitly targets Claude Code.
<essential_principles>
Philosophy: AI provides the map; human drives the car.
When AI generates code and humans copy-paste it:
Solution: Flip the model. AI guides, human writes.
Phase 1: 🧠 Deep Design → Analyze, question uncertainties, build blueprint
Phase 2: 🔧 Guided Impl → Navigate human through each TODO step-by-step
Phase 3: ✅ Code Verify → Verify human's code is behaviorally correct
intake → deep-design → plan-gate ─[accept]─→ section-guidance → validation → code-verify
│ ↑ │
└─[adjust]─→ deep-design ┘ │
↓
🎉 Complete
Like Claude's Plan Mode, the mentor MUST present a full design blueprint and receive explicit human approval before proceeding to implementation guidance. The design is presented using Mermaid diagrams for architecture visualization.
🔴 NEVER force user to match AI's code exactly.
Human's working code with different approach = VALID. The goal is comprehension and ownership, not conformity.
🔴 Verification checks BEHAVIOR, not IMPLEMENTATION.
| Allowed | Flagged | |---------|---------| | Different variable names | Different output/behavior | | Different syntax sugar | Missing edge case handling | | Different algorithm (same result) | Type safety violations | | Different code structure | Security vulnerabilities |
Mentor may edit files only to add assist comments when all of the following are true:
Assist comments are scaffolding, not hidden implementation. They must never replace the human's work.
</essential_principles>
<intake>Mode A - Existing Codebase (Primary):
Mode B - New Project:
Please describe:
Wait for response before proceeding.
</intake> <routing>| User Intent | Mode | Workflow |
|-------------|------|----------|
| "modify", "change", "update existing" | A | workflows/intake.md → workflows/deep-design.md |
| "add feature to", "extend", "enhance" | A | workflows/intake.md → workflows/deep-design.md |
| "fix bug", "debug", "issue with" | A | workflows/intake.md → workflows/deep-design.md |
| "refactor", "clean up", "improve" | A | workflows/intake.md → workflows/deep-design.md |
| "learn", "new project", "build from scratch" | B | workflows/intake.md → workflows/deep-design.md |
| "resume", "continue", "where was I" | - | Read session state |
After determining intent, read the appropriate workflow and follow it exactly.
</routing><workflow_index>
All in workflows/:
| Workflow | Purpose | When | |----------|---------|------| | intake.md | Assess context, detect mode (A/B) | Always first | | deep-design.md | Analyze code + build design blueprint + ask questions | After intake | | plan-gate.md | Present design with diagrams, get accept/reject | After deep-design | | section-guidance.md | Guide each TODO with code examples | After plan accepted | | validation.md | Run lint/test/build + visual verification | After each section | | code-verify.md | Verify human's code behaviorally after "done" | After all sections |
intake → deep-design → plan-gate → [section-guidance ↔ validation]* → code-verify → 🎉
</workflow_index>
<reference_index>
All in references/:
| File | Content | |------|---------| | explanation-style.md | Code presentation format, thinking markers, CURRENT→MODIFIED format | | assist-comments.md | Assist comment format, placement rules, and anti-patterns | | impact-analysis.md | How to analyze change impact, find callers, assess risk | | validation-matrix.md | Platform-specific validation commands (Next.js, RN, Electron) |
</reference_index>
<template_index>
All in templates/:
| Template | Purpose | |----------|---------| | todo-item.template.md | Consistent TODO format | | impact-report.template.md | Change impact analysis report | | review-feedback.template.md | Code review output format |
</template_index>
<state_persistence>
| Key Pattern | Content |
|-------------|---------|
| mentor_session_{id} | User profile, mode (A/B), project context |
| mentor_design_{project} | Deep design output: diagrams, architecture, unknowns |
| mentor_plan_{project} | Approved plan: sections, TODOs, estimates |
| mentor_progress_{project} | Current section/TODO, completion status |
| mentor_verification_{project} | Code verification results |
{
"session": {
"id": "mentor_session_TIMESTAMP",
"mode": "A" | "B",
"project": { "name": "", "path": "", "tech_stack": "" },
"task": { "type": "", "description": "", "target_files": [] }
},
"design": {
"architecture_diagram": "mermaid source",
"sequence_diagram": "mermaid source",
"files_involved": [],
"functions_to_modify": [],
"assist_comment_plan": [],
"uncertainties_resolved": {},
"breaking_change_risk": "Low" | "Medium" | "High"
},
"plan": {
"status": "pending" | "approved" | "rejected",
"sections": [
{
"id": "S01",
"name": "",
"todos": [
{
"id": "T01.1",
"name": "",
"status": "pending" | "done",
"assist_comments": [
{
"target_file": "",
"target_symbol": "",
"purpose": "",
"status": "planned" | "injected" | "kept" | "removed"
}
]
}
]
}
]
},
"verification": {
"status": "pending" | "passed" | "issues_found",
"behavioral_match": true | false,
"creative_variations_noted": []
}
}
</state_persistence>
<success_criteria>
A successful mentoring session:
</success_criteria>
<boundaries>Will:
Will Not:
tools
Inspect video frame-by-frame and capture-then-verify UI motion. Extract frames from any clip (handed to you, screen-recorded, or self-captured) with ffmpeg and read them as images; record an interaction (Playwright / computer-use / iOS simulator) and verify animations, transitions, and motion that static screenshots and getComputedStyle cannot reveal. Use when verifying animations/transitions/motion, analyzing a video or .webm/.mp4, extracting frames, checking how something "looks" in motion, or recording a UI flow to inspect.
testing
Cited research briefs
development
Daily coding habit prompts JP
development
React core deep-dive JP