بنقرة واحدة
بنقرة واحدة
Route commands to appropriate workflows based on task language and status. Invoke when executing /task, /research, /plan, /implement commands.
Implement Nix configuration changes from plans. Invoke for nix implementation tasks.
Conduct Nix/NixOS/Home Manager research using MCP-NixOS, web docs, and codebase exploration. Invoke for nix research tasks.
Create scoped git commits for task operations. Invoke after task status changes or artifact creation.
Execute general implementation tasks following a plan. Invoke for general implementation work.
Implement LaTeX documents following a plan. Invoke for LaTeX-language implementation tasks.
| name | skill-document-converter |
| description | Document conversion routing with dual invocation support |
| allowed-tools | Task |
Thin wrapper that delegates document conversion to document-converter-agent subagent.
Reference (do not load eagerly):
.claude/context/core/formats/subagent-return.mdNote: This skill is a thin wrapper. Context is loaded by the delegated agent, not this skill.
This skill activates when:
/convert commandWhen an implementing agent encounters any of these patterns:
Plan step language patterns:
File extension detection:
.pdf, .docx, .xlsx, .pptx, .htmlTask description keywords:
Do not invoke for:
Validate required inputs:
source_path - Must be provided and file must existoutput_path - Optional, defaults to source dir with appropriate extension# Validate source exists
if [ ! -f "$source_path" ]; then
return error "Source file not found: $source_path"
fi
# Determine output path if not provided
if [ -z "$output_path" ]; then
source_dir=$(dirname "$source_path")
source_base=$(basename "$source_path" | sed 's/\.[^.]*$//')
source_ext="${source_path##*.}"
# Infer target extension
case "$source_ext" in
pdf|docx|xlsx|pptx|html) output_path="${source_dir}/${source_base}.md" ;;
md) output_path="${source_dir}/${source_base}.pdf" ;;
*) return error "Cannot infer output format for .$source_ext" ;;
esac
fi
Prepare delegation context:
{
"source_path": "/absolute/path/to/source.pdf",
"output_path": "/absolute/path/to/output.md",
"metadata": {
"session_id": "sess_{timestamp}_{random}",
"delegation_depth": 1,
"delegation_path": ["orchestrator", "convert", "skill-document-converter"]
}
}
CRITICAL: You MUST use the Task tool to spawn the subagent.
The agent field in this skill's frontmatter specifies the target: document-converter-agent
Required Tool Invocation:
Tool: Task (NOT Skill)
Parameters:
- subagent_type: "document-converter-agent"
- prompt: [Include source_path, output_path, metadata]
- description: "Convert {source_path} to {output_path}"
DO NOT use Skill(document-converter-agent) - this will FAIL.
Agents live in .claude/agents/, not .claude/skills/.
The Skill tool can only invoke skills from .claude/skills/.
The subagent will:
Validate return matches subagent-return.md schema:
Return validated result to caller without modification.
See .claude/context/core/formats/subagent-return.md for full specification.
Expected successful return:
{
"status": "converted",
"summary": "Successfully converted document.pdf to document.md using markitdown",
"artifacts": [
{
"type": "implementation",
"path": "/absolute/path/to/document.md",
"summary": "Converted markdown document"
}
],
"metadata": {
"session_id": "sess_...",
"agent_type": "document-converter-agent",
"delegation_depth": 1,
"delegation_path": ["orchestrator", "convert", "skill-document-converter", "document-converter-agent"],
"tool_used": "markitdown"
},
"next_steps": "Review converted document"
}
Return immediately with failed status if source file not found.
Return failed status with clear message about supported formats.
Pass through the subagent's error return verbatim.
Return failed status with installation instructions.