pwf-clarify

pwf-clarify is a command for Claude Code from J-Pster/Psters_AI_Workflow. It costs 33 tokens per session (772 once invoked), scanned A, original, MIT.

A command that asks up to five high-impact questions before a feature plan is finalised or executed, then saves the answers in a planning document. It reviews the target plan and checks for missing scope, data, user flows, risks, and completion criteria.

In plain words
What is it for?
Use it to clarify an existing plan, assess its missing details, and write a clarification record under `docs/plans/`.
Why use it?
It reduces ambiguity before implementation by exposing decisions that a plan has not settled. This helps prevent work from starting with unclear requirements or overlooked failure cases.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to clarify an existing plan, assess its missing details, and write a clarification record under docs/plans/.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/j-pster/psters_ai_workflow/pwf-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.

Clone the repo
git clone --depth 1 https://github.com/J-Pster/Psters_AI_Workflow

Made for: Claude Code.

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 pwf-clarify

README.md
[![agentmods](https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-clarify/github.svg)](https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-clarify)
Your own site
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-clarify"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-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 pwf-clarify

Your own site · 80×15
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-clarify"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-clarify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 772 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00033 $0.00772
Opus 5 $0.00016 $0.00386
Sonnet 5 $0.00007 $0.00154
Haiku 4.5 $0.00003 $0.00077

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

Security

Grade A, and why

pwf-clarify scanned grade A with 0 findings 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 10d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/psters-ai-workflow/commands/pwf-clarify.md · 122 lines

How it starts

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

Clarify Requirements Before Planning/Execution

Use this command to reduce ambiguity before /pwf-plan finalization or before /pwf-work-plan execution.

Input

<clarify_input> #$ARGUMENTS </clarify_input>

If empty, ask: "Which plan should I clarify? (e.g. docs/plans/20260312-feature-plan.md)"


Step 1: Load context

  1. Identify target plan:
    • If input is a docs/plans/*.md path, use it directly.
    • Otherwise, find the most relevant recent plan by keywords.
  2. Read target plan fully.
  3. Read related docs when applicable:
    • docs/modules/<module>.md
    • docs/features/<feature>.md
    • docs/lambdas/<repo>.md
    • docs/solutions/patterns/critical-patterns.md (if exists)

Step 2: Ambiguity scan (taxonomy)

Scan and classify each category as Clear | Partial | Missing:

  1. Functional scope and success criteria
  2. Domain/data model and lifecycle transitions
  3. UX/interaction flows (empty/error/loading states)
  4. NFRs (security, performance, reliability, observability)
  5. Integration boundaries and failure modes
  6. Edge cases and conflict/concurrency handling
  7. Terminology consistency
  8. Completion signals (objective done criteria)

Step 3: Ask targeted questions

Ask up to 5 questions total, one at a time, prioritizing highest impact.

Question rules:

  • Prefer multiple choice (2-5 options).
  • Provide a recommended option and 1-2 line reasoning.
  • Accept short custom answer when needed.
  • Skip low-impact questions that do not change implementation.

Stop early when:

  • Critical ambiguities are resolved, or
  • user says "done"/"proceed", or
  • question limit is reached.

Step 4: Write clarifications artifact

Write/update:

  • docs/plans/<plan-slug>.clarifications.md

Required structure:

# Clarifications — <Plan Title>

## Source Plan
- `docs/plans/<plan-file>.md`

## Session YYYY-MM-DD
- Q: ...
  - Recommendation: ...
  - Final Answer: ...
  - Impact on Plan: ...

## Coverage Summary
| Category | Status | Notes |
|----------|--------|-------|

Read the full file on GitHub · 122 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. 10d ago First seen · 122 lines · 33 tokens per session scan A 8fdf117e3498

Subscribe to this mod's changes

pwf-clarify is a command published in the GitHub repository J-Pster/Psters_AI_Workflow (289 stars, last pushed 5mo ago), licensed MIT. It adds 33 tokens to every session and 772 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.