discover

discover is a skill for Claude Code from ZaxbyHub/opencode-swarm. It costs 20 tokens per session (482 once invoked), scanned A, original, MIT.

A read-only repository-discovery protocol that maps a project’s structure, rules, public interfaces, complexity, and possible risks before implementation begins.

In plain words
What is it for?
Use it to inspect an unfamiliar repository, delegate code exploration, review key files and symbols, find governance documents, and record discovery context.
Why use it?
It helps prevent changes that overlook existing patterns, project instructions, hidden requirements, or high-risk areas.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to inspect an unfamiliar repository, delegate code exploration, review key files and symbols, find governance documents, and record discovery context.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zaxbyhub/opencode-swarm/discover
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 discover
Clone the repo
git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm

Made for: Claude Code.

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 discover

README.md
[![agentmods](https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/discover/github.svg)](https://agentmods.dev/skills/zaxbyhub/opencode-swarm/discover)
Your own site
<a href="https://agentmods.dev/skills/zaxbyhub/opencode-swarm/discover"><img src="https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/discover/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 discover

Your own site · 80×15
<a href="https://agentmods.dev/skills/zaxbyhub/opencode-swarm/discover"><img src="https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/discover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 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.00020 $0.00482
Opus 5.5 $0.00008 $0.00193
Sonnet 5.5 $0.00004 $0.00096
Haiku 4.5 $0.00002 $0.00048

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

Security

Grade A, and why

discover 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.

.claude/skills/discover/SKILL.md · 23 lines

How it starts

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

Discover Protocol

This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.

MODE: DISCOVER

Delegate to the active swarm's explorer agent. Wait for response. For complex tasks, make a second explorer call focused on risk/gap analysis:

  • Hidden requirements, unstated assumptions, scope risks
  • Existing patterns that the implementation must follow After explorer returns:
  • Run symbols tool on key files identified by explorer to understand public API surfaces
  • For multi-file module surveys: prefer batch_symbols over sequential single-file symbols calls
  • Run complexity_hotspots if not already run during project discovery (check context.md for existing analysis). Note modules with recommendation "security_review" or "full_gates" in context.md.
  • Check for project governance files using the glob tool with patterns project-instructions.md, docs/project-instructions.md, CONTRIBUTING.md, INSTRUCTIONS.md, AGENTS.md, and CLAUDE.md (process all matches found). For each file found: read it and extract all MUST (mandatory constraints) and SHOULD (recommended practices) rules. Write the extracted rules to .swarm/context.md under a ## Project Governance section — append if the section exists, create it if not — PRESERVING PROVENANCE for every rule (issue #2131 finding 9): each entry records (a) its source file, (b) the subtree scope the file declares or implies (repo-wide when undeclared), (c) precedence — AGENTS.md/project-instructions.md outrank CONTRIBUTING.md/INSTRUCTIONS.md/CLAUDE.md when rules conflict, (d) strength (MUST vs SHOULD), and (e) a conflict flag naming the other file whose rule it contradicts, if any. Never flatten conflicting rules into one; surface the conflict. If no MUST or SHOULD rules are found in the file, skip writing. If no governance file is found: skip silently. Existing DISCOVER steps are unchanged.

Read the full file on GitHub · 23 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 fd1edaa1977b
  2. 3mo ago First seen · 22 lines · 20 tokens per session scan A fde853e22a8c

Subscribe to this mod's changes

discover is a skill published in the GitHub repository ZaxbyHub/opencode-swarm (549 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 482 once invoked, about $0.0001 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

discover compared with skills from other repositories

discover next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
discoverZaxbyHub/opencode-swarmSkill549todayMITA20Claude Code
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