Check whether this card's code meets the acceptance criteria
日本語の概要は準備中です。原文の説明を表示しています。
Run a live investigation as an operator-driven query loop: the operator runs each query on the live system and pastes the result back, and you guide the investigation one labelled query at a time. Use alongside support-assist (which covers what to investigate) whenever someone is pasting query or command output back from a deployment, especially during an incident. Covers labelling, pacing, making each query decide the next step, version-grounding, and keeping queries cheap and correctly classified.
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
The operator has access to a live system and you don't. They run what you suggest and paste the output back, and you read it and choose the next step. support-assist covers what to investigate. This skill covers how to run the loop so the operator always knows where they are.
Open the session with a short walkthrough so the operator knows how the loop works, then wait for their reply before suggesting anything else:
Start a read-only database session on the server with
bestool t p(bestool tamanu psql). Tell me the problem, and I'll give you queries to run, each with a tag attached. Copy each result back here, including the tag. To practise, run this one and paste the result with its tag:SELECT 1 + 1; -- A0Say "skip" if you already know how this works.
bestool t p is read-only by default, which is what you want, since every query is suggested by you. bestool psql is its own client, not standard psql. Before suggesting meta-commands, write mode (-W, \W, explicit COMMIT;) or snippets, check docs/sops/connect-psql.md and the bestool psql README. For deployments without bestool, such as Kubernetes, connect-psql.md has the alternative.
If they paste the result, confirm it came through with its tag and ask for the problem. If they say skip, go straight to the problem. If the operator has already described the problem, still show the walkthrough, but keep it to those few lines.
Each line of investigation gets a letter; each query in it gets a number: A1, A2, B1… The first time a letter is used, say in one line what question it covers (for example "A: failing and retrying, or just slow?").
Labels stay stable for the whole session. Numbering never resets. A corrected query keeps its number, so a fix to A1 is still "A1, fixed". A re-run of a query keeps its label too.
Put the label as a comment after the final ;, so the operator can copy the query and its result together in one selection:
SELECT ...
FROM ...;
-- A1
When a result comes back, refer to it by its label.
Before suggesting a query, know what each possible result would mean for the next step, and say so in a line or two: "if X, it's case 1 and we go to B2; if Y, it's case 2 and we check A3". Don't suggest a query whose result wouldn't change the next step.
docs/deployment-context.md), and read that version's code with git show vX.Y.Z:<path>, not main. Behaviour, schema and table names can differ between releases, sometimes a lot.database/model/ yml at that version. A worked example: logs.debug_logs.info is json, not jsonb, so info ? 'error' fails with operator does not exist: json ? unknown. info->>'error' IS NOT NULL works for either type.pg_stat_* and pg_class estimates, and short LIMITs over full scans.EXPLAIN without ANALYZE to see a plan. EXPLAIN ANALYZE actually runs the query.ANALYZE. Label it and give its classification.Classify every suggested action on the support pack's ladder (docs/README.md), and treat docs/ruled-out-actions.md as a hard filter, following the rules in support-assist. The classification goes on the same line as the label, for example -- C1 [approved-mitigation].
When the operator, the deployment and the data use different timezones, convert them explicitly once, near the start (for example "site is UTC+12, you are on NZDT (UTC+13), database timestamps are UTC"). After that, state which timezone each time is in. Take DST into account for the actual date.
A central server's sync lookup build wasn't committing, so facility pulls were stale.
since cursor on every attempt since a known time, which meant retries of the same work, each failing with a serialisation error.EXPLAIN of that statement's shape (B3), not waiting longer.Each query decided the next one, and the labels let the operator paste results back with no extra explanation.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Check whether this card's code meets the acceptance criteria
日本語の概要は準備中です。原文の説明を表示しています。
Summarise the unit and e2e tests a branch/PR adds, run only those, and produce a paste-ready report (e.g. for a Linear card). Use when asked to 'summarise added tests', 'run the new tests', 'what tests did this PR add', or to prove a card's test coverage.
日本語の概要は準備中です。原文の説明を表示しています。
Run a quick UX/UI workshop using ASCII-art sketches
日本語の概要は準備中です。原文の説明を表示しています。
Write automated tests for unticked scenarios in this card's test cases
日本語の概要は準備中です。原文の説明を表示しています。
Review code changes on this card for likely bugs, regressions, and missed edges
日本語の概要は準備中です。原文の説明を表示しています。
Maintain a support docs pack — dedup, length budgets, and no splintering — and land changes as a reviewed pull request. Use when a support thread, or a hand-off from Support assist, surfaces a new resolution, a correction to an existing one, or a deployment quirk worth recording. Not for ordinary code changes.
日本語の概要は準備中です。原文の説明を表示しています。