|
| 1 | +--- |
| 2 | +name: groove-admin-install |
| 3 | +description: "Install groove backends, companions, and AGENTS.md bootstrap. Run once per repo." |
| 4 | +license: MIT |
| 5 | +allowed-tools: Read Write Edit Glob Grep Bash(git:*) Bash(beans:*) Bash(gh:*) Bash(linear:*) Bash(npx:*) Bash(mkdir:*) AskUserQuestion |
| 6 | +metadata: |
| 7 | + author: andreadellacorte |
| 8 | +--- |
| 9 | + |
| 10 | +<!-- groove:managed β do not edit; changes will be overwritten by groove update --> |
| 11 | + |
| 12 | +# groove-admin-install |
| 13 | + |
| 14 | +## Outcome |
| 15 | + |
| 16 | +All groove backends are installed in dependency order, groove-wide companion skills are installed, AGENTS.md contains the session bootstrap, and the repo is ready for use. |
| 17 | + |
| 18 | +## Acceptance Criteria |
| 19 | + |
| 20 | +- Task and memory backends installed |
| 21 | +- Companion skills installed (find-skills, agent-browser, pdf-to-markdown) |
| 22 | +- `AGENTS.md` contains the `<!-- groove:prime:start -->` session bootstrap |
| 23 | +- `AGENTS.md` contains a `<!-- groove:task:start -->` stub (if `tasks: beans`) |
| 24 | +- User sees a summary of what was installed and what was written |
| 25 | + |
| 26 | +## Steps |
| 27 | + |
| 28 | +Run in order: |
| 29 | + |
| 30 | +1. If `.groove/index.md` does not exist, run `/groove-admin-config` to create it |
| 31 | +2. Run `/groove-utilities-task-install` β installs the configured task backend (e.g. beans) |
| 32 | +3. Run `/groove-utilities-memory-install` β creates memory directories |
| 33 | +4. Install companion skills: |
| 34 | + - **find-skills** (downloaded): check `ls .agents/skills/find-skills/SKILL.md`; if absent: `npx skills add https://github.com/vercel-labs/skills --skill find-skills` |
| 35 | + - **agent-browser** (downloaded): check `ls .agents/skills/agent-browser/SKILL.md`; if absent: `npx skills add https://github.com/vercel-labs/agent-browser --skill agent-browser` |
| 36 | + - **pdf-to-markdown** (embedded): check `ls .agents/skills/pdf-to-markdown/SKILL.md`; if absent: `npx skills add andreadellacorte/groove --skill pdf-to-markdown` |
| 37 | + - Report each as installed / already-present / failed |
| 38 | +5. Scaffold hooks and cache directories: |
| 39 | + - Create `.groove/hooks/` if it does not exist (with a `.gitkeep`) |
| 40 | + - Create `.groove/.cache/` if it does not exist (with a `.gitkeep`) |
| 41 | + - Report each as created / already-present |
| 42 | +6. Apply git strategy β write `.groove/.gitignore` from `git.*` sub-keys in `.groove/index.md` (see `/groove-admin-config` for rules) |
| 43 | +7. Write the session bootstrap to `AGENTS.md`: |
| 44 | + - Replace any existing `<!-- groove:prime:start -->` / `<!-- groove:prime:end -->` section with: |
| 45 | + ``` |
| 46 | + <!-- groove:prime:start --> |
| 47 | + **Run at the start of every session:** |
| 48 | + `/groove-utilities-prime` β loads groove workflow context into the conversation |
| 49 | + <!-- groove:prime:end --> |
| 50 | + ``` |
| 51 | + - If section absent, append to end of `AGENTS.md`; preserve all other content |
| 52 | +8. `/groove-utilities-task-install` already wrote the `<!-- groove:task:start -->` stub in step 2 β no additional AGENTS.md write needed here |
| 53 | +
|
| 54 | +## Constraints |
| 55 | +
|
| 56 | +- Read `.groove/index.md` for `tasks:` and `git.*` config before running |
| 57 | +- If `.groove/index.md` does not exist, `/groove-admin-config` is run first (step 1) to create it |
| 58 | +- Dependency order for backends must be respected: task β memory β companions |
| 59 | +- Each step reports installed / already-present / failed |
| 60 | +- `AGENTS.md` update is additive per section β preserve all other content |
| 61 | +- If any step fails, report it clearly but continue with remaining steps |
| 62 | +- Companion skills (find-skills, agent-browser, pdf-to-markdown) are hardcoded here, not read from any config file |
| 63 | +- Report a final summary: |
| 64 | + ``` |
| 65 | + β task backend (beans) |
| 66 | + β memory backend β memory dirs ready |
| 67 | + β companion: find-skills |
| 68 | + β companion: agent-browser |
| 69 | + β companion: pdf-to-markdown |
| 70 | + β hooks: .groove/hooks/ ready |
| 71 | + β AGENTS.md updated (groove:prime, groove:task) |
| 72 | + ``` |
0 commit comments