From test-quality
Extract testing lessons from bug fixes and update the knowledge base. Use this skill when the user asks to "learn from this bug", "extract a testing lesson", "update test knowledge", "what should we test for this", or after completing a bug fix to capture reusable test patterns that prevent similar regressions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/test-quality:test-learnThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze the most recent bug fix to extract a testing lesson. Steps:
Analyze the most recent bug fix to extract a testing lesson. Steps:
Update tests/.test-knowledge.json with the new pattern:
{
"id": "short-kebab-id",
"description": "What to test and why",
"learned_from": "Brief description of the bug",
"date_added": "YYYY-MM-DD",
"applies_to": ["relevant", "module", "categories"]
}
Create tests/.test-knowledge.json if it doesn't exist yet. Show the update and
ask for confirmation before writing.
npx claudepluginhub ats-kinoshita-iso/agent-workshop --plugin test-qualityWrites a failing automated test that reproduces a bug before fixing it, then verifies the fix passes. Use when fixing any bug to prevent silent recurrence.
Improves regression detection by learning from historical patterns, prioritizing tests by risk, analyzing root causes, and predicting code change failures.
Records reusable lessons from resolved bug fixes, architectural changes, interface updates, or recurring pitfalls into project memory docs, anchored to git commits.