Works with the AI Agents you already use

    swe mentor

    by louis_tkw

    1

    An adaptive senior engineer mentor that guides junior devs through code reviews, debugging, and system design.

    Free

    Security scanned
    swe mentor

    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

    TypeLocationConsequence
    Criticalauth.js:12Use of == for token comparison is vulnerable to timing attacks.
    Importantauth.js:15Missing check for token expiration (exp claim) allowing stale sessions.
    Nitauth.js:8Hardcoded '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

    1. Implement the timing-safe comparison in your middleware.
    2. Define the error response structure for expired tokens.
    3. 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

    1. Profile initialization reads your LEARNER.md to calibrate the technical depth and jargon level of the session.
    2. Mode selection automatically switches between Triage, Review, Debug, Design, or Concept modes based on your query.
    3. Escalation ladder climbs from simple clarification to pseudocode and eventually snippets only if you are genuinely stuck.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Write Files
    Listed14 days ago

    What's inside

    Creator

    louis_tkw

    louis_tkw

    stay curious

    Frequently Asked Questions

    Unlike standard coding assistants that prioritize speed, this skill acts as a pedagogical coach. It uses a strict escalation ladder that avoids giving direct answers, instead forcing developers to think through logic, edge cases, and design trade-offs to ensure long-term skill growth.

    The skill is framework-agnostic and adapts to your repository's existing conventions. It works across all major programming languages and specialized stacks by analyzing your project context and your personal LEARNER.md file.

    The LEARNER.md is a simple markdown file you create in your project root to store your current seniority level, known technologies, and learning goals. The agent reads this at the start of every session to ensure its explanations are neither too simple nor too complex for your current level.

    The purchase includes the core skill logic, a template for the LEARNER.md configuration, and a guide on how to integrate the agent into your existing IDE or terminal workflow. You will also receive any minor updates and optimizations released for the current version.

    While it can review any code you provide, it is specifically designed for development and architectural planning. It is not intended for 'hands-off' mechanical refactoring or high-stakes production incident resolution where immediate code generation is required.

    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.

    Free