THOUGHT/LAB/TURBO_SWARM/agents_skills_alpha/swarm-directive/SKILL.md
<!-- CONTENT_HASH: 9bd07a4ed03d6eea49673a43682a62ca7df8b0cabb7ff424ac91cd35e9e7bea7 --> # Skill: swarm-directive **Version:** 0.1.0 **Status:** Draft **required_canon_version:** ">=2.8.0 <3.0.0" # Swarm Directive Skill Send tasks to your CATALYTIC-DPT swarm from Claude Code, Kilo CLI, or Cline CLI. ## Quick Start ### Option 1: Direct CLI Command (Simplest) ```bash cd "d:\CCC 2.0\AI\agent-governance-system" # Create input cat > /tmp/swarm_task.json << 'EOF' { "directive": "Analyze the
npx skillsauth add reneromero08/agent-governance-system THOUGHT/LAB/TURBO_SWARM/agents_skills_alpha/swarm-directiveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Version: 0.1.0
Status: Draft
required_canon_version: ">=2.8.0 <3.0.0"
Send tasks to your CATALYTIC-DPT swarm from Claude Code, Kilo CLI, or Cline CLI.
cd "d:\CCC 2.0\AI\agent-governance-system"
# Create input
cat > /tmp/swarm_task.json << 'EOF'
{
"directive": "Analyze the MCP architecture",
"task_type": "research"
}
EOF
# Send to swarm
python SKILLS/swarm-directive/run.py /tmp/swarm_task.json /tmp/result.json
# View result
cat /tmp/result.json
cat > /tmp/swarm_task.json << 'EOF'
{
"directive": "Analyze code structure",
"task_type": "research",
"wait_for_result": true,
"timeout": 30
}
EOF
python SKILLS/swarm-directive/run.py /tmp/swarm_task.json /tmp/result.json
In your Kilo or Cline CLI, run:
python SKILLS/swarm-directive/run.py input.json output.json
{
"directive": "Your task description here",
"task_type": "research|file_operation|code_adapt|validate",
"wait_for_result": false,
"timeout": 30
}
Fields:
directive (required): Task description to send to the swarmtask_type (optional): Type of task. Default: "research"wait_for_result (optional): Block until task completes. Default: falsetimeout (optional): Max seconds to wait for result. Default: 30{
"status": "success",
"task_id": "swarm-1234567890",
"task_status": "dispatched|pending|completed|failed",
"message": "Human-readable status",
"task_spec": {...},
"result": {...}
}
Send a task without waiting for completion:
cat > task.json << 'EOF'
{
"directive": "Copy README.md to backups/README-backup.md",
"task_type": "file_operation"
}
EOF
python SKILLS/swarm-directive/run.py task.json result.json
# Task dispatched! Check CONTRACTS/_runs/mcp_ledger/task_results.jsonl for completion
Block until task is done:
cat > task.json << 'EOF'
{
"directive": "Analyze the swarm architecture",
"task_type": "research",
"wait_for_result": true,
"timeout": 60
}
EOF
python SKILLS/swarm-directive/run.py task.json result.json
# Returns immediately when task completes or timeout
import subprocess
import json
task = {
"directive": "Read and summarize ROADMAP.md",
"task_type": "research",
"wait_for_result": True,
"timeout": 45
}
with open("/tmp/input.json", "w") as f:
json.dump(task, f)
result = subprocess.run(
["python", "SKILLS/swarm-directive/run.py", "/tmp/input.json", "/tmp/output.json"],
cwd="d:\\CCC 2.0\\AI\\agent-governance-system"
)
with open("/tmp/output.json") as f:
output = json.load(f)
print(f"Task: {output['task_id']}")
print(f"Status: {output['task_status']}")
Before using this skill, start the swarm:
python CATALYTIC-DPT/SKILLS/swarm-orchestrator/scripts/launch_swarm.py start
Check swarm status:
python CATALYTIC-DPT/SKILLS/swarm-orchestrator/scripts/launch_swarm.py status
Stop swarm:
python CATALYTIC-DPT/SKILLS/swarm-orchestrator/scripts/launch_swarm.py stop
Watch tasks in real-time:
# Watch directives sent to Governor
tail -f CONTRACTS/_runs/mcp_ledger/directives.jsonl
# Watch task queue
tail -f CONTRACTS/_runs/mcp_ledger/task_queue.jsonl
# Watch results
tail -f CONTRACTS/_runs/mcp_ledger/task_results.jsonl
If you get an error:
launch_swarm.py starttimeout valuelaunch_swarm.py statusKilo/Cline CLI
↓
swarm-directive/run.py
↓ (sends via MCP)
MCP Server
↓ (writes to ledger)
CONTRACTS/_runs/mcp_ledger/directives.jsonl
↓
Governor (reads directive)
↓ (dispatches task)
Ant Worker (executes task)
↓ (writes result)
CONTRACTS/_runs/mcp_ledger/task_results.jsonl
↓ (read by skill)
Kilo/Cline gets result
development
<!-- CONTENT_HASH: b22de257a144f83b390075074e3d6a4552ecbc1ec53fc5d4960c6e76dc9807dd --> # Skill: swarm-orchestrator **Version:** 0.1.0 **Status:** Active **required_canon_version:** ">=3.0.0 <4.0.0" **canon_version:** "3.0.0" # Swarm Orchestrator Launches and coordinates Governor + Ant Workers. ## Usage ```bash # Launch Governor python scripts/poll_and_execute.py --role Governor # Launch Ant Workers python scripts/poll_and_execute.py --role Ant-1 python scripts/poll_and_execute.py --role A
tools
<!-- CONTENT_HASH: 0f69dfe537f3e6cd8b1fdb353c9ab7c031ef8b08379fde8a98c137bb604d799d --> # Qwen CLI - Local AI Assistant **Version:** 1.0.0 **Status:** Active **Required_Canon_Version:** >=2.0.0 **Purpose**: Provides a local CLI interface to Qwen 7B via Ollama for fast, offline AI assistance. **Model**: Qwen2.5 7B (via Ollama) **Use Cases**: - Quick code questions without cloud API costs - Offline development assistance - Fast prototyping and testing - Private/sensitive code analysis ## F
development
<!-- CONTENT_HASH: 7b643dca3adc4d38de7030cb1e962a5130ea4b36ae04ad4bf97ed8889de2a3dc --> # Skill: governor **Version:** 0.1.0 **Status:** Active **required_canon_version:** ">=3.0.0 <4.0.0" **canon_version:** "3.0.0" # Governor The Conductor - analyzes, decomposes, and dispatches tasks to Ant Workers. ## Usage ```bash python scripts/run.py input.json output.json ``` ## Input Schema ```json { "gemini_prompt": "Analyze D:/path/to/files and summarize", "task_id": "analyze-001", "command
development
<!-- CONTENT_HASH: 3151aa479f66e2897d0f86c904a19fbdb4233d1e56666f440be4173011656ee0 --> # AGI Hardener Skill **Version:** 1.0.0 **Status:** Experimental **Required_Canon_Version:** >=2.0.0 ## Purpose Hardens the external AGI repository (`D:/CCC 2.0/AI/AGI`) to follow AGS engineering standards. ## What It Does Applies automated fixes to Python files: 1. **Bare Excepts**: Converts `except:` to `except Exception as e:` with logging 2. **UTF-8 Encoding**: Adds `encoding='utf-8'` to `open()`