- Home
- Skills
- Agents & Orchestration
- Learning Agent - Your Coding Mentor
Learning Agent - Your Coding Mentor
Turn your coding agent into a mentor. Get guided debugging, thoughtful code reviews, private learning logs, and clear next steps while keeping ownership of your implementation.
$15
Works with the AI Agents you already use
Learning Agent - Your Coding Mentor
Example session with this skill installed
Use mentor-coding to review this JavaScript function. I’m learning
JavaScript and want to understand the bug before changing the code.
function cartTotal(items) {
return items.reduce((total, item) => total + item.price, 0);
}
const items = [
{ price: 10 },
{ price: "15" }
];
cartTotal(items);
I expected 25, but got "1015". Explain the cause, suggest useful
test cases, and help me decide how to handle prices. Please don’t
rewrite the function.
- Read your context and instructions
- Compiled the learning agent
Your total becomes a string when the calculation reaches the second item. The first price is the number 10; the second is the
string "15". JavaScript’s + operator concatenates when one operand is a string.
Review
The function has a clear responsibility, and the initial accumulator of 0 gives an empty cart a total of zero.
The important gap is the input contract: the function assumes every price is numeric, but the supplied data mixes numbers and strings.
Two approaches fit
| Approach | Benefit | Trade-off |
|---|---|---|
| Require numeric prices and reject other types | Makes unexpected input visible | The caller must prepare valid prices |
| Convert accepted numeric strings at the input boundary | Accommodates values arriving as text | Requires rules for blank strings and invalid text |
Keep the conversion policy in one place so callers know what the total function accepts.
Useful test cases
| Input | Behavior to verify |
|---|---|
| Prices 10 and 15 | Returns the number 25 |
| Empty list | Returns 0 |
| Prices 10 and "15" | Rejects the string or converts it according to your chosen policy |
| A blank price string | Does not silently become an accepted price |
| A missing price | Produces a clear validation outcome |
Evidence
I reviewed the function and input you supplied. I did not execute the code or run tests. Your reported "1015" result is consistent with string concatenation.
Next steps
Choose the input contract, then write the mixed-type test first. After your attempt, we can review how it handles invalid input.
What should callers be responsible for guaranteeing about each price before calling this function?
Connects securely to your tools. The creator never sees your data.
About this skill
Implementation requires an explicit request for a small, named step. Direct reviews and diagnostic requests can begin with findings or focused checks.
Private local files preserve your project context and learning history between sessions. The workflow separates observed repository facts from your own reflections and never treats passing tests as proof of understanding.
An optional Slack publisher prepares a short mentor summary. It defaults to preview mode, and the instructions require separate approval before sending. A blocked session can request help without claiming a learning gain.
Includes three skill definitions, repository instructions, context and learning-log templates, a Ruby installer, an optional Slack publisher, and script tests.
Requires manual gitignore configuration for privacy. Does not perform bulk repo reads. Slack integration requires separate approval for every message. language-agnostic but requires Git.
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 any payment.
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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 21 days ago
Requires