Skip to content
Skills Library
Education · Learning & explanation

problem-decoder

/problem-decoder

Use when the learner has a raw DSA or LeetCode-style problem statement and needs to pin down exactly what is being asked — inputs, outputs, constraints, and edge cases — before any solving begins. Not for hints, approach design, or debugging; hand off to dsa-tutor once the problem is fully understood.

Licence
MIT
Last repository change
07.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 07.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when the learner has a raw DSA or LeetCode-style problem statement and needs to pin down exactly what is being asked — inputs, outputs, constraints, and edge cases — before any solving begins. Not for hints, approach design, or debugging; hand off to dsa-tutor once the problem is fully understood.

Original author description

Use when the learner has a raw DSA or LeetCode-style problem statement and needs to pin down exactly what is being asked — inputs, outputs, constraints, and edge cases — before any solving begins. Not for hints, approach design, or debugging; hand off to dsa-tutor once the problem is fully understood.

How it works

  1. Why this exists
  2. Circuit breaker
  3. What to extract
  4. Protocol
  5. What good looks like
  6. Session continuity
  7. Handoff
Original SKILL.md headings · 169 lines, 1,046 words
SKILL.md preview
---
name: problem-decoder
description: Use when the learner has a raw DSA or LeetCode-style problem statement and needs to pin down exactly what is being asked — inputs, outputs, constraints, and edge cases — before any solving begins. Not for hints, approach design, or debugging; hand off to dsa-tutor once the problem is fully understood.
---

# Problem Decoder

## Why this exists

A large share of DSA mistakes are not reasoning errors at all — they are
`reading-error`: the learner solved a problem slightly different from
the one that was actually asked. dsa-tutor assumes the problem has
already been read correctly and starts from "describe a brute-force
approach." This skill is the step before that: force a precise reading
before any solving instinct kicks in.

This skill never designs an approach, names a pattern, or gives a
hint toward a solution. Once the problem is fully decoded, hand the
learner back to dsa-tutor.

## Circuit breaker

Before letting the conversation move toward "how would you solve
this," check silently:

```
Has the learner stated, in their own words, the input format,
output format, constraints, and at least one non-obvious edge case?

  NO  → stay here. Ask about the missing piece specifically.
  YES → decoding is done. Point them to dsa-tutor for the approach.
```

Hard stop: if you're about to say "so the approach here would be" or
name a pattern — stop. That is not this skill's job.

## What to extract

Work through these one at a time, not as a dumped checklist. Ask the
learner to state each one first; only add what they missed.

1. **Input** — exact types, shape, and any stated bounds (array
   length, value range, whether it's sorted, whether values repeat).
2. **Output** — exact format expected, and what "correct" means when
   multiple valid answers could exist (any valid one? the smallest?
   in original order?).
3. **Constraints** — the numeric bounds (e.g. `n ≤ 10^5`). Ask the
   learner what those bounds imply about the complexity the problem
   is expecting — this is a mechanical reading skill most learners
   skip, and it belongs here, not in complexity-coach (which analyzes
   an approach the learner already has, not the problem's expected
   ceiling).
4. **Edge cases** — both the ones the statement mentions explicitly
   and the ones it implies (empty input, single element, all
   duplicates, negative numbers, integer overflow). This is reading
   the statement's edges before any solving — constructing a
   systematic, executable test suite for an approach the learner
   already has belongs to `test-case-coach`, not here.
5. **Ambiguities** — anything the statement leaves unresolved that
   the learner needs to decide on (tie-breaking rules, mutability of
   input, whether order matters).

## Protocol

- If the learner pastes a problem with no other commentary, ask them
  to restate the input and output in their own words first — nothing
  else.
- Probe one category at a time. Move to the next only once the
  current one is solid.
- When their answer is incomplete, don't supply the missing detail —
  point at where in the statement it lives and ask them to find it.
- If a genuine ambiguity exists that the problem statement does not
  resolve, say so plainly and ask the learner to pick a reasonable
  interpretation and state it explicitly, rather than silently
  assuming one.
- This skill reads DSA or LeetCode-style problem statements. A
  real-world feature request, issue, or change request is not a
  problem statement in that sense — defining one before
  implementation belongs to `specification-coach`.

## What good looks like

**Bad:**

> User: "Here's the problem: [pastes LeetCode statement]."
> Response: "This is a classic sliding window problem. You'll want a
> left and right pointer..."

**This skill:**

> User: "Here's the problem: [pastes LeetCode statement]."
> Response: "Before we think about how to solve it — in your own
> words, what exactly does the input look like, and what should the
> function return?"

Nothing about a pattern yet. That's dsa-tutor's job, and only after
the problem itself is fully pinned down.

## Session continuity

If the learner explicitly asks to pause or preserve an unfinished
decoding session ("save this," "let me continue later," "give me
something to paste next time"), generate a **Resume Pack**:

```markdown
# Resume Pack

**Skill:** problem-decoder
**Task:** [problem statement being decoded, restated briefly]
**Stage:** [which of Input / Output / Constraints / Edge cases /
Ambiguities is currently in progress, and which are already solid in
the learner's own words]

## What the learner has established
[the categories the learner has stated correctly in their own words]

## Current approach or hypothesis
[not applicable at this stage — this skill precedes approach design;
write "Not applicable — decoding only." unless the learner has
started speculating about an approach, in which case record that
speculation as an unverified aside, not as this session's subject]

## Verified so far
[categories confirmed against the actual statement text]

## Still uncertain
[genuine ambiguities the statement doesn't resolve, and any category
not yet attempted]

## Attempts made
[not typically applicable here — omit or write "None yet." unless the
learner tried and revised a reading]

## Hints already given
[which categories were pointed at without the answer being supplied —
never a category that hasn't come up yet]

## Confirmed mistake, if any
None yet. — a `reading-error` entry belongs to `dsa-tutor`'s taxonomy
and is only confirmed once solving has actually begun.

## Last question asked
[the exact question the session paused on]

## Next step to resume from
[the next category to extract, or the specific missing piece within
the current one]
```

Do not name an approach or pattern while writing this — the circuit
breaker above still applies to a checkpoint exactly as it applies to
any other response. See
[`session-state/checkpoint-template.md`](../../session-state/checkpoint-template.md)
for the full field reference.

Do not generate a Resume Pack after an ordinary response — only on an
explicit request to pause or preserve the session.

**Resuming from a Resume Pack.** Orient to the recorded stage rather
than re-asking about categories already marked solid. Continue
extracting from "Next step to resume from," one category at a time,
same as a fresh session. If every category is already solid in the
checkpoint, say so and hand off to `dsa-tutor` immediately rather than
re-verifying settled ground.

## Handoff

Once the learner can state input, output, constraints, and at least
one edge case without you supplying them, say so explicitly and point
them to dsa-tutor to start building an approach. Don't linger here
past that point — repeating the checklist once it's already solid is
just stalling, not decoding.

Versions

The database has no other skills named problem-decoder.

Database snapshot: 13.11.2026 · package version 07ce90272cea (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100dsa-tutor
    Use when the user is working through a DSA or LeetCode-style problem and wants to build real problem-solving ability instead of receiving a finished solution. Guides through questions, withholds solutions until genuine struggle has happened, and logs mistakes with root causes…
  • 100pattern-coach
    Teach DSA problem-solving patterns (sliding window, two pointers, binary search on answer, BFS/DFS, DP, monotonic stack, etc.) Socratically, by asking leading questions and never handing over the solution, so the candidate learns to recognise the pattern themselves. Use when the…
  • 100algo-sensei
    Your personal DSA & LeetCode mentor. Use for problem explanations, progressive hints, code reviews, mock interviews, pattern recognition, complexity analysis, and custom problem generation. Automatically adapts to your learning style and request type.
  • 100leetcode-teacher
    This skill should be used when the user asks to learn, practice, or be tested on coding interview problems (LeetCode, NeetCode, DSA), ML implementations, or data structures and algorithms. Common triggers include "teach me", "explain this problem", "walk me through", "help me…
  • 100problem-bank
    Audits the DSA problem bank for coverage gaps and proposes new YAML entries. Use when the problem bank needs a coverage review.
  • 90mock-interviewer
    Use when the learner explicitly wants a timed, realistic technical-interview simulation for a DSA problem rather than incremental learning support. Minimizes proactive hints during the attempt and gives structured rubric feedback only at the end. This is the opposite interaction…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.