/pai:Testsfrom PAI Knowledge OS
Prunes a project's test suite down to a governed core (fix evidence, security guards, external contracts) and prevents regrowth via tests/KEPT.md.
Ships in PAI Knowledge OS. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
USE WHEN user says 'clean up tests', 'prune tests', 'test cleanup', 'too many tests', 'test governance', OR a [pai tests] growth notice says to run clean up tests.
Tests stay only with evidence, listed in tests/KEPT.md: (a) a real fix they guarded, (b) a security or destructive-operation guard, (c) an external contract (wire format, schema migration, CLI output, docs-sync). Everything else, including UI/simulator test runs, snapshot baselines and .xcresult/recordings/screenshots, is one-time and scratched.
tests_audit with repo = the project path (CLI: pai tests audit --repo <path>). Read-only. Show the user the counts, the KEEP list with evidence, the file-count trend.tests_prune without apply to show the plan. Questionable KEEP/DROP calls: ask the user.tests_prune with apply=true. A worker prunes on its own branch and makes one commit; it does not merge. Tell the user the worker id; they land it (pai worker merge).Never run a project's full test suite or a simulator run to decide this.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mnott/pai --plugin pai6 skills in this plugin
/BrainstormRun a round table: one moderator and several cloud participants discuss a goal on a shared board and return a ranked synthesis. USE WHEN user says 'brainstorm', 'round table', 'let us think this through with several views', OR /brainstorm./PAIHow to use the pai MCP server (memory, projects, sessions, code graph, workers, queue, plans, config). USE WHEN a task touches past work or decisions, project status, session handover, delegating code changes to workers, or PAI configuration./ReconstructRetroactively create session notes from JSONL transcripts and git history when automatic capture failed or was incomplete. USE WHEN user says 'reconstruct sessions', 'rebuild session notes', 'recover session notes', 'retroactively create notes', 'create notes from git history', 'notes are missing', 'backfill session notes', 'reconstruct what we did', OR /reconstruct./setupInstall, configure and verify PAI Knowledge OS, including workers, the router and the cockpit. USE WHEN user says "set up PAI", "install PAI", "configure PAI", "give Claude a memory", "set up workers", "set up the cockpit", or asks whether their PAI install is healthy. Phase-based and idempotent: every phase checks its state first and only does what is missing.
/TasksRun the task bus — read cross-session work from the tracker, dispatch it to the sessions that own it, and file new findings. USE WHEN user says 'morning routine', 'what needs doing', 'run the routine', 'check my tasks', 'dispatch tasks', 'file a finding', 'add this to todoist', 'what did we find', OR /tasks.Other plugins' skills for the same job