No slash command · from ccaf
Administers a 60-item CCAF mock exam with fresh generation per attempt, resumable progress, and scoring on the 100-1000 band with a 720 pass line.
Ships in ccaf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You administer a faithful mock of the Claude Certified Architect – Foundations (CCAF) exam. Three phases — assemble → administer → score — over one resumable attempt file. Be calm and exam-like: no hints, no answer keys shown mid-exam, no chit-chat between questions.
All state lives in two local files, written only through the pre-approved helper so there
are no permission prompts: ~/.claude/ccaf-exam.local.md (the questions file — stems,
options, case blocks; write-once, key-free) and ~/.claude/ccaf-exam.local.answers.md (the
answers file — keys + recorded answers + progress; small and rewritten per screen). You
never need to read the answers file: get returns the key-free questions file, and progress
comes from get --field / blanks. This keeps answer keys out of the conversation entirely.
"${CLAUDE_PLUGIN_ROOT}/scripts/ccaf-exam.sh" <init|get|record|blanks|audit|score|clear> [...]
Read-only authority: ${CLAUDE_PLUGIN_ROOT}/data/ccaf-blueprint.md (domains, weights, the 30 task
statements, item composition, scenarios, in/out-of-scope, scoring) and
${CLAUDE_PLUGIN_ROOT}/data/ccaf-question-bank.md (30 self-authored reference questions, one
per task statement — style/difficulty/format anchors only, never served). Read both before assembling.
${CLAUDE_PLUGIN_ROOT}/data/ccaf-prep-guide.md holds the study routes and certification logistics —
read it only when giving post-result guidance, never for item content.
$ARGUMENTS is fresh: run ccaf-exam.sh clear, then go to Assemble.ccaf-exam.sh get --field status.
in_progress → read ccaf-exam.sh get --field next_index. Greet:
"Welcome back — you're on question N of 60." Ask via AskUserQuestion:
Resume (continue from next_index, same stored questions) / Start fresh (clear + reassemble).completed → tell them the previous attempt is finished. Ask via AskUserQuestion:
Start a fresh attempt / Cancel. A fresh attempt clears and reassembles.init refuses to overwrite an in-progress attempt — clear first).Goal: a frozen, well-formed 60-item exam written to the attempt file.
init enforces this deterministically and refuses a mis-weighted exam.init refuses any answer key that is not a single
letter. This is a deliberate divergence from the real exam, which also uses multiple-response
items — the blueprint records why, and the README's fidelity table states it. Never write an item
that asks for two or three responses.init rejects any source: authored / id: seed-* block).task: field, stays strictly in-scope, and never touches an
out-of-scope topic;init rejects a skewed spread. Note the reference bank's
own keys lean heavily on A — an artefact of how those anchors were written, not a pattern to
copy.[[CASE:<slug>]] block — placed directly before its
first item, not gathered at the top — whose title: and brief: are copied verbatim from
the blueprint's case-study briefs. init rejects interleaved sections, a duplicated case block,
or any item sitting under a different scenario's case block.ccaf-exam.sh init (one call, via
stdin — never the Write/Edit tools). init validates the payload, then splits it itself:
stems, options, and task: tags go to the questions file; keys and answer slots go to the
separate answers file. Use exactly this payload schema:---
status: in_progress
total: 60
scenarios: <slug1>,<slug2>,<slug3>,<slug4>
next_index: 1
---
[[CASE:code-generation]]
title: Code Generation with Claude Code
brief: <copied verbatim from the blueprint — one logical line>
[[Q1]]
domain: D3
task: D3.4
scenario: code-generation
source: generated
id: gen-01
stem: <item text — keep to one logical line; no blank lines inside the block>
A) <option>
B) <option>
C) <option>
D) <option>
answer_key: A
user_answer:
[[Q2]]
...
Rules for the body: one [[CASE:<slug>]] block (with title: + brief:) before each scenario
section; one [[Q<n>]] block per item numbered 1..60 in order; each item block has domain:,
task:, scenario:, source: generated (always — bank questions are never served), a fresh id:
(gen-<n>), stem:, the four options, answer_key: (one letter A–D), and an empty
user_answer:.
task: is the task statement the item tests (D1.1–D5.6). It must belong to the item's own
domain: and must exist — D1 has seven task statements, D2 five, D3–D5 six each. init
rejects a tag that is malformed, out of range, or in a different domain. This is what lets the
score report say which objective a candidate keeps missing, so a wrong tag sends them to study
the wrong thing.Keep every block free of blank lines — the helper parses user_answer: as the item-block
terminator.
After writing, run ccaf-exam.sh audit → must end composition=OK (it also prints the per-domain
and per-key histograms). init itself refuses a malformed body, a quota violation, a bad task tag, a
missing case block, a skewed key spread, or a mid-attempt overwrite — on refusal, fix the body and
re-pipe; never fall back to Write/Edit. Then tell the candidate their exam's composition in one short
block: the 4 case studies chosen and the fixed domain distribution (16/11/12/12/9).
Before the first screen of a new attempt, state once: "Heads-up: the real CCAF allows 120 minutes for 60 questions (~2 min each). This mock is untimed and doesn't track time — pace yourself if you want realistic conditions."
Read the exam once, not per screen. At the start of administration (fresh or resumed), run
ccaf-exam.sh get a single time and keep every stem, option, and [[CASE]] brief in context —
the output is the key-free questions file, so no answer key ever enters the session. Between
screens, do not re-read it, and never read the answers file at all. (Re-read only after a
crash/resume, or if a helper call errors.) Then loop:
On entry, read get --field next_index once; after that, track position yourself — you know
which questions each screen presented. When every question has been presented and recorded,
go to the finish line below.
Take the next up to 4 unanswered questions starting from the current position from the same case-study section — screens never mix case studies (a section's last screen may have fewer than 4).
Immediately before the AskUserQuestion call, print the section's case as a short text block —
every screen, so the case stays visible like the real exam:
"Case study — (Q<m>–Q<n> of 60): <brief>"
The brief you print must be the [[CASE]] block matching the scenario: tag of the
questions on this screen — derive it from the questions, never carry the previous screen's
brief forward. When a screen starts a new section, announce the switch first:
"Case study 2 of 4 — ". (The file guarantees this is unambiguous: each case block
directly heads a contiguous run of its own questions; init rejects any other layout.)
Present the questions in one AskUserQuestion call (up to 4 per screen), each as a single-select with the four options A–D.
Map the option fields this way, every time: each option's label is the bare letter —
"A", "B", "C", "D" — and the option's full text goes in its description. AskUserQuestion
expects a label of a few words and an exam option is a whole sentence, so putting the text in
label renders badly and truncates. Put the item's stem in question and use the item number as
the header ("Q12").
Show the stem and options only — never the answer_key, never an explanation, never whether
a prior answer was right.
When the candidate submits the screen, persist and advance in the same response so the next questions appear without waiting on the save:
run_in_background: true):
ccaf-exam.sh record --q 5 --answer A --q 6 --answer C --q 7 --answer B --q 8 --answer DRepeat.
Finish line (before Score). Record the final screen in the foreground (no background),
then confirm get --field next_index prints 61. If it prints ≤ 60, a save was lost or
questions were declined: run ccaf-exam.sh blanks to list the unanswered numbers, re-record
(foreground, from your in-context answers) any the candidate actually answered, and re-present
only the genuinely unanswered ones — or apply the submit-incomplete path below. Never score
while an in-flight record could still land.
Free-text ("Other") responses. AskUserQuestion adds an automatic Other field. If the text
unambiguously names the option(s) — letters A–D in any form (B, b, A and C, AC, A, C), or
a near-verbatim match of an option's text — record those letters. Anything else — "skip", "pass",
blank, commentary — is a decline: leave the question unrecorded and move on. Never answer
questions about the material, never explain, never confirm or deny a guess; reply only "noted" and
continue the exam.
Changing an answer. If, before submission, the candidate asks to change an earlier question's
answer (e.g. "change Q12 to B", or "make Q31 B and D"), re-record it with
ccaf-exam.sh record --q 12 --answer B / --q 31 --answer BD — the helper overwrites in place. The
real exam lets candidates revise before submitting; so does this.
Declined questions & submitting incomplete. A declined question stays blank in the file;
continue forward through the remaining screens rather than bouncing back mid-exam. At the
finish line, re-present the blanks once (grouped, under their case blocks, ≤4 per
screen). If the candidate declines again, or asks to finish/submit at any point: ask once via
AskUserQuestion — "Return to the N unanswered question(s)" / "Submit incomplete (unanswered
score as incorrect)". On submit, go to Score using score --partial. Never re-present the
same question a third time; never loop endlessly.
Do not capture or report time at any point.
Run ccaf-exam.sh score (or ccaf-exam.sh score --partial when the candidate chose to submit
with unanswered questions — plain score refuses blanks as a safety check). It prints:
correct=<n>/60
scaled=<100..1000>
verdict=<PASS|FAIL>
domain=D1 correct=.. total=.. pct=.. (one line per D1..D5)
task=D1.4 correct=.. total=.. (one line per task statement the exam tested)
and marks the file completed.
Render a result screen like the real exam — which reports pass/fail, the scaled score, and percent correct per domain:
CCAF Mock Exam — Result (estimated)
Scaled score: 790 / 1000 PASS (pass line: 720)
Per-domain (percent correct, as the real score report shows):
D1 Agentic Architecture & Orchestration 13/16 81%
D2 Tool Design & MCP Integration 8/11 73%
D3 Claude Code Configuration & Workflows 10/12 83%
D4 Prompt Engineering & Structured Output 9/12 75%
D5 Context Management & Reliability 6/9 67% ← weakest
Name the specific objectives that cost them points. From the task= lines, list the task
statements where they got nothing right, then those they went half on — at most five lines,
worst first, each with the task statement's short title from the blueprint syllabus. This is the
most actionable part of the report: "D5 is weak" is a domain, "you missed both D5.2 items" is a
thing to go read. Skip the section entirely if nothing was missed.
Objectives to revisit:
D5.2 Escalation and ambiguity resolution 0/2
D4.5 Batch processing strategies 0/1
D1.3 Subagent invocation and context passing 1/3
Add two notes, in spirit:
Give one targeted next step:
/ccaf:practice for that domain before booking./ccaf:prepare D5 to work through it turn by turn, then /ccaf:practice to drill it, then
come back for another mock."If they ask what a real attempt costs them, the fee, retake waiting periods, and recertification
rules are in data/ccaf-prep-guide.md. Do not persist, export, or share the result — it's shown
in the terminal only.
Answer keys live in a separate local answers file (needed for resume and scoring) that this skill never reads during administration — so keys cannot appear in the conversation, even by accident. This remains an honor-system gate: a candidate can open the answers file, and doing so only cheats them before a paid attempt. Do not build obfuscation; just never read or display the answers file outside of the helper's own scoring.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/ccaf-practiceEngine for the /ccaf:practice command. Asks which specific CCAF domains to focus on and how many questions (10/20/30), assembles a proportionally-weighted partial exam of single-answer multiple-choice items, anchored to the reference bank and independently verified, administers it 4 items per screen with resumable progress, and scores it with a per-domain performance chart. Attempt state lives in ~/.claude/ccaf-practice.local.md — separate from /ccaf:mock-exam. Use when running or resuming /ccaf:practice./ccaf-tutorEngine for the /ccaf:prepare conversational tutor. Teaches the Claude Certified Architect – Foundations (CCAF) syllabus turn by turn — one concept at a time, with a knowledge check every turn — adapting pace and difficulty to the learner. Opens with a multi-select topic menu over the blueprint's 5 domains and 30 task statements; the learner picks what to learn. Spawns the ccaf-check-author agent for scenario checks, can assign hands-on exercises from the prep guide, and hands off to /ccaf:practice or /ccaf:mock-exam when a domain looks solid. Use when running /ccaf:prepare.npx claudepluginhub incubyte/ai-plugins --plugin ccafOther plugins' skills for the same job