SkillsReviewed · oliver-kriska

Rewrite Architect for Elixir

Rewrite Architect is a Claude skill for developers planning an Elixir rewrite, but it requires the surrounding rewrite toolkit and human decisions about compatibility. It establishes an architecture decision record before design, coordinates specialist advice and supplies a Python utility for checking the resulting tracking ledger.

Researched 17 Nov 2026

In short.

Rewrite Architect is a Claude skill for teams designing an Elixir rewrite, but it depends on prior analysis and human approval of compatibility trade-offs. Its distinctive feature is deciding what existing users and systems must retain before choosing the new architecture. The supplied ledger utility checks tracking records and reports their recorded states; architecture quality, integration behavior and migration outcomes remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

The supplied snapshot covers the complete selected folder plugins/rewrite/skills/architect: SKILL.md, references/compatibility-bar.md and scripts/ledger.py. It also includes the repository-level LICENSE above that folder. Other plugins, agent definitions, sibling analysis scripts, downstream implementation and project outputs are excluded. Execution behavior, installation success, generated architecture quality and migration outcomes remain unassessed.

The overview

What it is

The architect skill occupies phase two of the repository’s rewrite sequence, after /rewrite:analyze and before /rewrite:roadmap. Its folder contains SKILL.md, a compatibility-bar reference and scripts/ledger.py.

The original resource folder is [https://github.com/oliver-kriska/claude-elixir-phoenix/tree/main/plugins/rewrite/skills/architect]. Its role is to direct an AI assistant through architectural decisions, specialist consultations and documented approval.

Where it fits

This is a strong conceptual fit for a rewrite where sessions, databases, external clients or background jobs must survive architectural change. The questions make those obligations explicit before the assistant proposes an idiomatic Elixir design.

Its practical value depends on accurate legacy analysis, available companion agents and meaningful human review. The source establishes a detailed planning method, but supplies no measured evidence of better designs, faster delivery or successful migrations.

Who it is for

The most suitable users are developers, architects and technical leads moving an existing application to Elixir. Product and operations owners also have a role because the questions cover maintenance windows, forced logouts, client changes and rollback.

Beginners get concrete explanations of migration choices, but still need someone who understands the existing application. Experienced developers get detailed prompts about write ownership, schema authority, session revocation, job delivery and backfill conflicts.

What it covers

The compatibility questions cover full replacement, staged cutover and long-term coexistence; database preservation or migration; session and password handling; unchanged clients or redesigned interfaces; contract preservation; and performance goals.

The skill directs creation of a context map, process table, architecture decision records, a tracking ledger, decisions and divergences. It can request specialist advice on Ecto schemas, OTP processes, Oban jobs, LiveView, security and external Hex libraries when a named question needs it.

The Python utility exposes check, stats, obligations and set commands. These inspect ledger structure, summarize recorded progress, extract acceptance cases from slice documents and update implementation or evidence states.

Using it

What it needs

Required inputs include features.md, mechanisms.md, runtime.md and contracts.md under .claude/rewrite/analysis, plus status information identifying source and target paths. The workflow also depends on the earlier analysis inventory script to detect source changes.

The instructions assume a Claude agent environment with question, agent-launch and messaging capabilities, the rewrite:elixir-way-architect agent and relevant phx specialists. Those agent definitions and the earlier analysis implementation are outside this folder.

The ledger utility requires Python 3 and uses only its standard library. Supported Python and Claude client versions, complete installation requirements and model availability are not specified.

How it works

The assistant first checks the target directory and compares the legacy source with its recorded inventory. It then establishes ADR-000, an architecture decision record specifying what must remain compatible. Questions distinguish evidenced consumer contracts, incidental framework behavior and defects.

Design-relevant questions can go to specialist agents, with at most four consultations in parallel. A named opus architect agent then synthesizes the architecture in the foreground. The workflow calls for ledger checks before presenting the design for acceptance or revision.

The --auto option applies documented defaults but labels them ASSUMED. The reference requires consequential assumptions and pending decisions to be resolved before the later roadmap hands affected work to implementation. The --revise option reopens a decision and directs related ledger evidence to become stale.

Getting started

Keep SKILL.md, references/compatibility-bar.md and scripts/ledger.py in their documented relative layout, together with the required companion rewrite components. References to CLAUDE_SKILL_DIR and sibling analysis scripts make that layout significant. A complete installation procedure is absent from the selected folder.

The documented entry point is /rewrite:architect after /rewrite:analyze. Invoke it from the recorded target path once the required analysis files exist and the source inventory remains current. Use --auto only with the understanding that its decisions still require approval.

A practical example

Consider an existing web application moving to Elixir one route at a time. A team could choose staged cutover, retain the current schema, preserve sessions and password hashes, and keep existing client protocols. Those choices would constrain ADR-000 before any architecture is proposed.

For that scenario, the supplied reference calls for decisions about which runtime owns each business invariant, which system changes the schema, how sessions are revoked across runtimes, how jobs are deduplicated and when rollback stops being possible. This is an illustrative application of the documented questions; no resulting architecture or migration result is supplied.

Assessment & evidence

Limits and integration questions

A clean ledger check establishes record consistency, not application compatibility. The script checks identifiers, table structure, recorded states, referenced ADR files and accepted-risk record fields. It does not validate the architecture, authenticate human approval or establish application behavior. Its set command can assign an evidence state without performing the underlying verification.

Some distinctions require care: a missing Departure column produces a warning rather than an error, and stats performs structural validation without all the checks performed by check. Its verified count measures qualifying ledger rows; aliases do not become separate verified rows.

One integration detail needs confirmation: synthesis receives .claude/rewrite/architecture/ as its output directory, while ledger.py expects ledger.md directly under .claude/rewrite. The architect agent’s actual file-placement behavior is outside the supplied scope. Runtime reliability and generated output quality remain unknown.

Why the approach matters

Putting compatibility decisions before design addresses a real architectural tension: preserving existing sessions, schemas and clients can constrain an otherwise idiomatic rewrite. Recording those choices gives reviewers a concrete basis for judging proposed changes.

The coexistence guidance is especially useful because it treats ownership at the business-invariant level. Two runtimes changing different columns can still break the same rule, and a backfill can overwrite newer data. The reference therefore asks for writer ownership, conflict policies, checkpoints and a defined last reversible point.

The defaults also distinguish compatibility from preserving defects. Ordinary defects remain undecided, while security defects default toward safer behavior with an explicit pending divergence. These are documented decision rules; their successful enforcement by the wider toolkit is unassessed.

Other ways to use the material

Teams with an established architecture process could adapt the included compatibility questions and ADR-000 template for a manual review. The ledger utility also exposes its commands independently of the agent instructions, although the team would need to maintain the expected files and records.

This is an inferred alternative based on the supplied artifacts. No comparative evidence establishes whether manual review, this skill or another architecture assistant produces better results or lower costs.

Source evidence

The available source evidence comprises the skill instructions, compatibility reference, complete ledger.py source and repository-level MIT notice. Together they establish the intended workflow, decision defaults, local file operations and license permissions.

The revision-specific resource folder is [https://github.com/oliver-kriska/claude-elixir-phoenix/tree/4621ae486f3ef3270cc5871685c9b13735ad5e60/plugins/rewrite/skills/architect]. Companion agents, earlier analysis scripts, later roadmap behavior and completed project outputs are outside this evidence.

Access & freshness

Costs

Actual operating cost is unknown. The skill declares high effort, requests an opus architect agent and can involve several specialist agents, but provides no prices, token budgets, usage measurements or total-cost estimates.

The MIT notice grants use permission without a license charge. That does not establish free access to the required AI environment or models.

Use and redistribution

The supplied repository-level MIT License names Oliver Kriska, copyright 2025–2026. It permits use, copying, modification, publication, distribution, sublicensing and sale of the software and associated documentation, subject to retaining the copyright and permission notices in copies or substantial portions.

The license disclaims warranties and liability. Terms for any AI service used to operate the skill are not supplied. The captured notice is available at [https://raw.githubusercontent.com/oliver-kriska/claude-elixir-phoenix/4621ae486f3ef3270cc5871685c9b13735ad5e60/LICENSE].

Revision and freshness

The supplied snapshot identifies commit 4621ae486f3ef3270cc5871685c9b13735ad5e60 and capture time 2026-11-17T14:04:29.825Z. These identify the source being described; no release number is supplied.

The original main-branch URL can change. Differences from the captured revision, compatibility with current Claude environments and compatibility with current companion-agent versions are unknown.

Before adopting it

Confirm that the required rewrite components and architect agent are available in the intended Claude environment. Check that the legacy analyses describe the actual application, then resolve consequential assumptions about data, identity, clients and cutover.

Confirm the generated ledger’s location and use both check and stats. Review the actual ADRs and divergences alongside those counts. Establish project-specific evidence for session compatibility, data reconciliation, job ownership, performance and rollback before relying on the design for a live migration.

Evidence for this report

LICENSEnotice · checked 2026-11-17
plugins/rewrite/skills/architect/SKILL.mdselected · checked 2026-11-17