/alemtuzlak-skills:lego-planfrom alemtuzlak-skills
Breaks a settled change into a layered DAG of small, parallelizable implementation blocks. Stops after emitting the plan.
Ships in alemtuzlak-skills. 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.
Read when SKILL.md points to them.
Turn a settled change into a layered DAG from simple primitives to a working feature. Plan only. Then stop.
The graph is a pyramid: independent blocks at the bottom, composed blocks above, one finish node. A later driver can run same-layer nodes in parallel, flip status, and redraw this graph. This skill does not dispatch subagents. It does not load other skills.
Load when the job is to turn a settled change into an implementation map the driver can follow.
One node is still a DAG. Emit the full contract.
done when. Do not implement it here.docs/.Graph node (parallel unit): one independently shippable primitive a subagent can own without waiting on another in-progress node.
Examples: write fetchOrder, write OrderCard, wire fetchOrder into the loader.
Too big: implement auth. Split it. Too small: rename a variable. Fold it into the node that needs it.
Parts (inside a node): the functions that must land together so that node compiles. One subagent does parts in order. Do not fan out parts.
Example node fetch-order:
files: src/fetchOrder.ts, src/fetchOrder.test.tsparts: Order type, then fetchOrder, then write or extend src/fetchOrder.test.tsdepends on: none. The driver can run all of them in parallel.depends on lists node ids, never file names.Same file: if two nodes create or edit the same path, they must not share a layer. Merge them, or add a depends on edge so one waits. Do not split a file only to run in parallel. Two nodes that only read a path can share a layer. files lists create-or-edit paths only. The same-file rule includes test files.
Every node has all seven:
none.done when.done when is a manual check and there is no test file, the last part is that check and files has no test path.pending. A later driver can set in-progress or done. This skill never writes those two.Do not put full source in the plan.
Path: <repo>/.agent/scratch/lego-plan.json
Same JSON as the chat fence. Agents follow this file. The user-facing product is the chat picture.
.agent/scratch/ if needed.in-progress or done..gitignore contains .agent/scratch/. If .gitignore exists and the line is missing, append it. If .gitignore is missing, create it with that one line.depends on: a node depends on another only if it calls or embeds the result of that node.Fill the seven fields. status is pending on every node.
Show, in this order:
flowchart (or graph TD). Node ids in the diagram must match the plan ids. No classDef. No status colors. Every node is pending.json block with the live-board object. Source of truth for ids, deps, files, parts, doneWhen, and status. Layers are derived from depends. Do not store a layer field.Then Procedure 6.
Mermaid form:
flowchart TD
fetch-order[fetch-order]
order-card[order-card]
wire-loader[wire-loader]
fetch-order --> wire-loader
order-card --> wire-loader
Same-layer nodes have no edge between them.
JSON form:
{
"version": 1,
"nodes": [
{
"id": "fetch-order",
"name": "fetch order",
"depends": [],
"files": ["src/fetchOrder.ts", "src/fetchOrder.test.ts"],
"parts": ["Order type", "fetchOrder", "write or extend src/fetchOrder.test.ts"],
"doneWhen": "pnpm test src/fetchOrder.test.ts",
"status": "pending"
}
]
}
depends is an array of ids. Empty means none.
.agent/scratch/lego-plan.json (overwrite)..gitignore ignores .agent/scratch/ as in Live board.After Procedure 6, stop. Do not write code. Do not dispatch. Do not load another skill.
| Signal | What it means | Do instead |
|---|---|---|
| Writing the fetch function in this skill | Plan became implementation | Procedure 7. Stop. |
| One linear list with no layers | Cannot fan out | Put independent nodes in the same layer. |
| Dispatching subagents from here | Leaf became the driver | Procedure 7. Stop. |
| Mermaid ids differ from node ids | Driver cannot mark done | Same kebab-case id in both places. |
| JSON fence differs from the scratch file | Two sources of truth | Write one object. Copy it to both. |
Cycle (a → b → a) | Split is wrong | Split and re-layer. |
Two same-layer nodes edit order.ts | Parallel write clash | Merge or add a depends on edge. |
| Splitting a file so two nodes can run in parallel | Unasked design | Keep the file. Sequence the nodes. |
Test path missing from files / last part | Node is not shippable | Procedure 3 step 2. |
classDef or status colors on the plan Mermaid | This skill paints progress | Unstyled. All pending. |
| Parts of one node split into parallel nodes that cannot compile alone | C treated as B | Keep those parts inside one node. |
| "Implement auth" as a single node | Too big | Split into primitives. |
| Waiting for "looks good?" | Gate is show-and-stop | Emit and stop. |
| Asking before overwrite of the scratch file | Live board is one slot | Procedure 6. Overwrite. |
Opening .agent/scratch/lego-plan.json | User-facing extra | Chat only. File is for agents. |
Writing docs/lego-plan.md | Extra artifact | Chat plus scratch. No docs plan file. |
depends on that pointed at it. Keep ids stable if the node still exists. If you drop a node, remove it from the Mermaid and the JSON too. Overwrite the scratch file. Show the DAG again. Stop.done when is vague ("it works"): replace with a command or test path. If the project has no test command yet, name the manual check in one line. Last part is that check..agent/scratch/lego-plan.json under the workspace if it is writable. Skip the gitignore step. Say that in one line in chat.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (alemtuzlak/skills) — no native marketplace selected
npx claudepluginhub p/alemtuzlak-alemtuzlak-skills41 skills in this plugin
/accessible-htmlUse whenever writing, editing, or reviewing markup or UI code — HTML, JSX/TSX, Vue/Svelte/Angular templates, web components, email HTML, or CSS that affects text size, color, focus, motion, layout order, or hit area. Also use when adding a button, link, form, input, modal, dropdown, menu, tabs, tooltip, toast, icon, image, iframe, table, list, keyboard shortcut, drag interaction, or any click handler; when a design has to become code; and when the user says "accessibility", "a11y", "WCAG", "screen reader", "keyboard navigation", "focus", "aria", "contrast", "alt text", or "axe"./amazing-videoUse only when the user runs /amazing-video or names the amazing-video skill. The text after the command is the video topic, such as a PR, a feature, or an API./Other plugins' skills for the same job