always-init
npx skills add https://github.com/danielmiessler/paiplugin --skill always-init
Agent 安装分布
Skill 文档
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):
// 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:
- Triggers on every user interaction
- Loads PAI context once
- Gets out of the way
- 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.”