Skip to content

build: add .claude/skills for updating llgo version#672

Open
xgopilot[bot] wants to merge 2 commits intomainfrom
xgopilot/claude-skills-update-llgo
Open

build: add .claude/skills for updating llgo version#672
xgopilot[bot] wants to merge 2 commits intomainfrom
xgopilot/claude-skills-update-llgo

Conversation

@xgopilot
Copy link
Contributor

@xgopilot xgopilot bot commented Mar 9, 2026

Requested by @luoliwoshang

Summary

  • Added .claude/skills/update-llgo-version.md — a Claude skill file that documents the complete process for bumping the github.com/goplus/llgo dependency version

What this skill covers

The skill provides step-by-step instructions to update all files that reference the llgo version:

  • go.mod — Go module dependency
  • go.sum — checksums (via go mod tidy)
  • .github/workflows/go.yml — CI matrix version
  • .github/workflows/end2end.yml — CI matrix version
  • .github/workflows/gentest.yml — CI matrix version
  • .github/actions/setup-llcppg/action.yml — default version for the setup action

It also includes verification steps and commit message conventions.

Test plan

  • Skill file follows markdown format and is well-structured
  • All files that need updating during an llgo version bump are listed

Add a Claude skill file that documents the step-by-step process for
updating the llgo dependency version across go.mod, CI workflows,
and the setup action.

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com>
@luoliwoshang
Copy link
Member

@xgopilot use the skill-creator skill!

@xgopilot
Copy link
Contributor Author

xgopilot bot commented Mar 9, 2026

Improved the skill file using skill-creator conventions

Applied the following improvements to .claude/skills/update-llgo-version.md:

1. Added YAML frontmatter — The skill now has name and description fields in the standard --- frontmatter block, which is how Claude discovers and triggers skills. The description is written to be "pushy" per skill-creator best practices, so it triggers on related phrases like "bump llgo" or "change llgo dependency".

2. Added go get workflow — Instead of manually editing go.mod, the skill now instructs to use go get github.com/goplus/llgo@<version> followed by go mod tidy. This is the idiomatic Go approach and correctly resolves transitive dependencies.

3. Added current-version detection step — Step 1 now explicitly says to read go.mod and note the current version before updating, so the commit message can include from <old> to <new>.

4. Consolidated workflow updates — The three CI workflow files are now listed together in a single step with a concise description, reducing repetition while keeping all files clearly identified.

5. Removed redundant sections — The "When to Use" and standalone "Description" sections were folded into the frontmatter description field where Claude actually reads them for triggering.

6. Added explanatory context — Each step now briefly explains why the approach is preferred (e.g., why go get over manual editing), following the skill-creator principle of explaining the "why" rather than just the "what".

View job run

…instructions

- Add YAML frontmatter (name, description) for proper skill triggering
- Replace manual go.mod editing with idiomatic `go get` workflow
- Add step to detect current version for commit message
- Consolidate workflow file updates into a single clear step
- Remove redundant "When to Use" section (now in description field)
- Add explanatory context for why `go get` is preferred

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.32%. Comparing base (b7259eb) to head (6dd5f3b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #672   +/-   ##
=======================================
  Coverage   83.32%   83.32%           
=======================================
  Files          28       28           
  Lines        2500     2500           
=======================================
  Hits         2083     2083           
  Misses        369      369           
  Partials       48       48           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@luoliwoshang luoliwoshang requested a review from MeteorsLiu March 9, 2026 10:34
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