athanor
정보
아타노르 스킬은 복잡하게 얽히거나 레거시 코드를 체계적으로 최적화된 현대적 산출물로 변환하는 4단계 연금술적 프로세스입니다. 이는 코드를 분해, 정제, 조명, 통합하는 단계로 구성되며 각 단계 사이에 검증 지점을 활용합니다. 점진적 리팩토링이 실패했거나 패러다임 전환, 심하게 얽힌 모듈, 지체된 레거시 변환 작업 등 완전한 주기적 변환이 필요한 경우에 사용하세요.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/athanorClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Athanor
Execute a four-stage alchemical transmutation of code or data — decomposing the prima materia, purifying its essence, illuminating its target form, and synthesizing the refined output. The athanor is the furnace that maintains steady heat across all stages.
When to Use
- Transforming legacy code into modern, well-structured equivalents
- Refactoring deeply tangled modules where incremental fixes keep failing
- Converting a codebase from one paradigm to another (procedural to functional, monolith to modular)
- Processing raw, messy data into clean analytical datasets
- When simpler refactoring approaches have stalled and a full-cycle transformation is needed
Inputs
- Required: The material to transform (file paths, module names, or data sources)
- Required: The desired end state (target architecture, paradigm, or format)
- Optional: Known constraints (must preserve API, can't change database schema, etc.)
- Optional: Prior failed transformation attempts and why they stalled
Procedure
Step 1: Nigredo — Decomposition
Break the prima materia into its constituent elements. Nothing is sacred; everything is cataloged.
- Inventory the material completely:
- List every function, class, module, or data entity
- Map all dependencies (imports, calls, data flows)
- Identify hidden coupling (shared globals, implicit state, side effects)
- Surface hidden assumptions:
- What undocumented behaviors does the code rely on?
- What error conditions are silently swallowed?
- What ordering dependencies exist?
- Catalog anti-patterns and technical debt:
- God objects, circular dependencies, copy-paste duplication
- Dead code paths, unreachable branches, vestigial features
- Hardcoded values, magic numbers, embedded configuration
- Produce the Nigredo Inventory: a structured catalog of every element, dependency, assumption, and anti-pattern
Got: A complete, unflinching inventory of the material. The inventory should feel uncomfortable — if it doesn't, the decomposition isn't thorough enough. Every hidden assumption is now explicit.
If fail: If the material is too large to inventory fully, decompose by module boundary and treat each module as a separate athanor run. If dependencies are too tangled to map, use grep/Grep to trace actual call sites rather than relying on documentation.
Step 2: Meditate — Calcination Checkpoint
Run the meditate skill to clear assumptions accumulated during nigredo.
- Set aside the nigredo inventory and clear mental context
- Anchor on the transformation goal stated in Inputs
- Observe what biases nigredo introduced — did the decomposition make certain approaches seem inevitable?
- Label any premature solution ideas as "tangent" and return to the goal
Got: A clear, unbiased state ready to evaluate the material without being anchored to its current form. The goal feels fresh rather than constrained by what was found.
If fail: If the nigredo findings keep pulling attention (a particularly bad anti-pattern, a clever hack that's tempting to preserve), write it down and explicitly set it aside. Proceed only when the goal is clearer than the current form.
Step 3: Albedo — Purification
Separate the essential from the accidental. Strip away everything that doesn't serve the target form.
- From the nigredo inventory, classify each element:
- Essential: Core business logic, irreplaceable algorithms, critical data transformations
- Accidental: Framework boilerplate, workarounds for old bugs, compatibility shims
- Toxic: Anti-patterns, security vulnerabilities, dead code
- Extract the essential elements into isolation:
- Pull core logic out of framework wrappers
- Separate data transformation from I/O
- Extract interfaces from implementations
- Remove toxic elements entirely — document what was removed and why
- For accidental elements, determine if equivalents exist in the target form
- Produce the Albedo Extract: purified essential logic with clean interfaces
Got: A set of pure, isolated functions/modules that represent the core value of the original material. Each piece is testable in isolation. The extract is significantly smaller than the original.
If fail: If essential and accidental are too intertwined to separate, introduce seam points (interfaces) first. If the material resists purification, it may need dissolve-form before the athanor can continue.
Step 4: Heal — Purification Assessment
Run the heal skill to assess whether the purification was thorough.
- Triage the albedo extract: is anything still carrying toxic residue?
- Check for drift: has the purification drifted from the original transformation goal?
- Assess completeness: are all essential elements accounted for, or were some discarded prematurely?
- Rebalance if needed: restore any essential elements that were incorrectly classified as accidental
Got: Confidence that the albedo extract is complete, clean, and ready for illumination. No essential logic was lost; no toxic patterns remain.
If fail: If the assessment reveals significant gaps, return to Step 3 with the specific gaps identified. Do not proceed to citrinitas with incomplete material.
Step 5: Citrinitas — Illumination
See the target form. Map the purified elements to their optimal structure.
- Pattern recognition: identify which design patterns serve the purified elements
- Does the data flow suggest pipes/filters, event sourcing, CQRS?
- Do the interfaces suggest strategy, adapter, facade?
- Does the module structure suggest hexagonal, layered, micro-kernel?
- Design the target architecture:
- Map each essential element to its new location
- Define the interfaces between components
- Specify the data flow through the new structure
- Identify what must be created new (has no equivalent in the original):
- New abstractions that unify duplicated logic
- New interfaces that replace implicit coupling
- New error handling that replaces silent failures
- Produce the Citrinitas Blueprint: a complete mapping from albedo extract to target form
Got: A clear, detailed blueprint where every essential element has a home and every interface is defined. The blueprint should feel inevitable — given the purified elements, this structure is the natural fit.
If fail: If multiple valid architectures compete, evaluate each against the constraints from Inputs. If no clear winner emerges, prefer the simplest option and document the alternatives as future options.
Step 6: Meditate — Pre-Synthesis Checkpoint
Run the meditate skill to prepare for the final synthesis.
- Clear the analytical context from citrinitas
- Anchor on the citrinitas blueprint as the synthesis guide
- Observe any anxiety about the transformation — is anything being rushed?
- Confirm readiness: the blueprint is clear, the material is purified, the constraints are known
Got: Calm clarity about what needs to be built. The synthesis phase should be execution, not design.
If fail: If doubt persists about the blueprint, revisit Step 5 with the specific concerns. Better to refine the blueprint than to begin synthesis with uncertainty.
Step 7: Rubedo — Synthesis
Compose the purified elements into their target form. The philosopher's stone: working, optimized code.
- Build the new structure following the citrinitas blueprint:
- Create files, modules, and interfaces as specified
- Migrate each essential element to its new location
- Implement new abstractions and interfaces
- Wire the components together:
- Connect data flows as designed
- Implement error propagation through new paths
- Configure dependency injection or module loading
- Verify the synthesis:
- Does each component work in isolation? (unit tests)
- Do the components compose correctly? (integration tests)
- Does the full system produce the same outputs as the original? (regression tests)
- Remove scaffolding:
- Delete temporary compatibility shims
- Remove migration aids
- Clean up any remaining references to the old structure
- Produce the Rubedo Output: the transmuted code, fully functional in its new form
Got: Working code that is measurably better than the original: fewer lines, clearer structure, better test coverage, fewer dependencies. The transformation is complete and the old form can be retired.
If fail: If synthesis reveals gaps in the blueprint, do not patch — return to Step 5 (citrinitas) to revise the design. If individual components fail, isolate and fix them before attempting full integration. The rubedo must not produce a half-transformed chimera.
Validation Checklist
- Nigredo inventory is complete (all elements, dependencies, assumptions cataloged)
- Meditate checkpoint passed between nigredo/albedo (assumptions cleared)
- Albedo extract contains only essential elements with clean interfaces
- Heal assessment confirms purification completeness
- Citrinitas blueprint maps every essential element to target form
- Meditate checkpoint passed between citrinitas/rubedo (ready for synthesis)
- Rubedo output passes regression tests against original behavior
- Rubedo output is measurably improved (complexity, coupling, test coverage)
- No toxic elements survived into the final output
- Transformation constraints from Inputs are satisfied
Pitfalls
- Skipping nigredo depth: Rushing decomposition means hidden coupling surfaces during synthesis. Invest fully in the inventory
- Preserving accidental complexity: Attachment to clever workarounds or "it works, don't touch it" code. If it's not essential, it goes
- Skipping meditate checkpoints: Cognitive momentum from one stage biases the next. The pauses are structural, not optional
- Blueprint-less synthesis: Starting to code before citrinitas is complete produces patchwork, not transmutation
- Incomplete regression testing: The rubedo must reproduce original behavior. Untested paths will break silently
- Scope creep during citrinitas: The illumination phase reveals opportunities for improvement beyond the original goal. Note them but don't pursue them — the athanor serves the stated transformation, not a hypothetical ideal
Related Skills
transmute— Lighter-weight transformation for single functions or small moduleschrysopoeia— Value extraction and optimization (turning base code into gold)meditate— Meta-cognitive clearing used as stage-gate checkpointsheal— Subsystem assessment used for purification validationdissolve-form— When material is too rigid for the athanor, dissolve firstadapt-architecture— Complementary approach for system-level migration patternsreview-software-architecture— Post-synthesis architecture review
GitHub 저장소
연관 스킬
executing-plans
디자인executing-plans 스킬은 검토 체크포인트가 포함된 통제된 배치로 실행할 완전한 구현 계획이 있을 때 사용합니다. 이 스킬은 계획을 불러와 비판적으로 검토한 후, 소규모 배치(기본값 3개 작업)로 작업을 실행하면서 각 배치 사이에 진행 상황을 아키텍트 검토를 위해 보고합니다. 이를 통해 내재된 품질 관리 체크포인트를 갖춘 체계적인 구현이 보장됩니다.
requesting-code-review
디자인이 스킬은 코드 변경 사항을 요구 사항에 따라 분석하기 위해 코드 리뷰어 하위 에이전트를 호출합니다. 작업 완료 후, 주요 기능 구현 후, 또는 메인 브랜치에 병합하기 전에 사용해야 합니다. 이 리뷰는 현재 구현체와 원래 계획을 비교하여 문제를 조기에 발견하는 데 도움이 됩니다.
connect-mcp-server
디자인이 스킬은 개발자들이 HTTP, stdio 또는 SSE 전송 방식을 통해 MCP 서버를 Claude Code에 연결하는 포괄적인 가이드를 제공합니다. GitHub, Notion 및 사용자 정의 API와 같은 외부 서비스를 통합하기 위한 설치, 구성, 인증 및 보안을 다룹니다. MCP 통합 설정, 외부 도구 구성 또는 Claude의 모델 컨텍스트 프로토콜 작업 시 활용하세요.
web-cli-teleport
디자인이 스킬은 작업 분석을 기반으로 개발자가 Claude Code 웹 인터페이스와 CLI 인터페이스 중 선택할 수 있도록 돕고, 두 환경 간 원활한 세션 텔레포트를 가능하게 합니다. 웹, CLI 또는 모바일 환경 전환 시 세션 상태와 컨텍스트를 관리하여 워크플로를 최적화합니다. 다양한 단계에서 서로 다른 도구가 필요한 복잡한 프로젝트에 사용하세요.
