Legacy Code Summarizer
majiayu000/claude-skill-registry
Produces comprehensive summaries and insights about legacy codebases to help understand unfamiliar code.
Detailed implementation guide for the Strangler Fig pattern and related migration patterns for incrementally replacing legacy systems.
$ npx skills add revfactory/harness-100 --skill strangler-fig-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install revfactory/harness-100 strangler-fig-patterns --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns .claude/skills/strangler-fig-patterns && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "strangler-fig-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns into .claude/skills/strangler-fig-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "strangler-fig-patterns", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/revfactory/harness-100/tree/main/en/22-legacy-modernizer/.claude/skills/strangler-fig-patternsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add revfactory/harness-100 --skill strangler-fig-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install revfactory/harness-100 strangler-fig-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .agents/skills && cp -r skills-src/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns .agents/skills/strangler-fig-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "strangler-fig-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns into .agents/skills/strangler-fig-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "strangler-fig-patterns", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add revfactory/harness-100 --skill strangler-fig-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install revfactory/harness-100 strangler-fig-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns .cursor/skills/strangler-fig-patterns && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "strangler-fig-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns into .cursor/skills/strangler-fig-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "strangler-fig-patterns", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/revfactory/harness-100.git --path en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add revfactory/harness-100 --skill strangler-fig-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install revfactory/harness-100 strangler-fig-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns .gemini/skills/strangler-fig-patterns && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "strangler-fig-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns into .gemini/skills/strangler-fig-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "strangler-fig-patterns", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install revfactory/harness-100 strangler-fig-patternsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add revfactory/harness-100 --skill strangler-fig-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .github/skills && cp -r skills-src/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns .github/skills/strangler-fig-patterns && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "strangler-fig-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns into .github/skills/strangler-fig-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "strangler-fig-patterns", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add revfactory/harness-100 --skill strangler-fig-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install revfactory/harness-100 strangler-fig-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns .opencode/skills/strangler-fig-patterns && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "strangler-fig-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns into .opencode/skills/strangler-fig-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "strangler-fig-patterns", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
strangler-fig-patternsDetailed implementation guide for the Strangler Fig pattern and related migration patterns for incrementally replacing legacy systems.
Strangler Fig Patterns is an agent skill from revfactory/harness-100. Detailed implementation guide for the Strangler Fig pattern and related migration patterns for incrementally replacing legacy systems. Use this skill for 'strangler fig', 'incremental migration', 'refactoring patterns', 'branch by abstraction', 'parallel run', 'gradual replacement', 'migration pattern selection', and other legacy migration pattern applications. Enhances pattern selection and implementation for refactoring-strategist and migration-engineer. Note: full team orchestration and project management are…
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Legacy modernization, Project management and Refactoring. The licence is Apache-2.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python and yaml).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Strangler Fig Patterns loads about 1.4k tokens when it runs. Until then it costs about 143 tokens; SKILL.md has 285 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 285 words, ~1,420 tokens.
.claude/skills/strangler-fig-patterns/SKILL.md (or your agent's skills folder).Detailed implementation methodologies for proven patterns for replacing legacy systems.
Applicable Conditions: When incremental transition from a monolith to a new system is needed
+---------------------------------------------+
| Router/Proxy |
| +----------+ +----------------------+ |
| | Legacy | <-> | New System | |
| | (shrink- | | (expanding) | |
| | ing) | | | |
| +----------+ +----------------------+ |
+---------------------------------------------+Implementation Steps:
| Step | Task | Verification Criteria | Rollback Method |
|---|---|---|---|
| 1. Insert Interceptor | Add router/proxy layer | Confirm 100% existing traffic routes through legacy | Remove interceptor |
| 2. Extract by Feature | Start with most independent feature into new service | Verify identical input/output (Shadow Test) | Restore routing |
| 3. Traffic Migration | Canary -> gradual percentage increase | Error rate, latency, business metrics | Revert to 0% |
| 4. Legacy Removal | Delete fully migrated code | Confirm 100% migration complete | N/A |
Extraction Priority Matrix:
High Business Value
|
(3) Quick | (1) Top Priority
Wins | Extraction Targets
----------+-----------> Low Coupling
(4) Defer | (2) Gradual
Hold | Decouple then Extract
|
Low Business ValueApplicable Conditions: When replacing internal components (within the same codebase)
# Step 1: Insert abstraction layer
class PaymentGateway(ABC):
@abstractmethod
def process(self, amount: Decimal) -> PaymentResult: ...
# Step 2: Wrap legacy implementation
class LegacyPayment(PaymentGateway):
def process(self, amount):
return self.old_system.charge(amount)
# Step 3: New implementation
class ModernPayment(PaymentGateway):
def process(self, amount):
return self.stripe_client.create_charge(amount)
# Step 4: Switch via feature flag
gateway = ModernPayment() if feature_flag('new_payment') else LegacyPayment()Applicable Conditions: When verifying the accuracy of a new system before replacement
class Experiment:
def run(self, input_data):
control_result = self.legacy.execute(input_data)
try:
candidate_result = self.modern.execute(input_data)
if not self.compare(control_result, candidate_result):
self.report_mismatch(input_data, control_result, candidate_result)
except Exception as e:
self.report_error(input_data, e)
return control_result # Always return legacy resultComparison Strategies:
| Comparison Level | Method | Tolerance |
|---|---|---|
| Exact match | == | 0% difference |
| Structural match | Schema comparison | Field presence/type match |
| Semantic match | Business rule-based | Domain-specific tolerance |
| Statistical match | Aggregate/distribution comparison | >= 99.9% match rate |
Applicable Conditions: When legacy and new systems must coexist, preventing domain contamination
ACL Components:
| Component | Role | Implementation |
|---|---|---|
| Translator | Domain model conversion | DTO <-> Domain Object mapping |
| Adapter | Interface conversion | Legacy API -> Modern interface |
| Facade | Complexity hiding | Multiple legacy calls -> single method |
toggles:
# Phase 1: Dev team only
new_user_service: { type: permission, users: ["dev-team"] }
# Phase 2: Canary (10%)
new_user_service: { type: gradual-rollout, percentage: 10, sticky: true }
# Phase 3: Full rollout
new_user_service: { type: release, enabled: true }
# Phase 4: Remove toggle (delete legacy code)Is legacy replacement needed?
+-- External system/service replacement -> Strangler Fig
+-- Internal component replacement
| +-- Pre-replacement verification needed -> Parallel Run + Branch by Abstraction
| +-- Confident in replacement -> Branch by Abstraction
+-- Long-term legacy-new coexistence -> Anti-Corruption Layer
+-- All cases -> Feature Toggle recommended in combination| Warning Sign | Meaning | Response |
|---|---|---|
| Module to extract has 10+ dependencies | Excessive coupling | Insert ACL then incrementally resolve dependencies |
| Parallel Run mismatch rate > 5% | Excessive behavioral differences | Re-verify business rules, collect edge cases |
| > 20 toggles active simultaneously | Toggle debt | Introduce regular toggle cleanup sprints |
| Migration ongoing for 6+ months | Increasing parallel operation costs | Reduce scope or consider partial Big Bang |
© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns of revfactory/harness-100.
Open the folder on GitHubat commit 8e8d35c
Strangler Fig Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Strangler Fig Patterns this skillrevfactory/harness-100 | 1.3k | — | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Legacy Code Summarizermajiayu000/claude-skill-registry | 666 | 1 repos | ~5.2k | Automated safety check: Pass | MIT | |
| Code Refactoring Workflowluongnv89/claude-howto | 42k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Modern JavaScript Patternswshobson/agents | 40k | 11 repos | ~548 | Automated safety check: Pass | MIT | |
| Fowler-Style Refactoringlhfer/claude-howto-zh-cn | 2.3k | — | ~156 | Automated safety check: Pass | MIT | |
| Extract Command from Git::Libruby-git/ruby-git | 1.8k | — | ~4.4k | Automated safety check: Pass | MIT |
majiayu000/claude-skill-registry
Produces comprehensive summaries and insights about legacy codebases to help understand unfamiliar code.
luongnv89/claude-howto
Guides systematic, test-backed refactoring in the style of Martin Fowler, moving through research, planning and small incremental changes with your approval at each phase.
wshobson/agents
Covers ES6+ syntax and functional patterns for refactoring older JavaScript: async/await, destructuring, spread, modules, generators and data pipelines.
lhfer/claude-howto-zh-cn
基于 Martin Fowler 方法论做系统化重构。Use when users ask to refactor code, improve structure, reduce technical debt, clean up legacy code, or improve maintainability.
ruby-git/ruby-git
Migrates a direct command call in Ruby Git's Git::Lib to a Git::Commands class, as part of a Strangler Fig redesign, with a plan, legacy tests and a pull request.
pmndrs/glyph
Audit and improve repository code milestone by milestone for correctness, clarity, local reasoning, DRY design, explicit state modeling, panic resistance, and trustworthy TypeScript boundaries.
revfactory/harness-100
A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.
revfactory/harness-100
Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.
revfactory/harness-100
Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.
revfactory/harness-100
Methodology for systematically designing and generating CLI tool argument parser structures.
revfactory/harness-100
Audience segmentation skill used by the analyst and curator agents.
revfactory/harness-100
Audio storytelling skill used by the podcast scriptwriter and show note editor.
Categories
Detailed implementation guide for the Strangler Fig pattern and related migration patterns for incrementally replacing legacy systems. Strangler Fig Patterns is an agent skill from revfactory/harness-100. Detailed implementation guide for the Strangler Fig pattern and related migration patterns for incrementally replacing legacy systems.
Strangler Fig Patterns fits situations like: incremental migration; refactoring patterns; branch by abstraction; gradual replacement.
Run `npx skills add revfactory/harness-100 --skill strangler-fig-patterns -a claude-code`. Or copy the skill folder (en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns in revfactory/harness-100) into .claude/skills/strangler-fig-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add revfactory/harness-100 --skill strangler-fig-patterns -a codex`. Or copy the skill folder (en/22-legacy-modernizer/.claude/skills/strangler-fig-patterns in revfactory/harness-100) into .agents/skills/strangler-fig-patterns in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill strangler-fig-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/strangler-fig-patterns, .gemini/skills/strangler-fig-patterns, .github/skills/strangler-fig-patterns and .opencode/skills/strangler-fig-patterns in your project.
SKILL.md names no scripts, command-line tools or credentials: Strangler Fig Patterns is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Strangler Fig Patterns is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Strangler Fig Patterns: Legacy Code Summarizer (majiayu000/claude-skill-registry, 666 stars), Code Refactoring Workflow (luongnv89/claude-howto, 42k stars), Modern JavaScript Patterns (wshobson/agents, 40k stars) and Fowler-Style Refactoring (lhfer/claude-howto-zh-cn, 2.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.
Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.