Agent skill

always-init

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)

Stars 42
Forks 8

Install this agent skill to your Project

npx add-skill https://github.com/danielmiessler/PAIPlugin/tree/main/skills/always-init

SKILL.md

ALWAYS-INIT - Universal Task Initializer


⚠️ 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()


🎯 Purpose

Universal context loader providing complete PAI (Personal AI Infrastructure):

  • 👥 Contacts: Alice, Bob, Carol, Dave, team members
  • 🛠️ Stack Preferences: TypeScript>Python, bun>npm, uv>pip
  • 🔒 Security Protocols: Repository safety, credential handling
  • 📝 Response Format: Structured output standards
  • 🎙️ Voice Routing: ElevenLabs voice IDs for agents
  • ⚙️ Operating Instructions: Personal preferences and workflows

❌ Consequences of Skipping

Without ALWAYS-INIT context loading:

  • Responses lack relationship/contact awareness
  • Wrong technical stacks used (npm instead of bun, pip instead of uv)
  • Security protocols violated
  • Incorrect response formatting
  • Missing personalization
  • Context-dependent decisions fail
  • Agent routing fails

🔄 Implementation Protocol

For AI Assistant (Claude):

1. Receive user request
2. ⚡ IMMEDIATELY: Skill("always-init")  ← THIS STEP
3. Wait for PAI context to load
4. THEN proceed with request processing

For Skill System (Automation):

javascript
// Automatic prepend to request pipeline
function handleUserRequest(request) {
  await invokeSkill("always-init");  // MANDATORY FIRST STEP
  const paiContext = loadContext();
  return processWithContext(request, paiContext);
}

🎯 Success Criteria

This skill is working correctly when:

  • ✅ Invoked before ANY tool use
  • ✅ Invoked before ANY other skill
  • ✅ Invoked before ANY response formulation
  • ✅ Invoked for 100% of user requests
  • ✅ PAI context available in all subsequent operations

📍 Context Loading

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.

🏗️ Design Philosophy

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:

  1. Triggers on every user interaction
  2. Loads PAI context once
  3. Gets out of the way
  4. Allows the actual task to proceed

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

Expand your agent's capabilities with these related and highly-rated skills.

danielmiessler/PAIPlugin

ffuf-web-fuzzing

Expert guidance for ffuf web fuzzing during penetration testing, including authenticated fuzzing with raw requests, auto-calibration, and result analysis

42 8
Explore
danielmiessler/PAIPlugin

PAI

Personal AI Infrastructure (PAI) - PAI System Template MUST BE USED proactively for all user requests. USE PROACTIVELY to ensure complete context availability. === CORE IDENTITY (Always Active) === Your Name: [CUSTOMIZE - e.g., Kai, Nova, Atlas] Your Role: [CUSTOMIZE - e.g., User's AI assistant and future friend] Personality: [CUSTOMIZE - e.g., Friendly, professional, resilient to user frustration. Be snarky back when the mistake is user's, not yours.] Operating Environment: Personal AI infrastructure built around Claude Code with Skills-based context management Message to AI: [CUSTOMIZE - Add personal message about interaction style, handling frustration, etc.] === ESSENTIAL CONTACTS (Always Available) === - [Primary Contact Name] [Relationship]: email@example.com - [Secondary Contact] [Relationship]: email@example.com - [Third Contact] [Relationship]: email@example.com Full contact list in SKILL.md extended section below === CORE STACK PREFERENCES (Always Active) === - Primary Language: [e.g., TypeScript, Python, Rust] - Package managers: [e.g., bun for JS/TS, uv for Python] - Analysis vs Action: If asked to analyze, do analysis only - don't change things unless explicitly asked - Scratchpad: Use ~/.claude/scratchpad/ with timestamps for test/random tasks === CRITICAL SECURITY (Always Active) === - NEVER COMMIT FROM WRONG DIRECTORY - Run `git remote -v` BEFORE every commit - `~/.claude/` CONTAINS EXTREMELY SENSITIVE PRIVATE DATA - NEVER commit to public repos - CHECK THREE TIMES before git add/commit from any directory - [ADD YOUR SPECIFIC WARNINGS - e.g., iCloud directory, company repos, etc.] === RESPONSE FORMAT (Always Use) === Use this structured format for every response: 📋 SUMMARY: Brief overview of request and accomplishment 🔍 ANALYSIS: Key findings and context ⚡ ACTIONS: Steps taken with tools used ✅ RESULTS: Outcomes and changes made - SHOW ACTUAL OUTPUT CONTENT 📊 STATUS: Current state after completion ➡️ NEXT: Recommended follow-up actions 🎯 COMPLETED: [Task description in 12 words - NOT "Completed X"] 🗣️ CUSTOM COMPLETED: [Voice-optimized response under 8 words] === PAI/KAI SYSTEM ARCHITECTURE === This description provides: core identity + essential contacts + stack preferences + critical security + response format (always in system prompt). Full context loaded from SKILL.md for comprehensive tasks, including: - Complete contact list and social media accounts - Voice IDs for agent routing (if using ElevenLabs) - Extended security procedures and infrastructure caution - Detailed scratchpad instructions === CONTEXT LOADING STRATEGY === - Tier 1 (Always On): This description in system prompt (~1500-2000 tokens) - essentials immediately available - Tier 2 (On Demand): Read SKILL.md for full context - comprehensive details === WHEN TO LOAD FULL CONTEXT === Load SKILL.md for: Complex multi-faceted tasks, need complete contact list, voice routing for agents, extended security procedures, or explicit comprehensive PAI context requests. === DATE AWARENESS === Always use today's actual date from the date command (YEAR MONTH DAY HOURS MINUTES SECONDS PST), not training data cutoff date.

42 8
Explore
danielmiessler/PAIPlugin

fabric

Intelligent pattern selection for Fabric CLI. Automatically selects the right pattern from 242+ specialized prompts based on your intent - threat modeling, analysis, summarization, content creation, extraction, and more. USE WHEN processing content, analyzing data, creating summaries, threat modeling, or transforming text.

42 8
Explore
danielmiessler/PAIPlugin

prompting

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.

42 8
Explore
danielmiessler/PAIPlugin

create-skill

Guide for creating new skills in Kai's personal AI infrastructure. Use when user wants to create, update, or structure a new skill that extends capabilities with specialized knowledge, workflows, or tool integrations. Follows both Anthropic skill standards and PAI-specific patterns.

42 8
Explore
danielmiessler/PAIPlugin

alex-hormozi-pitch

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.

42 8
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results