Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/catlog22/claude-code-workflow/imitate-autogit clone --depth 1 https://github.com/catlog22/Claude-Code-WorkflowWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00019 | $0.06986 |
| Opus 5 | $0.00010 | $0.03493 |
| Sonnet 5 | $0.00004 | $0.01397 |
| Haiku 4.5 | $0.00002 | $0.00699 |
Grade A, and why
imitate-auto scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 746 lines — stays where its author put it; the contents beside it link to each section on GitHub.
UI Design Imitate-Auto Workflow Command
Overview & Execution Model
Fully autonomous design orchestrator: Efficiently create UI prototypes through sequential execution from design token extraction to system integration.
Direct Input Strategy: Accepts local code files and images:
- Code Files: Detect file paths in
--promptparameter - Images: Reference images via
--imagesglob pattern - Hybrid: Combine both code and visual inputs
Autonomous Flow (⚠️ CONTINUOUS EXECUTION - DO NOT STOP):
- User triggers:
/workflow:ui-design:imitate-auto [--input "..."] - Phase 0: Initialize and detect input sources
- Phase 2: Style extraction → Attach tasks → Execute → Collapse → Auto-continues
- Phase 2.3: Animation extraction → Attach tasks → Execute → Collapse → Auto-continues
- Phase 2.5: Layout extraction → Attach tasks → Execute → Collapse → Auto-continues
- Phase 3: Batch UI assembly → Attach tasks → Execute → Collapse → Auto-continues
- Phase 4: Design system integration → Execute orchestrator task → Reports completion
Phase Transition Mechanism:
- Task Attachment: Skill execute ATTACHES tasks to current workflow
- Task Execution: Orchestrator EXECUTES these attached tasks itself
- Task Collapse: After tasks complete, collapse them into phase summary
- Phase Transition: Automatically execute next phase after collapsing
- No user interaction required after initial parameter parsing
Auto-Continue Mechanism: TodoWrite tracks phase status with dynamic task attachment/collapse. After executing all attached tasks, you MUST immediately collapse them, restore phase summary, and execute the next phase. No user intervention required. The workflow is NOT complete until reaching Phase 4.
Task Attachment Model: Skill execute is NOT delegation - it's task expansion. The orchestrator executes these attached tasks itself, not waiting for external completion.
Execution Process
Input Parsing:
├─ Parse flags: --input, --session (legacy: --images, --prompt)
└─ Decision (input detection):
├─ Contains * or glob matches → images_input (visual)
├─ File/directory exists → code import source
└─ Pure text → design prompt
Phase 0: Parameter Parsing & Input Detection
├─ Step 1: Normalize parameters (legacy deprecation warning)
├─ Step 2: Detect design source (hybrid | code_only | visual_only)
└─ Step 3: Initialize directories and metadata
Phase 0.5: Code Import (Conditional)
└─ Decision (design_source):
├─ hybrid → Execute /workflow:ui-design:import-from-code
└─ Other → Skip to Phase 2
Phase 2: Style Extraction
└─ Decision (skip_style):
├─ code_only AND style_complete → Use code import
└─ Otherwise → Execute /workflow:ui-design:style-extract
Phase 2.3: Animation Extraction
└─ Decision (skip_animation):
├─ code_only AND animation_complete → Use code import
└─ Otherwise → Execute /workflow:ui-design:animation-extract
Phase 2.5: Layout Extraction
└─ Decision (skip_layout):
├─ code_only AND layout_complete → Use code import
└─ Otherwise → Execute /workflow:ui-design:layout-extract
Phase 3: UI Assembly
└─ Execute /workflow:ui-design:generate
Phase 4: Design System Integration
└─ Decision (session_id):
├─ Provided → Execute /workflow:ui-design:update
└─ Not provided → Standalone completion
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 746 lines · 0 tokens per session scan A 3159f943df23
imitate-auto is a command published in the GitHub repository catlog22/Claude-Code-Workflow (2,134 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 6,986 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
ytdl
Download a video/podcast via yt-dlp, transcribe with whisper.cpp, save as markdown in llm-wiki.
verify-claim
Walk a claim through the SIFT method (Stop, Investigate, Find better coverage, Trace).
beat-brief
Draft a daily beat briefing from the files in sample-docs/.
hushflow
Configure HushFlow.
stts
User speaks the prompt, which is sent to the Model, the received response is spoken/read aloud in a loop.
cross-review
Run GitHub Copilot CLI and OpenAI Codex against the current git diff for cross-model review.