/tend-ci-runner:ground-claimsfrom tend-ci-runner
Ensures claims about tool behavior, incidents, or unexecuted code are grounded in source evidence before posting. Prompts verification against documentation, tests, or direct execution.
Ships in tend-ci-runner. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before posting any specific claim — a configuration snippet, command syntax, variable name, or API behavior — find the source text that confirms it: documentation, help output, test expectations, or the code implementing the public interface. Internal implementation code shows what exists internally, not how it's exposed; read the docs or user-facing layer too.
Bad: Saw extra_vars.push(("target", target_branch)) in Rust source → posted a hook example using $WT_TARGET (an environment variable that doesn't exist — hooks use {{ target }} Jinja templates).
Good: Saw ("target", target_branch) in Rust source → read docs/hook.md → confirmed hooks use {{ target }} syntax → posted correct example.
For behavioral claims — "X happens when you run Y" — reading code is not enough. Conditional branches, early returns, and error paths are easy to miss when tracing mentally. Find a test that exercises that exact scenario, or run the command. If neither is feasible, hedge explicitly: "Based on code reading, I believe X, but I haven't verified this end-to-end."
Bad: Read CommandEnv::for_action("commit", config) → saw it constructs an env → concluded wt step commit works in a detached worktree. Missed that for_action() calls require_current_branch(), which errors on detached HEAD.
Good: Read for_action() → noticed it calls require_current_branch() → uncertain whether detached HEAD hits that path → ran cargo build && wt step commit in a detached worktree → confirmed the error → posted accurate answer.
Link to user-facing documentation where a project has it — finding the link forces verifying the claim. Where no source evidence turns up, say so ("I'm not sure of the exact syntax"). An honest gap is fixable; a confident hallucination gets copy-pasted.
Rewriting is authoring. Cross-posting, summarizing, or paraphrasing carries
the same bar for anything added: a config section header inferred from a
command name ([step] from wt step, where the real section is [aliases])
is a fresh claim, not a copy.
When a claim turns on how an external CLI, API, or system behaves, verify by running the code. Two paths, in order:
gh repo clone <owner>/<repo>, then grep for the flag or behavior. Source doesn't lag
itself, and a flag the parser doesn't define doesn't exist.If both fail (GUI-only tool, private repo, environment-specific behavior), cite what you found and name the gap — then see Who to ask below.
Bad: Review asked whether cmux list-workspaces had structured output. Read a mintlify page describing --json → rewrote the recipe to cmux list-workspaces --json | jq ... → committed. The installed cmux had no --json flag; every reader hit a broken recipe.
Good: Same question. Cloned cmux's source repo → grepped the CLI parser for list-workspaces → saw no --json flag defined → replied with the source link and proposed an alternative that matched the actual CLI surface.
Path 1 runs against the live repo. Verifying a skill's own recipe is the
common case, and those recipes write: gh issue close, gh pr comment, git push. Never extract a block programmatically to run it — not by position
(awk on the Nth fence, sed on a line range) and not by anchor: both hand
you a block you haven't read, and the ordinal moves with every edit, so what
runs isn't even the block you meant to test. Read the file, then run the
commands directly. Run the read half and stop before the pipe into the write:
gh issue list --state open --author '@me' --search '"..." in:title' --json number --jq '.[].number'
# ...and read that, rather than piping it into `xargs gh issue close`.
If the write is the part in question, point it at a scratch object you own. A
wrong write is only partly recoverable: reopening an issue leaves the close in
its timeline, and a deleted comment has already fired its issue_comment
event, so any workflow it triggered ran and is still in the run list.
A claim about what a past run executed is read at that run's own commit.
The checkout is the current default branch; a run from earlier is not. Before
explaining a failure in terms of a branch, guard, or helper, read the file at
the run's head, and pin the body's links to that SHA rather than to HEAD. A
fix that landed between the run and the session inverts the reading: the code
being cited as the cause may be the code added because of the failure.
# Bail if the run lookup fails: an empty `ref=` serves the default branch,
# which is the reading this rule exists to prevent.
SHA=$(gh api "repos/{owner}/{repo}/actions/runs/<id>" --jq .head_sha) || exit 1
gh api "repos/{owner}/{repo}/contents/<path>?ref=$SHA" \
-H 'Accept: application/vnd.github.raw'
Fetch it rather than reaching for git show <sha>:<path>: the checkout holds
only what a ref reaches, so the head of a squash-merged or deleted branch is
absent from it, and git show then fails into the same wrong answer — the
fatal: goes to stderr while a | grep -c downstream prints 0,
indistinguishable from a genuine no-match, which reads as "the guard was
absent at that run".
Claims of recurrence use the current run's diagnostic. Read its failing operation, expected and actual result, and the steps it reached. A failed-test list identifies where to look; a truncated log may omit the deciding assertion. Earlier reports describe earlier evidence: attribute their explanations until the current diagnostic confirms them. A shared job, test, or feature does not establish the same failure. Different symptoms may share a cause when the traceback, code, or reproduction establishes that connection. Compose the report from this comparison, keeping an unverified cause distinct from what the run actually did.
A claim about what a past PR proposed is read from its diff. The body, the
comments, and the review threads record what was discussed; only the diff
records what was proposed, and on a PR closed unmerged the two routinely
diverge — the thread is where the author explains what they chose not to do.
Run gh pr diff <n> before writing what a PR changed, clamped, added, or left
alone, including when restating it in a source comment or a PR body that will
outlive the thread. Pass -R <owner>/<repo> for a PR in another repository: a
bare number resolves against the current checkout and returns whatever PR holds
that number there.
Links must be fetched, not guessed. Before pasting any URL, run curl -sI <url> | head -1 and confirm 200. Docs-site slugs are treacherous —
escaping.html, quoting.html, and quote-strings.html are all plausible;
only one (or none) exists.
--jq projections must keep the ID when downstream URLs cite individual
items. Composing actions/runs/<id>, #issuecomment-<id>, or pull/<n>
needs the ID in the projection (databaseId for runs, id for comments,
number for PRs/issues). A projection that kept only timestamps or titles
leaves the bot fabricating the missing ID, and the link 404s. Re-query instead.
gh list commands truncate silently — pass --limit whenever the result set
is the answer. gh issue list, gh pr list, and gh search return 30 items
by default; gh run list returns 20, and nothing in the output says it
truncated. A dedup scan then misses the existing issue past the cap and opens a
duplicate; a survey reports complete coverage of the rows it happened to see. A
count that lands exactly on the cap in force — the default, or the --limit
you passed — is the signature, and an explicit --limit moves that threshold
rather than removing it. Where the set grows with history — closed issues,
every PR — no --limit is wide enough for a dedup: search for the item
(--search "<keywords>"), which matches titles and bodies. Client-side
filtering inside --jq is the worst variant: the filter hides the truncation,
so a capped result reads as a legitimately short one. A wide --limit also needs a narrow projection to
survive the trip back: past roughly 32 KB the harness saves the output to a
file and shows a 2 KB preview, so the scan reads the first item or two and
reports the rest as absent. Total size crosses that line, not any one field —
dropping body is not enough when number,title,state,mergedAt,headRefName
over 200 PRs already runs to 34 KB. Project number,title,state, then read
the bodies of the candidates the titles narrow to.
A bounded read verifies only the part it read. | head -N, | tail -N,
and a --limit below what is being read narrow the evidence without narrowing
the conclusion, and the command still exits 0 — so a read that never reached
the deciding lines reports back as a check that passed. That holds for a
truncated document as much as a truncated result set, for a bound the harness
applied rather than you — a long diff or log saved to a file and previewed —
and for a single specific claim as much as an exhaustiveness claim. Grep the
read for the symbol the claim names, capturing the fetch first so a failed one
cannot read as an absent symbol: DIFF=$(gh pr diff <n>) || exit 1, then
grep -n '<symbol>' <<<"$DIFF". The grep stays small however long the output
is. Where a bounded read is unavoidable, scope the conclusion to what was read.
An exhaustiveness claim needs a method that could have found a
counterexample. Before publishing "all", "every", "none", "the only", or
"exactly complete", name what would make the claim false and confirm the method
can see it. A set difference over two --help outputs finds the flags one
command rejects, never a flag both accept that still must not be forwarded.
The tell is a criterion swap — the method answered a narrower question than
the sentence asserts. Either widen the method, or publish the claim the method
did establish ("no flag the receiving command rejects is missing from the
denylist"), which is worth as much to the reader and stays true.
"Likely" is a stop-sign. A hedge in a user-facing claim — "likely works", "probably parses as", "I think" — means it rests on an unverified guess. Verify and replace the hedge with the answer, or hedge explicitly ("I haven't tested this — would appreciate if you can confirm"). The shape is the tell, not the exact words: an unverified guess dressed as confident analysis erodes trust fastest.
Never ship literal placeholders. <PLACEHOLDER>, PR #PLACEHOLDER,
<SHA>, TBD, XXX, <TODO(fill)> in an issue body, PR body, or comment are
corruption — a deferred substitution that never ran, rendered permanently.
Sequence the work so a referenced artifact exists before the referencing body
is composed: create the PR → read its number → compose the issue with the
number filled in → file it. Where the cross-reference can't be resolved before
posting, omit it or rephrase ("a follow-up PR will…"). Before any gh issue create, gh pr create, or gh ... comment --body-file, grep the body for
those strings and refuse to post on a match. A session that times out
mid-sequence leaves an unsubstituted placeholder visible forever —
pre-substitute, don't post-substitute.
Intermittent or inconsistent behavior — the same query returning different results within seconds, an API returning empty when records demonstrably exist, a CLI flag working sometimes — points at an active upstream incident more strongly than at a CLI or skill bug. Reproducing the flake confirms the symptom, not the cause, and a code workaround committed during an incident outlives it. Check upstream status before designing one. For GitHub-side symptoms:
# Fetch first, parse second. The endpoint sits behind an edge that sometimes
# answers a CI runner with an HTML challenge page instead of JSON; piping that
# straight into jq gives a parse error on stderr and an empty stdout, which
# reads exactly like "no open incidents". `-f` catches a challenge served as a
# non-200 and the `jq -e` probe catches one served as 200; capturing the body
# means the status is curl's or jq's, not a pipeline's (a bare
# `curl … | jq … || …` exits 0 on the challenge page).
if ! INCIDENTS=$(curl -fsS 'https://www.githubstatus.com/api/v2/incidents/unresolved.json') \
|| ! echo "$INCIDENTS" | jq -e . >/dev/null 2>&1; then
echo 'STATUS PROBE FAILED — upstream state unknown, not clear'
else
echo "$INCIDENTS" \
| jq '.incidents[] | {created_at, name, impact, components: [.components[].name]}'
fi
When an open incident's components and timing match the symptom, treat the
symptom as transient. Report it with the incident link wherever your workflow
reports findings, and skip the workaround PR. A failed probe is unknown,
never clear: an errored probe means you didn't check, and it is no more a
reason to file a workaround than a matching incident is.
Bad: gh issue list returns [] intermittently for queries whose matching issues clearly exist. Bot opens a PR adding a retry loop. The flake was an active upstream search-degradation incident, and the PR is closed once the incident link surfaces.
Good: Same flake → curl /api/v2/incidents/unresolved.json returns an active "GitHub search is degraded" incident touching Issues + Pull Requests → report the symptom with the incident link, skip the PR, let the incident resolve.
Some checks need hardware or an environment the current session lacks. Identify the required capability and inspect the repository's supported verification routes, including existing CI jobs. Use a suitable route within its existing permissions and collect the result for the relevant revision and failing path. Repeating the same incapable environment supplies no new evidence. Preserve sandbox and credential boundaries; missing capability does not authorize exposing a host service or changing privileged workflow policy.
If no available route can perform the check, keep the verification requirement explicit and propose the narrowly scoped capability or access needed in this repository. Ask its responsible contributor or maintainer for that specific blocker, retaining the engineering work. A contributor already testing the same change may supply the result. State unverified claims honestly; do not send the verification request to another repository's maintainer reviewing your change.
What SKILL.md sets; muted values are Claude Code's defaults
24 skills in this plugin
/act-in-other-reposAct in another repository. Use before filing an issue, commenting, or contributing anywhere other than this repo./check-requester-accessCheck a requester's access tier. Use when a request aims you at someone else's work — close, lock, label, revert, dismiss, push./code-reviewStructured second pass over a diff — correctness and cleanup angles, a verify pass, ranked findings returned to the caller./continue-prContinue an unfinished PR with no human author, including red CI and unresolved findings after a prior response or review./dismiss-approvalDismiss a standing bot approval. Use when you conclude that a PR the bot approved should not merge./fix-a-bugWrite a code fix for a bug. Use before writing any fix, whichever workflow you are running.npx claudepluginhub max-sixty/tend --plugin tend-ci-runnerOther plugins' skills for the same job