gate-attribution

gate-attribution is a skill for OpenCode from ZaxbyHub/opencode-swarm. It costs 55 tokens per session (716 once invoked), scanned A, original, MIT.

A rule for linking reviewer and tester results to the individual tasks they checked. It defines the text format used to record approved, rejected, passed, failed, or skipped results.

In plain words
What is it for?
Use it when dispatching reviewers or testers for one task or a group of plan tasks and recording their per-task results.
Why use it?
It prevents review evidence from being assigned to the wrong task, especially when several tasks are checked together. Unclear task identifiers are ignored.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

Good fit Use it when dispatching reviewers or testers for one task or a group of plan tasks and recording their per-task results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zaxbyhub/opencode-swarm/gate-attribution
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ZaxbyHub/opencode-swarm --skill gate-attribution
Clone the repo
git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gate-attribution

README.md
[![agentmods](https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/gate-attribution/github.svg)](https://agentmods.dev/skills/zaxbyhub/opencode-swarm/gate-attribution)
Your own site
<a href="https://agentmods.dev/skills/zaxbyhub/opencode-swarm/gate-attribution"><img src="https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/gate-attribution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gate-attribution

Your own site · 80×15
<a href="https://agentmods.dev/skills/zaxbyhub/opencode-swarm/gate-attribution"><img src="https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/gate-attribution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.00716
Opus 5.5 $0.00022 $0.00286
Sonnet 5.5 $0.00011 $0.00143
Haiku 4.5 $0.00006 $0.00072

Measured 1mo ago against content hash 6ef01aee3976, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gate-attribution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/gate-attribution/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gate Attribution

The rule

The gate tracker attributes reviewer/test_engineer dispatches PER TASK. A single-task prompt still attributes by task_id / taskId / unambiguous prompt task ID. A set-dispatch can also count per-task when the reviewer/test_engineer output includes parseable per-task rows:

[REVIEWED] | task-2.1 | APPROVED | ...
[TESTED] | 2.1 | PASS | ...

[REVIEWED] verdicts are APPROVED | REJECTED | CONCERNS; [TESTED] verdicts are PASS | FAIL | SKIPPED. Rows with task-X.Y are normalized to X.Y; unsafe or non-plan IDs are ignored. Each parseable per-task verdict row creates gate evidence (regardless of verdict value); the gate's pass/fail decision is made elsewhere from the accumulated evidence. If no rows are parseable, attribution falls back to the single-task rule.

Protocol

  1. For unrelated or high-risk tasks: Dispatch separate reviewer and/or test_engineer lanes with exactly ONE taskId.
  2. For a true set-dispatch: Require one [REVIEWED] | task-id | verdict | ... (or [TESTED] | ...) row per task in the returned output. Each parseable row creates gate evidence; the gate decision is made from the accumulated evidence.
  3. Minimize overhead via parallel dispatch when set-dispatch is not appropriate:
    dispatch_lanes_async with:
    - common_prompt: shared verification context
    - lanes: one lane per task, each with a single taskId
    - max_concurrent: up to 3
    
    This protocol applies only in sessions whose actual tool list includes the swarm controller's dispatch tools; on hosts without the controller it is not applicable — do not fabricate set-dispatch rows.
  4. Collect + attribute: Single-task lanes auto-attribute to their taskId; set-dispatch rows auto-attribute per parsed row.
  5. Do NOT rely on prose summaries: A batched dispatch without parseable rows is ambiguous and does not count per-task.

Gate evidence is persisted independently as .swarm/evidence/{taskId}.json for each task. Each parseable set-dispatch row causes the hook to write one task-scoped evidence file for that task (regardless of verdict value); a single multi-task evidence file cannot satisfy any task.

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 6ef01aee3976
  2. 2mo ago Changed · +3 lines 4f998687357a
  3. 3mo ago First seen · 55 lines · 55 tokens per session scan A ef7894d8e437

Subscribe to this mod's changes

gate-attribution is a skill published in the GitHub repository ZaxbyHub/opencode-swarm (549 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 716 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

gate-attribution compared with skills from other repositories

gate-attribution next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gate-attributionZaxbyHub/opencode-swarmSkill549todayMITA55OpenCode
safeinstall-installMickdownunder/SafeInstallSkill34d agoMITA49Codex
safeinstall-setupMickdownunder/SafeInstallSkill34d agoMITA49Codex
safeinstall-checkMickdownunder/SafeInstallSkill34d agoMITA51Codex
safeinstall-statusMickdownunder/SafeInstallSkill34d agoMITA53Codex
repo-hygieneQwenLM/qwen-codeSkill31ktodayApache-2.0A48Claude Code, Codex
requirements-writermvschwarz/openrigSkill9.0ktodayApache-2.0A28Claude Code, Codex