/loxihart-ai:task-decompositionfrom loxihart-ai
Decompose complex multi-part requests into parallel workstreams with dependency tracking and integration planning. Use this skill whenever a request involves 3 or more distinct components, domains, or deliverables that could be worked on independently — even if the user doesn't explicitly ask for decomposition. Triggers on multi-deliverable requests like "build X + Y + Z", "create A, B, and C", "audit these 4 things", or any task where components span different domains (frontend + backend, research + writing + formatting, design + code + deploy). Also triggers when the user says "break this down", "decompose", "parallel plan", "workstreams", or "what are all the pieces". Even casual compound requests like "set up auth, database, and deployment" should activate this skill. Do NOT trigger on simple multi-step tasks within a single domain (e.g., "write a function that validates, transforms, and returns data" — that's one workstream with sequential steps, not parallel workstreams).
Ships in loxihart-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Teach Claude to think in parallel workstreams instead of processing complex requests linearly. When someone asks for something with 3+ distinct components, Claude decomposes the request, identifies what's independent vs. dependent, surfaces cross-cutting concerns, and structures its response so nothing gets dropped or poorly integrated.
Without this skill, Claude processes compound requests as a single monolithic task — walking through everything sequentially, often losing coherence on later components or forgetting integration points. The result: the first component gets deep treatment, the last gets a paragraph, and nobody planned how they connect.
With this skill, Claude plans the workstream map first, then executes each stream at consistent depth, with explicit integration points.
Activate when ALL of these are true:
Do NOT activate when:
For engineering/build requests: This skill activates inside staff-engineer-v4's Step 3 (Plan). Staff-engineer-v4 handles the outer loop (Clarify → Stack → Plan → Implement → Document → Critique). During the Plan step, if the implementation involves 3+ parallel workstreams, this skill structures those workstreams before staff-engineer-v4 proceeds to Implement.
For non-engineering requests: This skill operates standalone. Multi-part content creation, research tasks, audit projects, and operational work all benefit from workstream decomposition without needing staff-engineer-v4's engineering-specific workflow.
Priority rule: If both skills trigger, staff-engineer-v4 is the outer wrapper. Task Decomposition is the inner planning engine. They never compete — they layer.
Parse the request and extract distinct workstreams. A workstream is a unit of work that:
For each workstream, identify:
Classify relationships between workstreams:
Cross-cutting concerns are the most commonly missed piece. Look for:
Show the decomposition concisely before executing. Format:
## Workstream map
**Cross-cutting (resolve first):**
- [Decision that affects multiple streams]
- [Shared constraint or contract]
**Parallel workstreams:**
1. [Workstream A] — [1-line description]
2. [Workstream B] — [1-line description]
3. [Workstream C] — [1-line description]
**Sequential (depends on above):**
4. [Integration/assembly step] — depends on 1, 2, 3
**Estimated depth:** [Balanced / Front-loaded / Back-loaded]
Keep this map to 10-15 lines max. It's a navigation aid, not a document. The user should be able to glance at it and know what's coming.
Before touching any workstream, make decisions on shared concerns. State each decision explicitly:
Auth model decision: JWT with refresh tokens, Supabase Auth provider. This affects workstreams 1 (frontend login flow), 2 (backend middleware), and 3 (RLS policies).
These decisions become constraints that every subsequent workstream respects.
When you can't resolve a cross-cutting concern without user input, ask immediately. Do not guess and proceed — a wrong assumption here cascades into every workstream. Frame the question with your best recommendation and why:
I need to resolve the event trigger pattern before proceeding — it affects workstreams 3 and 4. My recommendation is a Supabase database webhook → n8n fan-out, because it keeps the registration form simple and gives you retry logic for free. Does that work, or do you have a different pattern in mind?
This is the one place where asking a clarifying question mid-response is worth the interruption. A wrong cross-cutting decision costs more than the delay.
Work through each workstream, giving each proportional depth based on complexity — not based on order. The third workstream should get the same quality treatment as the first.
For each workstream:
Depth balancing rule: If you're running long on an early workstream, compress it. The user asked for N things — delivering 1 deeply and N-1 shallowly is worse than delivering all N at consistent medium depth. You can always go deeper on a specific stream if the user asks.
After all parallel workstreams are complete, explicitly handle integration:
For 3-4 workstreams: Show the map, resolve cross-cutting, execute each stream, brief integration note. This is the common case.
For 5-7 workstreams: Show the map, resolve cross-cutting, execute each stream at compressed depth, thorough integration section. Warn the user that depth per stream is limited and offer to go deeper on specific streams.
For 8+ workstreams: Show the map, resolve cross-cutting, group related streams into 3-4 clusters, execute clusters, integration section. At this scale, individual stream depth is necessarily shallow — suggest breaking into multiple conversations or sessions.
User: "Build an e-commerce platform with React frontend, Python API, PostgreSQL database, and Stripe payments"
Workstream map:
User: "Create a weekly newsletter edition with research brief, non-tech summary, and tech department deep-dive"
Workstream map:
User: "Audit our codebase for security issues, performance bottlenecks, test coverage gaps, and documentation holes"
Workstream map:
User: "Write a Python function that validates URLs, fetches content, and summarizes each page"
This is validate → fetch → summarize — sequential steps in one function, not parallel workstreams. Just write the function directly. The fact that there are 3 verbs does not mean there are 3 workstreams.
Over-decomposition: "Write a blog post about AI" is NOT 3 workstreams (research, writing, editing). That's one workstream with sequential steps. Only decompose when components are genuinely independent.
Decomposition theater: Don't show a workstream map for simple requests just because the skill triggered. If you start decomposing and realize it's actually 2 workstreams, skip the map and just execute.
Unbalanced depth: The most common failure mode. You spend 80% of tokens on the first workstream and rush through the rest. Track your depth and compress early streams if needed.
Ignoring cross-cutting concerns: The second most common failure. Two workstreams make contradictory assumptions about a shared interface. Always resolve shared decisions before parallel execution.
Map without execution: Producing a beautiful decomposition plan and then asking "which workstream should I start with?" defeats the purpose. Decompose AND execute in the same response unless the scope is genuinely too large.
Before finalizing a decomposed response, verify:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-ai37 skills in this plugin
/ai-agents-workflowBuilds and implements AI agents, automation workflows, and tool integrations — MCP servers (2025 async, OAuth, stateless spec), LangChain and CrewAI agents, multi-LLM orchestration, and no-code platforms. Use when the user mentions: MCP server, build an agent, tool integration, API orchestration, multi-LLM routing, OAuth flow, webhook, connect services, deploy a workflow, integrate external APIs. Not for conceptual architecture overviews (use orchestrating-ai- agents), not for production n8n incident ops (use operating-n8n-production), and not for pure no-code platform wiring (use workflow-automation).
/ai-solution-architectureDesign pre-sales technical architectures for AI/ML solutions targeting B2B enterprise clients. Use when scoping AI implementations, designing reference architectures, mapping integration patterns, estimating infrastructure requirements, or preparing technical proposals. Triggers on solution design, AI architecture, technical scoping, integration mapping, infrastructure sizing, pre-sales engineering for AI projects./applying-adversarial-reviewApplies Kyle's adversarial review methodology to consequential outputs. Forces every recommendation, audit, plan, or claim through three checks before shipping: a CLAIMS / COUNTEREXAMPLE / CONTRADICTIONS footer, [SOURCED] vs [GENERATED] provenance labeling, and an agreement-streak flag at three consecutive consequential agreements. Use when finishing an audit, writing a recommendation, delivering a plan, drafting a decision memo, or producing any high-stakes deliverable. Also triggers when explicitly asked to pressure-test, stress-test, steelman, play devil's advocate, fight an idea, or check for blind spots. Triggers on: adversarial review, anti-sycophancy, claims footer, stress test this, steelman this, pressure test, devil's advocate, am I missing anything, what could go wrong, sourced vs generated, agreement streak, push back on this, where am I wrong, review this PR, pull request review, code review, PR feedback.
Other plugins' skills for the same job