No slash command · from gt-workflow
Structured format contract for "## Stack Decomposition" sections in plan documents, shared by gt-stack-plan (producer) and flow:work (consumer). Use when writing or parsing a Stack Decomposition section.
Ships in gt-workflow. 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.
Defines the machine-readable format for ## Stack Decomposition sections
that gt-stack-plan writes into plan documents, and that flow:work
(yellow-core) parses to execute a stack bottom-up. Both sides must agree on
this format exactly — it is a contract, not free-form prose.
## Stack Decomposition section (the gt-stack-plan skill,
Phase 3).## Stack Decomposition section (the flow:work skill's
Phase 1a stack detection).## Stack Progress section that tracks
execution.Machine-readable contract between gt-stack-plan (producer) and
flow:work (consumer). Both commands must agree on this format.
The ## Stack Decomposition section is appended to a plan document by
gt-stack-plan. It uses structured markdown with numbered ### subsections
per stack item.
## Stack Decomposition
<!-- stack-topology: linear -->
<!-- stack-trunk: main -->
### 1. feat/branch-slug-one
- **Type:** feat
- **Description:** Short description of what this PR does
- **Scope:** path/to/file1.ts, path/to/file2.ts
- **Tasks:** 1.1, 1.2, 1.3
- **Depends on:** (none)
- **Linear:** ENG-123
### 2. fix/branch-slug-two
- **Type:** fix
- **Description:** Short description of what this PR does
- **Scope:** path/to/file3.ts
- **Tasks:** 2.1, 2.2
- **Depends on:** #1
- **Linear:** ENG-124
Each stack item heading uses the format ### N. type/branch-name where N is
the stack position (1-indexed) and type/branch-name is the Graphite branch
name.
| Field | Required | Format | Description |
|---|---|---|---|
| Type | Yes | Conventional commit prefix | feat, fix, refactor, docs, test, chore, etc. |
| Description | Yes | Single line | One-line summary used as PR title |
| Scope | Yes | Comma-separated paths | Files or directories this item touches |
| Tasks | Yes | Comma-separated IDs | Plan task IDs from ## Implementation Plan (e.g., 1.1, 1.2) |
| Depends on | Yes | (none) or #N refs | Prerequisite items by number |
| Linear | No | Issue ID | Linear issue identifier (e.g., ENG-123) |
Placed immediately after the ## Stack Decomposition heading, before the
first item.
| Comment | Required | Values | Description |
|---|---|---|---|
stack-topology | Yes | linear, parallel, mixed | How items relate to each other |
stack-trunk | Yes | Branch name | Base branch for the stack (usually main) |
Examples below show dependency relationships in shorthand for readability. Actual output uses the full field format from Section Structure above.
Each item depends on the previous. flow:work creates each branch on
top of the last with gt create.
<!-- stack-topology: linear -->
<!-- stack-trunk: main -->
### 1. feat/auth-types → Depends on: (none)
### 2. feat/auth-middleware → Depends on: #1
### 3. feat/auth-routes → Depends on: #2
Items are independent, all branching off trunk. flow:work checks out
trunk before creating each branch.
<!-- stack-topology: parallel -->
<!-- stack-trunk: main -->
### 1. docs/update-readme → Depends on: (none)
### 2. fix/lint-warnings → Depends on: (none)
### 3. test/add-coverage → Depends on: (none)
Some items are stacked, others are parallel. The Depends on field determines
the dependency graph. Note that while mixed topology is defined for forward-compatibility,
the flow:work consumer currently only supports linear and parallel topologies.
<!-- stack-topology: mixed -->
<!-- stack-trunk: main -->
### 1. feat/core-types → Depends on: (none)
### 2. feat/core-logic → Depends on: #1
### 3. feat/api-routes → Depends on: #2
### 4. docs/migration-guide → Depends on: (none)
When gt-stack-plan is invoked without a plan file path, it writes the full
## Stack Decomposition section to .gt-stack-plan.md in the repo root.
This file uses the identical format and can be consumed by flow:work.
If ## Stack Decomposition already exists in the target plan file,
gt-stack-plan replaces it entirely (does not append a duplicate). The
replacement preserves all content before and after the section.
When flow:work executes a stack, it writes a ## Stack Progress
section after ## Stack Decomposition:
## Stack Progress
<!-- Updated by flow:work. Do not edit manually. -->
- [x] 1. feat/branch-slug-one (completed 2026-03-10)
- [ ] 2. feat/branch-slug-two
- [ ] 3. fix/branch-slug-three
On resume, flow:work reads this section and skips completed items,
cross-referencing with gt log short to verify branches exist.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
11 skills in this plugin
/audit-reviewRun 1-3 parallel quick-audit passes (code quality, security, error handling) over a diff and gate on findings. Use when smart-submit or gt-amend need to audit uncommitted changes before committing./gt-amendFold working-tree changes into the current branch commit, audit them, and re-submit via Graphite. Use when user says "amend this", "add this to the current PR", "fold this fix in", or has follow-up edits for an already-submitted branch. Not for starting new work — use the smart-submit skill instead./gt-cleanupScan local branches for staleness and divergence, then delete or reconcile them with safeguards. Use when user says "clean up my branches" or "which branches are stale". For deleting branches whose PRs merged — and for pulling trunk or restacking — use the gt-sync skill.npx claudepluginhub kinginyellows/yellow-plugins --plugin gt-workflow