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.
git clone --depth 1 https://github.com/J-Pster/Psters_AI_WorkflowWrote 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.
[](https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-doc-capture)<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-doc-capture"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-doc-capture/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.
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-doc-capture"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-doc-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.00581 |
| Opus 5 | $0.00046 | $0.00291 |
| Sonnet 5 | $0.00018 | $0.00116 |
| Haiku 4.5 | $0.00009 | $0.00058 |
Grade A, and why
pwf-doc-capture 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.
What it actually says
Capture Reusable Learnings and Patterns
Use this command to explicitly register reusable learnings so future work can reuse them quickly.
Detailed playbook: assets/docs-playbook.md.
Modes
/pwf-doc-capture— document the most recent fix from conversation (problem → solution)/pwf-doc-capture [context]— e.g. "N+1 in list", "trigger timeout"/pwf-doc-capture pattern— document a reusable implementation pattern (not a bug fix)/pwf-doc-capture pattern [context]— e.g. "role-based visibility", "new SQS Lambda pipeline stage"
Mode 1: Problem/Solution (default)
Use when documenting a solved issue with root cause, fix, and prevention.
Run the playbook from assets/docs-playbook.md:
- Parallel analysis tracks
- Pattern extraction check
- Assemble and write solution doc
- Optional focused reviewer validation
- For reusable patterns, invoke
pattern-extractor(agents/docs/pattern-extractor.md) explicitly.
Mode 2: Pattern (/pwf-doc-capture pattern)
Use when the outcome is a reusable implementation pattern.
Run the pattern workflow from assets/docs-playbook.md and write to:
docs/solutions/patterns/<category>/<name>.md
Preconditions
- Problem is solved and verified (Mode 1).
- Non-trivial (worth documenting for future lookup).
Categories
Choose a concrete, searchable category in docs/solutions/ (problem/solution) or
docs/solutions/patterns/ (pattern mode). Keep names specific and stable.
Success
Confirm: "Documentation complete. File: docs/solutions/<category>/<filename>.md" (and pattern file if applicable). Suggest: link related docs, run /pwf-plan or continue workflow.
Next Recommended Commands
/pwf-doc updateto propagate learned patterns across stale docs/pwf-planwhen the learning implies a broader architectural follow-up/pwf-commit-changeswhen documentation updates are complete
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.
- 10d ago First seen · 66 lines · 91 tokens per session scan A 368a6572c492
pwf-doc-capture is a command published in the GitHub repository J-Pster/Psters_AI_Workflow (289 stars, last pushed 5mo ago), licensed MIT. It adds 91 tokens to every session and 581 once invoked, about $0.0005 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.
Other commands, from other repositories
context
A project-context command that manages a .context directory containing decision notes, session logs, and history. It helps keep a record of why changes were made across Git branches and commits.
spec-research
A requirements-research command that turns a request into a set of constraints and checkable success criteria. It explores the relevant parts of a project in parallel and creates a structured proposal.
triage
Triage Linear issue with comprehensive analysis.
land
Cadence-tick autonomous PR babysitter (CI-fix, resolve, converge, merge, close, release).
sync
Manually trigger plan-sync to update downstream task specs after implementation drift.
slack-gif-creator
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".