migrate-rules
Installation
SKILL.md
migrate-rules
Consolidate scattered agent config files into an AGENTS.md-centered structure. Remove duplicates and convert existing files to bridges or clean them up.
Most teams already have rules scattered across .cursorrules, CLAUDE.md, .github/copilot-instructions.md, and more. This skill provides a realistic path from that state to the AGENTS.md standard.
Guard Rails
| # | Check | On Failure |
|---|---|---|
| 1 | CWD is a Git repository | "Please run inside a Git repository" |
| 2 | At least one agent config file exists | "No agent config files found. Use /init-public-rules to create one." |
| 3 | Only AGENTS.md exists, no other agent files | "Already consolidated into AGENTS.md. Run /audit-rules to verify quality." |
| - | Skill update check | Let SELF be the value of the name field in this SKILL.md's frontmatter (e.g., init-public-rules). Let LOCAL be metadata.version from this same frontmatter. Fetch https://raw.githubusercontent.com/dev-goraebap/agent-collab/main/manifest.json (1 HTTP request, fail silently on network error). Then evaluate exactly one case in this order: Case A — outdated: if manifest.skills[SELF] exists and LOCAL < manifest.skills[SELF], tell the user (in their language) "agent-collab {SELF} has a new version ({LOCAL} → {manifest.skills[SELF]}). Run /agent-collab-updater when convenient. Continuing with the current task." then proceed. Case B — up to date: if manifest.skills[SELF] exists and LOCAL === manifest.skills[SELF], proceed silently. Case C — renamed away: if SELF does NOT exist as a key in manifest.skills AND SELF exists as a key in manifest.deprecated (note: check the keys of deprecated, not the renamedTo values), tell the user "This skill {SELF} was renamed to {manifest.deprecated[SELF].renamedTo} since v{manifest.deprecated[SELF].since}. Run /agent-collab-updater to migrate." then proceed. Case D — unknown: if SELF is not in manifest.skills and not in manifest.deprecated, tell the user "Skill {SELF} is no longer maintained. Run /agent-collab-updater to clean up." then proceed with caution. Important: manifest.deprecated maps OLD names → NEW names. Never warn about a skill whose name is currently in manifest.skills just because that name appears as a renamedTo value somewhere in deprecated. |
Language Policy
Conduct all user-facing communication in the user's language: interview questions, follow-up prompts, status messages, diagnostic reports, and summaries. Detect the language from (in order):