Repository navigation
Agent skill: anole-zig, written by anole init - #274
Merged
Merged
Conversation
SKILL.md with the look-it-up-first rule, a capability index of 62 rows linking to one reference per topic, and the minimal template app. references/ covers http, middleware-auth, realtime, databases, messaging, storage-email-clients, deployment, observability, config-cli, testing, the shared runtime rules and Zig 0.17. apis.txt lists the 530 public names the skill mentions, for a later CI check.
…names anole new and anole init write skills/anole-zig into the project as .claude/skills/anole-zig/ (embedded in the CLI through skills/index.zig, generated by tools/anole/gen_index.py) and add a line to AGENTS.md that points agents at it. A project that has the skill keeps its copy; an existing AGENTS.md gets the line appended. zig build skill-test resolves every name in skills/anole-zig/apis.txt (tests/skill_apis_test.zig, at compile time); CI runs it in the test job. build.zig.zon carries skills/. The skill follows #272's docs fixes (stale notes removed, docs/database.md line references moved, app.rateLimit installs itself).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An agent skill for Anole 0.7.0, and
anole init/anole newwriting it into new projects.AI coding agents have no training data on Anole and mostly know older Zig, so they hand-roll middleware, auth, pools, rate limits, rooms and jobs that Anole already has. The skill makes them look things up first.
What changed
SKILL.md(the look-it-up-first rule, a capability index, a minimal app),references/with one file per topic, andapis.txt, every public name the skill mentions. After merging main I brought it in line with docs: match the code (#271) #272: the notes about stale docs are gone (the Kafkatry req.body(), the 30 s WebSocket drain, the NATS fake server), thedocs/database.mdline references moved with the file, andapp.rateLimitis described as installing itself rather than going throughuse. I checked every relative link and everydocs/*.md#anchorit uses.anole newandanole initwrite the skill as.claude/skills/anole-zig/and add a line toAGENTS.md: "This project uses Anole; agents: load the anole-zig skill in .claude/skills/anole-zig/ before writing server code." There is one source:skills/index.zig(generated bytools/anole/gen_index.py, liketemplates/index.zig) embeds skills/anole-zig into the CLI, so no template carries a copy. An existingAGENTS.mdgets the line appended (once); an existing.claude/skills/anole-zig/is left as it is. A cli-test checks that the index lists every skill file; tests/templates/run.sh checks the skill and the AGENTS.md line for every template and bothanole initcases.zig build skill-test(tests/skill_apis_test.zig) resolves every name inapis.txtat compile time: each part must be a public declaration or field of the part before it,anole.auth.jwt(the anole_jwt dependency) included, and a type function such asanole.Server(Ctx)is entered with an empty context. It prints every name that does not resolve. CI runs it in the existingtestjob (zig build test skill-test). I checked that it fails on made-up names..pathscarriesskills, so a fetched package has the skill.zig fmt --checkin CI coversskills/; docs/templates.md and the CLI help mention the skill; CHANGELOG Unreleased has an "Added" section.Tests
On the box and the Mac, through build.sh:
zig build cli-test -Dprofile=minimal: 10/10 passed.zig build skill-test: passed (all 530 names resolve); with three made-up names appended it failed and listed exactly those three.anole initcases passed, the existing project keeping its own AGENTS.md text. The rest-postgres database tests skipped (no PostgreSQL); CI runs them.