Challenge

From athola/claude-night-market · View interactive version

Challenge is an AI agent skill from the GitHub repository athola/claude-night-market. Presents adaptive codebase challenge questions with multiple-choice and trace exercises. Use when testing contributor knowledge of the codebase.

How to use this skill

Skill file

Run Gauntlet Challenge

Present challenges from the knowledge base and evaluate answers.

When NOT To Use

Challenge Sources

scripts/challenge_engine.py draws from one of three sources:

.gauntlet/knowledge.json, weighted by the developer's progress

with --category and --difficulty, and varied so its answer

cannot be memorised

call edge in .gauntlet/graph.db

The bank variation goes through the in-loop provider inside Claude

Code and the Anthropic API outside it (issue #464). The script calls

register_in_loop_provider_if_inside_claude_code() in its own process,

so no setup step is needed.

Steps

  1. Load state: read .gauntlet/knowledge.json and developer

progress

  1. Check for pending challenge: if

.gauntlet/state/pending_challenge.json exists, evaluate the

developer's most recent message as an answer before generating

a new one

  1. Generate challenge: run

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/challenge_engine.py .gauntlet

with the source that fits: the default for codebase knowledge, a

--source bank --category <name> for practice problems, or

--source graph once a graph has been built

  1. Present challenge: show the question with context
  1. Evaluate answer: score the response (pass/partial/fail)
  1. Record result: update developer progress and streak
  1. On pass: when the challenge came from the pre-commit gate,

score it with the command below, which writes the one-time token

that releases the commit of the staged files. Under --gate the

script scores .gauntlet/state/pending_challenge.json and ignores

the file argument. Show next challenge if in session.

```bash

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/answer_evaluator.py \

.gauntlet/state/pending_challenge.json "<answer>" --gate

```

  1. On fail: show correct answer with explanation. Present a

new challenge.

Scoring

| Result | Score | Streak |

|--------|-------|--------|

| Pass | 1.0 | +1 |

| Partial | 0.5 | reset |

| Fail | 0.0 | reset |

Exit Criteria

challenge is generated; if missing, the skill surfaces the error

and suggests running gauntlet:extract

to the developer's progress store and a streak update applied

generating a new challenge when it exists; the file is removed

or updated after evaluation

from that source, or the script's error naming what is missing

the next challenge is presented (not skipped silently)

.gauntlet/state/pass_token.json exists and names the staged set,

so the retried commit is released

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.