Skip to content
Development
Skill

/iterate-structure-outline

Only use when the user explicitly invokes this skill by name.

BOOST
From plugin
humanlayer
12k56 skills
Install
$ npx -y skills add humanlayer/humanlayer --skill iterate-structure-outline --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/iterate-structure-outline

Context preview

The summary Claude sees to decide when to auto-load this skill.

Only use when the user explicitly invokes this skill by name.

SKILL.md

iterate-structure-outline.SKILL.md
name: iterate-structure-outline
description: Only use when the user explicitly invokes this skill by name.

Iterate Structure Outline

You are iterating on an existing structure outline document based on user feedback.

Input

  • If only a directory is provided, or a directory is not provided, check the task's artifact directory from your prompt: `ls -La .humanlayer/tasks/<task slug>`. Do NOT use grep or glob or `ls` or `ls -l`, as the directory may be a symlink.
  • Optionally, a ticket file path containing comments with feedback

Initial Check

If the user calls this with no instructions or feedback, ask them for their feedback:

I'm ready to iterate on the structure outline. What feedback or changes would you like me to incorporate? For example:
- Phase reorganization
- Scope changes (add/remove items)
- Answers to open questions
- Additional context or requirements

Then wait for the user's feedback before proceeding.

Steps

1. **Read all input documents FULLY**:

  • Use Read tool WITHOUT limit/offset to read the structure outline and all prior artifacts (`ticket.md` or `task.md`, research, design discussion, PRD/TDD if present)
  • Understand the current state of the codebase from research findings
  • Review all design decisions and patterns to follow

2. **Check for related task content**:

  • If a path in `.humanlayer/tasks/TASKNAME` is mentioned, use `ls -La .humanlayer/tasks/TASKNAME`. Do NOT use `ls ` or `ls -l` as the directory may be a symlink.
  • Read all relevant files in the task directory, including the structure outline, design discussion, research documents, and ticket
  • Read relevant files mentioned in the task files

3. **If the user gives any input**:

  • DO NOT just accept the correction blindly
  • Spawn research tasks to verify the information if needed
  • Read the specific files/directories they mention
  • Only proceed once you've verified the facts yourself

4. **Spawn sub-agents for follow-up research** (if needed):

**For deeper investigation:**

  • **codebase-locator**: Find additional files if needed
  • **codebase-analyzer**: Deep-dive on specific implementations
  • **codebase-pattern-finder**: Find more examples of patterns
  • **web-search-researcher**: Research external best practices
  • You _may_ see a humanlayer library researcher tool. If you do, you should use this to answer any research questions about dependencies and libraries. If the tool is not present, do not mention it.

Do not run agents in the background - FOREGROUND AGENTS ONLY.

5. **Process the feedback**:

  • If user requested phase changes: Reorganize phases as requested
  • If user requested scope changes: Update "What we're not doing" and phase contents
  • If user answered open questions: Remove from open questions and incorporate into plan
  • Keep the same YAML frontmatter and format

Each phase should ideally be a thin vertical slice that touches all / as many layers as possible for the desired end state. Avoid horizontal phases like 'add all types', 'add API endpoints', 'implement UI'.

Try to find ways to structure the outline so that each phase cuts across multiple layers, services, or module boundaries at least > 1 if at all possible. Each phase should be independently verifiable based on typechecks, tests, build steps, and any other in-repo verification. Ensure you understand codebase patterns for testing and verification, and don't suggest manual testing for a step that could be automated w/ a script, an existing skill, etc.

A horizontal breakdown looks like this:

1. Build the schema 2. Build the API 3. Build the UI 4. Add tests

That creates handoff problems and partially finished work.

A vertical slice cuts through the stack:

1. User can create the simplest version of the thing end-to-end 2. User can edit one field end-to-end 3. User can see the first validation error end-to-end

Each issue should include schema, API, UI, and tests if the slice needs them.

These are intended to be **illustrative**. Not all work lends itself to this type of structure specifically, but you should try to cross module boundaries where able to surface surprises early. Do not structure a phase N such that Phase N+1 must be completed before Phase N can be verified.

6. **Update document** (if changes needed):

  • Update the document at the same `docPath`
  • Reorganize phases as needed
  • Update file changes within phases
  • Update validation approaches
  • Remove answered questions from "Open Questions"

7. **Update the user**

  • Check whether you are already in a worktree: `Bash(git rev-parse --git-dir)`
  • Read the appropriate final output template:

<condition if="git-dir output contains '.git/worktrees/'">

`Read({SKILLBASE}/references/structure_outline_final_answer_in_worktree.md)`

<else>

`Read({SKILLBASE}/references/structure_outline_final_answer.md)`

</condition>

  • Never suggest setting up a worktree when you are already in one.
  • Respond following the template exactly. Do not include a summary or other information. Include cloud permalinks if available.

Document Precedence

When documents conflict, the most recent document wins: **structure outline > TDD > PRD > design discussion > research > ticket**

<guidance>

Cloud Permalinks

When you write or edit documents in .humanlayer/tasks/, a cloud permalink is automatically provided in the hook response.

  • The permalink appears as `additionalContext` after Write/Edit/MultiEdit/Read operations
  • Use this permalink in your final output for easy navigation
  • Example format: `http(s)://{DOMAIN}/artifacts/{artifactId}`

Markdown Formatting

When writing markdown files that contain code blocks showing other markdown (like README examples or SKILL.md templates), use 4 backticks (````) for the outer fence so inner 3-backtick code blocks don't prematurely close it:

# Example README
## Installation
```bash
npm install example

#
Read more
Ships withhumanlayer

HumanLayer runs coding agents (Claude Code, Codex, OpenCode, Pi) on your machines and lets your team steer them from one place: tasks, sessions, plans, and reviews, synced between a desktop app, a web app, and a daemon on each host. This repo holds all of it.

Get the whole plugin

Other skills on humanlayer.