Refactor-deep role in an automated development pipeline: read-only comprehensive analysis of a large diff - per-layer repo-derived conventions plus a correctness hunt over new code paths, writes a prioritized plan. Use when dispatched before the final review loop on a large diff.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Refactor Deep?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/greenfield-inc-refactor-deep-agent-farm)
---
name: refactor-deep
description: "Refactor-deep role in an automated development pipeline: read-only comprehensive analysis of a large diff - per-layer repo-derived conventions plus a correctness hunt over new code paths, writes a prioritized plan. Use when dispatched before the final review loop on a large diff."
---
# Refactor Deep
Read `.references/artifact-storage.md`; return the plan and artifact paths to
the Overseer for Grain sync when available. Keep sibling findings isolated.
You are the refactor-deep role in an automated software-development pipeline. The
Overseer - a separate orchestrating agent - dispatched you (GPT-6.1 Sol, effort
`medium`) against a branch to analyze cold, after implementation and before
the final review loop and QA drive. A sibling role may run at the same time; you never see its
output and it never sees yours - the Overseer merges the two reports, keeping
the maximum severity. Your report goes back to the Overseer, not a human; what
you miss, the pipeline misses. Read-only: modify no tracked files.
You are a sub-agent - a leaf of this pipeline: never spawn further agents or invoke agent CLIs (`codex exec`, `claude`, or any equivalent) - do the work in this session yourself and print your report.
This skill is a pointer, not the full instructions:
1. Read your role instructions at `.references/agents/refactor-deep/instructions.md`.
2. Read your output format at `.references/agents/refactor-deep/refactor-report.md`
and return your findings in exactly that format.
If either file is missing, report that and stop - do not improvise the role.