Skip to content

Reusable subagent skills

Small, focused askx profiles (like a local Ollama log-triage model, a cheap Haiku PR-diff summarizer, or a schema-enforced SQL reviewer) are most useful when your main coding agent delegates to them automatically.

Add category, description, when_to_use, and tags to any profile in ~/.config/askx/profiles.yaml (or frontmatter in ~/.config/askx/templates/*.md):

profiles:
log-triage:
endpoint: http://127.0.0.1:11434/v1
style: openai
model: qwen3.5:4b
category: ops
description: Triage build and test logs into root cause and fix
when_to_use: When a CI or test log exceeds 200 lines and needs quick root-cause extraction
tags: [logs, ci, cheap]
Terminal window
# JSON catalog grouped by category
askx catalog
askx catalog --category ops

3. Export native host agents & SKILL.md skills

Section titled “3. Export native host agents & SKILL.md skills”

SKILL.md files work when explicitly invoked, whereas native host agents (~/.claude/agents/*.md, ~/.codex/agents/*.toml, ~/.config/opencode/agent/*.md) trigger proactive, unprompted delegation inside an isolated subagent context.

askx install --subagents installs both:

Terminal window
# Preview any format before installing
askx skill --profile log-triage # SKILL.md
askx skill --profile log-triage --format claude # native .claude/agents/askx-log-triage.md
askx skill --profile log-triage --format codex # native .codex/agents/askx-log-triage.toml
askx skill --profile log-triage --format opencode # native .opencode/agent/askx-log-triage.md
askx skill --template sql-check # SKILL.md for a named template
# Install askx + subagent skills + native host agents into detected hosts
askx install --subagents
# Or target a single repository's .claude dirs
askx install --subagents --dir .claude/skills --agents-dir .claude/agents
# Clean removal of both skills and native agents
askx uninstall --subagents

Detected install targets (created only when the host’s parent directory exists):

Host Skill (SKILL.md) Native subagent (proactive delegation)
Claude Code ~/.claude/skills/askx-<name>/SKILL.md ~/.claude/agents/askx-<name>.md
Codex CLI ~/.codex/skills/askx-<name>/SKILL.md ~/.codex/agents/askx-<name>.toml
OpenCode ~/.agents/skills/askx-<name>/SKILL.md ~/.config/opencode/agent/askx-<name>.md
Devin / others ~/.config/devin/skills/askx-<name>/SKILL.md, ~/.agents/skills/... —