From 8d63782c8f66acc02ebd0c121c7edeafc36461bc Mon Sep 17 00:00:00 2001 From: Christopher Tso Date: Tue, 28 Apr 2026 01:23:04 +0200 Subject: [PATCH] chore: rename agentv-compliance skill to agentv-governance Co-Authored-By: Claude Sonnet 4.6 --- examples/governance/compliance-lint/README.md | 14 +++++++------- .../governance/compliance-lint/compliance-lint.yml | 6 +++--- examples/governance/compliance-lint/script/lint.py | 8 ++++---- .../SKILL.md | 2 +- .../references/eu-ai-act-risk-tiers.md | 0 .../references/governance-yaml-shape.md | 0 .../references/iso-42001-controls.md | 0 .../references/lint-rules.md | 0 .../references/mitre-atlas.md | 0 .../references/owasp-agentic-top-10-2025.md | 0 .../references/owasp-llm-top-10-2025.md | 0 11 files changed, 15 insertions(+), 15 deletions(-) rename plugins/agentv-dev/skills/{agentv-compliance => agentv-governance}/SKILL.md (99%) rename plugins/agentv-dev/skills/{agentv-compliance => agentv-governance}/references/eu-ai-act-risk-tiers.md (100%) rename plugins/agentv-dev/skills/{agentv-compliance => agentv-governance}/references/governance-yaml-shape.md (100%) rename plugins/agentv-dev/skills/{agentv-compliance => agentv-governance}/references/iso-42001-controls.md (100%) rename plugins/agentv-dev/skills/{agentv-compliance => agentv-governance}/references/lint-rules.md (100%) rename plugins/agentv-dev/skills/{agentv-compliance => agentv-governance}/references/mitre-atlas.md (100%) rename plugins/agentv-dev/skills/{agentv-compliance => agentv-governance}/references/owasp-agentic-top-10-2025.md (100%) rename plugins/agentv-dev/skills/{agentv-compliance => agentv-governance}/references/owasp-llm-top-10-2025.md (100%) diff --git a/examples/governance/compliance-lint/README.md b/examples/governance/compliance-lint/README.md index 06b97565..a9a8a8c2 100644 --- a/examples/governance/compliance-lint/README.md +++ b/examples/governance/compliance-lint/README.md @@ -1,15 +1,15 @@ # Governance Compliance Lint Action A reference GitHub Action that lints `governance:` blocks in changed `*.eval.yaml` files -using the `agentv-compliance` skill. The same skill that powers AI authoring also powers +using the `agentv-governance` skill. The same skill that powers AI authoring also powers CI enforcement — no separate runtime package needed. ## How it works 1. On every PR touching `*.eval.yaml` files, the Action extracts `governance:` blocks from each changed file (suite-level and per-case). -2. Each block is passed to Claude with the `agentv-compliance` skill loaded. -3. Claude applies the rules in `plugins/agentv-dev/skills/agentv-compliance/references/lint-rules.md` +2. Each block is passed to Claude with the `agentv-governance` skill loaded. +3. Claude applies the rules in `plugins/agentv-dev/skills/agentv-governance/references/lint-rules.md` and returns a structured JSON report (`{ pass: bool, violations: [...] }`). 4. The Action posts a summary as a PR comment and exits non-zero on any `pass: false` result. @@ -29,12 +29,12 @@ Name: `ANTHROPIC_API_KEY`, value: your key from console.anthropic.com. ### 3. Point at your skill location (optional) By default the workflow looks for the skill at -`plugins/agentv-dev/skills/agentv-compliance/` relative to the repo root. +`plugins/agentv-dev/skills/agentv-governance/` relative to the repo root. If your skill lives elsewhere, set `SKILL_PATH` in the workflow env: ```yaml env: - SKILL_PATH: path/to/your/agentv-compliance + SKILL_PATH: path/to/your/agentv-governance ``` ### 4. Push a PR with a `*.eval.yaml` change @@ -83,7 +83,7 @@ This Action is **opt-in** by default. To make it mandatory: ## Customising the rules -Edit `plugins/agentv-dev/skills/agentv-compliance/references/lint-rules.md` to add, remove, +Edit `plugins/agentv-dev/skills/agentv-governance/references/lint-rules.md` to add, remove, or adjust rules. The Action picks up changes automatically on the next run — no code change needed. ## Files @@ -98,7 +98,7 @@ examples/governance/compliance-lint/ The skill lives at: ``` -plugins/agentv-dev/skills/agentv-compliance/ +plugins/agentv-dev/skills/agentv-governance/ ├── SKILL.md └── references/ ├── governance-yaml-shape.md diff --git a/examples/governance/compliance-lint/compliance-lint.yml b/examples/governance/compliance-lint/compliance-lint.yml index 54c70390..43245d8b 100644 --- a/examples/governance/compliance-lint/compliance-lint.yml +++ b/examples/governance/compliance-lint/compliance-lint.yml @@ -1,11 +1,11 @@ name: Governance Compliance Lint -# Lints governance: blocks in changed *.eval.yaml files using the agentv-compliance skill. +# Lints governance: blocks in changed *.eval.yaml files using the agentv-governance skill. # Posts violations as PR comments and exits non-zero on any failure. # # Adoption: copy this file to .github/workflows/compliance-lint.yml in your repo. # Required secret: ANTHROPIC_API_KEY -# Optional: point SKILL_PATH at a fork of plugins/agentv-dev/skills/agentv-compliance/ +# Optional: point SKILL_PATH at a fork of plugins/agentv-dev/skills/agentv-governance/ on: pull_request: @@ -48,7 +48,7 @@ jobs: env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} CHANGED_FILES: ${{ steps.changed.outputs.files }} - SKILL_PATH: ${{ github.workspace }}/plugins/agentv-dev/skills/agentv-compliance + SKILL_PATH: ${{ github.workspace }}/plugins/agentv-dev/skills/agentv-governance GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} REPO: ${{ github.repository }} diff --git a/examples/governance/compliance-lint/script/lint.py b/examples/governance/compliance-lint/script/lint.py index 0cef3dd9..fe86fcf8 100644 --- a/examples/governance/compliance-lint/script/lint.py +++ b/examples/governance/compliance-lint/script/lint.py @@ -3,13 +3,13 @@ Governance compliance lint script. Reads each changed *.eval.yaml file, extracts governance: blocks, and calls -the Claude API with the agentv-compliance skill loaded to lint them. +the Claude API with the agentv-governance skill loaded to lint them. Posts violations as a PR comment and exits non-zero on any failure. Environment variables: ANTHROPIC_API_KEY - required CHANGED_FILES - space-separated list of changed eval file paths - SKILL_PATH - path to the agentv-compliance skill directory + SKILL_PATH - path to the agentv-governance skill directory GITHUB_TOKEN - for posting PR comments (optional; skipped if absent) PR_NUMBER - GitHub PR number (optional) REPO - GitHub repo in "owner/repo" form (optional) @@ -32,7 +32,7 @@ # --------------------------------------------------------------------------- MODEL = "claude-haiku-4-5-20251001" -SKILL_PATH = Path(os.environ.get("SKILL_PATH", "plugins/agentv-dev/skills/agentv-compliance")) +SKILL_PATH = Path(os.environ.get("SKILL_PATH", "plugins/agentv-dev/skills/agentv-governance")) CHANGED_FILES = os.environ.get("CHANGED_FILES", "").split() @@ -42,7 +42,7 @@ def load_skill_content() -> str: skill_md = SKILL_PATH / "SKILL.md" if skill_md.exists(): - parts.append(f"# Skill: agentv-compliance\n\n{skill_md.read_text()}") + parts.append(f"# Skill: agentv-governance\n\n{skill_md.read_text()}") refs_dir = SKILL_PATH / "references" if refs_dir.is_dir(): diff --git a/plugins/agentv-dev/skills/agentv-compliance/SKILL.md b/plugins/agentv-dev/skills/agentv-governance/SKILL.md similarity index 99% rename from plugins/agentv-dev/skills/agentv-compliance/SKILL.md rename to plugins/agentv-dev/skills/agentv-governance/SKILL.md index 3f910b9f..bd32ece6 100644 --- a/plugins/agentv-dev/skills/agentv-compliance/SKILL.md +++ b/plugins/agentv-dev/skills/agentv-governance/SKILL.md @@ -1,5 +1,5 @@ --- -name: agentv-compliance +name: agentv-governance description: >- Author, edit, and lint `governance:` blocks in `*.eval.yaml` files. Use when creating or updating evaluation suites that carry AI-governance metadata diff --git a/plugins/agentv-dev/skills/agentv-compliance/references/eu-ai-act-risk-tiers.md b/plugins/agentv-dev/skills/agentv-governance/references/eu-ai-act-risk-tiers.md similarity index 100% rename from plugins/agentv-dev/skills/agentv-compliance/references/eu-ai-act-risk-tiers.md rename to plugins/agentv-dev/skills/agentv-governance/references/eu-ai-act-risk-tiers.md diff --git a/plugins/agentv-dev/skills/agentv-compliance/references/governance-yaml-shape.md b/plugins/agentv-dev/skills/agentv-governance/references/governance-yaml-shape.md similarity index 100% rename from plugins/agentv-dev/skills/agentv-compliance/references/governance-yaml-shape.md rename to plugins/agentv-dev/skills/agentv-governance/references/governance-yaml-shape.md diff --git a/plugins/agentv-dev/skills/agentv-compliance/references/iso-42001-controls.md b/plugins/agentv-dev/skills/agentv-governance/references/iso-42001-controls.md similarity index 100% rename from plugins/agentv-dev/skills/agentv-compliance/references/iso-42001-controls.md rename to plugins/agentv-dev/skills/agentv-governance/references/iso-42001-controls.md diff --git a/plugins/agentv-dev/skills/agentv-compliance/references/lint-rules.md b/plugins/agentv-dev/skills/agentv-governance/references/lint-rules.md similarity index 100% rename from plugins/agentv-dev/skills/agentv-compliance/references/lint-rules.md rename to plugins/agentv-dev/skills/agentv-governance/references/lint-rules.md diff --git a/plugins/agentv-dev/skills/agentv-compliance/references/mitre-atlas.md b/plugins/agentv-dev/skills/agentv-governance/references/mitre-atlas.md similarity index 100% rename from plugins/agentv-dev/skills/agentv-compliance/references/mitre-atlas.md rename to plugins/agentv-dev/skills/agentv-governance/references/mitre-atlas.md diff --git a/plugins/agentv-dev/skills/agentv-compliance/references/owasp-agentic-top-10-2025.md b/plugins/agentv-dev/skills/agentv-governance/references/owasp-agentic-top-10-2025.md similarity index 100% rename from plugins/agentv-dev/skills/agentv-compliance/references/owasp-agentic-top-10-2025.md rename to plugins/agentv-dev/skills/agentv-governance/references/owasp-agentic-top-10-2025.md diff --git a/plugins/agentv-dev/skills/agentv-compliance/references/owasp-llm-top-10-2025.md b/plugins/agentv-dev/skills/agentv-governance/references/owasp-llm-top-10-2025.md similarity index 100% rename from plugins/agentv-dev/skills/agentv-compliance/references/owasp-llm-top-10-2025.md rename to plugins/agentv-dev/skills/agentv-governance/references/owasp-llm-top-10-2025.md