GillMacedo

Add Example — Development skill for Claude Code

Development community

Add an example module for this case: $ARGUMENTS.

How to install Add Example

Installs to ~/.claude/commands/gillmacedo-godebugdiff-add-example.md

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

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

What Add Example does

Add an example module for this case: $ARGUMENTS

  1. Create a small made-up module in examples/ with its own go.mod and no dependencies outside the standard library.
  2. Run go run ./plugin/scripts --json on it and check the result against go build and go version -m at both go lines, the way TestMatchesBuildInfo in tests/integration_test.go does.
  3. Add an integration test for it, and a line in examples/README.md.
  4. Run make test.

Alternatives in Development

  • Claude Code Examples — Official example projects and patterns from Anthropic 35.6k ★
  • Example Plugin — Reference implementation for plugin developers 14k ★
  • Claude How To — by luongnv89 — Example-driven guide to mastering Claude Code through progressive tutorials with copy-paste tem 8.5k ★

Full documentation available on GitHub

View Source Repository