alchemy
Skill44 starsChanged 2 months agoMITView on GitHub
Runs a lightweight change preflight, then routes non-trivial design, refactor, and audit work through only the needed requirements and A.L.C.H.E.M.Y. skills. Explicitly trigger with `/alchemy`, `$alchemy`, or natural phrases such as "do some alchemy", "run alchemy on this", "use alchemy", or "give this an alchemy pass". Use for architecture, complexity, enforcement, shift-left, optimization, subsystems, increments (vertical slices), abstractions, cross-boundary refactors, consolidation, and over-engineering audits. Explicit invocation on a local bug fix, content or CSS edit, dependency bump, or trivial rename returns a cheap `SKIP` or `DIRECT` dispatch instead of loading every gate. Defines no new domain rules; routes to core sibling skills and task-matched companion skills.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- wyattjoh/skillstheir own version, first seen Sep 27, 2026
- BankrBot/skillstheir own version, first seen Apr 28, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- BankrBot/skills★ 1.2ksame name
- wyattjoh/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- architecture-as-code-javascriptSkill
- architecture-as-code-pythonSkill
- architecture-as-codeSkill
- architecture-guidelinesSkill
- bring-downSkill
- ci-cd-reliability-architectureSkill
- continuous-improvementSkill
- defect-shift-leftSkill
- dependency-lifecycleSkill
- evolutionary-database-designSkill
- functionality-complexity-tradeoffSkill
- implementation-readinessSkill
- morphogenetic-architectureSkill
- observability-designSkill
- push-outSkill
- requirements-groundingSkill
- requirements-topologySkill
- requirements-traceabilitySkill
- structural-simplificationSkill
- system-optimizationSkill
- test-strategySkill
- zero-copy-requirementsSkill
- alchemySkill
- architecture-as-code-javascriptSkill
- architecture-as-code-pythonSkill
- architecture-as-codeSkill
- architecture-guidelinesSkill
- bring-downSkill
- ci-cd-reliability-architectureSkill
- continuous-improvementSkill
- defect-shift-leftSkill
- dependency-lifecycleSkill
- evolutionary-database-designSkill
- functionality-complexity-tradeoffSkill
- implementation-readinessSkill
- morphogenetic-architectureSkill
- observability-designSkill
- push-outSkill
- requirements-groundingSkill
- requirements-topologySkill
- requirements-traceabilitySkill
- structural-simplificationSkill
- system-optimizationSkill
- test-strategySkill
- zero-copy-requirementsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Keep the default response terse: resume from the latest trustworthy decision, route to the smallest useful stage set, state the verdict, …
- Very specific: line 78
Do not run every gate by default: only explicit full language selects FULL, and Alchemy FULL is a traversal dispatch, not a gate's analysis …
- Very specific: line 109
When the subject decides where a fact, decision, or document belongs — a proposed document, a decision record, an architecture note, a …
- Very specific: line 116
When an advisory, drift, abandonment, license change, or end-of-life date names an owned dependency, select dependency-lifecycle.
- Very specific: line 119
When a risk survives verification into production, or alerts or telemetry are under review, select observability-design.
- Distinctive: line 130
Every stage describes change with four primitives: a Subsystem is where change lands, an Aspect is which dimension is touched, an Increment …
- Distinctive: line 161
Read references/failure-modes.md when a run's result looks wrong, an audit shows a symptom, or a trail has an unexplained skip.
- Distinctive: line 169
Default output for a single-gate or simple routed request:
- Very specific: line 216
Load each stage when the route reaches it: Read a stage's or companion pass's SKILL.md only once every stage before it has passed, never …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Alchemy
Command entrypoint for the adaptive A.L.C.H.E.M.Y. gate system. Requirements qualification spans the Minimum gate without adding letters to the acronym. Keep the default response terse: resume from the latest trustworthy decision, route to the smallest useful stage set, state the verdict, and name the next action.
1. Command Grammar
Invoke as /alchemy <alias> <subject> in Claude Code or $alchemy <alias>
<subject> in Codex; the alias is optional. Natural language is equivalent:
do some alchemy, run alchemy on this, use alchemy, and give this an
alchemy pass all request adaptive dispatch on the active subject.
The subject is the invocation arguments. Where commands expand arguments,
$ARGUMENTS is that string; if it is empty or literally unexpanded, use the
surrounding request text. A natural phrase with no explicit subject uses the
active request or most recent unresolved task; never ask the user to restate
context already in the conversation or worktree. ?, help, --help, or an
empty command with no active subject returns only this table.
| Alias | Route |
| none | Run the dispatch preflight; infer Design, Refactor, or Audit mode |
audit | Start at the read-only C₀ structural baseline; recover requirements only when intent is missing, stale, contradictory, or disputed |
full, all, walk the gates, complete alchemy | FULL: traverse every justified stage; record why any conditional stage is skipped |
M, minimum, necessity, worth | functionality-complexity-tradeoff — worth it? |
A, architecture, first-principles | architecture-guidelines — sound design? |
L, locality, placement | morphogenetic-architecture — where does it belong? |
C, complexity, simplify | structural-simplification — simpler? |
E, enforcement, architecture-as-code | architecture-as-code, plus -javascript or -python only when rule files are written or changed — rules as code? |
H, hermetic, shift-left | defect-shift-left, plus ci-cd-reliability-architecture for pipeline reliability — catch earlier? |
Y, yield, optimize | system-optimization — optimize flow? |
left | defect-shift-left — detect defects earlier |
out, push-out | push-out — move toil out of humans |
down, bring-down | bring-down — move bespoke code down |
zero-copy, source-of-truth | zero-copy-requirements |
deps, dependency | dependency-lifecycle |
signal, observability | observability-design |
left, out, and down form the DevOps improvement triad, outside the
seven-gate sequence: run a triad move only when the user names it. During
/alchemy Y, recommend out or down when the bottleneck is manual toil or
bespoke implementation, but do not run them unless the user asks.
Dispatch Preflight
Classify before reading any sibling skill body. Make dispatch the first observable checkpoint: decide from the request, already-loaded context, skill metadata, and the latest trustworthy decision artifacts; do not scan the repository or open sibling bodies merely to choose a dispatch. After emitting the dispatch, inspect only the artifacts and skills the route selects.
| Dispatch | Select when | Core route |
SKIP | Local behavior stays inside one governed boundary and asks no Alchemy question: copy/CSS, trivial rename, contract-preserving dependency bump, isolated in-boundary fix | None: load no gate skill; continue with matching companions and normal verification |
DIRECT | An alias, or one unambiguous gate question: worth, dead code, speculative abstraction, or "should this exist?" is M; a defect found late, check placement, or CI detection timing is H or left | Only that gate or triad skill |
ADAPTIVE | Structure, responsibility, data flow, abstraction, multiple requirements, or boundaries may change | The smallest justified set: a structural refactor inside one boundary is M, C, plus A when responsibility or public contract changes and H when verification placement changes; a new subsystem/service/library, cross-boundary dependency, increment cut through every layer (vertical slice), consolidation, or an aspect added or changed across several subsystems (auth, audit, logging, retry, i18n) is qualification as needed, M, A, L, C, E, H; an existing-code over-engineering audit is Audit mode from C₀ |
FULL | The user explicitly says full, all, walk the gates, or complete alchemy | Every justified stage, every skip recorded |
Do not run every gate by default: only explicit full language selects FULL,
and Alchemy FULL is a traversal dispatch, not a gate's analysis mode. Do not
convert uncertainty into FULL; select the smallest plausible route, state
the uncertain signal, and stop at the first missing prerequisite.
Gate and triad aliases are authoritative: use only that core gate or triad
move, even when the subject mentions subsystem boundaries, and expand the core
route only for explicit full, all, audit, walk the gates, or complete
alchemy. Focused aliases never silently run requirements qualification. If a
focused gate lacks a prerequisite, report the missing decision artifact and
stop at that gate unless the user asked for a broader pass. The prerequisites:
- Gate E remains blocked until Gate 3 records final acceptance; a
MOVE,SPLIT,MERGE, orINTRODUCE-BOUNDARYfirst runs the boundedL candidate → C measurement → L acceptancehandshake, re-entering L once. - Gate E also waits for a passing readiness decision in a full pass.
- Gate Y runs in iteration 2, the iteration after the increment ships, from its stable, measured baseline, unless the request is explicitly about an existing bottleneck.
ADAPTIVE, FULL, and audit read the route in §2 before selecting stages.
Companion Skill Routing
Alchemy owns the core qualification and gate route, not every task domain. From skill metadata and project instructions, select any non-Alchemy skill whose trigger independently matches the subject, and read only the selected companion bodies. A project profile may require companions for its domain, stack, UX, security, accessibility, API, release, or evidence rules; never hard-code project-specific companion names into this generic skill.
- When the subject decides where a fact, decision, or document belongs — a
proposed document, a decision record, an architecture note, a status page, or
a documentation-tree audit — select
zero-copy-requirements. It names the artifact that owns the question;push-outprunes prose already covered by an executable source, andrequirements-traceabilityanchors evidence once the location exists. None of the three is a qualification stage, gate, or acronym letter. - When an advisory, drift, abandonment, license change, or end-of-life date
names an owned dependency, select
dependency-lifecycle; it classifies the bump, and only a contract-preserving bump isSKIP. - When a risk survives verification into production, or alerts or telemetry
are under review, select
observability-design. test-strategyandevolutionary-database-designare two-pass companions that bracket A/L/C/E; the route in §2 orders their passes.SKIPskips only the Alchemy core; it never suppresses a matching companion.DIRECTkeeps the core route focused while allowing independently triggered companions.- Report companions explicitly. Use
Nonewhen no companion trigger matches.
Change Primitives
Every stage describes change with four primitives: a Subsystem is where change lands, an Aspect is which dimension is touched, an Increment is what changes, and an Iteration admits, realizes, and measures one increment. Each sibling names its own term as a specialization of exactly one and never redefines them; references/change-primitives.md defines them and maps each sibling term. Decomposition and aspect extraction are different cuts: decomposition splits one subsystem into several; extraction pulls one aspect out of several subsystems into one mechanism. A design that models an aspect as a subsystem, or copies its mechanism per subsystem, has confused the two.
2. Adaptive Requirements Qualification
Requirements Grounding, when evidence or meaning is absent or stale
→ M — Minimum
→ Requirements Topology, when relationships are non-trivial
→ Implementation Readiness
→ A — Architecture → L → C → E → H → YQualification stages are conditional and never become acronym letters. Before
selecting stages for ADAPTIVE, FULL, or audit, read
references/adaptive-route.md: routing rules,
decision hand-offs, the gate table, the Gate 3–4 handshake, the two-pass
companion order, core directives, the pre-flight checklist, and the
retrospective order. SKIP and DIRECT never need it.
Read references/failure-modes.md when a run's result looks wrong, an audit shows a symptom, or a trail has an unexplained skip; route the recovery to the named stage instead of rerunning every gate.
3. Output Contract
Default output for a single-gate or simple routed request:
Dispatch: <SKIP | DIRECT | ADAPTIVE | FULL>
Core route: <None | M | A | L | C | E | H | Y | left | out | down | ordered set>
Companions: <None | task-matched skills>
Verdict: Proceed | Redesign | Drop | Defer
Reason: <one or two lines>
Next: <one concrete action>For SKIP, emit this compact output alone with Core route: None; do not
load a core sibling merely to justify the skip.
Multi-stage runs, non-trivial design/refactor passes, audits, and explicit requests for detail emit one combined decision trail in execution order, including every stage used and every conditional stage skipped:
| Stage | Skill | Decision | Evidence / hand-off | Files/checks | Next action or skip rationale |
Then state:
Scope: <subsystem / service / refactor / PR>
Mode: Design | Refactor | Audit
Dispatch: SKIP | DIRECT | ADAPTIVE | FULL
Companions: <None | task-matched skills>
Blocking stage: <first non-passing qualification decision or gate, or None>
Decision: Proceed | Redesign | Drop | Defer
Verification: <commands, lint rules, tests, or Not run + reason>Lead any run that reaches a verdict with the four report blocks the root instruction file defines, What I found, Why it matters, Do this first, and What I did not check, then emit the records unchanged: the trail and scope block, then each stage that ran in execution order, with the decision record its skill's output contract defines. The trail summarizes stages; it never replaces a stage's record. When implementing changes, add the normal coding summary after the verdict.
4. Discipline
- Skipped stages require a one-line rationale. A skip without one is a defect and an over-engineering risk for the next audit.
- Natural language stays adaptive. "Do some alchemy" never means
FULLwithout explicit full-traversal language. - Load each stage when the route reaches it. Read a stage's or companion
pass's
SKILL.mdonly once every stage before it has passed, never ahead. A blocking decision in the route's hand-off table ends the route for that candidate: the stages after it stay unloaded and appear in the trail asNot runwith that decision as the reason. Only candidates with a passing decision continue. - Claim only what ran.
Core routeand the trail name a stage's decision only when itsSKILL.mdwas read in this task; a selected stage that did not run appears in the trail asNot runwith the reason. - When a gate is consistently skipped across tasks, that's a signal for
continuous-improvementto update THIS skill — not paper over with case-by-case reminders.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

