Skip to content

chore(ai): add modern go skill and gofmt hook#19602

Open
janisz wants to merge 1 commit intomasterfrom
ai_tweeks
Open

chore(ai): add modern go skill and gofmt hook#19602
janisz wants to merge 1 commit intomasterfrom
ai_tweeks

Conversation

@janisz
Copy link
Contributor

@janisz janisz commented Mar 25, 2026

Make life easier when working with @claude and cursor

For compatibility, Cursor also loads skills from Claude and Codex directories: .claude/skills/, .codex/skills/, ~/.claude/skills/, and ~/.codex/skills/.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Prompt:

Create a test file /tmp/test_hook.go with this poorly formatted Go code:

package main
import "fmt"
func main() {
fmt.Println("hello")
}

Then read it back to verify the hook ran go fmt on it.

This will:
1. Trigger the Write tool (matches your hook's matcher)
2. The hook should run go fmt on the file
3. When you read it back, you should see properly formatted code with correct indentation

Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>

update skill

Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
@janisz janisz requested a review from rukletsov March 25, 2026 12:46
@rhacs-bot
Copy link
Contributor

Images are ready for the commit at d91787d.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-439-gd91787dfd1.

@codecov
Copy link

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.28%. Comparing base (8673b4b) to head (d91787d).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19602   +/-   ##
=======================================
  Coverage   49.28%   49.28%           
=======================================
  Files        2735     2735           
  Lines      206215   206215           
=======================================
+ Hits       101632   101638    +6     
+ Misses      97041    97036    -5     
+ Partials     7542     7541    -1     
Flag Coverage Δ
go-unit-tests 49.28% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@janisz janisz requested review from a team, AlexVulaj and robbycochran and removed request for rukletsov March 25, 2026 14:05
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