agent-workflow-modernizer
Skill2 starsChanged 3 months agoMITView on GitHub
Modernize an existing repo's agent workflow so AGENTS.md is the shared cross-harness contract, CLAUDE.md stays a small overlay, repeat procedures move into skills, normal work uses local verification, cloud sessions act as Git-clean workers, and final readiness keeps hosted review/CI gates. Use when asked to clean up AGENTS/CLAUDE files, port the Overnight workflow to another project, or prepare a repo for Codex plus Claude Code work.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-workflow-modernizerSkill
- architecture-reviewSkill
- code-structureSkill
- diagnoseSkill
- engineering-quality-lensSkill
- implementation-plan-builderSkill
- implementation-plan-wikiSkill
- overnight-agent-runbookSkill
- overnight-setupSkill
- prd-to-task-queueSkill
- pr-review-loopSkill
- stacked-pr-orchestratorSkill
- tddSkill
- agent-workflow-modernizerSkill
- architecture-reviewSkill
- code-structureSkill
- diagnoseSkill
- engineering-quality-lensSkill
- implementation-plan-builderSkill
- implementation-plan-wikiSkill
- overnight-agent-runbookSkill
- overnight-setupSkill
- prd-to-task-queueSkill
- pr-review-loopSkill
- stacked-pr-orchestratorSkill
- tddSkill
- architecture-reviewSkill
- code-structureSkill
- diagnoseSkill
- engineering-quality-lensSkill
- implementation-plan-builderSkill
- implementation-plan-wikiSkill
- overnight-agent-runbookSkill
- overnight-setupSkill
- prd-to-task-queueSkill
- pr-review-loopSkill
- stacked-pr-orchestratorSkill
- tddSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill to retrofit a repository's agent instructions and vendored skills to the Overnight workflow pattern:
- Distinctive: line 28
Check Git state first. Preserve unrelated dirty files and do not overwrite a vendored skill that has local drift without reporting the …
- Distinctive: line 32
If the repo has product-specific safety rules, keep them in the repo's shared contract.
- Distinctive: line 37
Keep root instruction files lean:
- Distinctive: line 39
Put always-on repo context, commands, architecture map, style conventions, human gates, and repeated agent mistakes in AGENTS.md.
- Distinctive: line 41
Put only Claude-specific behavior in CLAUDE.md, starting with a pointer back to AGENTS.md.
- Distinctive: line 48
Delete stale branch names, deployment URLs, old worktree paths, old queue rows, local-only machine facts, and rules that are not specific …
- Distinctive: line 53
Add or adapt these concepts in the target repo's AGENTS.md and workflow docs:
- Distinctive: line 68
Certification mode: before landing or promoting a branch as a dependency, reconcile to the recorded parent, push the exact head, require …
- Very specific: line 72
Unattended mode: use one native goal/persistence loop if available.
- Distinctive: line 77
Prefer updating existing files over creating new ones.
- Distinctive: line 88
Do not create a task queue, implementation plan, or PR stack unless the user asked for one or the repo already uses that pattern.
- Very specific: line 93
Use template/modernize-workflow-prompt.md when handing this work to another agent or another repository.
- Distinctive: line 98
Run the narrow checks the repo supports:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Workflow Modernizer
Use this skill to retrofit a repository's agent instructions and vendored skills to the Overnight workflow pattern:
AGENTS.mdis the shared contract for Codex, Claude Code, Cursor Agent, OpenCode, and other coding agents.CLAUDE.mdis a small Claude-specific overlay that points back toAGENTS.md.- Repeat procedures live in skills, not in the root instruction file.
- Hard enforcement lives in hooks, pre-push guards, or CI.
- Normal human-steered work uses bounded branches, focused local
Verify, and draft PRs. - Cloud sessions are disposable Linux workers that run from pushed Git and synthetic fixtures.
- Hosted CI/review/signals are certification gates for stable heads, not the default inner loop for every intermediate push.
Before Editing
- Inspect the target repo's current instruction files and skill directories:
AGENTS.md,CLAUDE.md,.agents/skills/,.claude/skills/,.cursor/,.grok/,.opencode/,.conductor/, and any local workflow docs. - Check Git state first. Preserve unrelated dirty files and do not overwrite a vendored skill that has local drift without reporting the drift.
- Identify the repo's real base branch, PR surface, review tool, local verify commands, human gates, and any task queue/plan source of truth.
- If the repo has product-specific safety rules, keep them in the repo's shared contract. Do not replace them with generic package details.
Rewrite Shape
Keep root instruction files lean:
- Put always-on repo context, commands, architecture map, style conventions,
human gates, and repeated agent mistakes in
AGENTS.md. - Put only Claude-specific behavior in
CLAUDE.md, starting with a pointer back toAGENTS.md. - Move detailed procedures into skills. If a procedure is copied into
.agents/skills/and.claude/skills/, keep the copies byte-identical unless a harness truly needs different frontmatter. - Move non-skippable rules into hooks, pre-push guards, CI, or branch protection. Instruction files are guidance, not enforcement.
- Delete stale branch names, deployment URLs, old worktree paths, old queue rows, local-only machine facts, and rules that are not specific and checkable.
Operating Model To Install
Add or adapt these concepts in the target repo's AGENTS.md and workflow docs:
- Normal mode: local human-steered work uses bounded branches/worktrees,
explicit write surfaces, focused local
Verify, clean diffs, and draft PRs. It does not spend hosted review/signals on every intermediate push. - Cloud worker lanes: cloud sessions run only slices that can start from pushed Git source plus synthetic fixtures. They push branch/PR closeouts and do not touch local dirty files, credentials, Docker Desktop, private-network services, staging, production, or merge gates.
- Local controller: the local machine/controller defines slice contracts, fetches cloud heads, runs local integration trains or local-only checks, and owns final certification and human gates.
- Local integration train: optional local-only branch/worktree for merging compatible verified heads and running a combined local suite before hosted CI. It is diagnostic only until pushed and certified.
- Certification mode: before landing or promoting a branch as a dependency, reconcile to the recorded parent, push the exact head, require hosted CI for that head/base, obtain exact-head review, run the repo's strict signal probe if it has one, and resolve/classify human feedback.
- Unattended mode: use one native goal/persistence loop if available. Do not wrap it in a second cron/polling/dispatcher loop.
Files To Create Or Update
Prefer updating existing files over creating new ones. Typical outputs:
AGENTS.md: shared contract and workflow.CLAUDE.md: short overlay pointing toAGENTS.md..agents/skills/overnight-agent-runbook/and.claude/skills/overnight-agent-runbook/..agents/skills/pr-review-loop/and.claude/skills/pr-review-loop/.- Project workflow docs such as
docs/development.md,FLEET_EXECUTION.md, or implementation-plan manifests. - Optional
.conductor/settings.tomlchanges only when the user asks for Conductor scripts/settings and the current repo pattern supports them.
Do not create a task queue, implementation plan, or PR stack unless the user asked for one or the repo already uses that pattern.
Reusable Prompt
Use template/modernize-workflow-prompt.md when handing this work to another
agent or another repository.
Validation
Run the narrow checks the repo supports:
- Markdown or docs checks if present.
git diff --check.- Shell syntax checks for changed scripts.
- Byte-parity checks between mirrored
.agentsand.claudeskill copies. - Any project-specific plan-site or docs generator check if instruction files feed generated docs.
Close out with changed files, what moved to AGENTS.md, what stayed in
CLAUDE.md, which skills were mirrored, what validation ran, and any remaining
manual sync or commit step.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

