From fb297906fda7bfc28a56b642d65b87cef58dfeec Mon Sep 17 00:00:00 2001 From: Sebastian Guillen Date: Wed, 1 Jul 2026 12:19:56 +0200 Subject: [PATCH 1/9] Add workflow to update flutter skill regularly --- .github/workflows/Skill Update | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/Skill Update diff --git a/.github/workflows/Skill Update b/.github/workflows/Skill Update new file mode 100644 index 0000000..e0d6c93 --- /dev/null +++ b/.github/workflows/Skill Update @@ -0,0 +1,54 @@ +name: Skill Update + +on: + schedule: + - cron: '0 5 * * 1-5' + workflow_dispatch: + +permissions: + pull-requests: write + +jobs: + update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Install official Flutter skills + run: npx skills add flutter/skills --skill '*' --agent universal + + - name: Commit official skills + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add .agents/ skills-lock.json + if ! git diff --cached --quiet; then + git commit -m "chore: update official Flutter agent skills" + git push + fi + + - name: Check for project skill changes + id: check + run: | + if git diff --quiet HEAD -- .opencode/skills/; then + echo "changed=false" >> "$GITHUB_OUTPUT" + else + echo "changed=true" >> "$GITHUB_OUTPUT" + fi + + - name: Create Pull Request + if: steps.check.outputs.changed == 'true' + uses: peter-evans/create-pull-request@v7 + with: + commit-message: "chore: update opencode flutter skill" + branch: "chore/update-skills" + title: "chore: update opencode flutter skill" + body: | + Automated PR to review and update the opencode Flutter skill. + + ## Checklist + - [ ] Review `.opencode/skills/flutter/SKILL.md` for accuracy + - [ ] Update architecture descriptions if patterns changed + - [ ] Add new key files or directories + - [ ] Update test commands if needed + - [ ] Document any new conventions From 4e3364741536fda42e6403f9262f91a159e2945c Mon Sep 17 00:00:00 2001 From: code-schreiber Date: Wed, 1 Jul 2026 12:27:30 +0200 Subject: [PATCH 2/9] fix: add .yml extension and contents:write permission --- .github/workflows/{Skill Update => Skill Update.yml} | 1 + 1 file changed, 1 insertion(+) rename .github/workflows/{Skill Update => Skill Update.yml} (98%) diff --git a/.github/workflows/Skill Update b/.github/workflows/Skill Update.yml similarity index 98% rename from .github/workflows/Skill Update rename to .github/workflows/Skill Update.yml index e0d6c93..602ed85 100644 --- a/.github/workflows/Skill Update +++ b/.github/workflows/Skill Update.yml @@ -6,6 +6,7 @@ on: workflow_dispatch: permissions: + contents: write pull-requests: write jobs: From 101522cf1cb1700404a731f669b3d4ad4bfe69ba Mon Sep 17 00:00:00 2001 From: code-schreiber Date: Wed, 1 Jul 2026 12:30:13 +0200 Subject: [PATCH 3/9] fix: replace direct git push with PR-based workflow --- .github/workflows/Skill Update.yml | 31 ++++++++++-------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/.github/workflows/Skill Update.yml b/.github/workflows/Skill Update.yml index 602ed85..f12baec 100644 --- a/.github/workflows/Skill Update.yml +++ b/.github/workflows/Skill Update.yml @@ -18,38 +18,27 @@ jobs: - name: Install official Flutter skills run: npx skills add flutter/skills --skill '*' --agent universal - - name: Commit official skills - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add .agents/ skills-lock.json - if ! git diff --cached --quiet; then - git commit -m "chore: update official Flutter agent skills" - git push - fi - - - name: Check for project skill changes + - name: Check for changes id: check run: | - if git diff --quiet HEAD -- .opencode/skills/; then - echo "changed=false" >> "$GITHUB_OUTPUT" - else + if ! git diff --quiet HEAD -- .agents/ skills-lock.json .opencode/skills/; then echo "changed=true" >> "$GITHUB_OUTPUT" + else + echo "changed=false" >> "$GITHUB_OUTPUT" fi - name: Create Pull Request if: steps.check.outputs.changed == 'true' uses: peter-evans/create-pull-request@v7 with: - commit-message: "chore: update opencode flutter skill" + commit-message: "chore: update opencode skills" branch: "chore/update-skills" - title: "chore: update opencode flutter skill" + title: "chore: update opencode skills" body: | - Automated PR to review and update the opencode Flutter skill. + Automated PR to review and update opencode skills. ## Checklist - - [ ] Review `.opencode/skills/flutter/SKILL.md` for accuracy - - [ ] Update architecture descriptions if patterns changed - - [ ] Add new key files or directories - - [ ] Update test commands if needed + - [ ] Review `.agents/` and `skills-lock.json` for official skill changes + - [ ] Review `.opencode/skills/` for project skill changes + - [ ] Verify test commands - [ ] Document any new conventions From c55a3196dab030a576979addb2d89905085cd0bb Mon Sep 17 00:00:00 2001 From: code-schreiber Date: Wed, 1 Jul 2026 12:33:19 +0200 Subject: [PATCH 4/9] simplify: check for any git changes instead of specific paths --- .github/workflows/Skill Update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Skill Update.yml b/.github/workflows/Skill Update.yml index f12baec..1330c3f 100644 --- a/.github/workflows/Skill Update.yml +++ b/.github/workflows/Skill Update.yml @@ -21,7 +21,7 @@ jobs: - name: Check for changes id: check run: | - if ! git diff --quiet HEAD -- .agents/ skills-lock.json .opencode/skills/; then + if ! git diff --quiet HEAD; then echo "changed=true" >> "$GITHUB_OUTPUT" else echo "changed=false" >> "$GITHUB_OUTPUT" From 863e6680da2b8ff43f1eefca541f07c64554811b Mon Sep 17 00:00:00 2001 From: code-schreiber Date: Wed, 1 Jul 2026 12:48:51 +0200 Subject: [PATCH 5/9] rename opencode.yml to opencode-review.yml and create new opencode.yml --- .github/workflows/opencode-review.yml | 26 ++++++++++++++++++++++++++ .github/workflows/opencode.yml | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/opencode-review.yml diff --git a/.github/workflows/opencode-review.yml b/.github/workflows/opencode-review.yml new file mode 100644 index 0000000..89f73bc --- /dev/null +++ b/.github/workflows/opencode-review.yml @@ -0,0 +1,26 @@ +name: opencode-review + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +jobs: + review: + runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + pull-requests: read + steps: + - uses: actions/checkout@v6 + with: + persist-credentials: false + - uses: anomalyco/opencode/github@latest + with: + model: opencode/big-pickle + share: false + prompt: | + Review this pull request: + - Check for code quality issues + - Look for potential bugs + - Suggest improvements \ No newline at end of file diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index 89f73bc..e69de29 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -1,26 +0,0 @@ -name: opencode-review - -on: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - -jobs: - review: - runs-on: ubuntu-latest - permissions: - id-token: write - contents: read - pull-requests: read - steps: - - uses: actions/checkout@v6 - with: - persist-credentials: false - - uses: anomalyco/opencode/github@latest - with: - model: opencode/big-pickle - share: false - prompt: | - Review this pull request: - - Check for code quality issues - - Look for potential bugs - - Suggest improvements \ No newline at end of file From 9056a9a2cc26d14928c5461f3f15d242011d6ae8 Mon Sep 17 00:00:00 2001 From: Sebastian Guillen Date: Wed, 1 Jul 2026 12:52:30 +0200 Subject: [PATCH 6/9] Add workflow so OpenCode can read comments on PRs and Issues --- .github/workflows/opencode.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index e69de29..4aa2185 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -0,0 +1,28 @@ +name: opencode + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + +jobs: + opencode: + if: | + contains(github.event.comment.body, '/oc') || + contains(github.event.comment.body, '/opencode') + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 1 + persist-credentials: false + + - name: Run OpenCode + uses: anomalyco/opencode/github@latest + with: + model: opencode/big-pickle + share: false From d41902e0b925af6b8ae0cd7c73356f9660387dc9 Mon Sep 17 00:00:00 2001 From: code-schreiber Date: Wed, 1 Jul 2026 12:57:50 +0200 Subject: [PATCH 7/9] fix: correct YAML indentation in opencode.yml --- .github/workflows/opencode.yml | 56 +++++++++++++++++----------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index 4aa2185..ed509e6 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -1,28 +1,28 @@ -name: opencode - -on: - issue_comment: - types: [created] - pull_request_review_comment: - types: [created] - -jobs: - opencode: - if: | - contains(github.event.comment.body, '/oc') || - contains(github.event.comment.body, '/opencode') - runs-on: ubuntu-latest - permissions: - id-token: write - steps: - - name: Checkout repository - uses: actions/checkout@v6 - with: - fetch-depth: 1 - persist-credentials: false - - - name: Run OpenCode - uses: anomalyco/opencode/github@latest - with: - model: opencode/big-pickle - share: false +name: opencode + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + +jobs: + opencode: + if: | + contains(github.event.comment.body, '/oc') || + contains(github.event.comment.body, '/opencode') + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 1 + persist-credentials: false + + - name: Run OpenCode + uses: anomalyco/opencode/github@latest + with: + model: opencode/big-pickle + share: false From af1a65957252686766a94b18d7341a976f4757f6 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Wed, 1 Jul 2026 11:00:28 +0000 Subject: [PATCH 8/9] Renamed workflow file to skill-update.yml Co-authored-by: code-schreiber --- .github/workflows/{Skill Update.yml => skill-update.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{Skill Update.yml => skill-update.yml} (100%) diff --git a/.github/workflows/Skill Update.yml b/.github/workflows/skill-update.yml similarity index 100% rename from .github/workflows/Skill Update.yml rename to .github/workflows/skill-update.yml From cedf1b0c77bf3df5b8fd51fb75ddee3068d41f92 Mon Sep 17 00:00:00 2001 From: Sebastian Guillen Date: Wed, 1 Jul 2026 13:08:41 +0200 Subject: [PATCH 9/9] Change pull-requests permission from read to write --- .github/workflows/opencode-review.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/opencode-review.yml b/.github/workflows/opencode-review.yml index 89f73bc..5dc113e 100644 --- a/.github/workflows/opencode-review.yml +++ b/.github/workflows/opencode-review.yml @@ -10,7 +10,7 @@ jobs: permissions: id-token: write contents: read - pull-requests: read + pull-requests: write steps: - uses: actions/checkout@v6 with: @@ -23,4 +23,4 @@ jobs: Review this pull request: - Check for code quality issues - Look for potential bugs - - Suggest improvements \ No newline at end of file + - Suggest improvements