원클릭으로
adv-refactor
Stale proposal refresh methodology for single changes and stalest-batch ADV refactors
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Stale proposal refresh methodology for single changes and stalest-batch ADV refactors
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-refactor |
| description | Stale proposal refresh methodology for single changes and stalest-batch ADV refactors |
| keywords | ["adv","refactor","stale-proposal","drift","batch","proposal-refresh","dependency-check"] |
| metadata | {"priority":"medium","source":"adv-refactor-command"} |
Methodology for /adv-refactor: reconcile stale proposals with current code and archived history. Command owns ADV mutations, sub-agent dispatch, and validation; skill owns selection and analysis rubric.
| Mode | Trigger | Behavior |
|---|---|---|
| Single target | change-id provided | Refresh one change |
| Batch | no change-id | Select stalest active changes |
Flags:
--execute — apply; default dry-run--interactive — approve per category--force — skip recent-modification warnings--include-hot — include hot recency band in batch--top <N> — override oldest 30% selectionDefault excludes hot changes because another session may be actively editing them.
Selection algorithm:
stalest.--include-hot.N = max(1, ceil(activeCount * 0.30)).--top <N>, use that value capped at eligible count.Announce:
/adv-refactor batch mode
Active: {total} · Hot excluded: {hotCount} · Selected: {N} (oldest {percent}% of {eligible} eligible)
Oldest: {oldestId} ({oldestAgeMinutes}min ago, {recencyBand})
Targets: {selectedIds}
Use tool-loaded proposal/problem/task context; do not read ADV state files directly.
Every worker prompt includes:
WORKING DIRECTORY: {workdir}
CHANGE: {change-id} | {title}
MODE: {dry-run|execute}
EXPECTED OUTPUT: JSON findings
Three passes:
| Pass | Evidence | Confidence |
|---|---|---|
| EXACT | SHA-256 hash match/mismatch | 100% |
| METADATA | filename + size + first 1KB | 70% |
| FUZZY | similarity distance | 80-90% |
Also validate task file/function references. Flag orphaned tasks and invalid paths.
Detect requirements implemented elsewhere. Exclude tests, mocks, legacy scaffolding. Passing tests are strong evidence. Confidence: HIGH / MEDIUM / LOW.
Compare against archived changes, favor recent archives (last 20%). Match capabilities and requirement intent. Flag overlapping or superseded scope.
Run inline because some explore agents lack docs/web tools. Use Context7 first, webfetch fallback. Check changelogs/release notes for stale APIs or migration-relevant changes.
Aggregate:
Intent conflict rule: if code contradicts proposal requirement, ask user whether code is new requirement or bug. Do not silently rewrite intent.
Only under --execute and after intent conflicts resolved.
Allowed updates:
> Refactored: aligned with implementation in {file}.[OBSOLETE] plus implementation location; do not delete.Run strict change validation. Fix formatting issues once, then retry. If still failing, report failure and continue batch.
Single target report:
git restore .Batch report groups by outcome:
UpdatedDry-run previewFailed with error classInclude staleness band and follow-up commands per change.