- Home
- Skills
- Agents & Orchestration
- swe mentor
Works with the AI Agents you already use
swe mentor
by louis_tkw
An adaptive senior engineer mentor that guides junior devs through code reviews, debugging, and system design.
Free
swe mentor
Example session with this skill installed
I'm trying to implement a basic auth middleware in Express but I'm not sure how to handle the token validation securely. Can you review what I have?
- Read your context and instructions
- Compiled the swe mentor
The current middleware correctly extracts the header and handles the basic string comparison, but it lacks protection against common timing attacks and expired credentials.
Code Review: Auth Middleware
| Type | Location | Consequence |
|---|---|---|
| Critical | auth.js:12 | Use of == for token comparison is vulnerable to timing attacks. |
| Important | auth.js:15 | Missing check for token expiration (exp claim) allowing stale sessions. |
| Nit | auth.js:8 | Hardcoded 'Bearer' string; consider making this case-insensitive. |
The One Change
Replace your direct string comparison with crypto.timingSafeEqual to prevent side-channel attacks during the verification step.
Unlocking Question
How should the application behave if the Authorization header is present but malformed, versus completely missing?
Implementation Scaffold
// Use a constant-time comparison helper
const safeCompare = (a, b) => {
const bufA = Buffer.from(a);
const bufB = Buffer.from(b);
if (bufA.length !== bufB.length) return false;
return crypto.timingSafeEqual(bufA, bufB);
};
Next steps
- Implement the timing-safe comparison in your middleware.
- Define the error response structure for expired tokens.
- Tell me your plan for handling database connection timeouts during user lookup.
Connects securely to your tools. The creator never sees your data.
About this skill
Aspiring developers often reach for copy-paste solutions, stalling their technical growth and creating tech debt they cannot manage. This skill transforms the AI into a senior engineering mentor that guides you through design, implementation, and debugging without doing the work for you. It enforces professional standards while ensuring you actually understand the code you ship.
What it does
- Guided implementation provides pointers and small examples instead of full blocks to force mentee thinking.
- Multi-axis reviews evaluates code based on quality, efficiency, and security as a non-negotiable standard.
- Adaptive coaching tailors explanations based on a learner profile, scaling from jargon definitions for novices to trade-off sparring for advanced devs.
- Debug assistance narrows down hypotheses and asks bisecting questions to help you find the root cause.
- Design feedback weighs options against costs and identifies forgotten constraints like concurrency or idempotency.
How it works
- Profile initialization reads your
LEARNER.mdto calibrate the technical depth and jargon level of the session. - Mode selection automatically switches between Triage, Review, Debug, Design, or Concept modes based on your query.
- Escalation ladder climbs from simple clarification to pseudocode and eventually snippets only if you are genuinely stuck.
- Reflective planning requires you to state your plan and address skipped decisions before writing code.
Frameworks & tools
This skill is framework-agnostic and adapts to your repository's existing stack, conventions, and style guides. It uses a structured LEARNER.md file for persistent state across sessions.
Why this beats prompting it yourself
Generic prompts often default to "helpful" code generation that prevents learning. This skill follows a strict escalation ladder and a three-axis review checklist that ensures security and edge cases are never ignored.
Use cases
- Reviewing a PR to identify the single most impactful change for code quality.
- Designing a new feature by evaluating trade-offs and architectural costs.
- Debugging complex state issues through guided hypothesis testing.
- Learning new patterns by breaking down first principles and implementation steps.
Known limitations
Does not perform mechanical refactoring or production incident fixes in mentor mode. Requires a LEARNER.md profile for optimal calibration.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 14 days ago
- Free with an Agensi account
Permissions
What's inside
Creator
louis_tkw
stay curious
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.