4
2
Source

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.zip

Installs 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.

  1. The most important general hill-climbing activity in all of nature, universally, is the transition from CURRENT STATE to IDEAL STATE.
  2. Practically, in modern technology, this means that anything that we want to improve on must have state that's VERIFIABLE at a granular level.
  3. 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.
  4. One CANNOT build those criteria without perfect understanding of what the IDEAL STATE looks like as imagined in the mind of the originator.
  5. 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.
  6. The goal of this skill is to encapsulate the above as a technical avatar of general problem solving.
  7. 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.
  8. 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.
  9. 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) ⚠️

PhaseHeader FormatPurpose
1━━━ 👁️ O B S E R V E ━━━...━━━ 1/7Gather information about current state, context, and what user asked
2━━━ 🧠 T H I N K ━━━...━━━ 2/7Analyze intent, desired outcome, failure modes, ideal state
3━━━ 📋 P L A N ━━━...━━━ 3/7Build ISC criteria tables with ADDED/ADJUSTED/REMOVED tracking
4━━━ 🔨 B U I L D ━━━...━━━ 4/7Construct/create the solution components
5━━━ ⚡ E X E C U T E ━━━...━━━ 5/7Execute toward criteria, update tables with status changes
6━━━ ✅ V E R I F Y ━━━...━━━ 6/7Final table state with evidence, check anti-criteria
6.5━━━ 📤 O U T P U T ━━━...━━━ 6.5/7OPTIONAL - Raw results from skills/research (large data sets)
7━━━ 📚 L E A R N ━━━...━━━ 7/7Summary, capture learnings, next steps, voice output

ISC Table Status Symbols

SymbolStatusMeaning
PENDINGNot yet started
🔄IN_PROGRESSCurrently working
VERIFIEDComplete with evidence
FAILEDCould not achieve
🔀ADJUSTEDCriterion modified
🗑️REMOVEDNo longer relevant
👀WATCHINGAnti-criteria being monitored

Change Indicator Symbols

SymbolChange Type
★ ADDEDNew criterion introduced
▲ VERIFIEDCriterion confirmed with evidence
▼ ADJUSTEDCriterion wording modified
✕ REMOVEDCriterion 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.

alex-hormozi-pitch

danielmiessler

Create irresistible offers and pitches using Alex Hormozi's methodology from $100M Offers. Guides through value equation, guarantee frameworks, pricing psychology, and creating offers "too good not to take" for any product or service.

14465

research

danielmiessler

Comprehensive research, analysis, and content extraction system. USE WHEN user says 'research' (ANY form - this is the MANDATORY trigger), 'do research', 'extensive research', 'quick research', 'minor research', 'research this', 'find information', 'investigate', 'extract wisdom', 'extract alpha', 'analyze content', 'can't get this content', 'use fabric', OR requests any web/content research. Supports three research modes (quick/standard/extensive), deep content analysis, intelligent retrieval, and 242+ Fabric patterns. NOTE: For due diligence, OSINT, or background checks, use OSINT skill instead.

6616

osint

danielmiessler

Open source intelligence gathering. USE WHEN OSINT, due diligence, background check, research person, company intel, investigate. SkillSearch('osint') for docs.

5011

prompting

danielmiessler

Prompt engineering standards and context engineering principles for AI agents based on Anthropic best practices. Covers clarity, structure, progressive discovery, and optimization for signal-to-noise ratio.

10411

voiceserver

danielmiessler

Voice server management. USE WHEN voice server, TTS server, voice notification, prosody.

136

art

danielmiessler

Complete visual content system for Unsupervised Learning. FOURTEEN workflows - (1) VISUALIZE (adaptive multi-modal orchestrator), (2) MERMAID (Excalidraw-style technical diagrams), (3) Editorial illustrations, (4) Technical diagrams, (5) Visual taxonomies, (6) Timelines, (7) Frameworks, (8) Comparisons, (9) Annotated screenshots, (10) Recipe cards, (11) Aphorisms, (12) Conceptual maps, (13) Stats, (14) Comics. USE WHEN user requests any visual content: 'visualize', 'mermaid', 'flowchart', 'sequence diagram', 'state diagram', 'infographic', 'art', 'illustration', 'diagram', 'taxonomy', 'timeline', 'framework', 'comparison', 'screenshot', 'recipe', 'aphorism', 'quote card', 'map', 'stat card', 'comic'. Note: Blogging skill auto-routes header images here.

915

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.

1,6831,428

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."

1,2611,321

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.

1,5311,146

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.

1,350807

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.

1,262727

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,478682