Knowledge, not scaffolding
Fifteen skills carry the procedure: discovery, stack choice, feature recipes, framework details, security, testing, delivery. The agent reads them and writes the code itself.
Aurifex is a knowledge plugin for coding agents. It teaches the agent to interview you, build exactly the bot you asked for, and prove the result with a static check.
One installer for macOS, Linux, and Windows
curl -fsSL https://raw.githubusercontent.com/lukavtz/aurifex/main/install.sh | sh
powershell -c "irm https://raw.githubusercontent.com/lukavtz/aurifex/main/install.ps1 | iex"
OMP, DeepSeek Harness, Claude Code, MCP
The agent asks, then writes, then checks. Every command returns a stable DomainResult and accepts --json.
node dist/cli.js target --stack grammy
ok · grammY 1.46.0 · Node >=24.9.0 · Bot API 10.4
# five questions, one confirmed bot-spec-1.1.0
bun install && bun run typecheck && bun test
ok · 12 tests passed
node dist/cli.js verify .
ok: 29 pass, 0 warn, 0 fail
gate open · evidence attached
verify exits 1 on a failed check, so an agent cannot claim success without evidence.
Knowledge, three tools, and one deterministic check. No generator, no templates, no hidden writes.
Fifteen skills carry the procedure: discovery, stack choice, feature recipes, framework details, security, testing, delivery. The agent reads them and writes the code itself.
The agent asks three to seven questions in one block, each with options and a recommended default. Every answer maps to a BotSpec field, and nothing is coded before you confirm it.
Ask for inline buttons and you get inline buttons. The recipes skill builds one vertical slice at a time, so the agent never adds scenes, payments, or a Mini App you did not request.
verify reads file contents inside a bounded snapshot and returns 29 check identifiers. A failed check exits 1, so the agent has to fix the bot instead of asserting success.
OMP, DeepSeek Harness, Claude Code through MCP, and any MCP client expose the same three tools: resolve the pinned stack, inspect a project, run the gate.
Four steps, in this order. Skipping one is how a bot ends up with features nobody asked for.
Procedure
Result
The plugin never writes the project. It supplies the procedure and the proof; the agent owns every file.
Each skill is a short procedure with gotchas and primary sources. The agent opens only the ones the request needs, so its context stays small.
Start with telegram-bot: it routes every other skill and states the hard rules. Read project-layout and the reference files only when the task reaches them.
A project built from the recipes, in the canonical layout. It never imports Aurifex.
my-bot/
├── src/ │ ├── http/ │ │ ├── server.ts │ │ ├── health.ts │ │ ├── telemetry.ts │ │ └── secrets.ts │ ├── telegram/ │ │ └── api104.ts │ ├── guard/ │ │ └── dedupe.ts │ ├── store/ │ │ └── db.ts │ ├── job/ │ │ ├── queue.ts │ │ └── worker.ts │ ├── service/ │ │ └── payments.ts │ ├── miniapp/ │ │ └── session.ts │ ├── config.ts │ ├── logger.ts │ ├── bot.ts │ └── main.ts ├── drizzle/ │ └── 0001_runtime_schema.sql ├── tests/ │ └── callback.test.ts ├── .env.example ├── Dockerfile ├── docker-compose.yml ├── Caddyfile ├── package.json └── bun.lock
$ node dist/cli.js verify my-bot ok: 29 pass, 0 warn, 0 fail
The layout reference in telegram-bot-recipes lists these paths, and a test keeps it in sync with the verifier.
The gate checks textual markers over a bounded snapshot. It never runs your project or calls Telegram; runtime behavior needs separate tests.
.env.example holds empty placeholders. Any token-shaped literal fails the build, and the checker never echoes it.
A secret header, HTTPS, an allowed port, and a framework callback that compares the secret. Custom equality checks fail.
update_id claims a 24-hour Redis key with SET NX EX 86400, so a redelivered update never runs twice.
allowed_updates is explicit and retry_after is honoured instead of hammering the API.
The Dockerfile ends on a named USER. Running as root fails verification.
ADMIN_IDS is checked on the server. Mini App initData is validated with HMAC-SHA256 and an auth_date freshness limit.
Check identifiers
A human summary by default, a DomainResult with --json.
aurifex targetaurifex inspectaurifex verifyaurifex installExit codes: 0 for success, 1 for a domain error, 2 for invalid usage.
v0.3.1 installs from the repository. The installer asks which harnesses and which scope, then exits on its own.
macOS and Linux
curl -fsSL https://raw.githubusercontent.com/lukavtz/aurifex/main/install.sh | sh
Windows PowerShell
powershell -c "irm https://raw.githubusercontent.com/lukavtz/aurifex/main/install.ps1 | iex"
The installer detects OMP, DSH, and Claude Code, prints every command it runs, and skips hosts that are not on PATH.
Registers the extension declared by the omp field in package.json.
omp.extensions
Adds the bundle to a named profile through cordis.patch.yml.
cordis.patch.yml
Installs the plugin that points Claude Code at the bundled MCP server through .mcp.json.
.mcp.json
Any other MCP client connects to the built stdio server and gets the same three tools.
AURIFEX_ROOT
AURIFEX_ROOT bounds every read and write. It defaults to the working directory.
Fifteen skills, three MCP tools, four CLI commands, and one static verifier. No project generator and no templates.
No. Version 0.3 removed it. The agent writes the bot from the recipe skills, and the plugin only checks the result.
Yes. Discovery produces three to seven questions with recommended defaults, every answer maps to a BotSpec field, and nothing is built until you confirm the spec.
10.4, through a typed raw adapter. grammY 1.46 and aiogram 3.31 declarations cover 10.3, so the knowledge never claims native 10.4 types.
No. It reads file contents inside a bounded snapshot: 64 MiB total, 1 MiB per file. No network and no Telegram call; runtime behavior belongs to the testing skill.
MTProto and userbot automation. Aurifex targets the Bot API only, and it is not a sandbox: the host extension process is trusted code.
Yes. Clone the repository, run pnpm install and pnpm build, then node dist/cli.js install --host all. Per-host commands are listed in the README.