Skip to content

Create sync.yml for model skill synchronization#106

Open
chrismaz11 wants to merge 2 commits intomasterfrom
chrismaz11-patch-2
Open

Create sync.yml for model skill synchronization#106
chrismaz11 wants to merge 2 commits intomasterfrom
chrismaz11-patch-2

Conversation

@chrismaz11
Copy link
Copy Markdown
Collaborator

@chrismaz11 chrismaz11 commented Apr 6, 2026

Add a GitHub Actions workflow for cross model skill synchronization.

Summary

  • Add .github/workflows/sync.yml with a valid GitHub Actions workflow structure (name, on, jobs top-level keys) that runs the chrismaz11/Multi-Model-Skill-Sync action
  • Pin the action to a full commit SHA (f4188af98f2d960acad17921b40a0ae0efeb3879) instead of a moving tag for supply-chain security
  • Set target-models to a no-space CSV (codex,claude,gemini) to avoid unintended whitespace in model identifiers
  • Remove empty with: inputs (repo-root, mode, fail-on-drift, report-path) so the action uses its documented defaults

AI Disclosure (optional)

  • AI-assisted changes are included in this PR

Review Checklist

  • Human review requested
  • Tests added or updated where appropriate
  • No secrets, tokens, cookies, or raw PII were added to code, logs, fixtures, or docs
  • Security impact and remaining risks are described

Add a GitHub Actions workflow for cross model skill synchronization.
Copilot AI review requested due to automatic review settings April 6, 2026 22:18
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
trustsignal Ready Ready Preview, Comment Apr 7, 2026 9:34am

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow intended to run a “Cross Model Skill Sync” action to validate/refresh model skill configurations across multiple adapters.

Changes:

  • Introduces .github/workflows/sync.yml to run chrismaz11/Multi-Model-Skill-Sync
  • Configures target models for synchronization and optional reporting/fail-on-drift behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +16
- name: Cross Model Skill Sync
# You may pin to the exact commit or the version.
# uses: chrismaz11/Multi-Model-Skill-Sync@f4188af98f2d960acad17921b40a0ae0efeb3879
uses: chrismaz11/Multi-Model-Skill-Sync@v1.0.0
with:
# Repository root to manage.
repo-root: # optional, default is .
# Comma-separated model adapters to validate or refresh.
target-models: codex, claude, gemini
# Operation mode: validate or refresh.
mode: # optional, default is validate
# Fail the action when drift is detected.
fail-on-drift: # optional, default is true
# Path to write the JSON report to, relative to the repository root.
report-path: # optional, default is .ai/skills/reports/ai-skill-sync-report.json

Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow file is not a valid GitHub Actions workflow as-is: it’s missing the required top-level keys (name, on, jobs) and the uses: step isn’t nested under jobs.<job_id>.steps. As written, GitHub will reject/ignore the workflow. Restructure the file into a complete workflow with at least one job and a step that uses this action.

Suggested change
- name: Cross Model Skill Sync
# You may pin to the exact commit or the version.
# uses: chrismaz11/Multi-Model-Skill-Sync@f4188af98f2d960acad17921b40a0ae0efeb3879
uses: chrismaz11/Multi-Model-Skill-Sync@v1.0.0
with:
# Repository root to manage.
repo-root: # optional, default is .
# Comma-separated model adapters to validate or refresh.
target-models: codex, claude, gemini
# Operation mode: validate or refresh.
mode: # optional, default is validate
# Fail the action when drift is detected.
fail-on-drift: # optional, default is true
# Path to write the JSON report to, relative to the repository root.
report-path: # optional, default is .ai/skills/reports/ai-skill-sync-report.json
name: Cross Model Skill Sync
on:
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Cross Model Skill Sync
# You may pin to the exact commit or the version.
# uses: chrismaz11/Multi-Model-Skill-Sync@f4188af98f2d960acad17921b40a0ae0efeb3879
uses: chrismaz11/Multi-Model-Skill-Sync@v1.0.0
with:
# Repository root to manage.
repo-root: # optional, default is .
# Comma-separated model adapters to validate or refresh.
target-models: codex, claude, gemini
# Operation mode: validate or refresh.
mode: # optional, default is validate
# Fail the action when drift is detected.
fail-on-drift: # optional, default is true
# Path to write the JSON report to, relative to the repository root.
report-path: # optional, default is .ai/skills/reports/ai-skill-sync-report.json

Copilot uses AI. Check for mistakes.
Comment on lines +6 to +15
# Repository root to manage.
repo-root: # optional, default is .
# Comma-separated model adapters to validate or refresh.
target-models: codex, claude, gemini
# Operation mode: validate or refresh.
mode: # optional, default is validate
# Fail the action when drift is detected.
fail-on-drift: # optional, default is true
# Path to write the JSON report to, relative to the repository root.
report-path: # optional, default is .ai/skills/reports/ai-skill-sync-report.json
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several with: inputs are declared but left blank (repo-root:, mode:, fail-on-drift:, report-path:). In GitHub Actions, providing an empty value overrides the action’s default (it will pass an empty string/null), which can cause the action to misbehave. If you want defaults, omit these keys entirely; otherwise set explicit values (e.g., repo-root: ., mode: validate, etc.).

Suggested change
# Repository root to manage.
repo-root: # optional, default is .
# Comma-separated model adapters to validate or refresh.
target-models: codex, claude, gemini
# Operation mode: validate or refresh.
mode: # optional, default is validate
# Fail the action when drift is detected.
fail-on-drift: # optional, default is true
# Path to write the JSON report to, relative to the repository root.
report-path: # optional, default is .ai/skills/reports/ai-skill-sync-report.json
# Comma-separated model adapters to validate or refresh.
target-models: codex, claude, gemini

Copilot uses AI. Check for mistakes.
# Repository root to manage.
repo-root: # optional, default is .
# Comma-separated model adapters to validate or refresh.
target-models: codex, claude, gemini
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

target-models is provided as a single string containing commas and spaces (codex, claude, gemini). If the action parses this strictly, the spaces may become part of the model identifiers (e.g., " claude"). Prefer a no-space CSV (codex,claude,gemini) or the action’s documented list format (if supported).

Suggested change
target-models: codex, claude, gemini
target-models: codex,claude,gemini

Copilot uses AI. Check for mistakes.
Comment on lines +3 to +4
# uses: chrismaz11/Multi-Model-Skill-Sync@f4188af98f2d960acad17921b40a0ae0efeb3879
uses: chrismaz11/Multi-Model-Skill-Sync@v1.0.0
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment suggests pinning to a commit SHA, but the workflow uses a moving tag (@v1.0.0). For supply-chain security, prefer pinning to a full commit SHA (and optionally include the tag in a comment) so the workflow can’t change unexpectedly if the tag is moved.

Suggested change
# uses: chrismaz11/Multi-Model-Skill-Sync@f4188af98f2d960acad17921b40a0ae0efeb3879
uses: chrismaz11/Multi-Model-Skill-Sync@v1.0.0
# v1.0.0
uses: chrismaz11/Multi-Model-Skill-Sync@f4188af98f2d960acad17921b40a0ae0efeb3879

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8e6136c2d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,16 @@
- name: Cross Model Skill Sync
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Define a valid workflow with top-level on and jobs

This file starts with a single step entry (- name: ...) instead of a workflow definition, so GitHub Actions cannot execute it as a workflow. In .github/workflows/, each workflow must define triggers and jobs at the top level; as committed, the intended sync automation will never run, which breaks the feature introduced by this commit.

Useful? React with 👍 / 👎.

@chrismaz11
Copy link
Copy Markdown
Collaborator Author

@copilot apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

@copilot apply changes based on the comments in this thread

Applied all changes from the review thread in commit 2492bd4:

  • Added proper workflow structure with name, on, and jobs top-level keys
  • Pinned the action to commit SHA f4188af98f2d960acad17921b40a0ae0efeb3879 (with v1.0.0 in a comment) instead of the moving tag
  • Removed empty with: inputs (repo-root, mode, fail-on-drift, report-path) so action defaults are used
  • Changed target-models to no-space CSV: codex,claude,gemini

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.

3 participants