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.
1. Annotate profiles or templates
Section titled “1. Annotate profiles or templates”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]2. Browse the catalog
Section titled “2. Browse the catalog”# JSON catalog grouped by categoryaskx catalogaskx catalog --category ops3. 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:
# Preview any format before installingaskx skill --profile log-triage # SKILL.mdaskx skill --profile log-triage --format claude # native .claude/agents/askx-log-triage.mdaskx skill --profile log-triage --format codex # native .codex/agents/askx-log-triage.tomlaskx skill --profile log-triage --format opencode # native .opencode/agent/askx-log-triage.mdaskx skill --template sql-check # SKILL.md for a named template
# Install askx + subagent skills + native host agents into detected hostsaskx install --subagents
# Or target a single repository's .claude dirsaskx install --subagents --dir .claude/skills --agents-dir .claude/agents
# Clean removal of both skills and native agentsaskx uninstall --subagentsDetected 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/... |
— |