afc:clarify

afc:clarify is a skill for Claude Code from jhlee0409/all-for-claudecode. It costs 14 tokens per session (918 once invoked), scanned B, original, MIT.

A question-and-answer workflow that finds unclear or incomplete parts of a feature specification and applies your answers directly to the specification document. A specification describes what a feature should do and how it should behave.

In plain words
What is it for?
Clarifying feature requirements, resolving open questions about security or performance, and updating a specification with agreed decisions.
Why use it?
It exposes missing decisions before implementation, including gaps in scope, data, user flows, performance, security, and other requirements. This reduces the chance of building from assumptions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Part of the afc plugin — 29 skills, 12 agents, 19 hooks shipped together

Good fit Clarifying feature requirements, resolving open questions about security or performance, and updating a specification with agreed decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jhlee0409/all-for-claudecode/clarify
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jhlee0409/all-for-claudecode --skill clarify
Clone the repo
git clone --depth 1 https://github.com/jhlee0409/all-for-claudecode

Made for: Claude Code.

Or install afc, the plugin that ships this one along with the rest of its 29 skills, 12 agents, 19 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for afc:clarify

README.md
[![agentmods](https://agentmods.dev/badge/skills/jhlee0409/all-for-claudecode/clarify/github.svg)](https://agentmods.dev/skills/jhlee0409/all-for-claudecode/clarify)
Your own site
<a href="https://agentmods.dev/skills/jhlee0409/all-for-claudecode/clarify"><img src="https://agentmods.dev/badge/skills/jhlee0409/all-for-claudecode/clarify/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for afc:clarify

Your own site · 80×15
<a href="https://agentmods.dev/skills/jhlee0409/all-for-claudecode/clarify"><img src="https://agentmods.dev/badge/skills/jhlee0409/all-for-claudecode/clarify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 918 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00918
Opus 5 $0.00007 $0.00459
Sonnet 5 $0.00003 $0.00184
Haiku 4.5 $0.00001 $0.00092

Measured 9d ago against content hash 6c419e6ed13b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

afc:clarify scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

!`cat .claude/afc.config.md 2>/dev/null || echo "[CONFIG NOT FOUND] .claude/afc.config.md not found. Run /afc:init first — abort if missing."`
skills/clarify/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/afc:clarify — Resolve Spec Ambiguities

Identifies ambiguous or incomplete areas in spec.md and resolves them through user questions. Answers are applied as inline updates to spec.md.

Arguments

  • $ARGUMENTS — (optional) focus on a specific area (e.g., "security", "performance", "UI flow")

Project Config (auto-loaded)

!cat .claude/afc.config.md 2>/dev/null || echo "[CONFIG NOT FOUND] .claude/afc.config.md not found. Run /afc:init first — abort if missing."

Execution Steps

1. Load Spec

  1. Read .claude/afc/specs/{feature}/spec.md — stop if not found
  2. If a [NEEDS CLARIFICATION] section exists, process it first
  3. Quickly check existing codebase for related patterns

2. Scan for Ambiguities

Scan across 10 categories:

# Category What to find
0 Necessity Is this feature truly needed? Does it already exist? Is the cost justified by the benefit?
1 Feature scope Features with unclear boundaries
2 Domain/data Incomplete entity relationships or field definitions
3 UX flow Missing user journey steps
4 Non-functional quality Performance/security requirements without numeric targets
5 External dependencies APIs or libraries needing clarification
6 Edge cases Undefined boundary conditions
7 Constraints/tradeoffs Mutually incompatible requirements
8 Terminology consistency Same concept with different names
9 Completion criteria Success criteria that cannot be measured
10 Residual placeholders TODO/TBD/???

These categories serve as a comprehensive checklist, not a rigid classification. Adapt to the project's domain — skip categories irrelevant to the project type (e.g., skip 'UX flow' for CLI tools) and add domain-specific categories if needed (e.g., 'regulatory compliance' for healthcare/fintech projects).

3. Generate and Present Questions

  • Generate questions ranked by their impact on spec quality — how much would the answer change the spec's direction or completeness? Present the most impactful questions first. The number of questions should match the actual ambiguity level: deeply ambiguous specs may need more questions, while mostly-clear specs need fewer. Do not artificially cap at a fixed number, but keep the set focused and avoid overwhelming the user (aim for the minimum needed to resolve critical ambiguities).
  • Present one at a time via AskUserQuestion:
    • Use multiple choice when possible (2-4 options)
    • Include the meaning/impact of each option

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 88 lines · 14 tokens per session scan B 6c419e6ed13b

Subscribe to this mod's changes

afc:clarify is a skill published in the GitHub repository jhlee0409/all-for-claudecode (7 stars, last pushed 5mo ago), licensed MIT. It adds 14 tokens to every session and 918 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.