Repository navigation
skills: a coding-agent skill for keel, installable as a plugin or with keel skill install - #4
Merged
Merged
Conversation
…h keel skill install skills/keel is a Claude Code skill that teaches agents to write keel code the way the guide describes it: the generated package for every query, no hand-written tenant filters, relations loaded in the read, keyset pages, batched reads, closures for transactions, sentinel errors. SKILL.md holds the rules, canonical patterns, anti-patterns and a finishing checklist; references/ holds per-topic detail the agent reads on demand. Users install it two ways: - as a plugin: the repository root is a Claude Code marketplace (.claude-plugin/marketplace.json, plugin.json), so /plugin marketplace add emoss08/keel and /plugin install keel@keel work; - with keel skill install: package skills embeds the files, and the new keel skill command writes them to .claude/skills/keel at the module root (-user for ~/.claude/skills, -to for any directory), matching the keel version in the project's go.mod. keel skill print writes a file to stdout. llms.txt gives the same guidance in the llms.txt format with links to the docs and the skill's references. Tests check the skill's front matter and links, Install's replace and refuse rules, and the command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AcYXsMTvTmxxMWYGcgutc1
emoss08
marked this pull request as ready for review
November 5, 2026 20:47
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.
What
A Claude Code skill that teaches coding agents to write keel code the way
docs/guide.mddescribes it, anllms.txt, and two ways for people who use keel to install the skill.The skill:
skills/keel/SKILL.md(~200 lines): how keel works, the rules it must never break (use the generated package, no hand-written tenant filters, values always bound,ListneedsLimit,Loadinstead of loops, transactions as closures, sentinel errors, don't edit generated files), canonical patterns, a "which tool do I use" table, a table of mistakes to fix, and a checklist before finishing.references/*.md: ten topic files the agent reads only when needed: models and gen, reading, loading/pagination/batch, writing, transactions and tenancy, hooks/errors/observability, config/migrations/seeds, testing and performance, dynamic queries and analytics, moving from Bun/GORM/sqlx.Installing it
.claude-plugin/marketplace.json+plugin.json, pluginsource: "./"):versionfield on purpose. Claude Code then versions the plugin by commit, so users get updates asmastermoves. With a version, it would only update when the number is bumped.keel skill install: the new packageskillsembeds the files. The newkeel skillcommand writes them to.claude/skills/keelat the module root, so the skill matches the keel version in the project'sgo.mod.-userinstalls to~/.claude/skills,-to dirto any directory. A reinstall replaces an existing keel skill completely. It refuses to write into a directory that isn't a keel skill unless given-force.keel skill print [file]writes a file to stdout.llms.txtIn the llmstxt.org format: a summary, the core rules, how to install the skill, and links to the docs and the skill's reference files (raw GitHub URLs on
master).README
Adds a "With a coding agent" install section, a
skillsrow in the package table, and doc links.Verification
go vet ./..., gofmt,keel gen -check: pass../skills/... ./cmd/...: 0 issues.go test -race ./skills ./cmd/keel: pass. The new tests check that the front matter parses, the description fits Claude Code's 1,536-character limit, SKILL.md is under 500 lines, every link resolves and every reference file is linked, the replace and refuse rules, and the command's normal use and usage errors.fleetdbin a temporary test file (not committed).claude plugin validate ./andclaude plugin validate .claude-plugin/marketplace.json: pass. The only warnings are no icon and no version, both deliberate.claude plugin marketplace add+claude plugin install keel@keel: the skill appears in the plugin cache, enabled.Generated by Claude Code