skills/learner/SKILL.md
Extract a hard-won debugging insight from the current conversation into a reusable skill file
npx skillsauth add sartoris-digital/pi-superpowers learnerInstall 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.
Extract reusable skills from the current conversation — principles and decision-making heuristics that teach how to THINK about a class of problems, not just what code to produce.
Before extracting, the insight MUST pass all three checks:
From the current conversation, identify:
Save to .pi/skills/learned/<slug>.md:
---
name: <descriptive-name>
description: <one-line description>
triggers: [<keyword1>, <keyword2>, <keyword3>]
---
# <Skill Name>
## The Insight
What is the underlying PRINCIPLE discovered? Not the code, but the mental model.
## Why This Matters
What goes wrong if you don't know this? What symptom led here?
## Recognition Pattern
How do you know when this skill applies? What are the signs?
## The Approach
The decision-making heuristic. How should the agent THINK about this?
## Example
Code illustration of the principle (if helpful).
Present the extracted skill and ask for approval before saving:
| Pattern | Why Not | |---------|---------| | "When you see Error X, add try/catch" | Mimicking, not understanding | | "Use library X for Y" | Googleable | | "Always validate inputs" | Generic advice | | Standard design patterns | Universal knowledge |
| Insight | Why It's Worth Saving |
|---------|----------------------|
| "The ESM path resolution in this project requires fileURLToPath + specific relative paths" | Codebase-specific, non-obvious |
| "Race condition in worker.ts — Promise.all at line 89 needs await before map callback" | Hard-won debugging, precise location |
| "The pi-coding-agent SDK changed AgentToolResult to require details field in v4.x" | Undocumented breaking change |
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment
development
Use when you have a spec or requirements for a multi-step task, before touching code
data-ai
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
tools
Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions