discover
The Discover skill activates an on-demand protocol that delegates task analysis to a swarm's explorer agent, then conducts multi-phase investigation including risk assessment, API surface mapping via symbols analysis, complexity evaluation, and extraction of project governance constraints. Use this when beginning complex implementation work to establish comprehensive baseline requirements and architectural constraints before execution proceeds.
git clone --depth 1 https://github.com/zaxbysauce/opencode-swarm /tmp/discover && cp -r /tmp/discover/.opencode/skills/discover ~/.claude/skills/discoverSKILL.md
# Discover Protocol This protocol is loaded on demand by the architect stub in src/agents/architect.ts. 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 in Phase 0 (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`, and `INSTRUCTIONS.md` (checked in that priority order — first match wins). If a file is found: read it and extract all MUST (mandatory constraints) and SHOULD (recommended practices) rules. Write the extracted rules as a summary to `.swarm/context.md` under a `## Project Governance` section — append if the section already exists, create it if not. 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.
>
Run a rigorous, quote-grounded codebase review or security/QA/accessibility/performance/AI-slop/enhancement audit. Use for full-repo or large-subsystem review reports; not for normal implementation. Performs Phase 0 inventory, selected exhaustive tracks with non-diluting depth, coverage closure, reviewer/critic validation, and writes .swarm/review-v8 artifacts without modifying source files.
>
>
Use when asked to trace, investigate, root-cause, plan, fix, close, or prepare a PR for a GitHub issue or bug report. Runs an evidence-first issue workflow: GitHub intake, reproduction, reasoning-guided localization, no-gap fix planning, independent critic review, user approval gate, implementation, tests, and PR-ready closure.
>
>