Build Unplanned logo

Build Unplanned

Community
etr
build-unplanned

Build a feature from description with worktree isolation and TDD. Optionally pass --on-unrelated-failure stop-and-ask|expand-and-fix|ignore-and-merge to choose how validation handles gate failures confidently unrelated to the active project (default stop-and-ask). Usage /groundwork:build-unplanned "Add user login" [--on-unrelated-failure mode]

Overview

Publisheretr
Repositorygroundwork
Skill namebuild-unplanned
Stars
45
Forks
4
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by etr on GitHub. Read the source before you install it.

Installation

Install the Build Unplanned AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/etr/groundwork/tree/main/skills/build-unplanned
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/etr/groundwork.git /tmp/groundwork
mkdir -p .claude/skills
cp -r /tmp/groundwork/skills/build-unplanned .claude/skills/build-unplanned
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Build Unplanned in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Build Unplanned on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Build Unplanned is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Build Unplanned Feature

Thin orchestrator for ad-hoc feature development without existing task definitions. Delegates to plan-task (blurb mode), implement-task, and validate.

Token Discipline

This skill orchestrates long multi-agent workflows. Every turn re-reads the full context window, so unnecessary turns are expensive.

  1. No narration turns. Do not output text-only turns like "Let me understand your feature" or "Now I'll dispatch implementation." Combine text with a tool call in the same turn, or skip the text entirely.
  2. Batch tool calls. When multiple tool calls are independent, issue them all in one turn.
  3. No waiting updates. Do not output "Waiting for results..." turns. Wait silently until results arrive.
  4. Keep context lean. Do not read file contents you won't use directly. Pass file paths to subagents and let them read in their own context windows.

Pre-flight: Model Recommendation

Your current effort level is {{effort_level}}.

Skip this step silently if effort is high, xhigh, or max (the scale is low < medium < high < xhigh < max, so xhigh and max are already above high) AND you are Sonnet or Opus. If effort is low or medium (i.e. below high), you MUST show the recommendation prompt — regardless of model. If you are not Sonnet or Opus, you MUST show the recommendation prompt — regardless of effort level.

Otherwise → use AskUserQuestion:

json
{
  "questions": [{
    "question": "Feature development benefits from consistent multi-domain reasoning.\n\nRecommended: Sonnet or Opus at high effort.\n\nTo switch: cancel, run `/effort high` (and `/model sonnet` if on Haiku), then re-invoke.",
    "header": "Effort check",
    "options": [
      { "label": "Continue anyway" },
      { "label": "Cancel — I'll switch first" }
    ],
    "multiSelect": false
  }]
}

If the user selects "Cancel — I'll switch first": output the switching commands and stop. Do not proceed with the skill.

Step 0: Resolve Project Context

  1. Monorepo check: Does .groundwork.yml exist at the repo root?
    • If yes → Is {{project_name}} non-empty?
      • If empty → Invoke Skill(skill="groundwork:select-project") to select a project, then restart this skill.
      • If set → Project is {{project_name}}, specs at {{specs_dir}}/.
    • If no → Continue (single-project repo).
  2. CWD mismatch check (monorepo only):
    • Skip if not in monorepo mode or if the project was just selected above.
    • If CWD is the repo root → fine, proceed.
    • Check which project's path CWD falls inside (compare against all projects in .groundwork.yml).
    • If CWD is inside the selected project's path → fine, proceed.
    • If CWD is inside a different project's path → warn via AskUserQuestion:

      "You're working from <cwd> (inside [cwd-project]), but the selected Groundwork project is [selected-project] ([selected-project-path]/). What would you like to do?"

      • "Switch to [cwd-project]"
      • "Stay with [selected-project]" If the user switches, invoke Skill(skill="groundwork:select-project").
    • If CWD doesn't match any project → proceed without warning (shared directory).
  3. Proceed with the resolved project context.

Step 1: Parse Feature Description

  • Argument provided: Use the argument text as the feature blurb.
  • No argument: Use AskUserQuestion to ask:

    "What feature would you like to build? Describe it briefly."

Step 2: Plan → plan-task

Call Skill(skill="groundwork:plan-task") with the blurb from Step 1 in the conversation context. Do NOT pass a task_id — this triggers blurb/feature mode in plan-task, which will:

  • Load existing specs (if any)
  • Call understanding-feature-requests for requirement clarification
  • Generate a FEATURE-<slug> identifier
  • Spawn a Plan agent and persist the plan

Parse the output:

  • RESULT: PLANNED | plan_file_path=<path> | identifier=<id> | branch_prefix=<prefix> → Save plan_file_path, identifier, branch_prefix. Proceed.
  • RESULT: FAILURE | ... → Report the failure to the user and stop.

Step 2.5: Confirm Start

Use AskUserQuestion:

"[identifier] — plan ready. Proceed to implementation?"

  • Option 1: "Yes, begin implementation"
  • Option 2: "Stop here — I'll review the plan first"

If "Stop here": Print the plan file path and stop:

Plan saved to: <plan_file_path>

To resume implementation later:
/groundwork:implement-task <plan_file_path>

Step 3: Implement → implement-task

Call Skill(skill="groundwork:implement-task") with plan_file_path in the conversation context. Do NOT pass a task_id.

Parse the output:

  • RESULT: IMPLEMENTED | worktree_path=<path> | branch=<branch> | base_branch=<bb> → Save values. Proceed.
  • RESULT: FAILURE | ... → Report failure to the user and stop.

Step 3.5: Optional Context Clear Pause

Use AskUserQuestion:

"Implementation complete for [identifier]. Validation runs 9 reviewer agents next and can compound context. Clear context before validation?"

  • Option 1: "Continue to validation now"
  • Option 2: "Stop here — I'll clear and resume manually"

If "Continue to validation now": Proceed to Step 4.

If "Stop here": Print resume instructions and STOP:

## Paused before validation

Implementation is committed in:
- **Worktree:** `<worktree_path>`
- **Branch:** `<branch>`
- **Base branch:** `<base_branch>`

To resume validation in a clean context:

1. Run `/clear` to clear Claude Code context
2. `cd <worktree_path>`
3. Run `/groundwork:validate`

After validation passes, merge manually from the project root:

    cd <project_root>
    git checkout <base_branch>
    git merge --no-ff <branch>
    git worktree remove <worktree_path>
    git branch -d <branch>

Step 4: Validate

  1. cd into the worktree path from Step 3
  2. Call: Skill(skill="groundwork:validate"). When the invocation carried --on-unrelated-failure <mode> other than the default, include the flag in that call's arguments: --on-unrelated-failure <mode>
  3. The validate skill will run 9 verification agents in parallel and fix issues autonomously.

After validate completes:

  • All agents approved → Proceed to Step 5
  • Validation PASSED-WITH-WAIVERS (...) (only possible with --on-unrelated-failure ignore-and-merge) → Proceed to Step 5, relaying the waived-gate lines into the Step 5 merge question; never present a waived gate as passed
  • Validation failed → Report failure and worktree location for investigation, stop
  • Stuck on recurring issue → Report the stuck finding and stop

Step 5: Merge Decision

From the project root (NOT the worktree), handle merge:

Use AskUserQuestion to ask:

"Implementation and validation complete for [identifier]. Would you like me to merge this into [base-branch] now?"

  • Option 1: "Yes, merge now"
  • Option 2: "No, I'll merge manually later"

Wait for user response before proceeding.

If merging:

  1. Ensure you are in the project root (cd out of worktree if needed)
  2. Checkout base branch: git checkout <base-branch>
  3. Merge: git merge --no-ff <branch> -m "Merge <branch>: [Feature Title]"
  4. If success: Remove worktree and delete branch:
    bash
    git worktree remove <worktree_path>
    git branch -d <branch>
  5. If conflicts: Report conflicts and keep worktree for manual resolution

If not merging or conflicts occurred:

markdown
## Implementation Complete in Worktree

**Location:** `<worktree_path>`
**Branch:** feature/<identifier>

When ready to merge:
```bash
git checkout [base-branch]
git merge --no-ff <branch>
git worktree remove <worktree_path>
git branch -d <branch>

To continue working:

bash
cd <worktree_path>

## Step 6: Report

Output implementation summary:

```markdown
## Feature Complete: [identifier]

**What was done:**
- [summary]

**Validation:** Passed ([N] iteration(s))

**Worktree status:** [Merged to <branch> | Pending at `<worktree_path>`]

Output the final result line:

RESULT: SUCCESS | [one-line summary]

Reference

Branch Naming

This skill uses feature/ prefix (not task/) to distinguish ad-hoc features from planned tasks:

  • Planned tasks: branch convention from the worktree-identity helper (task/TASK-NNN single-project, task/<project>/TASK-NNN monorepo)
  • Ad-hoc features: feature/FEATURE-<slug>

Standalone Usage

This skill is designed for standalone use when:

  • No product specs exist
  • No task definitions exist
  • Quick prototyping is needed
  • Ad-hoc feature requests come in

For planned work with existing specs, use groundwork:work-on instead.

Frequently asked questions

What does the Build Unplanned AI skill do?

Build a feature from description with worktree isolation and TDD. Optionally pass --on-unrelated-failure stop-and-ask|expand-and-fix|ignore-and-merge to choose how validation handles gate failures confidently unrelated to the active project (default stop-and-ask). Usage /groundwork:build-unplanned "Add user login" [--on-unrelated-failure mode]

Why use Build Unplanned on TypingMind?

Because you install it once and use it with any model. Build Unplanned is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Build Unplanned in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/etr/groundwork/tree/main/skills/build-unplanned. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Build Unplanned?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Build Unplanned?

As many as you like. As long as a model supports skills, you can use Build Unplanned with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Build Unplanned AI skill free?

Yes. It is published on GitHub by etr under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇