USE WHEN: Executing free-form work outside formal plans — small fixes, minor adjustments, focused tasks. For planned phase execution, use pwf-work-plan instead. DON'T USE WHEN: The task is trivial/local-only (use pwf-work-light), tests-first is required (use pwf-work-tdd), or work belongs to an existing plan (use pwf-work-plan). REQUIRED INPUT: Description of what to do (e.g., "fix X", "improve Y", "add Z"). OUTPUT: Implemented changes + updated documentation. PROCESS: 1. Load docs baseline (mandatory — never skip) 2. Classify scope (trivial vs non-trivial) 3. Execute research agents (repo-research-analyst, learnings-researcher) 4. Create task list, execute implementation 5. Run TypeScript validation 6. Update documentation (mandatory) 7. Provide verification evidence NEXT STEPS: After completion, use pwf-review for full PR review, or pwf-commit-changes for structured commits.
Use this skill for small fixes, minor adjustments, and focused tasks outside formal plans. For phase execution from docs/plans/, use pwf-work-plan.
Apply using-psters-workflow skill at start.
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:
Avoid generic text that could apply to any project.
When running in Paperclip heartbeats:
PAPERCLIP_TASK_ID contains the assigned issue (if triggered by task assignment)PAPERCLIP_WAKE_REASON indicates why the heartbeat startedPAPERCLIP_WAKE_COMMENT_ID is present, acknowledge the comment firstX-Paperclip-Run-Id: $PAPERCLIP_RUN_ID on all API mutationsTask Checkout (if assigned): Before starting work on an assigned task, checkout via Paperclip API:
curl -H "Authorization: Bearer $PAPERCLIP_API_KEY" \
-H "X-Paperclip-Run-Id: $PAPERCLIP_RUN_ID" \
-X POST "$PAPERCLIP_API_URL/api/companies/$PAPERCLIP_COMPANY_ID/issues/$PAPERCLIP_TASK_ID/checkout"
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.
<work_description> #$ARGUMENTS </work_description>
If empty, ask: "What would you like me to work on?"
Your first tool calls MUST be Read calls to load documentation. Do NOT start implementing.
If the description is vague, ask one or two clarifying questions first.
Classify scope first (trivial vs non-trivial):
docs/solutions/patterns/critical-patterns.md (if exists) and directly relevant doc,Load docs baseline via skill (REQUIRED):
docs-baseline-loading skill.docs/solutions/patterns/critical-patterns.md (if exists)docs/modules/<module>.md (backend/module scope)docs/features/<feature>.md (frontend/UI scope)docs/infrastructure/<component>.md (infrastructure scope)docs/runbooks/README.md (operational/deploy scope)docs/solutions/ by feature keywords for known gotchas.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 GotchasSafe Change Checklist for Future AI WorkRelated Plan and DocsCheck existing context:
docs/brainstorms/ — recent brainstorm for this feature?docs/plans/ — existing plan? If work belongs to a plan phase, suggest pwf-work-plan instead.Execute research agents (REQUIRED for non-trivial scope):
Execute the following agents by reading and applying their instructions:
Derive a task list — concrete, dependency-ordered.
Self-validate: Review every task. Does it have a file path? Does it have specific method names or field names? If not, rewrite it.
Debug route detection: If this work is a bug/failure/regression fix:
bug-reproduction-validator (../../agents/workflow/bug-reproduction-validator.md) when the report is ambiguous.systematic-debugging skill (root-cause -> pattern -> hypothesis -> minimal fix) before implementing broad changes.systematic-debugging/root-cause-tracing.mdsystematic-debugging/condition-based-waiting.mdsystematic-debugging/defense-in-depth.md../../references/rules/operational-guardrails.mddocs/workflow/operational-overrides.md (if present, it overrides defaults from guardrails).env file for database queries when applicable. Never display credentials.resolve-library-id then query-docs) before implementing with external libraries.For each task:
Follow the migration chain defined in ../../references/rules/operational-guardrails.md (generate -> drift-check -> local run).
Treat this as blocking. Do not continue other tasks until the chain succeeds.
After all tasks:
npm run validate (or tsc --noEmit if no validate script). Fix ALL type/lint errors.npm run build) only runs when explicitly requested by user or during deployment workflows.Only run if 5+ files changed or multiple repos touched. Otherwise skip to Step 5.
If triggered, execute review agents by reading and applying their instructions:
../../references/review-agent-selection-mapping.md to select applicable agents based on changed scope.Address critical findings only. Informational findings are noted but don't block.
This step is MANDATORY even for small changes.
Apply docs-maintenance-after-work skill and execute its full flow:
doc-shepherd,plan-sync when plan context exists,pattern-extractor when applicable,Summarize: what was implemented, files changed, any caveats.
Before any "done/fixed/passing" claim, apply verification-before-completion skill and use the evidence format from ../../references/rules/operational-guardrails.md.
Include a dedicated Documentation updates subsection listing:
Suggest:
pwf-review for full PR reviewpwf-doc-capture if a non-trivial bug was fixeddeploy-lambda reminder if Lambda repos were touched../../references/rules/operational-guardrails.md.../../references/rules/commits.md.docs/workflow/operational-overrides.md when present.pwf-work-light for future trivial/local-only changespwf-review for a full multi-agent review passpwf-commit-changes after review approvalpwf-doc-capture when a reusable fix/pattern emergedfinishing-a-development-branch when branch/worktree is ready to closerepo-research-analyst (../../agents/research/repo-research-analyst.md)
learnings-researcher (../../agents/research/learnings-researcher.md)
docs/solutions/Read both agent files and execute their instructions. You can read multiple files in parallel.
Conditional research (execute applicable agents, non-trivial scope):
Execute the following agents when applicable by reading and applying their instructions:
../../agents/research/migration-impact-planner.md)../../agents/workflow/spec-flow-analyzer.md)../../agents/research/best-practices-researcher.md), framework-docs-researcher (../../agents/research/framework-docs-researcher.md)Present research summary to user: Before implementing, show:
docs/solutions/Then proceed to Step 2.