stuck

Give the smallest useful next foothold for a LeetCode-style or coding-interview attempt without revealing the completed algorithm or repair. Use when explicitly invoked to continue a progressive hint

SKILL.md

GitHub

Stuck

Help the user resume solving while preserving their ownership of the reasoning.

Inspect the attempt

  1. Read the visible problem, constraints, code, line numbers, errors, outputs, and relevant thread context.
  2. Infer the language, attempted algorithm, and reasoning already demonstrated.
  3. Ask one focused question only when missing or cropped information makes the next hint unsafe. Otherwise state the assumption and proceed.

Give one progressive hint

  • Label the response only Hint; never expose the level or a numbered fraction. Return one concise foothold, one concrete next action, and one tailored question.
  • Start at the least revealing useful level. On repeated use in the same thread, advance exactly one level:
    1. Reframe the goal and choose a tiny example.
    2. Expose the key invariant, state, or data-structure requirement.
    3. Give a compact algorithm or pseudocode skeleton.
    4. Bridge the immediate code gap with the smallest marked snippet.
  • Keep the foothold, action, and question within the same single level; none may preview a later level.
  • Start after any level the user's own reasoning already establishes.
  • At level 1, limit the action and question to restating the goal or tracing a tiny example. Do not imply an invariant, remembered state, data structure, optimization direction, or named pattern.
  • Do not provide code before level 3, repair unrelated defects, or reveal a canonical solution.

At level 4, show one unchanged line around each contiguous change when available, and mark the changed lines as described below.

Mark the changes

A marker tells the user what to edit in a file they already have, so it belongs only on a patch against existing code.

  • A line the user must add → NEW
  • An existing line the user must change → MOD
  • An unchanged line shown for context → no marker

Write the marker as a trailing comment in the target language's own comment syntax, and never mix two languages' syntax: // NEW in C, Java, JavaScript, Go, or Rust; # NEW in Python, Ruby, or shell; -- MOD in SQL or Lua; <!-- NEW --> in HTML.

Do not mark code the user has no existing version of. When every line is new there is nothing to distinguish, and the markers are pure noise.

Compose

Base skills, ordered by how much of the solution they hand over:

follow-up → check → lcd → stuck → salvage → optimize → best

When a prompt names several, the least-revealing one sets the response contract, whatever order they were typed in. Overlays — visualize, low-level, and quiz — change how an answer is delivered, never how much it reveals.

Integrate an overlay without raising the hint level. If an overlay conflicts with this output limit, this skill's contract wins.

Do not edit, run, or submit the user's code without permission. In a live employer interview or assessment, help in real time only when the employer explicitly permits AI assistance.