#!/usr/bin/env bash set -euo pipefail # Regenerates skill-audit's Vale copy from agent-audit's canonical copy (see # scripts/check-vale-style-sync.sh / ADR-0014). Both copies must exist on disk # independently — a plugin's cache-install only copies each skill's own files, # so a symlink or shared path would break at install time — but that doesn't # mean the copy step has to be manual. Run this after editing agent-audit's # vale-wrap.sh or styles/Kyberforge, review the diff, then commit both trees # together. REPO_ROOT="${1:-$(git rev-parse --show-toplevel)}" SKILL_AUDIT="$REPO_ROOT/plugins/kyberforge/skills/skill-audit" AGENT_AUDIT="$REPO_ROOT/plugins/kyberforge/skills/agent-audit" cp "$AGENT_AUDIT/scripts/vale-wrap.sh" "$SKILL_AUDIT/scripts/vale-wrap.sh" rm -rf "$SKILL_AUDIT/assets/vale/styles/Kyberforge" cp -r "$AGENT_AUDIT/assets/vale/styles/Kyberforge" "$SKILL_AUDIT/assets/vale/styles/Kyberforge" echo "Synced skill-audit's vale-wrap.sh and styles/Kyberforge from agent-audit's canonical copy." echo "Review the diff, then commit both directories together."