AGENT SKILL

fix-it-here

When a review finding or a defect met during the work may stay unfixed, when an answer to a finding holds, and how to fix a finding well. Load it before you answer or judge an answer to a finding, let an agent leave something unfixed, or file an issue from a PR.

License 许可
MIT
所属仓库
zgeoff/hq
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
fix-it-here
description
When a review finding or a defect met during the work may stay unfixed, when an answer to a finding holds, and how to fix a finding well. Load it before you answer or judge an answer to a finding, let an agent leave something unfixed, or file an issue from a PR.

03 SKILL.md 正文

Fix it here

Fix every finding, and every defect you meet while you do the work, in the PR at hand, whatever its size. A filed issue costs a new agent and a new brief. A fix now costs minutes, with the context fresh.

For each finding, you hand back one answer in the finding's thread: a fix with its commit, or one of the answers below with its reason. When you judge another agent's answer, you hand back whether it holds.

Watch for these:

  • leaving a finding for a reason that doesn't hold, such as size or time;
  • answering not-a-defect to a finding that is true but small;
  • patching the same logic a third time.

For z-review and the fleet's other terms, see owner-calls.

Key rules

  • Leave one unfixed: only for a fix in another repo, or one that needs a choice the PR's Linear issue doesn't settle.
  • Answer a finding: fixed <sha>, not-a-defect, deferred GEO-<n> or accepted-risk, each under its own condition.
  • Judge an answer: reply in the thread, and leave it open when the answer fails.
  • Fix it well: find every break of the rule in one pass, and redesign logic you patched twice.

Leave one unfixed

You may leave a finding unfixed for one of two reasons:

  1. The fix is in another repo. Name a file path in that repo in your answer.
  2. The fix needs a choice that the PR's Linear issue doesn't settle. Name the choice in your answer, such as a public interface, a schema, a config format, or behaviour that users or other sessions rely on. This reason doesn't hold when the issue already makes the choice. It also doesn't hold when the fix works the same whichever way the choice goes.

No other reason holds, including:

  • size, time, or a round limit;
  • another push or restack;
  • a narrow brief, or a missing permission.

Fix a security defect in the PR, whatever the reason given, when it is in the PR's repo. When it is in another repo, give it a follow-up issue as below, and mark the issue as security.

For a reason that holds, answer in the finding's thread with the reason and the sections of a new Linear issue for the finding: Outcome, Context (file, line, evidence), Scope and Acceptance. Leave the thread open. z-review files that issue, and only z-review files one. It then replies deferred GEO-<n> in the thread.

Answer a finding

Reply in the finding's thread. Start with the answer, then give one line of reason.

  • fixed <sha>: use it once you have pushed the fix. Name the commit that holds the fix as it stands at the PR's head, after any restack. The reviewer then confirms the fix at that head.
  • not-a-defect: use it only when the finding is wrong about the code, or quotes a skill rule that doesn't apply. A true finding, however small, is a defect. When the finding quotes a rule from a shared skill, one that syncs into many repos, quote what shows the rule doesn't apply:
    • for code-style and testing, the shared skill's own words, because a repo's project skill can only add rules to these;
    • for docs-writing, the shared skill's words or a line of the repo's project skill, because the project skill wins.
  • deferred GEO-<n>: z-review posts it, for one of the two reasons above, once it has filed the issue.
  • accepted-risk: use it only when the owner's answer is on record, as owner-calls says.

Judge an answer

Judge another agent's answer by the conditions above, and reply in the finding's thread. When the answer fails, give the file and line in 1 to 3 sentences, and tell the agent to fix it here. Leave the thread open.

Fix it well

  • When a finding you fix cites a rule, re-read the rule. Search the whole diff for other breaks of that rule, and fix them all in one push.
  • When you have patched the same logic twice, redesign it. Never patch it a third time. When the redesign needs a choice the PR's Linear issue doesn't settle, that is reason 2 above.
  • When you fix a stacked PR, restack the PRs above it, and push them all together.
  • Put a one-off script or codemod in the PR description, in a collapsed <details> block, never in a commit. A script that the repo runs again stays in the repo.
  • Before a push, check every claim in the PR body against a test or the diff.

Reply: your answer to each finding, or whether each answer you judged holds.

04 同仓库更多 Skills

zgeoff
zgeoff/hq

tickets

What a good Linear issue is in team GEO - its sections, when it is Ready, its fields, the Actions an agent may take, cross-repo and umbrella work, and how to save it. Load it before you write, rewrite, groom, split or save an issue, or judge whether one is Ready.

★ 0
zgeoff
zgeoff/hq

release

How z-release takes merged work to live across the zgeoff repos - release PRs, the nightly batch, cloud deploys, bump PRs, host switches, the nixie memory-store backup check, recovery and the hard timing rules. Load it in z-release's session, and before any release, deploy, host switch, atc upgrade or rollback.

★ 0
zgeoff
zgeoff/hq

preview-qa

Runs live checks for the owner's issues, on a PR's preview environment before the merge and read-only on production once the release ships, records the evidence on the issue, closes it, and hands back only the checks that need the owner. Use when z-review sends a preview check with an issue, its PR and the items to check, or when hq or z-release messages "Shipped, now live-check".

★ 0
zgeoff
zgeoff/hq

pr-review

How z-review reviews and merges every PR in the zgeoff repos, and files the only follow-up issues a PR may leave. Load it when hq messages "Final: GEO-n (repo#n at <sha>)", when an agent answers a finding, when a session sends z-review a PR to merge, or before an issue is filed from a PR.

★ 0
zgeoff
zgeoff/hq

owner-calls

What only the owner decides, how a session puts something to the owner, how the owner's answers count, and the fleet's shared terms. Load it before you flag an issue for the owner, send a decision or a hands-on step for the owner, decide something under a grant, or act on an answer of the owner's.

★ 0
zgeoff
zgeoff/hq

linear-triage

How z-triage keeps the owner's Linear workspace accurate: grooming every open issue, moving it to Ready once it meets the criteria, acting on hq's alerts, and queuing the owner's questions as calls. Load it for each scheduled pass and check, when a session asks for a check now, when hq sends an alert, and before an issue is written or rewritten.

★ 0