claude/ai-resources-plugin/skills/break-into-subtasks/SKILL.md
Break frontend feature requirements into parallelizable subtasks (API, UI, integration) with dependencies and a Mermaid diagram.
npx skillsauth add amhuppert/my-ai-resources break-into-subtasksInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Guide for analyzing requirements and breaking down frontend work into parallelizable, well-organized tasks.
Context: Modern frontend architecture with API clients (Zod schemas + React Query hooks) separate from presentational UI components, connected via integration tasks.
Use this skill when:
Objective: Understand the feature completely before planning work.
Steps:
Example Questions:
Objective: Group related functionality into user-facing features.
Guidelines:
Example Features:
For each feature, identify work in three categories:
What: Zod schemas, data validation/parsing, and React Query hooks for API endpoints.
Characteristics:
Format: {Endpoint Name} - client
Examples:
What: Presentational components that receive data via props/context.
Characteristics:
Examples:
What: Wire API clients to UI components to create working features.
Characteristics:
Format: Descriptive task name with dependencies noted
Examples:
Purpose: Visualize work order, dependencies, and parallelization opportunities.
Structure:
flowchart TD
%% API clients at top level (no grouping)
API1[{Endpoint Name} - client]
API2[{Endpoint Name} - client]
%% Features as subgraphs
subgraph Feature1["🎯 Feature Name"]
direction TB
F1_UI1[UI: Component name]
F1_INT[Integration: Task name]
F1_DONE[✅ Feature Complete]
F1_UI1 --> F1_INT
F1_INT --> F1_DONE
end
%% Dependencies
API1 --> F1_INT
Requirements:
Comprehensive inline comments:
API Endpoint Clients:
{Endpoint Name} - clientFeature Subgraphs:
Dependencies:
Avoid:
Structure:
## Work Items
### API Endpoint Clients
Build Zod schemas, data parsers, and React Query hooks for each endpoint. These can all be started immediately with no dependencies.
- **{Endpoint Name} - client**
- **{Endpoint Name} - client**
### {Feature Name}
**UI Components:**
- Component name and brief description
- Component name and brief description
**Integration:**
- Integration task name
- _Depends on: {API Client Name}, {API Client Name}_
- Integration task name
- _Depends on: {API Client Name}_
Requirements:
*Depends on: {Client Name}, {Client Name}*Before finalizing work breakdown:
If a UI component is used by multiple features (e.g., "Create location button & dropdown"), extract it from individual features to avoid duplication. List it separately, similar to API clients. Both features' integration tasks will depend on it, but it appears only once in the work breakdown.
Some features have sequential integration steps:
Integration 1 (search) → Integration 2 (create from search result)
Show this in both Mermaid (arrows between integration nodes) and Markdown (separate integration items).
Features with Create/Read/Update/Delete typically need:
❌ Grouping API clients in subgraph - They're shared infrastructure, keep top-level ❌ Creating feature dependencies without real blockers - Maximize parallelization ❌ Vague integration tasks - Be specific about what's being wired ❌ Missing dependency notation - Always note which API clients are needed ❌ Insufficient Mermaid comments - AI agents need context in the diagram itself ❌ Too granular - Work items should be JIRA-ticket sized, not hour-by-hour tasks ❌ Too broad - "Build entire feature" isn't useful; break into client/UI/integration
Given: "Users can view a list of items and filter by category"
Analysis:
Breakdown:
Not separate features: Filtering is part of the list feature, not independent.
Remember: The goal is maximum parallelization while maintaining clear dependencies. When in doubt, avoid creating blocking relationships between features.
tools
Use when picking or vetting a keyboard shortcut on macOS. Triggers include "what hotkey should I use for X", "is `<combo>` available", "does this shortcut conflict", "recommend a keybinding for…", "check `<combo>` against my setup", "pick a hotkey for…", or any mention of choosing/binding/changing a shortcut in WezTerm, tmux, Zed, Chrome, Claude Code, or macOS. Determines whether a proposed combo collides with OS-reserved bindings, app defaults, or the user's customizations, and recommends ergonomic alternatives when needed.
development
Detect and remove dead code with knip. Use when the user asks to "run knip", "find unused files", "find unused exports", "find unused dependencies", "clean up dead code", "remove dead code", "set up knip", "configure knip", "knip.json", "knip false positive", "knip CI", or mentions a `knip` config, dependency bloat, bundle bloat from unused imports, or tree-shaking unused exports. Covers the configuration-first workflow, confidence-gated deletion, framework-specific gotchas (Next.js 15+, Tailwind, Storybook, Jest, Bun's test runner and `bun build --compile`), monorepos, CI integration, and performance tuning.
tools
This skill should be used when the user asks to "set up react-scan", "install react-scan", "diagnose React re-renders", "find unnecessary renders", "find unstable props", "automate React render checks with Playwright", "react-scan + playwright", "measure component renders programmatically", "check why a React component is slow", or mentions React rendering issues, slow React interactions, render counts, or component-level perf attribution. Covers install across Next.js/Vite/Remix/script-tag/browser-extension, the lite headless API for CI, and the canonical render-attribution → fix → validate loop driven through Playwright.
documentation
This skill should be used when integrating source material into a knowledge base, including when the user asks to "integrate this document into the knowledge base", "add this transcript to the memory bank", "ingest this document", "update the knowledge base", "analyze a new source document", or "sync current-state docs with this source".