Logo van Alchemy Infra

Alchemy Infra

Community
jpoehnelt
alchemy-infra

Change, plan, deploy, or debug infrastructure declared with Alchemy (v2) and secrets from Infisical. Use for alchemy stack edits, bindings, Durable Object classes, D1 or other migrations, custom domains, local Docker stacks, adding or rotating a Worker secret, secret drift between Infisical, CI, and the Worker, deploy failures, or rollback.

Overzicht

Uitgeverjpoehnelt
Repositoryskills
Skillnaamalchemy-infra
Sterren
23
Forks
1
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door jpoehnelt op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Alchemy Infra in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/jpoehnelt/skills/tree/main/alchemy-infra
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jpoehnelt/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/alchemy-infra .claude/skills/alchemy-infra
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Alchemy Infra in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Alchemy Infra automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Alchemy Infra niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Infrastructure with Alchemy

Alchemy programs are the only place infrastructure is declared. Never hand-edit generated deployment manifests, add Wrangler config, or change a stack-owned resource in a dashboard.

Repo facts (from AGENTS.md): each stack's program file, stage names and which stage is production, plan, deploy, and local-run commands, the pinned Alchemy version and required Node version, where Alchemy state lives, the secret-name list in each stack, the Infisical environment and path per stage, the CI deploy jobs, and smoke-test commands.

Stacks

  • List every stack before changing one: program file, stage, plan and deploy commands, local command. Local and remote stacks often share one set of service declarations; change the shared declaration so every stack picks it up, and keep stack files to names, ports, volumes, and secrets.
  • Alchemy v2 betas move quickly. Keep the exact version pin and check the Node version it needs before running it (type stripping of the program file needs a recent Node).
  • Know where state lives. Remote state for production means local runs cannot accidentally fork it; local .alchemy/ state is disposable. Only the production stage should touch production, and production resources should be retained on removal.
  • Local ports come from the local stack's output or its instance registry; never hard-code them.

Change a stack

  1. Edit the program file. If the app derives its Env type from the program, handlers cannot drift from bindings; otherwise update the type in the same change.
  2. Keep test and smoke configurations (Miniflare bindings, smoke stacks, local env files) in step: bindings, Durable Object classes, test secrets.
  3. Durable Objects: keep binding and class names stable. Renaming or moving a class needs an explicit transfer or migration, never a silently new name. A namespace that still exists may need an inert export until its removal condition is met.
  4. Database migrations: add a new numbered file; never edit or remove an applied one.
  5. Run the package's type check (it type-checks the Alchemy program), then the plan for the changed stack. Read the plan diff for binding, Durable Object, KV, and domain changes before merge.
  6. Behavior check: run the changed stack locally (alchemy dev or the repo's local stack command), confirm containers are healthy (docker ps) for Docker stacks, and run the repo's smoke tests for the affected surface.

Secrets

Alchemy uploads the binding set whole on each deploy, so a secret missing from the deploy environment is removed from the Worker. To add or rotate a secret, update every place that names it:

  1. The stack's secret-name list (required names should fail the deploy when empty).
  2. The value in Infisical for each stage, plus the sync to CI secrets if CI reads them there.
  3. The CI deploy step's environment.
  4. Test configuration and the example local env file.

Then check drift by comparing secret names, never values, across the stack list, Infisical, the CI deploy env, and test config. A small comm -3 <(names from stack | sort -u) <(names from CI | sort -u) pipeline is enough; expect only deploy-only credentials (for example the Cloudflare API token) on the CI side. Never print or commit values. Keep any native Infisical-to-Cloudflare secret sync off when Alchemy owns the bindings.

Failures

Identify the failing layer (build, secret fetch, plan, apply, runtime) before retrying. A successful deploy does not prove the app or its datastores are ready.

  • Missing or empty secret: the deploy should fail before any cloud change. Fix the Infisical or CI value and rerun.
  • Adoption guards (a KV namespace or domain resolving to an unexpected resource, or a domain attached to another Worker): fix the input or detach deliberately. Do not use --adopt on ordinary deploys.
  • Build or apply error: rebuild through the task runner first, then rerun the same stage.
  • Unknown stage or unloaded environment: the stack should fail fast on a sentinel secret; run through the repo's secret-injection wrapper (for example infisical run --env=<env> --path=<path> -- ...).

Rollback

There is usually no rollback command and production resources are retained. Revert the offending commit on the default branch so CI redeploys, or check out the last good commit, build, and deploy that stage. Do not roll back across an applied database migration without a forward fix.

Do not deploy to shared or production stages, run destroy, tear down a stack with data, or use --adopt against production without explicit authorization.

Verify

  • The package type check passes.
  • The plan diff matches intent, with no unexpected binding, Durable Object, or domain deletion.
  • Secret-name drift shows only the expected deploy-only names.
  • The changed stack runs locally and its smoke tests pass.

Veelgestelde vragen

Wat doet de AI-skill Alchemy Infra?

Change, plan, deploy, or debug infrastructure declared with Alchemy (v2) and secrets from Infisical. Use for alchemy stack edits, bindings, Durable Object classes, D1 or other migrations, custom domains, local Docker stacks, adding or rotating a Worker secret, secret drift between Infisical, CI, and the Worker, deploy failures, or rollback.

Waarom Alchemy Infra gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Alchemy Infra bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Alchemy Infra in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/jpoehnelt/skills/tree/main/alchemy-infra. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Alchemy Infra gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Alchemy Infra gebruiken?

Zoveel als je wilt. Je kunt Alchemy Infra gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Alchemy Infra gratis?

Ja. Deze skill is door jpoehnelt op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇