Repository navigation
feat(agents): add gofmt and generated-file hooks, two skills, two reviewers - #202
Merged
Merged
Conversation
…iewers - hooks: gofmt-on-edit formats edited .go files; protect-generated blocks hand edits to swagger.json, go.sum, cli/dist and cli/bin - skills: new-command scaffolds a command with its tests and docs; refresh-contract refreshes the vendored swagger and runs the contract tests - agents: cli-compat-reviewer checks the scripting contract; security-reviewer checks credential, token and TLS handling - docs/claude/structure.md lists the new skills and hooks Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Summary
Claude Code automations for this repo, from a setup review. No Go code changes.
.claude/hooks/, wired in.claude/settings.json)gofmt-on-edit.sh(PostToolUse,Edit|Write): runsgofmt -won the edited.gofile. Never blocks.protect-generated.sh(PreToolUse,Edit|Write): blocks hand edits tocli/test/contract/testdata/swagger.json,cli/go.sum,cli/dist/*andcli/bin/*, and names the command to use instead.new-command: the "Adding a New Command" checklist fromCLAUDE.mdas a repeatable flow.refresh-contract: runsrefresh-swagger.sh, summarizes route and field changes, runs the contract tests, updatespkg/typesandapi-reference.md.cli-compat-reviewer: reviews only the scripting contract (stdout/stderr in machine modes, exit codes, JSON fields, yaml inline tags, plugin env,agent_guide.md).security-reviewer: reviews credential, token, TLS and server-text handling.docs/claude/structure.mdlists the new skills and hooks.Notes
jq;gofmt-on-edit.shalso needsgofmt.EditandWrite.refresh-swagger.sh,go modandmake buildstill work.Testing
protect-generated.shexits 2 forswagger.jsonand 0 forcli/cmd/root.go;gofmt-on-edit.shreformatted a badly formatted file..claude/settings.jsonparses as valid JSON.🤖 Generated with Claude Code