mirror of
https://github.com/samber/cc-skills-golang.git
synced 2026-09-12 20:16:25 +03:00
* docs: add CI/AI-driven code review section to README * chore: add .worktrees/ to .gitignore * feat: add AI-driven code review workflow with skill plugin - New GOLANG-AI-DRIVEN-REVIEW.md doc with 6-job Claude Code Action workflow (quality, correctness, security, quality-depth, ci-diagnosis, discuss) - New assets: claude-code-review.yml workflow + copilot-review-instructions.md - Workflow features: per-event concurrency lanes, 15min timeout, sticky comments, skill loading via npx skills add -a claude-code, Skill() invocation syntax in prompts - Cross-references to golang-continuous-integration in 7 skills (security, testing, linter, concurrency, error-handling, code-style, safety) - Tighten CI security: add permissions blocks to lint/security-scan, remove unused id-token from update workflows, add SARIF upload + exit-code to Trivy/Bearer
59 lines
2.4 KiB
YAML
59 lines
2.4 KiB
YAML
name: Update golang-xxxx libraries skill
|
|
on:
|
|
schedule:
|
|
- cron: '0 10 2 * *' # 2nd of every month at 10am UTC
|
|
workflow_dispatch: {}
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
update-libraries:
|
|
if: github.repository_owner == 'samber'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version: stable
|
|
|
|
- uses: anthropics/claude-code-action@v1
|
|
with:
|
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
prompt: |
|
|
You maintain the golang-{library-name} skill at skills/golang-{library-name}/SKILL.md in this repository.
|
|
|
|
The library name is {library-name}. Not all skills describe a library.
|
|
Examples of library skills:
|
|
- golang-samber-hot
|
|
- golang-samber-lo
|
|
- golang-samber-mo
|
|
- golang-samber-slog
|
|
- golang-samber-do
|
|
- golang-samber-oops
|
|
- golang-stretchr-testify
|
|
- golang-grpc
|
|
- golang-sqlx
|
|
Examples of non-library skills:
|
|
- golang-code-style
|
|
- golang-data-structures
|
|
- golang-database
|
|
- golang-design-patterns
|
|
- golang-documentation
|
|
- golang-error-handling
|
|
- golang-modernize
|
|
|
|
If the skill does not describe a library, do nothing.
|
|
|
|
Your job is to check if those skill needs updating:
|
|
1. Check the library README, documentation, changelog and released notes for the latest version. If a new version has been released that is not yet covered in the skill, research its changelog and add a new section with modernization opportunities.
|
|
2. Check if any suggestions in the skill have been deprecated or too old to be relevant. Suggest removing them or moving them to a "baseline" note.
|
|
3. Update the README.md if needed.
|
|
4. Increment skill version + plugin version.
|
|
|
|
If there are changes to make, open a PR with a clear description of what was updated and why.
|
|
claude_args: |
|
|
--allowedTools "Read,Write,Edit,Glob,Grep,Bash,WebFetch,WebSearch,mcp__github__get_file_contents,mcp__github__search_code,mcp__github__list_releases,mcp__github__get_latest_release,mcp__github__list_tags,mcp__github__create_pull_request,mcp__github__create_branch,mcp__github__push_files"
|