GillMacedo

Add Decoder Rule — Development skill for Claude Code

Development community

Teach straykeys a decoder rule: $ARGUMENTS.

How to install Add Decoder Rule

Installs to ~/.claude/commands/gillmacedo-straykeys-add-decoder-rule.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/GillMacedo/straykeys/HEAD/.claude/commands/add-decoder-rule.md -o ~/.claude/commands/gillmacedo-straykeys-add-decoder-rule.md

Restart Claude Code, or start a new session, for it to be picked up.

What Add Decoder Rule does

Teach straykeys a decoder rule: $ARGUMENTS

  1. Show the rule with the real library first: add a struct to tests/decoders/types.go and a fixture to tests/decoders/testdata/, add a suite to suites in tests/decoders/decoders_test.go, and run make test-decoders to see where straykeys disagrees. Link the library source behind the rule in the PR.
  2. Change cmd/straykeys/schema.go (which keys a struct accepts) or cmd/straykeys/check.go (how values are checked) until the suite passes with

Alternatives in Development

Full documentation available on GitHub

View Source Repository