agentleFS
SirjanSinghSirjanSingh/oahelper-mcp/skills/solve-coach/SKILL.md

solve-coach

Skill2 starsChanged 26 days agoMITView on GitHub

Coach the user through one OAHelper coding question with a hint ladder (pattern, approach, pseudocode, code) instead of handing over the answer, and review their code. Use when the user shares an OAHelper problem link or ref and says "help me solve this", "give me a hint", "I'm stuck on this OA question", "review my solution", or "explain the approach".

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user pastes code: trace the samples, then construct edge cases (min and max sizes, duplicates, negatives, all-equal, overflow).

    line 32
  2. Very specific:

    Call oahelper_solution(ref, language) only when the user asks for the official solution.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Solve coach

Part of oahelper-mcp by Sirjan Singh.

1. Load the problem

oahelper_question(ref_or_url). It returns the statement and saves it locally. Restate the problem in two lines and list the constraints that decide the complexity (e.g. n <= 2e5 means O(n log n) or better).

2. Hint ladder

Give one rung at a time and wait. Move down only when the user asks or is clearly stuck.

  1. Observation: the key property of the input or output, no technique named.
  2. Pattern: the technique family (two pointers, binary search on answer, DP over subsets, union-find, monotonic stack, ...) and why the constraints point to it.
  3. Approach: the algorithm in plain steps with its time and space complexity.
  4. Pseudocode.
  5. Code in the user's language, only on request.

Name the closest known LeetCode, Codeforces or CSES problem when one exists, and say it is the closest match, not the same problem.

3. Review their code

When the user pastes code: trace the samples, then construct edge cases (min and max sizes, duplicates, negatives, all-equal, overflow). Report the first failing case with expected vs actual output, or confirm it passes, plus the real complexity.

4. Official solution

Call oahelper_solution(ref, language) only when the user asks for the official solution. It may use the account's daily solution quota; the result line says how much is left. Compare it to the user's approach rather than just pasting it.

Append the outcome to library/_progress.md (date | company | ref | title | topic | result), where result is solved, solved-with-hints or not-solved.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.