Home / Market / problem-bank

problem-bank

Audits the DSA problem bank for coverage gaps and proposes new YAML entries

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

--- name: problem-bank description: Audits the DSA problem bank for coverage gaps and proposes new YAML entries version: 1.10.3 triggers:

metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/gauntlet", "emoji": "\ud83e\udd9e"}} source: claude-night-market source_plugin: gauntlet

---

> Night Market Skill: ported from claude-night-market/gauntlet. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Problem Bank

Survey the DSA problem bank, identify coverage gaps, and propose new YAML entries for human review.

When NOT To Use

gauntlet:curate)

When This Skill Fires

Invoke this skill with Skill(gauntlet:problem-bank) when the problem bank needs a coverage review. It is distinct from gauntlet:curate, which handles per-annotation knowledge capture and is what the /gauntlet-curate command invokes.

Steps

  1. Locate the problem bank at plugins/gauntlet/data/problems/.

Read _manifest.yaml to load the expected NeetCode counts per category.

  1. Survey current coverage by counting problems in each YAML

file (skipping _manifest.yaml). Run the analysis script:

   cd plugins/gauntlet
   python scripts/curate_problems.py data/problems/ --output /tmp/problem-bank-report.md
  1. Identify gaps: categories whose actual count falls below

the neetcode_count in the manifest. The script sorts gaps largest-first so the worst shortfalls appear at the top.

  1. Review existing problems in each gap category to understand

what is already covered before proposing additions.

  1. Propose new YAML entries following the schema below.

Add proposals to the report under "Proposed New Problems". Do NOT write proposals directly into data/problems/*.yaml.

  1. Validate proposals by running:
   python -c "
   import yaml, sys
   sys.path.insert(0, 'src')
   from gauntlet.models import BankProblem
   proposals = yaml.safe_load(open('proposals.yaml'))
   for p in proposals:
       BankProblem.from_dict(p)
   print('All proposals valid.')
   "
  1. Present the report to the human for review.

The report includes the coverage table, gap list, and proposed entries. The human decides which proposals to merge into the YAML files.

Problem Schema

Each proposed entry must follow this schema:

- id: category-NNN
  title: Problem Title
  difficulty: easy       # easy | medium | hard | extra_hard
  prompt: |
    Problem statement with constraints and examples.
  hints:
    - First hint.
    - Second hint.
  solution_outline: |
    Approach and time/space complexity.
  tags: [tag1, tag2]
  neetcode_id: neetcode-NNN
  challenge_type: explain_why  # explain_why | multiple_choice | trace
                                # | code_complete | debug | rank

Required fields: id, title, difficulty, prompt. Optional fields default to empty values.

Safety Constraints

intentionally has none.

Output

A markdown report at the path specified by --output, containing:

Human review is required before any YAML file changes.

Exit Criteria

path given to --output (e.g., /tmp/problem-bank-report.md)

neetcode_count versus actual count for every category in _manifest.yaml, with gaps sorted largest-first

all proposals appear only in the report under "Proposed New Problems"

validation (required fields: id, title, difficulty, prompt) before appearing in the report