Agent skill

llm-orchestrator

Multi-LLM orchestration utilities for discovering available CLI tools, assessing change complexity, and building structured prompts. Used by reviewer sub-agents and multi-model commands.

Stars 2
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/cullenmcdermott/nix-config/tree/main/skills/llm-orchestrator

SKILL.md

LLM Orchestrator

Overview

This skill provides shared infrastructure for multi-LLM orchestration workflows. It enables discovering which LLM CLI tools are installed, assessing the complexity of code changes to determine reviewer allocation, and generating structured prompts for different review/analysis tasks.

Available Scripts

scripts/discover_llm_clis.py

Detect installed and authenticated LLM CLI tools. Returns JSON with availability status for each supported CLI.

Usage: uv run scripts/discover_llm_clis.py

Output format:

json
{
  "available": ["claude"],
  "unavailable": ["cursor-agent", "llm", "gemini", "aider"],
  "details": {
    "claude": {"installed": true, "path": "/usr/bin/claude", "version": "2.1.36"}
  }
}

scripts/assess_complexity.py

Analyze a git diff to determine change complexity and recommend reviewer allocation.

Usage: uv run scripts/assess_complexity.py [--diff-args "HEAD~1"]

Defaults to staged changes if no diff args provided.

Complexity levels:

Level Criteria Recommended Reviewers
small <50 lines, 1-2 files architect + stylist (2)
medium 50-200 lines, 3-5 files + tester (3)
large 200-500 lines, 5+ files + perf + external (5)
critical 500+ lines OR touches auth/crypto/infra all 6 + external (7)

Output format:

json
{
  "complexity": "medium",
  "lines_changed": 120,
  "files_changed": 4,
  "touches_sensitive": false,
  "recommended_reviewers": ["reviewer-architect", "reviewer-stylist", "reviewer-tester"],
  "summary": "Medium change: 120 lines across 4 files"
}

scripts/enhance_prompt.py

Generate structured prompts for different analysis tasks. Takes a task type and optional context, returns a formatted prompt.

Usage: uv run scripts/enhance_prompt.py <task_type> [--context "additional context"]

Supported task types: review, security, test-gen, explain, commit-msg, adr

Integration Pattern

Sub-agents and commands should use these scripts as building blocks:

  1. Discovery (discover_llm_clis.py) — Called at the start of multi-model workflows to determine which CLIs are available for dispatch.
  2. Complexity (assess_complexity.py) — Called by /multi-review to scale the number of reviewer agents.
  3. Prompts (enhance_prompt.py) — Called by sub-agents and commands to get consistent, high-quality prompts for each task type.

Expand your agent's capabilities with these related and highly-rated skills.

cullenmcdermott/nix-config

home-assistant

This skill should be used when helping with Home Assistant setup, including creating automations, modifying dashboards, checking entity states, debugging automations, and managing the smart home configuration. Use this for queries about HA entities, YAML automation/dashboard generation, or troubleshooting HA issues.

2 0
Explore
mattpocock/skills

scaffold-exercises

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

111,310 9,758
Explore
mattpocock/skills

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

111,310 9,758
Explore
mattpocock/skills

edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

111,310 9,758
Explore
mattpocock/skills

handoff

Compact the current conversation into a handoff document for another agent to pick up.

111,310 9,758
Explore
mattpocock/skills

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results