click
Record revision-aware evidence for software work by default, or bind higher-risk execution to one human-readable approval contract in Guarded mode. Use when Click Hook context enables Evidence or Guarded mode, or when the user explicitly selects Click. Do not use for questions or explanations.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- click
- description
- Record revision-aware evidence for software work by default, or bind higher-risk execution to one human-readable approval contract in Guarded mode. Use when Click Hook context enables Evidence or Guarded mode, or when the user explicitly selects Click. Do not use for questions or explanations.
02 资源文件 16
- 参考文档agents/openai.yaml407 B
- 参考文档references/anti-loop-policy.md7.7 KB
- 参考文档references/antigravity.md3.3 KB
- 参考文档references/authoritative-observer-v2.md12.5 KB
- 参考文档references/automatic-sharding-setup.md12.9 KB
- 参考文档references/capability-protocol.md37.4 KB
- 参考文档references/claude-code.md2.6 KB
- 参考文档references/directive-format.md8.0 KB
- 参考文档references/evidence-shards-v1.md6.6 KB
- 参考文档references/guarded-mode.md10.3 KB
- 参考文档references/modes.md8.1 KB
- 参考文档references/observer-v1.md11.6 KB
- 参考文档references/shadow-intelligence-v1.md7.3 KB
- 参考文档references/translation-guide.md4.9 KB
- 参考文档references/verification-efficiency.md3.5 KB
- 参考文档references/verification-profiles.md10.4 KB
03 SKILL.md 正文
Click
Click is an incremental-verification runtime. In Evidence mode, the default, the host authorizes work exactly as it normally does; Click records what happened and decides which checks must run again. Do not treat a question about Click as a mutation, and do not stage a contract or ask for Click approval in Evidence mode.
What Click records on its own
- The user prompt becomes the intent lineage of the Evidence session. An in-scope or narrowing follow-up continues it; the next request after a completed session starts a fresh one. A fresh session, including a new Claude Code session of the same repository, starts from the archived receipts of the last completed one; Click requalifies them, so do not re-run a check only because the session is new.
- Every recognized file edit and every
click-gate mutateadvances the mutation revision, which invalidates earlier receipts. - Every check submitted through
click-gate verifygets an exact receipt bound to its argv, revision, protected tree, environment, executable, and host coverage. Supported checks also capture their inputs automatically.
None of this needs a contract, an approval, or a dependency declaration from you. Never invent one, and never create, widen, or edit .click/evidence-reuse.json or a shard map to skip a check.
Run checks through click-gate verify
Choose concrete checks from repository evidence while you work. The plain form names one check after its exact command:
click-gate verify -- python3 -m pytest -q
Its evidence id is derived from the argv, so resubmitting the same command resubmits the same check; its class is the command's own minimum; its working directory is the tool call's.
On Linux with strace, this form in Evidence mode takes any command: no runner has to be recognized; on Windows it takes commands that run Node. Click reuses the last passing result while none of the files, directory listings, programs or failed lookups the command was observed to touch have changed, and its [Click result] line says whether the command ran or was reused, and why. After a passing run Click observes the command once more in the background to record those inputs. When the command takes test files or packages as arguments, name them with --paths and put {paths} where they go:
click-gate verify --paths 'tests/test_*.py' -- python3 -m pytest -q {paths}
click-gate verify --paths 'src/**/*.test.ts' -- npx vitest run {paths}
Click then decides each group of paths on its own and runs only the changed ones. It does so only after checking that the groups, each run alone, pass and read everything the whole command reads; until then the whole command runs. Details are in the capability protocol.
Several checks in one request, an explicit id, a reporting block, or a different workdir use the JSON form, which always goes through the receipt runner, as does every check of a Guarded contract:
click-gate verify '{"version":2,"workdir":"/absolute/path/to/repository","checks":[{"evidence_id":"E1","argv":["python3","-m","pytest","-q"],"class":"broad"}]}'
classistargeted,broad, ordeep. Include the absoluteworkdirwhenever the execution tool runs outside the Hook session directory.- After a change, resubmit the same command (or the same id and argv). For a sharded broad suite, always submit the parent id and argv, never an internal shard id. In Evidence mode a supported
unittest,pytest, Vitest or Jest suite is sharded automatically: Click collects it and keeps the plan in its own state, so no.click/evidence-shards.jsonis needed;click-gate sharding initwrites a reviewable copy into the repository when you want one. - Use
click-gate inspectfor tracked read-only argv andclick-gate mutatefor structured mutations; ordinary file edits go through the host's editors directly. Exact forms, limits, observer, dashboard, and receipt-export controls are in the capability protocol. - Stop when every registered check is current for the final revision and no managed service remains active.
- A request that omits
reportinguses theactionableformat for unittest/pytest checks: a failure arrives as a bounded summary with a local log reference, not the raw stream. Passreporting.format: "raw"when you need the full output.
Read status
click-gate status prints at most three short lines in the dashboard language (CLICK_LANGUAGE or the POSIX locale; English unless the locale is Korean or Simplified Chinese): executed and reused counts with the estimated avoided time, the mode and revision, and the next action. Use click-gate status --json only when you need the full report with per-check decisions, reason codes, and actionable failure details.
Reuse is decided by Click
Click alone decides, at execution time, whether a submitted check runs or reuses a receipt. Report a reuse only when status output or a verification result shows it; never predict, request, or claim one, and never change an observer setting, a reporting mode, or an owner policy to obtain one. Status, the dashboard, Shadow telemetry, caller-supplied observation JSON, and any reuse_authorized: false view are not authority. Say a check is verified only when its receipt is current; Click does not prove code correctness or test sufficiency. The final receipt reports approval_bound: false and execution_authority: host.
Guarded mode
Only for @Click, $click, or click-gate default guarded: follow the Guarded mode workflow for the approval-bound contract, staging and passing by id, and execution rules. Mode selection, resume, bypass, and cancel rules are in operating modes; bypass and cancel require the exact user-authorized first-line forms there. For code-review-only work in either mode, run click-gate review, stay read-only, and report findings without a build contract.
More, only when needed: automatic sharding setup for a large suite without a shard policy, verification efficiency for reporting and failure-collection options, and anti-loop policy for repeated reads.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.