Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
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 tiersskills/algorithm/capability-registry.md— 25 capabilities across 6 sectionsskills/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)
- Count >= 4 and scale-appropriate
- All 8-12 words
- State not action (no verbs)
- Binary testable
- Anti-criteria exist
Phases
- OBSERVE — Reverse engineer requirements, create ISC, capability audit
- THINK — Pressure test assumptions, refine ISC
- PLAN — Execution strategy, file manifest, verification plan
- BUILD — Create artifacts with ISC adherence checks
- EXECUTE — Run the work with continuous verification
- VERIFY — Mechanical verification of every criterion
- 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.