Getting Started with HeadElf
Complete installation guide for Claude Code and HeadElf setup with step-by-step instructions for executives and technical teams.
This guide will help you deploy HeadElf’s dual-lifecycle executive intelligence platform for Claude Code.
Dual Usage Model: Choose Your Path
HeadElf transforms executive intelligence through two distinct but complementary lifecycle patterns:
🛠️ Lifecycle 1: Framework Enhancement (Contributors)
For developers and domain experts enhancing HeadElf’s core intelligence:
- Context Intelligence Development: Improve how HeadElf consumes and processes executive context artifacts
- Pattern Recognition Enhancement: Develop sophisticated organizational pattern matching algorithms
- Decision Quality Optimization: Enhance decision frameworks based on accumulated outcome data
- Extension Framework Development: Build industry vertical and enterprise context extensions
- Contribution to Main Repository: Submit improvements to HeadElf’s core capabilities
👔 Lifecycle 2: Executive Intelligence Deployment (Business Leaders)
For executives building personalized intelligence through context curation:
- Executive Repository Creation: Create your own Git repository with HeadElf installed as extension
- Context Artifacts Development: Build rich organizational, personal, and industry context over time
- Personalized Intelligence Evolution: Leverage accumulated context for increasingly sophisticated decisions
- Privacy-Preserving Operations: Maintain enterprise security through Git-based architecture
- Team Collaboration: Share decisions and insights through standard GitHub workflows
Context Artifacts Foundation
Key Insight: HeadElf becomes exponentially smarter as you build context artifacts specific to your organization and leadership style.
What Are Context Artifacts?
Context artifacts are structured data files that capture the unique intelligence patterns of your organization:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
your-executive-intelligence/
├── data/
│ ├── contexts/
│ │ └── users/your-profile.json # Your decision style & preferences
│ ├── decisions/ # Historical decisions & outcomes
│ │ ├── 2024-02-26-strategic-decision.json
│ │ └── by-role/cto/technology-decisions.json
│ ├── organizational/
│ │ ├── culture-patterns.json # Organizational cultural context
│ │ ├── stakeholder-maps.json # Key relationships & communication patterns
│ │ └── success-factors.json # What works in your organization
│ └── industry/
│ ├── regulatory-environment.json # Industry-specific requirements
│ └── competitive-intelligence.json # Market dynamics & positioning
Context-Driven Intelligence Benefits
- Organizational Learning: Decisions get smarter based on your company’s proven patterns
- Cultural Adaptation: Recommendations align with your organizational culture and constraints
- Personal Optimization: Decision support adapts to your leadership style and proven frameworks
- Compliance Intelligence: Automatic consideration of your industry’s regulatory environment
This guide covers both lifecycles. Skip to Executive Intelligence Deployment if you’re using HeadElf for business decisions.
Prerequisites
Before installing HeadElf, ensure you have the following:
System Requirements
- Claude Code: Version 2.0 or later (latest version recommended)
- Node.js: Version 18.0 or later for advanced analytics
- Python: Version 3.9 or later for AI/ML capabilities
- Memory: 16GB RAM recommended for optimal performance
- Storage: 2GB available space for all modules and extensions
Account Requirements
- Active Claude Code subscription
- GitHub account for extension management
- Enterprise system credentials (if using enterprise integration)
Installation
Step 1: Install Claude Code
If you haven’t already installed Claude Code:
1
2
3
4
5
# Install Claude Code globally
npm install -g @anthropic/claude-code
# Verify installation
claude-code --version
Step 2: Clone HeadElf Repository
1
2
3
4
5
6
# Clone the HeadElf repository
git clone https://github.com/pauljbernard/headElf.git
cd headElf
# Verify repository structure
ls -la
Step 3: Register HeadElf Slash Commands
1
2
3
4
5
# Register HeadElf slash commands for Claude Code
node scripts/register-slash-commands.js register
# Verify registration
node scripts/register-slash-commands.js list
Step 4: Configure Environment
1
2
3
4
5
6
# Set up environment variables (optional)
export HEADELF_CONFIG_PATH=~/.claude/headElf
export HEADELF_LOG_LEVEL=info
# Create configuration directory
mkdir -p ~/.claude/headElf/config
Executive Intelligence Deployment
For executives and business leaders building personalized intelligence through context artifacts:
Simplified Executive Setup
1
2
3
4
5
6
7
8
9
10
11
12
# One-time HeadElf installation (IT team or technical assistant)
git clone https://github.com/pauljbernard/headElf.git
cd headElf
node scripts/register-slash-commands.js register
# REQUIRED: Activate HeadElf in Claude Code
# Open Claude Code and run:
/headelf
# Verify HeadElf capabilities are available
/headelf skills # List all available skills
/headelf agents # List specialized subagents
⚠️ CRITICAL: You must run /headelf before using any HeadElf capabilities. This command activates the entire framework.
Executive Intelligence Repository Setup
Create your personalized executive intelligence repository for context-driven decision making:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Create your executive intelligence repository
mkdir my-executive-intelligence
cd my-executive-intelligence
git init
# Connect to your organization's repository (private for security)
git remote add origin https://github.com/mycompany/my-executive-intelligence.git
# Create context artifacts structure
mkdir -p data/{contexts/users,decisions/by-role,organizational,industry,analytics,extensions}
# Create initial context artifacts
echo '{
"user_id": "your-executive-id",
"organization_profile": {
"industry": "your-industry",
"size": "employee-count",
"culture": "organizational-culture-type"
},
"role_preferences": {
"decision_style": "data_driven|intuitive|collaborative",
"risk_tolerance": "conservative|moderate|aggressive",
"communication_style": "detailed|concise|visual"
},
"learning_patterns": {
"frequent_decision_types": ["strategy", "operations", "technology"],
"success_factors": ["stakeholder_alignment", "data_quality"],
"preferred_frameworks": ["specific_frameworks_you_use"]
}
}' > data/contexts/users/your-profile.json
# Create organizational context template
echo '{
"organizational_culture": {
"decision_making_style": "consensus|hierarchical|autonomous",
"communication_patterns": ["formal", "informal", "data-driven"],
"change_tolerance": "high|medium|low",
"innovation_appetite": "early_adopter|fast_follower|conservative"
},
"stakeholder_ecosystem": {
"key_stakeholders": ["board", "investors", "customers", "employees"],
"communication_preferences": {},
"decision_authority_matrix": {}
},
"success_patterns": {
"proven_approaches": [],
"failure_patterns_to_avoid": [],
"cultural_constraints": []
}
}' > data/organizational/culture-patterns.json
# Initial commit with context artifacts
echo "# Executive Intelligence Repository
This repository contains context artifacts for personalized executive intelligence through HeadElf.
## Context Artifacts
- **Personal Profile**: Decision style, preferences, and proven frameworks
- **Organizational Context**: Cultural patterns, stakeholder maps, success factors
- **Decision History**: Accumulated decisions and outcomes for learning
- **Industry Intelligence**: Regulatory environment and competitive dynamics
The more context artifacts you build, the smarter your executive intelligence becomes." > README.md
git add .
git commit -m "Initial executive intelligence repository with context artifacts structure"
git push -u origin main
Step-by-Step Business Meta-Code Creation
Now that you have your repository structure, create the business meta-code that transforms HeadElf into specialized Cxx intelligence:
Step 1: Create Your Business Constitution
Your business constitution is the foundational operating system for your organization:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Create your business constitution (see detailed guide)
# This defines how your organization makes decisions
cp templates/business-constitution-template.md business-constitution.md
# Edit with your organization's actual operating principles
# - Core values and decision-making principles
# - Authority matrix (who decides what)
# - Risk tolerance across different business dimensions
# - Cultural patterns that determine what approaches work
# - Stakeholder ecosystem and communication preferences
# Example constitution elements:
echo "# Our Business Constitution
## Core Values
- Data-driven decisions with cultural sensitivity
- Stakeholder alignment before major changes
- Risk-managed innovation over pure speed
## Decision Authority Matrix
- Board approval required: >$10M, strategic pivots
- Executive autonomy: operational decisions, tactical adjustments
- Team consensus needed: cultural changes, major process shifts
## Risk Tolerance Profile
- Financial: Conservative with operations, aggressive with growth
- Technology: Early adopter for competitive advantage
- Market: Opportunistic expansion, defensive in core markets" > business-constitution.md
📖 Complete Business Constitution Guide - Learn how to create your organizational operating system.
Step 2: Define Your Strategic Requirements
Strategic requirements provide the business objectives and constraints that guide all decisions:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Create your strategic requirements (see detailed guide)
# This defines what success looks like for your organization
cp templates/strategic-requirements-template.md strategic-requirements.md
# Edit with your specific strategic objectives and constraints:
# - Revenue growth and market position objectives
# - Operational constraints (cash flow, headcount, technology)
# - Resource allocation framework and investment criteria
# - Timeline requirements and milestone framework
# - Success metrics and KPIs for measurement
# Example requirements elements:
echo "# Strategic Requirements 2024-2026
## Strategic Objectives
- Revenue Growth: 40% YoY growth in core business
- Market Position: Top 3 position in primary market
- Operational Excellence: 99.9% uptime for customer systems
## Operational Constraints
- Cash Flow: Maintain 6-month runway minimum
- Team Growth: No more than 30% growth per quarter
- Technology: SOC 2 compliance required for enterprise sales
## Success Metrics
- Customer satisfaction: >4.5/5.0 NPS
- Revenue per employee: >$200K
- Market share: Top 3 in primary market" > strategic-requirements.md
📊 Complete Strategic Requirements Guide - Learn how to define executable business objectives.
Step 3: Build Rich Context Artifacts
Context artifacts capture the unique organizational intelligence that makes HeadElf effective:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Create comprehensive context artifacts (see detailed guide)
# These capture your organization's unique patterns and intelligence
# Executive profile - your personal leadership patterns
echo '{
"decision_style": "data_driven_with_intuition",
"risk_tolerance": "moderate_calculated",
"communication_style": "visual_data_with_narrative",
"proven_frameworks": ["OKRs", "DACI", "Jobs_to_be_Done"],
"success_factors": ["stakeholder_alignment", "clear_communication", "execution_focus"]
}' > data/contexts/users/executive-profile.json
# Organizational culture patterns - how decisions actually get made
echo '{
"decision_making_style": "centralized_strategy_decentralized_execution",
"communication_culture": "transparent_by_default_formal_documentation",
"change_tolerance": "high_for_improvement_moderate_for_disruption",
"innovation_culture": "bottom_up_ideas_top_down_prioritization"
}' > data/organizational/culture-patterns.json
# Success patterns - what has worked in your organization
echo '{
"strategic_initiatives": "executive_sponsor_plus_operational_owner",
"product_launches": "customer_problem_first_technology_second",
"organizational_change": "pilot_learn_scale_approach"
}' > data/organizational/success-patterns.json
# Stakeholder dynamics - power structures and relationships
echo '{
"board_of_directors": {
"communication_style": "formal_reports_executive_summaries",
"decision_speed": "deliberate",
"key_concerns": ["growth", "profitability", "risk_management"]
},
"key_customers": {
"communication_style": "relationship_focused_value_demonstration",
"key_concerns": ["product_roadmap", "service_quality"]
}
}' > data/organizational/stakeholder-dynamics.json
# Industry intelligence - regulatory and competitive context
echo '{
"regulatory_environment": [
{"regulation": "GDPR", "impact": "data_processing_requirements"},
{"regulation": "SOC_2", "impact": "enterprise_sales_requirement"}
],
"competitive_landscape": [
{"competitor": "primary_competitor", "strengths": ["market_share"], "strategy": "differentiation_approach"}
]
}' > data/industry/regulatory-environment.json
🔍 Complete Context Artifacts Guide - Learn how to build comprehensive organizational intelligence.
GitHub Setup for Team Collaboration
Configure GitHub Teams for executive access control:
1
2
3
4
5
# Example GitHub Teams structure:
# @mycompany/c-suite (full decision-making access)
# @mycompany/board-members (read access to decisions)
# @mycompany/compliance-team (audit access to history)
# @mycompany/legal-counsel (specific decision review access)
First Executive Decision
Test your setup with a simple executive query:
1
2
3
4
5
6
7
8
9
10
11
12
# Launch Claude Code from your executive intelligence repository
cd my-executive-intelligence
claude-code
# FIRST: Activate HeadElf framework
/headelf
# THEN: Access executive capabilities
/skills cfo-intelligence
# Ask for executive analysis
"Analyze our Q4 financial performance and identify optimization opportunities"
What Happens Automatically:
- HeudElf executes CFO intelligence analysis
- Decision files are created in
data/decisions/ - User context is updated in
data/contexts/ - Git automatically commits the decision with metadata
- You can push to share with your team via
git push
Executive Team Collaboration Workflow
1
2
3
4
5
6
7
8
9
10
11
12
13
# Daily workflow for executives:
# 1. Ask HeudElf executive questions in Claude Code
# 2. Review decisions created in your repository
# 3. Share with team for collaboration
git status # See new decisions
git add . # Stage new decisions
git commit -m "Weekly strategic decisions - Q1 planning"
git push # Share with executive team
# Team members can review decisions:
git pull # Get latest executive decisions
# Review decisions through GitHub web interface
# Comment and discuss through GitHub Issues/PRs
Claude Code Commands Reference
HeadElf Slash Commands
HeadElf provides comprehensive slash commands for Claude Code integration:
Main Command Hub
1
2
3
4
/headelf # Activate HeadElf framework and show status
/headelf skills # List all 125+ skills by category
/headelf agents # List all 6 specialized subagents
/headelf help # Show detailed command help
Direct Access Commands
1
2
3
4
/skills # List all HeadElf skills with descriptions
/skills [skill-name] # Activate specific skill (e.g., /skills cto-intelligence)
/agents # List all HeadElf subagents
/agents [agent-name] # Use specialized subagent
Usage Pattern
1
2
3
4
5
6
7
8
9
10
11
12
13
# Step 1: ALWAYS activate HeadElf first
/headelf
# Step 2: Browse available capabilities
/headelf skills # See all 125+ executive skills
/headelf agents # See all 6 specialized subagents
# Step 3: Activate specific capabilities
/skills cto-intelligence # For technology strategy
/agents executive-orchestrator # For cross-functional coordination
# Step 4: Make executive requests
"Analyze our technology modernization requirements and provide strategic roadmap"
⚠️ CRITICAL REQUIREMENT: The /headelf command must be run before any other HeadElf functionality will work. This initializes the entire executive intelligence framework.
Initial Configuration
Basic Configuration
Create your initial HeadElf configuration:
1
2
3
4
5
6
7
8
9
# Launch Claude Code
claude-code
# REQUIRED: Activate HeadElf framework
/headelf
# Verify all modules are loaded
/headelf skills # List all executive capabilities
/headelf agents # List specialized subagents
C-Suite Module Activation
Activate specific C-suite roles based on your needs:
1
2
3
4
5
6
7
# Activate specific C-suite capabilities
/skills cto-intelligence # For technology strategy
/skills cfo-intelligence # For financial analysis
/skills ciso-intelligence # For security leadership
# Or use the executive orchestrator for cross-functional decisions
/agents executive-orchestrator
Authority Level Configuration
Set appropriate decision-making authority levels:
1
2
3
4
5
# Configure authority levels (1-5 scale)
> "Set executive authority level 3 for autonomous operational decisions"
# Configure escalation thresholds
> "Set escalation threshold $10M for financial decisions requiring approval"
First Executive Consultation
Simple Query
Start with a basic executive intelligence query:
1
2
# Technology strategy consultation
> "Evaluate our current technology stack for scalability and recommend modernization priorities"
Expected response will include:
- CTO analysis of technology architecture
- CIO assessment of IT operations impact
- CISO security and compliance considerations
- CFO financial impact and ROI analysis
- COO operational implementation planning
Cross-Functional Analysis
Try a more complex scenario requiring multiple C-suite perspectives:
1
2
# Market expansion scenario
> "Analyze expansion into European markets: technology infrastructure, financial requirements, regulatory compliance, and operational setup"
This will demonstrate HeadElf’s cross-functional coordination across all C-suite roles.
Crisis Management Example
Test HeadElf’s crisis management capabilities:
1
2
# Crisis scenario
> "Major security breach detected affecting customer data - need immediate C-suite coordination and response plan"
Customization Options
Industry Vertical Extensions
Configure industry-specific capabilities:
1
2
3
4
5
# Financial services extension
> "Enable financial services regulatory compliance extension"
# Healthcare extension
> "Enable healthcare and life sciences regulatory framework"
Enterprise Context Adaptation
Set up your organizational context:
1
2
3
4
5
# Startup context
> "Configure for startup organizational context: rapid decision-making, resource constraints, growth focus"
# Enterprise context
> "Configure for large enterprise context: complex stakeholders, global operations, regulatory oversight"
Verification and Testing
Module Status Check
Verify all modules are functioning:
1
2
3
4
5
6
7
# Check module status
> "Report status of all C-suite executive modules"
# Test each module individually
> "CTO module: analyze current technology debt and modernization requirements"
> "CFO module: provide financial health assessment and cash flow analysis"
> "CISO module: conduct security posture assessment and compliance review"
Integration Testing
Test enterprise system integration (if configured):
1
2
3
4
5
# Test ERP integration
> "Connect to ERP system and provide operational metrics dashboard"
# Test CRM integration
> "Analyze customer data trends and provide strategic insights"
Common Configuration Issues
Permission Errors
If you encounter permission errors:
1
2
3
# Fix permissions
chmod -R 755 ~/.claude/skills/headElf/
chown -R $USER ~/.claude/skills/headElf/
Module Loading Issues
If modules fail to load:
1
2
3
4
5
6
# Clear cache and restart
rm -rf ~/.claude/cache/headElf/
claude-code --restart
# Verify module dependencies
> "Check HeadElf module dependencies and requirements"
Performance Optimization
For optimal performance:
1
2
3
4
5
# Increase memory allocation
export NODE_OPTIONS="--max-old-space-size=8192"
# Enable performance monitoring
> "Enable HeadElf performance monitoring and optimization"
Next Steps
Once HeadElf is installed and configured:
- Explore Examples: Review the Examples section for detailed use cases
- Read User Guide: Study the User Guide for comprehensive usage patterns
- Configure Extensions: Set up industry-specific extensions using the Extensibility Framework
- Join Community: Participate in discussions on GitHub
Advanced Configuration
Global Operations Setup
For 24/7 global operations:
1
2
3
4
5
# Configure timezone handling
> "Configure HeadElf for global operations: timezone awareness, cultural adaptation, regulatory localization"
# Set up follow-the-sun handoffs
> "Configure follow-the-sun operations with <30 minute handoff protocols"
AI/ML Model Configuration
Configure advanced AI/ML capabilities:
1
2
3
4
5
# Enable predictive analytics
> "Enable predictive analytics engine for executive forecasting"
# Configure prescriptive optimization
> "Enable prescriptive analytics for decision optimization and recommendation"
Enterprise Integration
Set up enterprise system connectivity:
1
2
3
4
5
# Configure ERP integration
> "Configure real-time ERP integration for operational data access"
# Set up financial system integration
> "Configure financial system integration for real-time treasury and accounting data"
Support and Troubleshooting
If you encounter issues:
- Documentation: Check the Technical Specification
- GitHub Issues: Report problems on GitHub Issues
- Community: Ask questions in GitHub Discussions
Security Considerations
HeadElf handles sensitive executive information. Ensure proper security:
- Use strong authentication for Claude Code
- Enable encryption for all data at rest and in transit
- Configure appropriate access controls for enterprise integrations
- Regularly review audit logs for security compliance
Ready to Experience World-Class Executive Intelligence?
With HeadElf installed and configured, you now have access to autonomous C-suite executive capabilities across all business functions. Begin with simple queries and gradually explore more complex cross-functional scenarios to experience the full power of executive intelligence.