pwf-setup

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

A command that creates or repairs a standard project documentation structure under docs/. It adds folders, starter files, runbooks, and project reference documents without replacing existing non-empty files.

In plain words
What is it for?
Bootstrapping documentation in a new project or restoring missing workflow folders and baseline files in an existing one.
Why use it?
It removes the manual work of setting up a consistent place for infrastructure, architecture, integrations, environments, and operational guidance.

Command for Claude Code

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

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.

agentmods
npx agentmods add commands/j-pster/psters_ai_workflow/pwf-setup
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-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-setup.svg)](https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-setup)
Your own site
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-setup"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,115 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00045 $0.01115
Opus 5 $0.00023 $0.00558
Sonnet 5 $0.00009 $0.00223
Haiku 4.5 $0.00005 $0.00112

Measured 7d ago against content hash 39e7b194f0f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pwf-setup 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 7d 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-setup.md · 158 lines

How it starts

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

Setup Project Workflow Skeleton

Use this command to bootstrap (or repair) the baseline workflow structure in docs/. This command is intentionally deterministic: it creates missing structure without guessing architecture decisions.

Goals

  1. Ensure docs/ exists and has a predictable workflow structure.
  2. Create missing directories and keep them in git using .gitkeep when empty.
  3. Ensure project-level operational override file exists:
    • docs/workflow/operational-overrides.md
  4. Ensure mandatory project baseline files exist:
    • docs/infrastructure.md
    • docs/architecture.md
    • docs/integrations.md
    • docs/environments.md
    • docs/glossary.md
  5. Ensure runbooks structure exists:
    • docs/runbooks/
    • docs/runbooks/README.md
  6. Avoid destructive edits:
    • Never delete existing docs.
    • Never overwrite non-empty existing files unless explicitly requested by the user.

Important path boundary

Do not redefine this policy inline. Follow the canonical boundary rule:

  • rules/docs-scope-boundary.mdc

When running /pwf-setup, always create/update the project docs structure defined by that rule.


Required skeleton

Create these directories if missing:

  • docs/
  • docs/brainstorms/
  • docs/plans/
  • docs/work-plans/
  • docs/solutions/
  • docs/solutions/patterns/
  • docs/workflow/
  • docs/runbooks/
  • docs/modules/
  • docs/features/
  • docs/lambdas/
  • docs/decisions/

For each empty directory above, create .gitkeep.

Required files (create if missing):

  • docs/README.md (index with links to core sections)
  • docs/workflow/operational-overrides.md (project policy override file)
  • docs/infrastructure.md (project infrastructure source of truth)
  • docs/architecture.md (project architecture source of truth)
  • docs/integrations.md (external systems and contract source of truth)
  • docs/environments.md (environment matrix and deployment context source of truth)
  • docs/glossary.md (domain and technical terminology source of truth)
  • docs/runbooks/README.md (runbooks catalog and usage guide)

Read the full file on GitHub · 158 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. 7d ago First seen · 158 lines · 45 tokens per session scan A 39e7b194f0f8

Subscribe to this mod's changes

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