finishing-grove-workspace
Original:🇺🇸 English
Translated
Use when implementation is complete, all tests pass, and the agent is operating inside a Grove workspace that needs to be resolved or cleaned up
13installs
Sourcechrisbanes/grove
Added on
NPX Install
npx skill4agent add chrisbanes/grove finishing-grove-workspaceTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →I'm using the finishing-grove-workspace skill to wrap up this Grove workspace.
Workflow
Step 1: Detect workspace
bash
test -f "$(git rev-parse --show-toplevel)/.grove/workspace.json"If is not found: this is not a Grove workspace. Use instead.
.grove/workspace.jsonsuperpowers:finishing-a-development-branchStep 2: Verify tests pass
Auto-detect the test command from marker files:
| Marker file | Test command |
|---|---|
| |
| |
| |
| |
| |
| |
If tests fail, stop. Do not present completion options.
Step 3: Read workspace metadata
bash
cat .grove/workspace.jsonExtract , , and from the JSON output.
idgolden_copybranchStep 4: Present options
Present exactly these four options:
- Push branch and create a Pull Request
- Push branch and destroy workspace
- Keep workspace as-is
- Discard work and destroy workspace
Step 5: Execute choice
Option 1: Push + PR
Derive the PR title from the branch name and the body from a summary of commits since the golden copy.
bash
git push -u origin <branch>
gh pr create --title "<title>" --body "<body>"
grove destroy <workspace-id>
cd <golden-copy-path>Option 2: Push + destroy
bash
git push -u origin <branch>
grove destroy <workspace-id>
cd <golden-copy-path>Option 3: Keep as-is
Report: "Keeping workspace at <path>."
Option 4: Discard
Require the user to type "discard" before proceeding.
bash
grove destroy <workspace-id>
cd <golden-copy-path>Quick Reference
| Option | Push branch | Create PR | Keep workspace | Cleanup |
|---|---|---|---|---|
| 1. Push + PR | yes | yes | no | yes |
| 2. Push + destroy | yes | no | no | yes |
| 3. Keep as-is | no | no | yes | no |
| 4. Discard | no | no | no | yes |
Common Mistakes
- Skipping test verification — never present completion options before confirming tests pass.
- Open-ended questions — always present the structured four-option list; do not ask "what would you like to do?" in free form.
- Automatic workspace cleanup — if the user selects option 3, do not run . Respect the choice to keep the workspace.
grove destroy - No confirmation for discard — option 4 destroys uncommitted work; always require the user to type "discard" before executing.
Red Flags
- missing but
.grove/workspace.jsonpresent — the agent is on the golden copy, not in a workspace. Route to.grove/config.json.superpowers:finishing-a-development-branch - fails — the workspace ID may be stale. Run
grove destroyto confirm the workspace exists before retrying.grove list
Integration
- Replaces: when in a Grove workspace
superpowers:finishing-a-development-branch - Called by: (Step 7),
superpowers:subagent-driven-development(Step 5)superpowers:executing-plans - Pairs with:
grove:using-grove