Skip to content

skills: a coding-agent skill for keel, installable as a plugin or with keel skill install - #4

Merged
emoss08 merged 1 commit into
masterfrom
claude/pensive-volta-h49cfr
Nov 5, 2026
Merged

emoss08 merged 1 commit into
masterfrom
claude/pensive-volta-h49cfr

Conversation

@emoss08

@emoss08 emoss08 commented Nov 5, 2026

Copy link
Copy Markdown
Owner

What

A Claude Code skill that teaches coding agents to write keel code the way docs/guide.md describes it, an llms.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, List needs Limit, Load instead 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

  • Plugin: the repo root is a Claude Code marketplace (.claude-plugin/marketplace.json + plugin.json, plugin source: "./"):
    /plugin marketplace add emoss08/keel
    /plugin install keel@keel
    
    There is no version field on purpose. Claude Code then versions the plugin by commit, so users get updates as master moves. With a version, it would only update when the number is bumped.
  • keel skill install: the new package skills embeds the files. The new keel skill command writes them to .claude/skills/keel at the module root, so the skill matches the keel version in the project's go.mod. -user installs to ~/.claude/skills, -to dir to 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.txt

In 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 skills row in the package table, and doc links.

Verification

  • go vet ./..., gofmt, keel gen -check: pass.
  • golangci-lint v2.15.0 (CI's version) on ./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.
  • The main snippets from SKILL.md and the references compiled against fleetdb in a temporary test file (not committed).
  • claude plugin validate ./ and claude plugin validate .claude-plugin/marketplace.json: pass. The only warnings are no icon and no version, both deliberate.
  • Installed end to end from a local checkout with claude plugin marketplace add + claude plugin install keel@keel: the skill appears in the plugin cache, enabled.

Generated by Claude Code

…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
emoss08 marked this pull request as ready for review November 5, 2026 20:47
@emoss08
emoss08 merged commit 1bef73a into master Nov 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants