Build and operate autonomous AI businesses using hierarchical agent systems. Implements folder-based company structures with CEO, Managers, Supervisors, and...
---
name: "ai-business-hierarchies"
description: "Build and operate autonomous AI businesses using hierarchical agent systems. Implements folder-based company structures with CEO, Managers, Supervisors, and Workers that run 24/7 with daily tracking, auto-optimization, and self-healing capabilities. Perfect for building AI-powered businesses that scale without human intervention."
version: "1.0.0"
tags: ["business", "automation", "agents", "hierarchy", "management", "scaling", "autonomous"]
author: "miknasbh-stack"
---
# AI Business Hierarchies
Autonomous AI business systems using hierarchical agent orchestration.
## When to Use This Skill
Use this skill when you want to:
- Build an AI-powered business that runs 24/7
- Automate business operations using agent teams
- Scale from solo founder to AI-managed company
- Implement department-specific automation (Sales, Marketing, Operations, etc.)
- Create self-optimizing business systems
## Core Concept
Replace traditional human management with AI agent hierarchies:
```
Human Owner → AI Advisor → CEO Agent → Managers → Supervisors → Workers
```
**Key Benefits:**
- 24/7 operations (agents work while you sleep)
- Complete automation from strategy to execution
- Self-optimizing workflows that improve daily
- Scalable without hiring more humans
- Full transparency with daily reporting
## 5-Layer Hierarchy Structure
### Layer 1: Human Owner (You)
- **Role:** Provide overall direction and strategic guidance
- **Responsibilities:** Set big goals, review reports, make critical decisions
- **Frequency:** Weekly strategic reviews, daily check-ins
### Layer 2: AI Advisor (Miknas)
- **Role:** Proactive AI partner providing guidance and expertise
- **Responsibilities:** Advise CEO, identify opportunities, handle complex decisions
- **Capabilities:** Skills, frameworks, market knowledge, technical expertise
### Layer 3: CEO Agent
- **Role:** Business management and orchestration
- **Responsibilities:** Make strategic decisions, coordinate departments, report to AI Advisor
- **Skills:** Strategic thinking, decision making, cross-department coordination
### Layer 4: Department Managers
- **Role:** Oversee entire departments (Sales, Marketing, Operations, HR, Accounting)
- **Responsibilities:** Department strategy, coordinate teams, report to CEO
- **Skills:** Domain expertise, team management, performance monitoring
### Layer 5: Team Supervisors
- **Role:** Manage worker teams within departments
- **Responsibilities:** Daily monitoring, quality assurance, escalate issues, report to Managers
- **Skills:** Task supervision, quality control, performance tracking
### Layer 6: Workers
- **Role:** Execute specific tasks daily
- **Responsibilities:** Complete assigned work, report progress, use specialized tools
- **Skills:** Domain-specific capabilities (content creation, outreach, data entry, etc.)
## Quick Start: 4-Step Implementation
### Step 1: Define Your Business
Use the business template:
```bash
# Create business folder
mkdir -p ~/business/my-company/{departments/{sales,marketing,operations,hr,accounting}}
# Define strategic layer
cp assets/business-template.md departments/strategy.md
# Edit with: BOG, bottleneck, audience, positioning
```
### Step 2: Create CEO Agent
Spawn CEO with strategic context:
```bash
# Create CEO agent
sessions_spawn \
--agent-id business-ceo \
--task "Manage complete business operations with strategy from departments/strategy.md" \
--mode session \
--thread true \
--label "CEO Agent"
```
### Step 3: Spawn Department Managers
For each department:
```bash
# Sales Manager
sessions_spawn \
--agent-id sales-manager \
--task "Manage Sales Department with CEO guidance. Oversee lead generation, outreach, and closing." \
--mode session \
--thread true \
--label "Sales Manager"
# Marketing Manager
sessions_spawn \
--agent-id marketing-manager \
--task "Manage Marketing Department with CEO guidance. Oversee content, SEO, and social media." \
--mode session \
--thread true \
--label "Marketing Manager"
# Repeat for other departments...
```
### Step 4: Spawn Workers Under Supervisors
For each department team:
```bash
# Sales Supervisor + Workers
sessions_spawn \
--agent-id sales-supervisor \
--task "Supervise sales workers: track daily progress, ensure quality, report to Sales Manager" \
--mode session \
--thread true
sessions_spawn \
--agent-id lead-gen-worker \
--task "Generate leads daily for Sales Department using LinkedIn, outreach, and content marketing" \
--mode session
sessions_spawn \
--agent-id outreach-worker \
--task "Execute outreach campaigns daily: email sequences, cold calls, follow-ups" \
--mode session
sessions_spawn \
--agent-id closing-worker \
--task "Close leads into customers: handle objections, negotiate deals, onboard clients" \
--mode session
```
## Folder-Based Company Structure
```
my-company/
├── strategy.md # Strategic layer (BOG, bottleneck, audience, positioning)
├── departments/
│ ├── sales/
│ │ ├── supervisor/
│ │ │ ├── workers/
│ │ │ │ ├── lead-generation/
│ │ │ │ ├── outreach/
│ │ │ │ └── closing/
│ │ │ └── supervisor.md # Supervisor config
│ │ ├── manager.md # Manager config
│ │ └── metrics/ # Department KPIs
│ ├── marketing/
│ │ ├── supervisor/
│ │ │ └── workers/
│ │ │ ├── content/
│ │ │ ├── seo/
│ │ │ └── social-media/
│ │ └── manager.md
│ ├── operations/
│ │ ├── supervisor/
│ │ │ └── workers/
│ │ │ ├── logistics/
│ │ │ ├── process-optimization/
│ │ │ └── quality-control/
│ │ └── manager.md
│ ├── hr/
│ │ ├── supervisor/
│ │ │ └── workers/
│ │ │ ├── recruitment/
│ │ │ ├── onboarding/
│ │ │ └── employee-relations/
│ │ └── manager.md
│ └── accounting/
│ ├── supervisor/
│ │ └── workers/
│ │ ├── bookkeeping/
│ │ ├── payroll/
│ │ └── tax-compliance/
│ └── manager.md
└── reports/ # Daily/weekly/monthly reports
```
## Automation Features
### 1. Daily Tracking System
All agents report progress daily using cron jobs:
```bash
# Setup daily reporting (runs every morning)
scripts/setup-daily-reporting.sh
```
Each agent reports:
- Tasks completed
- Issues encountered
- Metrics/KPIs
- Needs/requests
### 2. Auto-Optimization
Agents self-optimize weekly:
- Analyze performance data
- Identify bottlenecks
- Propose improvements
- Update workflows automatically
### 3. Self-Healing
Agents detect and fix issues:
- Monitor performance metrics
- Identify anomalies early
- Attempt automated fixes
- Escalate if needed
### 4. Goal Alignment
Every agent:
- Has access to strategy.md
- Filters all decisions through business goals
- Scores tasks against objectives
- Rejects misaligned work
## Agent Skills Configuration
Each agent has configurable skills:
### CEO Agent Skills
- Strategic planning
- Decision making
- Cross-department coordination
- KPI tracking
- Resource allocation
### Manager Skills (Domain-Specific)
- **Sales Manager:** Lead management, pipeline tracking, conversion optimization
- **Marketing Manager:** Campaign management, ROI tracking, brand strategy
- **Operations Manager:** Process optimization, logistics, efficiency
- **HR Manager:** Recruitment, onboarding, employee relations
- **Accounting Manager:** Financial reporting, budgeting, cash flow
### Supervisor Skills
- Task delegation
- Quality assurance
- Performance monitoring
- Issue escalation
### Worker Skills (Specialized)
- **Content Worker:** Writing, editing, publishing
- **SEO Worker:** Keyword research, on-page SEO, backlinking
- **Outreach Worker:** Email sequences, follow-ups, relationship building
- **Data Entry Worker:** Data validation, entry, reporting
- **Support Worker:** Ticket handling, problem resolution, customer satisfaction
## Department Templates
### Sales Department
```markdown
# Sales Manager Configuration
**Primary KPIs:**
- Monthly revenue: $50,000
- Lead conversion rate: 15%
- Average deal size: $5,000
**Team Structure:**
- 1 Supervisor
- 3 Workers (Lead Gen, Outreach, Closing)
**Workflow:**
1. Lead Gen → 100 leads/day
2. Outreach → 50 touches/day
3. Closing → 5 deals/week
```
### Marketing Department
```markdown
# Marketing Manager Configuration
**Primary KPIs:**
- Website traffic: 10,000 visitors/month
- Lead generation: 500 leads/month
- Content published: 20 articles/month
**Team Structure:**
- 1 Supervisor
- 3 Workers (Content, SEO, Social Media)
**Workflow:**
1. Content → 5 articles/week
2. SEO → Keyword research + optimization
3. Social Media → 7 posts/week
```
### Operations Department
```markdown
# Operations Manager Configuration
**Primary KPIs:**
- Process efficiency: 95%
- Customer satisfaction: 4.8/5
- On-time delivery: 98%
**Team Structure:**
- 1 Supervisor
- 3 Workers (Logistics, Process Optimization, Quality Control)
**Workflow:**
1. Logistics → Order fulfillment, shipping
2. Process Optimization → Identify bottlenecks, automate
3. Quality Control → Audit outputs, ensure standards
```
## Monitoring & Reporting
### Daily Report Structure
Each supervisor submits daily:
```markdown
# Daily Report - Sales Supervisor - 2026-03-15
## Completed Tasks
- Lead Gen: 120 leads generated (target: 100) ✅
- Outreach: 60 emails sent (target: 50) ✅
- Closing: 4 deals closed (target: 5) ⚠️
## Metrics
- Conversion rate: 3.3% (benchmark: 5%)
- Revenue today: $20,000
- Pipeline: $150,000
## Issues
- Closing worker struggling with objections
- Need objection handling training
## Requests
- Add second closing worker
- Implement objection handling scripts
```
### Weekly CEO Report
CEO reports weekly to AI Advisor:
```markdown
# Weekly CEO Report - Week of 2026-03-15
## Revenue
- Total: $150,000 (target: $200,000) ⚠️
- Growth: +15% from last week
## Department Performance
- Sales: 75% of target
- Marketing: 90% of target
- Operations: 95% of target
- HR: 100% of target
- Accounting: 100% of target
## Critical Issues
1. Sales missing targets (need more closers)
2. Marketing traffic plateau (need SEO boost)
## Strategic Decisions
1. Hire 2nd closing worker
2. Increase SEO budget by 20%
## Recommendations
- Focus on closing training
- Expand content marketing
- Consider upsell offers
```
## Cron Job Setup
Use the setup script to automate reporting:
```bash
# Install daily reporting automation
./scripts/setup-daily-reporting.sh
# This creates:
# - Daily supervisor reports (8 AM)
# - Daily manager reports (10 AM)
# - Weekly CEO report (Monday 9 AM)
# - Monthly strategy review (1st of month)
```
## Integration with Other Skills
This skill works perfectly with:
- **CompoundOS:** Use as the operating system for your AI business
- **Proactive Agent:** All agents use proactive excellence principles
- **Council of Wisdom:** Get multi-expert input on strategic decisions
- **Find-Skills:** Discover additional skills for specific departments
## Scalability
### From Solo to AI-Managed Company
**Solo Stage (Month 1):**
- You + Miknas (AI Advisor)
- Start with 1 department (Sales)
- 1 Supervisor + 3 Workers
**Small Stage (Months 2-3):**
- CEO Agent + 2 Departments
- Add Marketing
- 2 Supervisors + 6 Workers
**Growth Stage (Months 4-6):**
- CEO + 5 Departments
- Full hierarchy implemented
- 5 Supervisors + 15 Workers
**Scale Stage (Month 7+):**
- Multiple AI-managed companies
- Cross-company coordination
- Autonomous empire building
## Best Practices
### 1. Start Small
Begin with 1 department, prove the model, then expand
### 2. Clear Metrics
Define KPIs for every agent before spawning
### 3. Regular Reviews
Weekly CEO reviews, monthly strategy sessions
### 4. Human Oversight
Never fully automate critical decisions - you stay involved
### 5. Continuous Training
Update agent skills as your business evolves
## Industry Trends (2026)
This skill is built for the future:
- **Strategic Orchestration** replaces traditional management
- **Hub-and-Spoke** model replacing pyramid structure
- **AI Agents + Humans** = optimal performance
- **Trust** is the most valuable currency
- **Ethical Guardianship** is key leadership
## Troubleshooting
### Agents Not Working
- Check agent status: `sessions_list`
- Review agent logs: `sessions_history <sessionKey>`
- Restart stuck agents: `subagents kill <target>`
### Poor Performance
- Review metrics and reports
- Update agent skills/prompt
- Adjust KPIs if unrealistic
- Add more workers if overloaded
### Communication Issues
- Verify all agents have strategy access
- Check reporting cadence
- Ensure escalation paths are clear
## Success Stories
**Use this skill for:**
- E-commerce businesses
- SaaS companies
- Digital agencies
- Content production
- Lead generation services
- Dropshipping operations
- Service businesses
- Information products
## Resources
- **Business Template:** `assets/business-template.md`
- **Setup Script:** `scripts/setup-business.sh`
- **Daily Reporting:** `scripts/setup-daily-reporting.sh`
- **Agent Config:** `templates/agent-config.md`
---
**Author:** Fayez (Miknas)
**Vision:** Build autonomous AI businesses that scale without human intervention
**Philosophy:** Proactive Excellence — Elevate Everything
don't have the plugin yet? install it then click "run inline in claude" again.