{"id":50305533,"url":"https://github.com/peizh/refactor-legacy-code","last_synced_at":"2026-05-28T16:01:17.880Z","repository":{"id":357498705,"uuid":"1237234655","full_name":"peizh/refactor-legacy-code","owner":"peizh","description":"Agent skill for safe legacy-code refactoring and maintenance workflows","archived":false,"fork":false,"pushed_at":"2026-05-13T02:12:20.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-13T04:17:36.929Z","etag":null,"topics":["agent-skills","codex","legacy-code","refactoring","skills-sh","testing"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peizh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.md","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-13T02:08:25.000Z","updated_at":"2026-05-13T02:12:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/peizh/refactor-legacy-code","commit_stats":null,"previous_names":["peizh/refactor-legacy-code"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/peizh/refactor-legacy-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peizh%2Frefactor-legacy-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peizh%2Frefactor-legacy-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peizh%2Frefactor-legacy-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peizh%2Frefactor-legacy-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peizh","download_url":"https://codeload.github.com/peizh/refactor-legacy-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peizh%2Frefactor-legacy-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33615490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent-skills","codex","legacy-code","refactoring","skills-sh","testing"],"created_at":"2026-05-28T16:00:58.931Z","updated_at":"2026-05-28T16:01:17.872Z","avatar_url":"https://github.com/peizh.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refactor Legacy Code\n\n[![skills.sh](https://skills.sh/b/peizh/refactor-legacy-code)](https://skills.sh/peizh/refactor-legacy-code)\n\nAn agent skill for making safe, incremental changes in large legacy codebases.\n\nIt helps an agent identify change points, find test points, choose seams, write characterization tests, break dependencies only where needed, and refactor inside newly protected areas.\n\n## Install\n\nList the skill without installing:\n\n```bash\nnpx skills add peizh/refactor-legacy-code --list\n```\n\nInstall and let the CLI pick the detected agent:\n\n```bash\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code\n```\n\nInstall globally for the detected agent without prompts:\n\n```bash\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code -g -y\n```\n\nInstall for a specific agent:\n\n```bash\n# Codex\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code -a codex\n\n# Claude Code\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code -a claude-code\n\n# Cursor\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code -a cursor\n\n# Windsurf\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code -a windsurf\n\n# GitHub Copilot\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code -a github-copilot\n\n# Gemini CLI\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code -a gemini-cli\n\n# OpenCode\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code -a opencode\n```\n\nInstall for multiple agents:\n\n```bash\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code -a codex -a claude-code -a cursor\n```\n\nInstall for all supported agents detected by the CLI:\n\n```bash\nnpx skills add peizh/refactor-legacy-code --skill refactor-legacy-code --agent '*'\n```\n\n## Use\n\nExample prompt:\n\n```text\nUse $refactor-legacy-code to plan and execute a safe change in this large legacy codebase.\n```\n\nThe skill is most useful when:\n\n- code is poorly tested or hard to instantiate\n- a method, class, module, or subsystem is too large to change confidently\n- external APIs, globals, statics, construction, or framework dependencies block tests\n- a bug fix or feature must preserve existing behavior\n- repeated changes suggest a missing boundary or ownership point\n\n## Structure\n\n```text\n.\n├── SKILL.md\n├── references/\n│   ├── change-workflow.md\n│   └── dependency-breaking.md\n└── agents/\n    └── openai.yaml\n```\n\n`SKILL.md` contains the core workflow. Reference files are loaded only when a task needs deeper guidance.\n\n## Notes\n\nThis skill is an original workflow artifact inspired by common legacy-code refactoring practice. It does not include or redistribute book text, examples, or copyrighted source material.\n\nSee [NOTICE.md](NOTICE.md) for attribution and copyright boundaries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeizh%2Frefactor-legacy-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeizh%2Frefactor-legacy-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeizh%2Frefactor-legacy-code/lists"}