refactor

Solid

Orchestrates safe, large-scale structural changes across a codebase — symbol renames, API migrations, pattern standardizations, layer restructurings. Enumerates all affected sites, groups them into dependency layers via the DAG executor, applies changes in parallel per layer with worktree isolation, and verifies behavioral preservation at each layer boundary before proceeding. Exits immediately on first regression, surfacing the exact site, diff, and behavioral delta before any commit.

AI & Automation 45 stars 11 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 82/100

Stars 20%
55
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## Sub-agent contract /contract **Skip when:** the change touches ≤3 files and no dependency ordering is required — just edit directly. Also skip when the codebase has no test coverage at all (behavioral preservation cannot be verified; ask the user to add tests first or proceed manually). --- ### Triage (inline, before dispatching any sub-agent) Parse `$ARGUMENT` to extract: - **Change type**: rename | api-migration | pattern-standardization | layer-restructure | dependency-upgrade | other - **Target symbol / path / pattern** (what is changing) - **Destination** (what it becomes) - **Scope**: default to the entire repo; narrow if `--scope` is provided If `$ARGUMENT` is ambiguous on any of the above, stop and ask exactly one question. --- ### Wave 1 — Scope enumeration (parallel, `subagent_type: "research-agent"`) Dispatch both agents simultaneously in a single response turn. **Site-finder agent** - goal: Enumerate every file and symbol that must change for the refactor to be complete and correct. - inputs: change type, target symbol/pattern, scope glob - artifacts: - `sites`: array of `{file, line_range, site_type: "definition"|"import"|"usage"|"type-ref"|"test", change_required: string}` - `dependency_graph`: for each site, which other sites must be changed first (a site depends on its callers if it exports a symbol; a definition must be changed before its imports) - `site_count`: integer - `confidence`: low | medium | high - `coverage_gaps`: what the age...

Details

Author
griffinwork40
Repository
griffinwork40/agent-afk
Created
1 months ago
Last Updated
today
Language
TypeScript
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category