A local-first AI workflow orchestration tool that enables multi-phase AI workflows with intelligent provider routing.
Skillrunner executes complex AI workflows defined as skills - YAML-based configurations that define multiple execution phases with dependencies. It intelligently routes work to local LLM providers (like Ollama) while seamlessly falling back to cloud providers (Anthropic Claude, OpenAI, Groq) when needed.
- Local-First Architecture - Prioritizes local model execution for privacy and cost savings
- Multi-Phase Workflows - Define complex AI tasks as directed acyclic graphs (DAGs) of dependent phases
- Intelligent Routing - Automatically selects the best provider/model based on routing profiles
- Multiple Providers - Supports Ollama, Anthropic Claude, OpenAI, and Groq
- Smart File Context - Automatically detects file references in natural language with permission system
- Cost-Aware - Built-in cost tracking and optimization through routing profiles
- Extensible Skills - Create and share reusable workflow definitions
# Build from source
make build
# Initialize configuration
sr init
# Check system status
sr status
# List available skills
sr list
# Run a multi-phase workflow
sr run code-review "Review this Python code for security issues: $(cat mycode.py)"
# Quick single-phase query
sr ask code-review "What are common security vulnerabilities in Python?"Skillrunner uses routing profiles to balance cost and quality:
| Profile | Description | Best For |
|---|---|---|
cheap |
Local-first, cost optimization | Drafts, exploration, high-volume tasks |
balanced |
Quality-to-cost ratio (default) | General use, production workloads |
premium |
Best available models | Critical tasks, final outputs |
# Use a specific routing profile
sr run code-review --profile premium "Review this security-critical code"| Skill | Description |
|---|---|
code-review |
3-phase comprehensive code review (patterns → security → report) |
test-gen |
Generate unit tests with coverage analysis |
doc-gen |
Generate documentation from code |
changelog |
Generate changelog entries from git history |
commit-msg |
Generate conventional commit messages |
pr-description |
Generate pull request descriptions |
lint-fix |
Identify and fix linting errors |
test-fix |
Debug and fix failing tests |
refactor |
Apply refactoring patterns |
issue-breakdown |
Break down issues into subtasks |
Skillrunner automatically detects when you mention files in your requests and provides smart context injection:
# Mention files naturally - they're detected automatically
sr ask doc-gen "Explain what permission.go does"
# Skillrunner detects the file and prompts for approval
📄 File Context Request
The skill wants to access 1 file(s):
1. internal/infrastructure/context/permission.go (6.3 KB)
Allow access to these files? [Y/n/individual/show]Features:
- Detects file paths and bare filenames from natural language
- Interactive permission prompts with preview capability
- Sensitive file detection (.env, credentials, keys)
- Auto-approve with
-yflag for automation - 1MB file size limit with binary detection
See docs/file-permissions.md for complete documentation.
Configuration is stored at ~/.skillrunner/config.yaml:
providers:
ollama:
url: http://localhost:11434
enabled: true
anthropic:
api_key_encrypted: ""
enabled: false
openai:
api_key_encrypted: ""
enabled: false
groq:
api_key_encrypted: ""
enabled: false
routing:
default_profile: balanced
logging:
level: info
format: text
skills:
directory: ~/.skillrunner/skills| Document | Description |
|---|---|
| Getting Started | Installation, setup, and first workflow |
| CLI Reference | Complete command-line documentation |
| Skills Guide | Creating and using workflow skills |
| Configuration | Configuration options and best practices |
| Architecture | System design for developers/contributors |
# Build
make build
# Run tests
make test
# Run linter
make lint
# Full check (format, vet, lint, test)
make check
# Generate coverage report
make coverageskillrunner/
├── cmd/skillrunner/ # CLI entry point
├── internal/
│ ├── domain/ # Core business logic (skill, workflow, provider)
│ ├── application/ # Ports and application services
│ ├── adapters/ # Provider implementations
│ ├── infrastructure/ # Config, skills loading, utilities
│ └── presentation/ # CLI commands and output formatting
├── skills/ # Built-in skill definitions
├── configs/ # Configuration examples
└── docs/ # User documentation
- Go 1.23+
- Ollama (recommended for local execution)
- API keys for cloud providers (optional)
MIT License - see LICENSE for details.