skills/discover/SKILL.md
Spawn parallel specialist agents to scan the codebase and produce a prioritized improvement backlog
npx skillsauth add RobinNorberg/oh-my-copilot discoverInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<Use_When>
/discover, "scan for improvements", "find issues"<Do_Not_Use_When>
/deep-review instead/plan instead
</Do_Not_Use_When><Why_This_Exists> Codebases accumulate technical debt across many dimensions — security gaps, missing tests, performance hotspots, documentation gaps, architectural drift. No single agent can efficiently cover all dimensions. Discover parallelizes specialist scans and produces a unified, deduplicated, severity-prioritized backlog that teams can act on. </Why_This_Exists>
<Execution_Policy>
.omcp/discover/backlog.md
</Execution_Policy>Launch 6 parallel scans: Fire all agents simultaneously
Scan 1 — Security:
Task(subagent_type="oh-my-copilot:security-reviewer", model="sonnet", name="discover-security", prompt="
DISCOVERY SCAN: Security
Scan the codebase at [SCOPE] for security vulnerabilities and risks.
Focus on: OWASP Top 10, hardcoded secrets, injection risks, auth gaps, input validation.
For each finding, output:
FINDING:
- category: security
- severity: CRITICAL|HIGH|MEDIUM|LOW
- title: [brief title]
- file: [file:line]
- description: [what's wrong and why it matters]
- suggestedAction: [specific fix recommendation]
END_FINDING
")
Scan 2 — Quality:
Task(subagent_type="oh-my-copilot:code-reviewer", model="sonnet", name="discover-quality", prompt="
DISCOVERY SCAN: Code Quality
Scan the codebase at [SCOPE] for anti-patterns, complexity hotspots, and SOLID violations.
Focus on: God objects, high cyclomatic complexity (>10), deep nesting (>4 levels), code duplication, magic numbers.
For each finding, output:
FINDING:
- category: quality
- severity: CRITICAL|HIGH|MEDIUM|LOW
- title: [brief title]
- file: [file:line]
- description: [what's wrong and why it matters]
- suggestedAction: [specific fix recommendation]
END_FINDING
")
Scan 3 — Tests:
Task(subagent_type="oh-my-copilot:test-engineer", model="sonnet", name="discover-tests", prompt="
DISCOVERY SCAN: Test Coverage
Scan the codebase at [SCOPE] for test coverage gaps and test quality issues.
Focus on: untested public APIs, missing edge case tests, flaky test patterns, missing integration tests.
For each finding, output:
FINDING:
- category: tests
- severity: CRITICAL|HIGH|MEDIUM|LOW
- title: [brief title]
- file: [file:line]
- description: [what's missing and why it matters]
- suggestedAction: [specific test to add]
END_FINDING
")
Scan 4 — Performance:
Task(subagent_type="oh-my-copilot:code-reviewer", model="sonnet", name="discover-perf", prompt="
DISCOVERY SCAN: Performance
Scan the codebase at [SCOPE] for performance issues and optimization opportunities.
Focus on: N+1 queries, O(n²) algorithms, unnecessary re-renders, missing caching, synchronous I/O in hot paths, memory leaks.
For each finding, output:
FINDING:
- category: performance
- severity: CRITICAL|HIGH|MEDIUM|LOW
- title: [brief title]
- file: [file:line]
- description: [what's slow and why it matters]
- suggestedAction: [specific optimization]
END_FINDING
")
Scan 5 — Documentation:
Task(subagent_type="oh-my-copilot:writer", model="haiku", name="discover-docs", prompt="
DISCOVERY SCAN: Documentation
Scan the codebase at [SCOPE] for documentation gaps.
Focus on: undocumented public APIs, stale README sections, missing module-level docs, outdated examples.
For each finding, output:
FINDING:
- category: documentation
- severity: CRITICAL|HIGH|MEDIUM|LOW
- title: [brief title]
- file: [file:line]
- description: [what's missing]
- suggestedAction: [what to document]
END_FINDING
")
Scan 6 — Architecture:
Task(subagent_type="oh-my-copilot:architect", model="sonnet", name="discover-arch", prompt="
DISCOVERY SCAN: Architecture
Scan the codebase at [SCOPE] for architectural issues.
Focus on: circular dependencies, abstraction leaks, coupling issues, module boundary violations, scaling bottlenecks.
For each finding, output:
FINDING:
- category: architecture
- severity: CRITICAL|HIGH|MEDIUM|LOW
- title: [brief title]
- file: [file:line]
- description: [what's wrong structurally]
- suggestedAction: [architectural improvement]
END_FINDING
")
Consolidate findings: After all 6 scans complete, consolidate:
Generate backlog: Write the consolidated backlog to .omcp/discover/backlog.md:
# Discovery Backlog
**Scope:** [scanned directory]
**Generated:** [timestamp]
**Total Findings:** N
## Summary
| Category | Critical | High | Medium | Low | Total |
|----------|----------|------|--------|-----|-------|
| Security | ... | ... | ... | ... | ... |
| Quality | ... | ... | ... | ... | ... |
| Tests | ... | ... | ... | ... | ... |
| Performance | ... | ... | ... | ... | ... |
| Documentation | ... | ... | ... | ... | ... |
| Architecture | ... | ... | ... | ... | ... |
## Critical Priority
[findings...]
## High Priority
[findings...]
## Medium Priority
[findings...]
## Low Priority
[findings...]
Report: Present a summary to the user with the backlog location
</Steps><Tool_Usage>
<Escalation_And_Stop_Conditions>
<Final_Checklist>
.omcp/discover/backlog.mdtools
Durable multi-goal workflow that persists plan/ledger artifacts under .omcp/ultragoal and prints Claude /goal handoff text for the active session
tools
testing
Evidence-driven tracing lane that orchestrates competing tracer hypotheses in Claude built-in team mode
tools
Consensus planning entrypoint that auto-gates vague ralph/autopilot/team requests before execution