ELC is a comprehensive collection of 278+ skills, 94 commands, 67 agents, and 121 rules that extend Legion CLI’s capabilities.
ELC provides battle-tested patterns and workflows for:
Self-contained workflows for specific tasks:
| Category | Examples |
|---|---|
| Development | tdd, refactoring, code-review |
| Architecture | microservices, event-sourcing, cqrs |
| Security | security-scan, dependency-audit, owasp |
| Performance | profiling, caching, lazy-loading |
| DevOps | ci-cd, docker, kubernetes |
| Documentation | api-docs, readme, changelog |
Slash commands for quick actions:
| Command | Purpose |
|---|---|
/plan |
Create implementation plan |
/review |
Code review workflow |
/test |
Test generation |
/refactor |
Refactoring suggestions |
/security-scan |
Security analysis |
/cost-report |
Token usage report |
Specialized AI personas for different tasks:
| Agent | Purpose |
|---|---|
code-reviewer |
Thorough code review |
security-auditor |
Security analysis |
performance-expert |
Optimization |
architect |
System design |
documenter |
Documentation |
Language-specific coding rules:
| Language | Rules |
|---|---|
| Common | Best practices, error handling |
| TypeScript | Types, async/await, modules |
| Python | PEP 8, type hints, async |
| Go | Concurrency, error handling |
| Rust | Ownership, lifetimes, traits |
| Java | Design patterns, streams |
# Load a skill
legion run "use tdd skill to implement feature"
# Or via skill tool
skill(name="tdd")
# Use a command
/plan implement user authentication
# Review code
/review src/auth.ts
Legion automatically routes tasks to appropriate agents:
User: "Review my code for security issues"
→ Routes to: security-auditor agent
→ Uses: security-scan skill
→ Applies: security rules
Each skill follows this structure:
---
name: skill-name
description: What this skill does
---
# Skill Title
## When to Use
- Use case 1
- Use case 2
## Instructions
1. Step 1
2. Step 2
## Examples
...
ELC integrates with Legion’s core systems:
Enable/disable ELC in legion.json:
{
"elc": {
"enabled": true,
"skills": true,
"commands": true,
"agents": true,
"rules": true
}
}
Create .legion/skills/my-skill/SKILL.md:
---
name: my-custom-skill
description: Does something specific
---
# My Custom Skill
## Instructions
1. Do this
2. Then that
{
"elc": {
"disabledSkills": ["legacy-pattern", "deprecated-api"]
}
}
legion run "use tdd to implement user registration"
# 1. Writes failing test
# 2. Implements minimal code
# 3. Refactors
# 4. Repeats
legion run "security scan this project"
# 1. Scans dependencies
# 2. Checks for vulnerabilities
# 3. Reviews code patterns
# 4. Generates report
/review src/auth.ts
# 1. Analyzes code quality
# 2. Checks security
# 3. Reviews performance
# 4. Suggests improvements