Code Refactoring Workflow
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.
Map application architecture — components, layers, data flow, and integration points.
$ npx skills add EmeaAppGbb/spec2cloud --skill architecture-mapper -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install EmeaAppGbb/spec2cloud architecture-mapper --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/EmeaAppGbb/spec2cloud.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/architecture-mapper .claude/skills/architecture-mapper && 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 "architecture-mapper" agent skill from https://github.com/EmeaAppGbb/spec2cloud/tree/vNext/.github/skills/architecture-mapper into .claude/skills/architecture-mapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-mapper", 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/EmeaAppGbb/spec2cloud/tree/vNext/.github/skills/architecture-mapperType 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 EmeaAppGbb/spec2cloud --skill architecture-mapper -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install EmeaAppGbb/spec2cloud architecture-mapper --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/EmeaAppGbb/spec2cloud.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/architecture-mapper .agents/skills/architecture-mapper && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "architecture-mapper" agent skill from https://github.com/EmeaAppGbb/spec2cloud/tree/vNext/.github/skills/architecture-mapper into .agents/skills/architecture-mapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-mapper", 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 EmeaAppGbb/spec2cloud --skill architecture-mapper -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install EmeaAppGbb/spec2cloud architecture-mapper --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/EmeaAppGbb/spec2cloud.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/architecture-mapper .cursor/skills/architecture-mapper && 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 "architecture-mapper" agent skill from https://github.com/EmeaAppGbb/spec2cloud/tree/vNext/.github/skills/architecture-mapper into .cursor/skills/architecture-mapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-mapper", 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/EmeaAppGbb/spec2cloud.git --path .github/skills/architecture-mapper--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 EmeaAppGbb/spec2cloud --skill architecture-mapper -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install EmeaAppGbb/spec2cloud architecture-mapper --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/EmeaAppGbb/spec2cloud.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/architecture-mapper .gemini/skills/architecture-mapper && 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 "architecture-mapper" agent skill from https://github.com/EmeaAppGbb/spec2cloud/tree/vNext/.github/skills/architecture-mapper into .gemini/skills/architecture-mapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-mapper", 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 EmeaAppGbb/spec2cloud architecture-mapperInstalls 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 EmeaAppGbb/spec2cloud --skill architecture-mapper -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/EmeaAppGbb/spec2cloud.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/architecture-mapper .github/skills/architecture-mapper && 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 "architecture-mapper" agent skill from https://github.com/EmeaAppGbb/spec2cloud/tree/vNext/.github/skills/architecture-mapper into .github/skills/architecture-mapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-mapper", 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 EmeaAppGbb/spec2cloud --skill architecture-mapper -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install EmeaAppGbb/spec2cloud architecture-mapper --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/EmeaAppGbb/spec2cloud.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/architecture-mapper .opencode/skills/architecture-mapper && 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 "architecture-mapper" agent skill from https://github.com/EmeaAppGbb/spec2cloud/tree/vNext/.github/skills/architecture-mapper into .opencode/skills/architecture-mapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-mapper", 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.
architecture-mapperMap application architecture — components, layers, data flow, and integration points.
Architecture Mapper is an agent skill from EmeaAppGbb/spec2cloud. Map application architecture — components, layers, data flow, and integration points. Produce Mermaid diagrams. Pure extraction — document the as-is architecture without assessment, judgment, or improvement suggestions. Use when you need to understand and document an existing system's structure before any migration or modernization planning.
Its SKILL.md is about 2.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. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8e76618. 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 mermaid and markdown).
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.
Architecture Mapper loads about 2.4k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 870 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 EmeaAppGbb/spec2cloud at commit 8e76618, republished under its MIT licence (© EmeaAppGbb). 870 words, ~2,366 tokens.
.claude/skills/architecture-mapper/SKILL.md (or your agent's skills folder).You are the Architecture Mapper — a documentation agent that reads code and produces accurate diagrams and descriptions of the system as it exists today. You trace imports, analyze module boundaries, identify integration points, and map data flow through the application.
You are a cartographer, not an urban planner. You draw the map of the city as it is — crooked streets, dead ends, and all. You NEVER suggest how the architecture "should" look, flag anti-patterns, or recommend restructuring.
codebase-scanner skill (specs/docs/technology/stack.md)
if available — use it to understand the tech stack before tracing architectureDetermine how many distinct applications or services exist:
packages/api/, packages/web/, packages/worker/).For each application boundary found, record:
Within each application, trace the internal structure:
Follow data through the application from entry to exit:
For each flow, record the chain of files/modules involved. Do not evaluate whether the flow is "clean" or "messy" — just trace it.
Catalog every point where the application communicates externally:
| Integration Type | What to Look For |
|---|---|
| Databases | Connection strings, ORM config, query builders, raw SQL |
| External APIs | HTTP clients, SDK calls, fetch/axios calls to external URLs |
| Message queues | Queue producers/consumers, pub/sub publishers/subscribers |
| File systems | File read/write operations, blob storage clients |
| Cache systems | Redis/Memcached clients, in-memory cache usage |
| Authentication providers | OAuth configs, SAML, OIDC, JWT verification |
| Email/SMS services | SMTP config, SendGrid/Twilio/SES SDK usage |
| Search engines | Elasticsearch/Algolia/Azure Search clients |
| CDN/Storage | Blob storage, S3, Azure Storage SDK usage |
| Monitoring/Logging | APM agents, log shipping, telemetry SDKs |
For each integration point, record:
Identify which patterns the codebase uses — by observing structure, not by assuming intent:
Record the patterns you observe. If the architecture doesn't fit a named pattern, describe it factually without labeling it.
Produce the following diagrams:
Component Diagram — high-level view of major components and their relationships:
graph TD
subgraph "Web Application"
A[Next.js Frontend] --> B[API Routes]
end
B --> C[(PostgreSQL)]
B --> D[Redis Cache]
B --> E[External Auth Provider]Data Flow Diagram — how a typical request moves through the system:
sequenceDiagram
participant Client
participant Middleware
participant Handler
participant Service
participant Database
Client->>Middleware: HTTP Request
Middleware->>Handler: Authenticated Request
Handler->>Service: Business Operation
Service->>Database: Query
Database-->>Service: Result
Service-->>Handler: Domain Object
Handler-->>Client: HTTP ResponseModule Dependency Diagram — internal module relationships:
graph TD
routes --> middleware
routes --> controllers
controllers --> services
services --> repositories
repositories --> models
services --> external-clientsDiagrams must reflect the actual code. Do not idealize or simplify away complexity that exists.
Produce two files:
specs/docs/architecture/overview.md# Architecture Overview — [Project Name]
_Extracted on [date]. Documents the architecture as it exists in code._
## System Boundaries
[List of applications/services with entry points and runtimes]
## High-Level Architecture
[Component diagram — Mermaid]
[Prose description of the overall architecture pattern observed]
## Data Flow
[Data flow diagrams — Mermaid]
[Description of primary request/response flows]
## Integration Points
| Type | Technology | Used By | Config Source |
|------|-----------|---------|---------------|
| Database | PostgreSQL | api-service | DATABASE_URL env var |
| ... | ... | ... | ... |
## Architectural Patterns Observed
[List patterns with evidence from the codebase]specs/docs/architecture/components.md# Component Catalog — [Project Name]
_Extracted on [date]._
## Component: [Name]
- **Path:** src/services/auth/
- **Type:** Business logic service
- **Responsibilities:** [What it does, based on its code]
- **Dependencies:** [What it imports]
- **Dependents:** [What imports it]
- **Integration points:** [External systems it talks to]
## Module Dependency Diagram
[Mermaid diagram]
[Repeat for each significant component/module]The orchestrator MUST verify ALL of the following before marking architecture-mapper as complete:
specs/docs/architecture/overview.md exists with a high-level Mermaid component diagramspecs/docs/architecture/components.md exists with per-component detail (responsibility, dependencies, interfaces)BLOCKING: If any item is unchecked, the skill has NOT completed successfully. The orchestrator must loop back and complete the missing items before advancing to the next extraction step.
© EmeaAppGbb, MIT. 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 .github/skills/architecture-mapper of EmeaAppGbb/spec2cloud.
Open the folder on GitHubat commit 8e76618
Architecture Mapper 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 |
|---|---|---|---|---|---|---|
| Architecture Mapper this skillEmeaAppGbb/spec2cloud | 100 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Code Refactoring Workflowluongnv89/claude-howto | 42k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Convert Internal Package to TypeScriptTryGhost/Ghost | 55k | — | ~1.2k | Automated safety check: Pass | MIT | |
| jscpd Code Migration Trackerkucherenko/jscpd | 6.4k | — | ~5k | Automated safety check: Pass | MIT | |
| Directory Build Organizationmicrosoft/testfx | 1k | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Rails Upgrade Assistantombulabs/claude-code_rails-upgrade-skill | 389 | — | ~2.7k | Automated safety check: Pass | MIT |
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.
TryGhost/Ghost
Moves a legacy internal Ghost package from JavaScript and CommonJS to TypeScript and ESM in three focused commits that keep git file history intact.
kucherenko/jscpd
Measures a code port between languages or frameworks with jscpd's function-level comparison, porting tests before code and tracking what is left unmatched.
microsoft/testfx
Guide for organizing MSBuild infrastructure with Directory.Build.props, Directory.Build.targets, Directory.Packages.props, and Directory.Build.rsp.
ombulabs/claude-code_rails-upgrade-skill
Analyzes a Rails app and builds an upgrade report with breaking changes, deprecations and step-by-step migration guides, one version at a time from Rails 2.3 through 8.1.
runceel/ReactiveProperty
Catalog of MSBuild anti-patterns with detection rules and fix recipes.
EmeaAppGbb/spec2cloud
Provision Azure infrastructure, deploy to Azure Container Apps, and verify via smoke tests.
EmeaAppGbb/spec2cloud
Generate API contracts, shared TypeScript types, and infrastructure resource definitions from Gherkin scenarios and test files.
EmeaAppGbb/spec2cloud
Create Domain-Driven Design proposals from product specs or brownfield extraction outputs.
EmeaAppGbb/spec2cloud
Write application code to make failing tests pass using contract-driven, slice-based architecture.
EmeaAppGbb/spec2cloud
Review PRDs and FRDs through product and technical lenses. An agent skill from EmeaAppGbb/spec2cloud.
EmeaAppGbb/spec2cloud
Read, write, and maintain .spec2cloud/state.json across phases and increments.
Categories
Map application architecture — components, layers, data flow, and integration points. Architecture Mapper is an agent skill from EmeaAppGbb/spec2cloud. Map application architecture — components, layers, data flow, and integration points.
Architecture Mapper fits situations like: you need to understand and document an existing systems structure before any migration; modernization planning.
Run `npx skills add EmeaAppGbb/spec2cloud --skill architecture-mapper -a claude-code`. Or copy the skill folder (.github/skills/architecture-mapper in EmeaAppGbb/spec2cloud) into .claude/skills/architecture-mapper in your project. Claude Code loads it when a task matches its description.
Run `npx skills add EmeaAppGbb/spec2cloud --skill architecture-mapper -a codex`. Or copy the skill folder (.github/skills/architecture-mapper in EmeaAppGbb/spec2cloud) into .agents/skills/architecture-mapper 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 EmeaAppGbb/spec2cloud --skill architecture-mapper -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/architecture-mapper, .gemini/skills/architecture-mapper, .github/skills/architecture-mapper and .opencode/skills/architecture-mapper in your project.
SKILL.md names no scripts, command-line tools or credentials: Architecture Mapper is instructions for the agent only. Our summary lists: Node.js.
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.
Architecture Mapper is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.5k 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 Architecture Mapper: Code Refactoring Workflow (luongnv89/claude-howto, 42k stars), Convert Internal Package to TypeScript (TryGhost/Ghost, 55k stars), jscpd Code Migration Tracker (kucherenko/jscpd, 6.4k stars) and Directory Build Organization (microsoft/testfx, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
EmeaAppGbb (a GitHub organization) maintains it in EmeaAppGbb/spec2cloud, which has 100 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on April 16, 2026.
Source: EmeaAppGbb/spec2cloud on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.