Skip to content
Agentmart
Submit a tool

comprehension-check

Generate comprehension Q&A from spec and handoff; grade human answers and teach on errors before verification.

Skill by alec-c4

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/alec-c4-comprehension-check

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate comprehension Q&A from spec and handoff; grade human answers and teach on errors before verification. Use after implement, before verifier session.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/comprehension-check

What's inside

Skill name
comprehension-check
Description
Generate comprehension Q&A from spec and handoff; grade human answers and teach on errors before verification. Use after implement, before verifier session.
License
MIT
Instructions
121 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Comprehension check

Human **comprehension gate** — separate from verification and review. See [COMPREHENSION.md](../../docs/guidelines/COMPREHENSION.md).

## When to use

- After implementation, **before** verification agent session.
- When tier is **standard** or **strict** (from `.ai/tracker.yaml` or handoff header).
- Invoked by [feature](../feature/SKILL.md), [fix](../fix/SKILL.md), or [resolve-task](../resolve-task/SKILL.md) step 6.

Skip when tier is **minimal** (human may lower tier with explicit confirm).

## Inputs

| Input | Path |
|-------|------|
| Spec | `.ai/specs/{spec_key}-spec.md` |
| Handoff draft | `.ai/work/{work_ref}-handoff.md` |
| Diff summary | `git diff main...HEAD` or staged diff |
| Tier | `.ai/tracker.yaml` → `comprehension_gate` (default **standard**) |

Example handoff: [GH-58-handoff.example.md](../../docs/examples/work/GH-58-handoff.example.md).

## Protocol

### 1. Resolve tier

Read `comprehension_gate` from `.ai/tracker.yaml` if present. Align with plan **Detail** when handoff lists a tier.

| Tier | Handoff | Q&A count | Manual AC | Teach-back |
|------|---------|-----------|-----------|------------|
| minimal | Skip | 0 | Skip | Skip |
| standard | Required | 3 | ≥1 `human-verify` AC | Skip |
| strict | Required | 5 | All `human-verify` ACs | Required |

Suggest **raising** tier when spec touches auth, money, persistence, or infra — one confirm only.

### 2. Draft or update handoff

Ensure `.ai/work/{work_ref}-handoff.md` has: What changed, Data flow, Key files, Decisions, If it breaks, Manual verification table.

Do **not** write **Human sign-off** or Q&A **answers** for the human.

### 3. Generate Q&A

Write questions into the handoff **Comprehension Q&A** section:

- **Standard:** 3 questions  
- **Strict:** 5 questions  

Rules:

- Test **behaviour and structure** — not line numbers.
- Derive from spec ACs, handoff data flow, and diff summary.
- Leave `**Human answer:**` empty for the human to fill.
- Omit `**Agent correction:**` until after grading (add only when partial or wrong).

Example question types:

- Where is validation or encoding enforced?
- What happens when an external dependency fails?
- Why was approach A chosen over B (from Decisions)?

### 4. Wait for human answers

Stop until the human fills each **Human answer** block. If answers conflict with spec or code:

1. Discuss — do not commit.
2. Update spec (with approval) or fix code — then regenerate Q&A if behaviour changed.

### 5. Validate answers (agent)

After human answers exist, grade each answer against **spec + implemented code**:

| Result | Action |
|--------|--------|
| **Consistent** | No lecture; omit or clear `**Agent correction:**` for that question; when all are consistent, proceed to sign-off checklist |
| **Partial / vague** | Ask **one** follow-up **or** write a concise `**Agent correction:**` that fills the missing piece (code example when useful); block until resolved or acknowledged |
| **Wrong** | Block sign-off/commit; write a **detailed correct reference** under `**Agent correction:**` for the same question — enough to rebuild the mental model, not only «incorrect» |

**Teaching rules for wrong / material-partial:**

- Prefer short **code examples** (project excerpts or a minimal illustrative snippet) when they clarify behaviour or structure; prose alone is fine for pure decision questions.
- Leave `**Human answer:**` unchanged — never overwrite the human’s text.
- Also present the correction in chat so the human sees it without hunting the file.
- If spec and code disagree, report the conflict; do not invent a single correct answer until the human picks a resolution.
- If the human revises an answer, re-grade; update or remove `**Agent correction:**` when consistent.

Run structural check:

```bash
./scripts/kit validate-handoff {work_ref}
```

Fix missing sections before verification.

### 6. Human sign-off

Human completes (never agent):

- **Files I read:** at least one path from Key files  
- **I can explain:** one sentence in their own words  
- **Teach-back:** strict tier only — 2–3 sentences  
- **Signed:** YYYY-MM-DD  

After a correction, the human may revise their answer or explicitly acknowledge understanding before signing.

## Output

Updated `.ai/work/{work_ref}-handoff.md` with Q&A (and any `Agent correction` fields) plus completed human sign-off. Verifier session reads this file — see [VERIFICATION.md](../../docs/guidelines/VERIFICATION.md).

## Do not

- Fill Human sign-off or `**Human answer:**` for the human.
- Pre-fill reference answers before the human tries.
- Block on a wrong answer without a detailed `**Agent correction:**`.
- Skip comprehension on «just fix it» without lowering tier + confirm.
- Run comprehension after commit.
- Merge comprehension checklist into verification — keep roles separate.

From alec-c4/agent_dev_kit, MIT.

More from alec-c4/agent_dev_kit

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Sep 6, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from alec-c4

Cite this page

comprehension-check skill. Agent Mart. https://agentmart.dev/skills/alec-c4-comprehension-check (last updated 2026-10-24)