0
0
# Install this skill:
npx skills add Anshin-Health-Solutions/superpai --skill "algorithm"

Install specific skill from multi-skill repository

# Description

Full PAI Algorithm — 7-phase systematic problem-solving with Ideal State Criteria. Loaded on-demand when ALGORITHM mode activates.

# SKILL.md


name: algorithm
description: "Full PAI Algorithm — 7-phase systematic problem-solving with Ideal State Criteria. Loaded on-demand when ALGORITHM mode activates."
triggers:
- use the algorithm
- full algorithm
- algorithm mode
- complex analysis
- ISC
- ideal state criteria


The PAI Algorithm (On-Demand Loader)

This skill loads the full Algorithm system when ALGORITHM mode activates. It includes:
- 7 phases (OBSERVE → THINK → PLAN → BUILD → EXECUTE → VERIFY → LEARN)
- Ideal State Criteria (ISC) creation and verification
- Quality Gates
- Capability Audit (25 capabilities)
- PRD system for multi-session persistence

When This Activates

  • User says "use the algorithm" or "full algorithm"
  • Task is classified as ALGORITHM by the depth selector
  • Architecture decisions, research, multi-session projects, non-dev work

Sub-Files (loaded with this skill)

  • skills/algorithm/isc-rules.md — ISC creation rules, quality gates, scale tiers
  • skills/algorithm/capability-registry.md — 25 capabilities across 6 sections
  • skills/algorithm/prd-template.md — PRD template for multi-session persistence

Quick Reference

ISC Rules

  • 8-12 words each, state not action, binary testable
  • Minimum 4 criteria per task, scale with complexity
  • Anti-criteria: what must NOT happen (prefix ISC-A)
  • Use TaskCreate/TaskUpdate/TaskList — never manual tables

Quality Gate (after OBSERVE)

  1. Count >= 4 and scale-appropriate
  2. All 8-12 words
  3. State not action (no verbs)
  4. Binary testable
  5. Anti-criteria exist

Phases

  1. OBSERVE — Reverse engineer requirements, create ISC, capability audit
  2. THINK — Pressure test assumptions, refine ISC
  3. PLAN — Execution strategy, file manifest, verification plan
  4. BUILD — Create artifacts with ISC adherence checks
  5. EXECUTE — Run the work with continuous verification
  6. VERIFY — Mechanical verification of every criterion
  7. LEARN — Reflection, PRD update, memory persistence

For full details, read the sub-files listed above.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.