skills/papi-sdlc-fix/SKILL.md
Create or work with defect fix tasks, where the defect may be in code, a specification, documentation, tooling, or a process. [PAPI SDLC]
npx skillsauth add stainsby/papi papi-sdlc-fixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever a defect, bug, or unintended behaviour is being addressed as a task, regardless of whether the defect is in code, a specification, documentation, tooling, or a process.
Reading these skills is REQUIRED to understand and execute this skill:
papi-sdlc-understandpapi-tasks-understandpapi-templates-understandA defect fix task is not a minimal patch. It is an opportunity to leave the affected area in a better state than before the defect was introduced. Every fix task MUST consider and, where feasible, incorporate:
Root cause addressed — not just the symptom. Document the root cause explicitly; if it cannot be fixed in this task, record it as a follow-on.
Clarity improvement — if the defect caused confusion (e.g., ambiguous naming, missing documentation, unhelpful error messages, misleading descriptions), improve the relevant artefact so the same confusion cannot recur. This applies equally to code interfaces, specification language, process descriptions, and user-facing copy.
Consistency improvement — if the defect reveals an inconsistency across related artefacts (e.g., naming conventions, structural patterns, response contracts, formatting), address the inconsistency as part of the task, not just the specific broken instance.
Eliminate unnecessary extra steps — if the defect forced users or callers to perform an additional action to obtain information or state that should have been available in the first place, fix the artefact so that extra step is no longer needed.
Artefacts in sync — every fix that changes observable behaviour or structure must update all affected artefacts: specification, code, tests, and documentation. A fix without corresponding artefact updates is incomplete.
"Leave it better" does not mean "also fix everything else you notice". Improvements included in a fix task must be:
Before writing the plan, capture the exact observed behaviour as evidence. This serves as the acceptance test: the fix is done when the evidence condition no longer occurs.
Use proper TDD: write a failing test that directly captures the observed evidence, then implement the fix to make that test pass. This ensures the fix is verifiable and prevents regressions.
assets/fix-task-template.mddevelopment
Plan and perform user-acceptance testing for user stories - exercise each story end-to-end through the real user interface in the appropriate role, with evidence. [PAPI SDLC]
development
Create or work with charter audit tasks that check alignment between the project's Charter and its user stories — both top-down and bottom-up. [PAPI SDLC]
development
Create, understand, or work with the project charter. [PAPI SDLC]
development
Manage a task with many repeated steps, or a long running task with many steps, so that it is tracked and resumable over more than one session if needed.