pwf-work

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

A guided workflow command for carrying out small, unplanned coding tasks, from reading project documentation through implementation and verification.

In plain words
What is it for?
Use it for minor fixes, adjustments, and other contained tasks that need research, code changes, builds, and documentation checks.
Why use it?
It prevents quick fixes from skipping important context, safety checks, or documentation updates. It is intended for focused work rather than work already covered by a formal plan.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; names the TodoWrite tool.

Good fit Use it for minor fixes, adjustments, and other contained tasks that need research, code changes, builds, and documentation checks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-work.svg)](https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-work)
Your own site
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-work"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-work.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,228 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.00039 $0.02228
Opus 5 $0.00019 $0.01114
Sonnet 5 $0.00008 $0.00446
Haiku 4.5 $0.00004 $0.00223

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

Security

Grade A, and why

pwf-work 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 8d 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-work.md · 214 lines

How it starts

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

Execute Unplanned Work (Fast Path)

Use this command for small fixes, minor adjustments, and focused tasks outside formal plans. For phase execution from docs/plans/, use /pwf-work-plan. Apply skills/using-psters-workflow/SKILL.md at start.

Documentation Intent (Read This First)

Documentation in docs/ is operational memory for future AI and engineers, not a release note.

Every documentation update must help a future implementation answer quickly:

  • Where is the source of truth?
  • What is implemented now vs only planned?
  • Which invariants/rules cannot be broken?
  • Which files/methods must change together?
  • What are the known gotchas and safe change steps?

Avoid generic text that could apply to any project.

⛔ MANDATORY WORKFLOW — NEVER SKIP ANY STEP

You MUST execute steps 1 through 6 IN ORDER. Do NOT jump to implementation. Your FIRST action must be reading documentation (Step 1), NOT editing code. If you skip Step 1 or Step 5, the workflow is BROKEN.


Input

<work_description> #$ARGUMENTS </work_description>

If empty, ask: "What would you like me to work on?"


Step 1: Research (BLOCKING — must complete before any code changes)

Your first tool calls MUST be Read calls to load documentation. Do NOT start implementing.

Before Step 1 execution details, resolve extension guidance for before_work:

  • node ${CURSOR_PLUGIN_ROOT}/scripts/resolve-workflow-extensions.mjs before_work
  1. If the description is vague, ask one or two clarifying questions first.

  2. Classify scope first (trivial vs non-trivial):

    • Trivial: <=2 files, no entities/migrations/endpoints/auth model changes.
    • If trivial, use lightweight path:
      • read only docs/solutions/patterns/critical-patterns.md (if exists) and directly relevant doc,
      • skip mandatory research-agent spawning,
      • keep focused implementation + verification evidence.
    • If non-trivial, follow full workflow below.
  3. Load docs baseline via skill (REQUIRED):

    • Apply skills/docs-baseline-loading/SKILL.md.
    • Read mandatory baseline docs before implementation.
    • Create any missing canonical baseline docs immediately using the skill's required minimum sections.
    • Then read scope-specific docs:
      • docs/solutions/patterns/critical-patterns.md (if exists)
      • docs/modules/<module>.md (backend scope)
      • docs/features/<feature>.md (frontend scope)
      • docs/lambdas/<repo>.md (Lambda scope)
      • docs/runbooks/README.md (operational/deploy scope)
    • Search docs/solutions/ by feature keywords for known gotchas.
    • If any other expected doc file is missing: create it immediately with a useful baseline (not placeholders). Minimum sections:
      • Purpose (business scope)
      • Source of Truth Files (exact paths)
      • Current Implementation Snapshot (what exists now)
      • Planned/Upcoming Contract (only if plan exists; clearly marked as planned)
      • Invariants and Gotchas
      • Safe Change Checklist for Future AI Work
      • Related Plan and Docs

Read the full file on GitHub · 214 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. 8d ago First seen · 214 lines · 39 tokens per session scan A 85cdba922815

Subscribe to this mod's changes

pwf-work is a command published in the GitHub repository J-Pster/Psters_AI_Workflow (289 stars, last pushed 5mo ago), licensed MIT. It adds 39 tokens to every session and 2,228 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.