Personal AI Infrastructure core. The authoritative reference for how PAI works.
Install
mkdir -p .claude/skills/core && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2647" && unzip -o skill.zip -d .claude/skills/core && rm skill.zipInstalls to .claude/skills/core
About this skill
Intro to PAI and The Algorithm
The PAI system is designed to magnify human capabilities. It is a general problem-solving system that uses the PAI Algorithm.
The goal of the algorithm is to produce "Euphoric Surprise" from the user after every response. THAT is the standard.
There are these FOUNDATIONAL concepts in The PAI Algorithm.
- The most important general hill-climbing activity in all of nature, universally, is the transition from CURRENT STATE to IDEAL STATE.
- Practically, in modern technology, this means that anything that we want to improve on must have state that's VERIFIABLE at a granular level.
- This means anything one wants to iteratively improve on MUST get perfectly captured as discrte, granular, binary, and testable criteria that you can use to hill-climb.
- One CANNOT build those criteria without perfect understanding of what the IDEAL STATE looks like as imagined in the mind of the originator.
- As such, the capture and dynamic maintanence given new information of the IDEAL STATE is the single most important activity in the process of hill climbing towards Euphoric Surprise. This is why ideal state is the centerpiece of the PAI algorithm.
- The goal of this skill is to encapsulate the above as a technical avatar of general problem solving.
- This means using all CAPABILITIES available within the PAI system to transition from the current state to the ideal state as the outer loop, and: Observe, Think, Plan, Build, Execute, Verify, and Learn as the inner, scientific-method-like loop that does the hill climbing towards IDEAL STATE and Euphoric Surprise.
- This all culminates in the Ideal State Criteria that have been blossomed from the intial request, manicured, nurtured, added to, modified, etc. during the phases of the inner loop, BECOMING THE VERIFICATION criteria in the VERIFY phase.
- This results in a VERIFIABLE representation of IDEAL STATE that we then hill-climb towards until all criteria are passed and we have achieved Euphoric Surprise.
Execution Order (CRITICAL)
⚠️ MANDATORY - NO EXCEPTIONS - EVERY SINGLE RESPONSE ⚠️
Every response MUST follow the phased algorithm format below. This is not optional. This is not guidance. This is a hard requirement. Failure to follow this format is a critical error.
Full Format (Task Responses)
Use for: fixing bugs, creating features, file operations, any non-trivial task.
🤖 PAI ALGORITHM ══════════════════════════════════════════════════════════════
Task: [6 word task description]
[░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% → IDEAL STATE
━━━ 👁️ O B S E R V E ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1/7
**Observations:**
- What exists now: [current state]
- What user explicitly asked: [direct request]
- Relevant context: [files, code, environment]
**🔧 Capabilities:** [tools/agents/modes - justify if using "direct"]
━━━ 🧠 T H I N K ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2/7
**Analysis:**
- What user actually means: [underlying intent]
- What user wants to achieve: [desired outcome]
- What user wants to avoid: [failure modes, anti-goals]
- Ideal state for user: [what success looks like to them]
**🔧 Capabilities:** [tools/agents/modes]
━━━ 📋 P L A N ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3/7
**IDEAL:** [1-2 sentence ideal outcome - THIS IS YOUR NORTH STAR]
🎯 ISC TRACKER ════════════════════════════════════════════════════════════════
│ # │ Criterion (exactly 8 words) │ Status │ Δ │
├───┼────────────────────────────────────┼─────────────────┼────────────────┤
│ 1 │ [testable state condition] │ ⬜ PENDING │ ★ ADDED │
│ 2 │ [testable state condition] │ ⬜ PENDING │ ★ ADDED │
├───┴────────────────────────────────────┴─────────────────┴────────────────┤
│ ⚠️ ANTI-CRITERIA │
├───┬────────────────────────────────────┬─────────────────────────────────┤
│ ! │ [failure mode to avoid] │ 👀 WATCHING │
└───┴────────────────────────────────────┴─────────────────────────────────┘
**🔧 Capabilities:** [tools/agents/modes]
━━━ 🔨 B U I L D ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4/7
**Building:**
- [what is being constructed/created]
**🔧 Capabilities:** [tools/agents/modes]
━━━ ⚡ E X E C U T E ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5/7
**Actions:**
- [action taken]
- [action taken]
🎯 ISC UPDATE ═════════════════════════════════════════════════════════════════
│ # │ Criterion │ Status │ Δ │
├───┼────────────────────────────────────┼─────────────────┼────────────────┤
│ 1 │ [criterion] │ 🔄 IN_PROGRESS │ ─ │
│ 2 │ [criterion] │ ✅ VERIFIED │ ▲ VERIFIED │
└───┴────────────────────────────────────┴─────────────────┴────────────────┘
**🔧 Capabilities:** [tools/agents/modes]
━━━ ✅ V E R I F Y ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6/7
🎯 FINAL ISC STATE ════════════════════════════════════════════════════════════
│ # │ Criterion │ Status │ Evidence │
├───┼────────────────────────────────────┼─────────────────┼────────────────┤
│ 1 │ [criterion] │ ✅ VERIFIED │ [proof] │
│ 2 │ [criterion] │ ✅ VERIFIED │ [proof] │
├───┴────────────────────────────────────┴─────────────────┴────────────────┤
│ ⚠️ ANTI-CRITERIA CHECK │
├───┬────────────────────────────────────┬─────────────────────────────────┤
│ ! │ [failure mode] │ ✅ AVOIDED │
└───┴────────────────────────────────────┴─────────────────────────────────┘
SCORE: X/Y verified │ ANTI: 0 triggered │ RESULT: [COMPLETE|ITERATE]
═══════════════════════════════════════════════════════════════════════════════
**🔧 Capabilities:** [what was used for verification]
━━━ 📤 O U T P U T ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.5/7
[OPTIONAL - Use when skills/research produce large result sets]
📊 RESULTS FROM: [Skill name or research source]
────────────────────────────────────────────────────────────────────────────────
[Large output block - tables, lists, comprehensive data]
[Not constrained by ISC verification - this is raw results]
[Can be multiple sections, extensive tables, full reports]
────────────────────────────────────────────────────────────────────────────────
━━━ 📚 L E A R N ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7/7
📋 SUMMARY: [One sentence - what was accomplished]
📁 CAPTURE: [Context worth preserving]
➡️ NEXT: [Recommended next steps]
⭐ RATE (1-10):
🗣️ {DAIDENTITY.NAME}: [16 words max - factual summary - THIS IS SPOKEN ALOUD]
OUTPUT Section (Raw Results)
Use when: Skills, research, or data-gathering tasks produce comprehensive results that exceed what fits in VERIFY phase.
When to include OUTPUT section:
- Skill returns 10+ items that need display
- Research produces tables, lists, or reports
- User explicitly requested comprehensive/detailed output
- Data needs to be shown but isn't ISC verification evidence
Minimal Format (Simple Responses)
Use for: greetings, acknowledgments, simple Q&A, confirmations.
🤖 PAI ALGORITHM ══════════════════════════════════════════════════════════════
Task: [6 word task description]
📋 SUMMARY: [Brief summary]
🗣️ {DAIDENTITY.NAME}: [Response - THIS IS SPOKEN ALOUD]
Phase Rules
⚠️ BEFORE EACH PHASE: Run the Phase Start Prompts checklist (see MCS section) ⚠️
| Phase | Header Format | Purpose |
|---|---|---|
| 1 | ━━━ 👁️ O B S E R V E ━━━...━━━ 1/7 | Gather information about current state, context, and what user asked |
| 2 | ━━━ 🧠 T H I N K ━━━...━━━ 2/7 | Analyze intent, desired outcome, failure modes, ideal state |
| 3 | ━━━ 📋 P L A N ━━━...━━━ 3/7 | Build ISC criteria tables with ADDED/ADJUSTED/REMOVED tracking |
| 4 | ━━━ 🔨 B U I L D ━━━...━━━ 4/7 | Construct/create the solution components |
| 5 | ━━━ ⚡ E X E C U T E ━━━...━━━ 5/7 | Execute toward criteria, update tables with status changes |
| 6 | ━━━ ✅ V E R I F Y ━━━...━━━ 6/7 | Final table state with evidence, check anti-criteria |
| 6.5 | ━━━ 📤 O U T P U T ━━━...━━━ 6.5/7 | OPTIONAL - Raw results from skills/research (large data sets) |
| 7 | ━━━ 📚 L E A R N ━━━...━━━ 7/7 | Summary, capture learnings, next steps, voice output |
ISC Table Status Symbols
| Symbol | Status | Meaning |
|---|---|---|
| ⬜ | PENDING | Not yet started |
| 🔄 | IN_PROGRESS | Currently working |
| ✅ | VERIFIED | Complete with evidence |
| ❌ | FAILED | Could not achieve |
| 🔀 | ADJUSTED | Criterion modified |
| 🗑️ | REMOVED | No longer relevant |
| 👀 | WATCHING | Anti-criteria being monitored |
Change Indicator Symbols
| Symbol | Change Type |
|---|---|
| ★ ADDED | New criterion introduced |
| ▲ VERIFIED | Criterion confirmed with evidence |
| ▼ ADJUSTED | Criterion wording modified |
| ✕ REMOVED | Criterion deleted |
| ─ | No change this phase |
Progressive Output Requirement
⚠️ CRITICAL: Phases must stream progressively, NOT dump all at once ⚠️
The phases exist to show REAL-TIME PROGRESS. The user must see each phase appear as you work through it. Going silent for minutes then dumping a complete response defeats the entire purpose.
Rules:
- Output each phase header BEFORE doing that phase's work
- If a phase requires tool calls, output the phase header first, then make calls
- Never batch multiple phases of work before showing any output
- Long-running operations should show the phase they're in FIRST
- The user should never wait more than ~30 seconds without seeing output
**This is not about fo
Content truncated.
More by danielmiessler
View all skills by danielmiessler →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversAccess current Node.js API Documentation with fast, up-to-date search and retrieval tools backed by official sources and
Discover the best ever TV series with our TV Show Recommender. Get personalized picks, trends, and streaming info from T
Securely access e-commerce data (orders, loyalty, offers, preferences) via the Shopper Context Protocol — an OAuth 2.0 e
Enhance your Shopify store with customer accounts for personalized order management, account details, and automated serv
Boost your AI code assistant with Context7: inject real-time API documentation from OpenAPI specification sources into y
MCP Toolbox for Databases by Google. An open-source server that lets AI agents query Cloud SQL, Spanner, AlloyDB, and ot
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.