Universal task initializer that automatically loads PAI context for all user requests. Ensures complete context availability (contacts, preferences, protocols) before responding to any task. (project, gitignored)
Automatically loads your complete PAI context (contacts, preferences, protocols) before processing any request. Triggers on every user message to ensure all subsequent operations have access to your personal AI infrastructure.
/plugin marketplace add danielmiessler/PAIPlugin/plugin install danielmiessler-pai@danielmiessler/PAIPluginThis skill inherits all available tools. When active, it can use any tool Claude has access to.
⚠️ CRITICAL SYSTEM REQUIREMENT ⚠️
AUTOMATIC INVOCATION REQUIRED: This skill MUST be automatically invoked as the FIRST action for EVERY user request without exception.
Trigger Pattern: ALL user messages/requests
Priority Level: P0 (Highest - blocks all other operations)
Automation Rule: if (userRequest) → invoke("always-init") → then processRequest()
Universal context loader providing complete PAI (Personal AI Infrastructure):
Without ALWAYS-INIT context loading:
1. Receive user request
2. ⚡ IMMEDIATELY: Skill("always-init") ← THIS STEP
3. Wait for PAI context to load
4. THEN proceed with request processing
// Automatic prepend to request pipeline
function handleUserRequest(request) {
await invokeSkill("always-init"); // MANDATORY FIRST STEP
const paiContext = loadContext();
return processWithContext(request, paiContext);
}
This skill is working correctly when:
Execute: read ~/.claude/skills/PAI/SKILL.md
This provides the complete Personal AI Infrastructure context that all skills and responses depend on.
Once PAI context is loaded, proceed immediately with the user's actual request.
This skill implements a "context-first" architecture where PAI loads universally rather than being distributed across individual skills. It acts as a bootstrap loader that:
This eliminates the need for individual skills to manually load PAI context and ensures consistent, complete context availability across all operations.
💡 Implementation Note:
Ideally, this skill should be hardcoded into the request handler rather than relying on manual invocation. The skill system should automatically prepend this to every request pipeline.
Alternative Approach: Add to system prompt: "Before responding to ANY user request, you MUST first invoke the always-init skill to load PAI context."
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.