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.