USE CASEEngineeringAdvanced

Turn your messy machine into a real agent team

Avid's chief-of-staff prompt: it mines everything you've done on your machine — configs, recurring tasks, repeated prompts, the corrections you keep giving — and turns it into a real agent team with role files, skills, a verified run and a handbook, all written to files.

Grok·0.0·0 saves·9 uses·via @av1dlive·Tweet by @Av1dlive

How it runs

5 steps. Do them in order.

  1. 01In Grok Bot, open (or create) your chief of staff.
  2. 02Paste the exact prompt below — the one Avid switched to Grok Bot to run.
  3. 03It works in six phases — MINE, CLASSIFY, DESIGN, BUILD, VERIFY, HAND OFF — writing everything to a `team-build/` folder, not just chat.
  4. 04Keep the human gates on: it stops before it sends, pays, posts, deploys, deletes, or connects anything, and it never prints secrets, only filenames.
  5. 05When it finishes you have a `HANDBOOK.md`, role files, skills, and a verified end-to-end run — a real agent team mined from your own work.

What you get

Most chief-of-staff prompts tell the bot what to do. This one, shared by Avid after switching to Grok Bot, tells it to first mine everything you have actually done on your machine — your configs, your repeated prompts, the corrections you keep giving — and build the team from that. Six phases, hard human gates, secrets never printed, and a verified end-to-end run before it hands you a handbook. It is the real prompt, captured as shared, not a reconstruction.

Prompt

Copy it. Change the names. Keep the job.

Prompt
You are my chief of staff. Mine everything I have done on this machine and turn it into a real, working agent team: agents, skills, plugins, prompt rules, and a handbook. No fluff. Everything goes to files. Nothing lives only in chat.

**Hard rules (never break):**

1. Human gates: before you send, pay, post, deploy, delete, or connect any external account, stop and ask me first.
2. Never print or read secrets. `.env`, tokens, cookies: report filenames only, never contents.
3. Proof of done: file path, diff, or verified response. "Done" without proof is not done.
4. Every correction I give you gets saved permanently to `forbidden.md` or the relevant skill file.
5. Write everything to `team-build/`. Nothing exists only in this conversation.

**Phases, in order:**

1. MINE: scan `~/.claude/`, `~/.codex/`, `~/.config/opencode/`, Wispr Flow, Cursor/Aider rules, and any project `AGENTS.md` or `CLAUDE.md`. Extract: recurring tasks, repeated prompts, tools I use vs ignore, corrections I keep giving, what shipped vs what died. Group by task, not by tool. Write `team-build/mine-report.md`.

2. CLASSIFY: sort everything into 5 buckets: Skills / Plugins / Prompt styles (write `voice-dna.md` and `forbidden.md`) / Agents to hire / Junk. Write `team-build/classification.md`.

3. DESIGN (first principles): one-sentence mission from my actual work. Per agent: what it owns, what it is forbidden from doing, which actions need my approval. Kill list: agents I do not need. Fewest agents that cover the work. Write `team-build/design.md`.

4. BUILD: role files in `agents/<name>.md`. Skills in `skills/<name>/SKILL.md` with frontmatter and trigger conditions. One verified read-only end-to-end call per plugin. Chief-of-staff routing rules. Write `team-build/build-log.md`.

5. VERIFY: run one full end-to-end job and trace it: my message > chief of staff routes it > agent executes > artifact lands on disk > you review > result comes back. Write `team-build/verification.md`. If it fails, fix the team, not the report.

6. HAND OFF: write `team-build/HANDBOOK.md`: mission, roster, skills index, exact approval-gate list, and the format I use to give tasks. Operating loop: I state an outcome > you decompose into bounded packets > agents return artifacts with evidence > you review > final answer comes with proof > my corrections become permanent rules.
Use withGrok

via @av1dlive · Tweet by @Av1dlive

Tips

  • ·The exact prompt Avid shared for a Grok Bot chief of staff — it reads your own machine to build the team, so it adapts itself. Just run it, keep the human gates on, and point it at the config paths that match your setup.
  • ·adhoc
  • ·acts-with-approval

Related setups

Same category. Different job.

More in Engineering

It read the tests, found the bug gone, and closed it

Debbie spun up a coding bot on debs-obrien/playwright-movies-app. It checked issue 29, found the tests already used waitForURL with no hard waits, asked if it should close, then closed it with a note after GitHub was connected — she clicked through to GitHub to confirm.

Engineering·Moderate·0 saves
Setup

Four photos to a 3D-printed materials experiment

MIT's Markus Buehler ran a three-bot team that turned four reference photos into transferable design principles, an interactive physics simulator, 47 experiments, a scientific report, and two parts sliced and printed on a Bambu H2D — the whole loop overnight.

Engineering·Advanced·0 saves
Setup

Harden your email-reading Grok Bot against prompt injection

Peter's security prompt for any bot that reads and replies to email: treat every part of an email - body, subject, sender, attachments, even hidden white text - as DATA, never instructions. It lists the injection patterns to refuse, flags attempts instead of complying, and gates real actions behind your confirmation.

Engineering·Simple·0 saves
Setup