بنقرة واحدة
adv-tron
Codebase reconnaissance skill for mapping structure, hotspots, and risks
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Codebase reconnaissance skill for mapping structure, hotspots, and risks
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Architecture inconsistency detection via deterministic tools, research fallback, and AI heuristic
AI-generated code quality detection via AST, regex, and heuristic analysis
Backend technology stack evaluation — choose boring technology scaled by project context. Use when selecting languages, databases, async infra, or API styles for new or existing backends.
Competitive intelligence research methodology for source code and public information comparison
Improvement-discovery methodology for current-state, LBP, and external landscape analysis
Backlog reconciliation, bug priority assignment, and ROADMAP.md regeneration methodology
| name | adv-tron |
| description | Codebase reconnaissance skill for mapping structure, hotspots, and risks |
| keywords | ["reconnaissance","investigation","hotspot","codebase-analysis","architecture","risk-assessment"] |
| metadata | {"priority":"medium","replaces":"none"} |
Tron is a read-only investigation skill for codebase reconnaissance. It maps structure, identifies hotspots, surfaces risks, and suggests follow-up work — without modifying any files or ADV state.
Tron complements existing ADV agents:
| Agent | Role | Tron's boundary |
|---|---|---|
explore | Navigate code, find usages | Tron synthesizes across findings, not just locates |
adv-researcher | Independent design validator (validates architecture against best practices) | Tron maps what exists, not what should exist |
librarian | Look up docs and examples | Tron reads the local codebase, not external docs |
Before deep reads, establish baseline context in this order:
adv_project_context.Scan the entire repository for structural understanding:
Investigate a specific target — file path, module, symbol, feature area, or problem description:
If lgrep or outline tools fail, fallback to allowed read/search tools, report degraded coverage, and only emit findings backed by inspected source. Unsupported signals become coverage gaps/open questions, not findings.
Use tools in this priority order:
| Step | Tool | When |
|---|---|---|
| 1 | lgrep semantic search | Concept/intent discovery |
| 2 | lgrep symbol search | Named function/class/method lookup |
| 3 | lgrep file outline | Understand a specific file's structure |
| 4 | lgrep repo outline | Broad structural mapping |
| 5 | lgrep file tree | Directory layout |
| 6 | lgrep text search | Exact string/token matching |
| 7 | read | Direct file inspection |
| 8 | grep | Regex patterns across files |
Every finding MUST include:
path/to/file.ts:42 format with line numbers where relevanthigh (read the code), medium (inferred from patterns), low (speculative)structure, hotspot, risk, pattern, dependency, questionUse these trigger criteria for suggested next commands. Tron recommends only; it must not invoke /adv-*, must not create agenda/change/task state, and must not edit files.
| Trigger criteria | Recommend |
|---|---|
| Simplification, bloat, duplicated flow, verbose code, or long-term maintainability proposal needed | /adv-optimizer <target> |
| Slop smell, dead-code/deletion-safety, detector coverage, defensive overkill, AI-code quality issue | /adv-slop-scan <target> |
| Architecture boundary, stack-pack, structural-correctness, heuristic-owned state/spec/security/persistence concern | /adv-arch-scan <target> |
| Explicit spec-vs-implementation drift | /adv-audit <capability> |
| Follow-up already bounded and implementation-ready | /adv-task |
| Durable change needs proposal/agreement/design | /adv-proposal <summary> |
| More local reconnaissance needed before choosing owner | /adv-tron <deeper-target> |
Combination routing examples:
/adv-slop-scan <target> then /adv-optimizer <target> — first classify slop/deletion-safety evidence, then synthesize simplification proposal./adv-arch-scan <target> then /adv-slop-scan <target> — first validate architecture/structural boundary, then scan quality smells if source evidence also suggests code-level slop.Structure the final report as:
============================================================
TRON RECONNAISSANCE REPORT
============================================================
TARGET: {target description or "Full repository"}
SCOPE: {number of files examined} files across {number of directories} directories
FINDINGS:
1. [{category}] {finding title}
{1-2 sentence description}
Evidence: {file:line references}
Confidence: {high|medium|low}
2. [{category}] ...
HOTSPOTS:
- {file or module} — {why it's a hotspot}
RISKS:
- {risk description} — {file references}
OPEN QUESTIONS:
- {question that needs human input}
POSSIBLE FOLLOW-UPS:
These are suggestions only — not created automatically.
- {suggested follow-up title}
Why: {1 sentence rationale}
Priority: {critical|high|medium|low|backlog}
- {suggested follow-up title}
Why: {1 sentence rationale}
Priority: {critical|high|medium|low|backlog}
SUGGESTED NEXT COMMANDS:
- /adv-optimizer {target} — Trigger: simplification or maintainability proposal; Rationale: {why}
- /adv-slop-scan {target} — Trigger: slop/deletion-safety/detector concern; Rationale: {why}
- /adv-arch-scan {target} — Trigger: architecture or structural-correctness concern; Rationale: {why}
- /adv-proposal "{summary}" — Trigger: formal durable change needed; Rationale: {why}
- /adv-task — Trigger: follow-up already bounded; Rationale: {why}
- /adv-tron {deeper-target} — Trigger: more reconnaissance needed; Rationale: {why}
============================================================
adv_change_create, adv_task_add, or any state-modifying ADV tooladv_subagent_report_submit is the only allowed ADV mutation/adv-*, must not create change/task state, must not edit filesadv-researcher work — Tron maps what exists, not what should exist