Generate YC-style investor pitch decks in Typst
Thin wrapper that routes pitch deck generation requests to the deck-agent.
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:
/deck commandWhen an implementing agent encounters any of these patterns:
:
Target mentions:
Task description keywords:
Do not invoke for:
Validate required inputs:
prompt (text description) OR source_path (file path)output_path - Optional, defaults based on inputtheme - Optional, defaults to "simple"slide_count - Optional, defaults to 10# Validate at least one input source
if [ -z "$prompt" ] && [ -z "$source_path" ]; then
return error "Either a prompt or source file path is required"
fi
# If source_path provided, validate it exists
if [ -n "$source_path" ] && [ ! -f "$source_path" ]; then
return error "Source file not found: $source_path"
fi
# Convert source_path to absolute if relative
if [ -n "$source_path" ] && [[ "$source_path" != /* ]]; then
source_path="$(pwd)/$source_path"
fi
# Determine output path if not provided
if [ -z "$output_path" ]; then
if [ -n "$source_path" ]; then
source_dir=$(dirname "$source_path")
source_base=$(basename "$source_path" | sed 's/\.[^.]*$//')
output_path="${source_dir}/${source_base}-deck.typ"
else
output_path="$(pwd)/pitch-deck.typ"
fi
fi
# Convert output_path to absolute if relative
if [[ "$output_path" != /* ]]; then
output_path="$(pwd)/$output_path"
fi
Prepare delegation context:
{
"prompt": "Startup description from user",
"source_path": "/absolute/path/to/startup-info.md",
"output_path": "/absolute/path/to/pitch-deck.typ",
"theme": "simple",
"slide_count": 10,
"metadata": {
"session_id": "sess_{timestamp}_{random}",
"delegation_depth": 1,
"delegation_path": ["orchestrator", "deck", "skill-deck"]
}
}
CRITICAL: You MUST use the Task tool to spawn the agent.
Required Tool Invocation:
Tool: Task (NOT Skill)
Parameters:
- subagent_type: "deck-agent"
- prompt: [Include prompt, source_path, output_path, theme, slide_count, metadata]
- description: "Generate pitch deck from input"
The agent will:
Validate return matches subagent-return.md schema:
Return validated result to caller without modification.
Expected successful return:
{
"status": "generated",
"summary": "Generated 10-slide pitch deck for Acme AI in Typst format. 2 slides have TODO placeholders.",
"artifacts": [
{
"type": "implementation",
"path": "/absolute/path/to/pitch-deck.typ",
"summary": "Touying pitch deck with speaker notes"
}
],
"metadata": {
"session_id": "sess_...",
"agent_type": "deck-agent",
"delegation_depth": 2,
"theme": "simple",
"slide_count": 10,
"slides_with_todos": 2,
"input_type": "prompt_and_file"
},
"next_steps": "Review and compile: typst compile pitch-deck.typ"
}
Return immediately with failed status if neither prompt nor source file provided.
Return failed status with clear message about the missing file.
Pass through the agent's error return verbatim.
Return failed status with directory/permission guidance.