/groundwork:setup-repofrom groundwork
Configures a repository for Groundwork by detecting single-project or monorepo structure and creating .groundwork.yml for monorepos.
Ships in groundwork. 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.
Configures the repository structure for Groundwork. Detects or asks whether this is a single-project repo or a monorepo, and creates .groundwork.yml for monorepos.
Look for common monorepo patterns:
package.json, go.mod, Cargo.toml, etc.apps/, packages/, services/, projects/specs/ directory (suggests single-project)pnpm-workspace.yaml, lerna.json, turbo.json)Use AskUserQuestion to confirm:
"I've analyzed your repo structure. Is this:"
- Single project — One project, specs at the repo root
- Monorepo — Multiple projects, each with their own specs
If monorepo indicators were found, mention them:
"I noticed [apps/, packages/, workspace config], which suggests a monorepo structure."
If single project:
.groundwork-plans/, .debug/, and .architecture/ are in .gitignore (add any missing entries) — plan-task, debug, and swarm-design-architecture write per-task working files there. All three patterns are unanchored, so they cover any depth.specs/ at the repo root, plans in .groundwork-plans/.".groundwork.yml created.If monorepo:
AskUserQuestion with multi-select to confirm project list..groundwork.yml:version: 1
projects:
<project-name>:
path: <relative/path>
<project-name>:
path: <relative/path>
.groundwork.local, .groundwork-plans/, .debug/, and .architecture/ are in .gitignore (add any missing entries). Each project's plans live in <project-path>/.groundwork-plans/ and its journals in <project-path>/.debug/ and <project-path>/.architecture/; the unanchored entries cover every project, so no per-project entries are needed.AskUserQuestion. The top-level Step 4: Persist Selection below then persists that choice; exported GROUNDWORK_PROJECT variables are not needed and would outrank a later /groundwork:select-project.For monorepo mode, persist the selection through the same mechanism /groundwork:select-project uses:
node ${CLAUDE_PLUGIN_ROOT}/lib/persist-project.js "<selected-name>"
This keys state per terminal pane (and pins a per-chat snapshot where hooks observe the selection), so concurrent sessions do not clobber each other. Do not write .groundwork.local by hand — it is a legacy format read only for one-time migration.
Confirm: "Project selected. Specs will be stored in <path>/specs/."
This skill can also be invoked to add or remove projects from an existing .groundwork.yml:
| Situation | Response |
|---|---|
.groundwork.yml already exists | Show current config, ask if user wants to modify |
| No obvious project directories | Ask user to specify paths manually |
| User says single-project but monorepo indicators exist | Accept user's choice, note the indicators |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (etr/groundwork) — no native marketplace selected
npx claudepluginhub p/etr-groundwork44 skills in this plugin
/build-unplannedBuild a feature from a description with worktree isolation and TDD. Optional flag - --on-unrelated-failure stop-and-ask|expand-and-fix|ignore-and-merge - how validation treats gate failures unrelated to the active project (default stop-and-ask)./check-specs-alignmentVerify alignment between code and specs./create-tasksGenerate implementation tasks from architecture document./debugUse when investigating bugs, unexpected behavior, test failures, or any code that does not work as expected - enforces systematic root cause analysis before any fixOther plugins' skills for the same job