agent-improve
Review this conversation and generate a structured improvement report.
Discover context for qabot. This is called by `/qabot` (or `/autobot` before launching the session) to determine the app database and gather issue context.
$ npx -y skills add metabase/metabase --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/qabot-discoverContext preview
What this command does when you run it.
Discover context for qabot. This is called by `/qabot` (or `/autobot` before launching the session) to determine the app database and gather issue context.
Discover context for qabot. This is called by `/qabot` (or `/autobot` before launching the session) to determine the app database and gather issue context.
The user provided: `$ARGUMENTS`
`$ARGUMENTS` must include a `--output-dir <PATH>` flag — the caller (`/qabot` or `/autobot`) generates the per-run path. Discover never picks a directory itself, so nothing is ever written to a shared `.bot/qabot/...` location.
Parse `$ARGUMENTS` for `--output-dir <PATH>`. If absent, stop and tell the caller to pass `--output-dir`. Set `OUTPUT_DIR=<PATH>` and `TIMESTAMP=` the trailing timestamp portion of the path. All artifacts in subsequent steps go directly under `<OUTPUT_DIR>/`.
Parse the remaining arguments as: `[linear-issue-id]`
If a Linear issue ID was resolved, fetch the issue details:
./bin/mage -bot-fetch-issue <ISSUE_ID>
Save the output to `<OUTPUT_DIR>/linear-context.txt` using the `Write` tool.
Try to fetch the PR description for the current branch:
gh pr view --json title,body
If a PR exists, save the output to `<OUTPUT_DIR>/pr-context.txt` using the `Write` tool.
Check if the branch has commits beyond master:
git log --oneline origin/master..HEAD
If the log is empty (no commits beyond master), add `BRANCH_WARNING=no-local-commits` to config.env in step 6.
QABot always uses postgres — it tests the branch's changes, not database-specific bugs.
Write the structured result to `<OUTPUT_DIR>/config.env` using the `Write` tool:
APP_DB=postgres LINEAR_ISSUE_ID=<resolved-id-or-empty> TIMESTAMP=<TIMESTAMP> OUTPUT_DIR=<OUTPUT_DIR>
Metabase is the easy, open-source way for everyone in your company to ask questions and learn from data.
Repo: metabase/metabase
Review this conversation and generate a structured improvement report.
Tear down and remove an autobot session (worktree, Docker containers, and tmux).
List all autobot sessions with status information.
Print the most recent `result.md` for an autobot session, so the user can see how a bot is doing without attaching to its tmux session.
Stop an autobot session (kill tmux and dev environment, but keep the worktree).
Launch a bot command in an isolated autobot session with its own worktree, backend, and frontend.