Ai Sync banner
mateusz-pietras mateusz-pietras

Ai Sync

AI community

Description

o CLI that keeps a canonical .ai source of rules, skills, agents, prompts, and MCP config, then generates synchronized hard-copy setups for Cursor, GitHub Copilot, and Claude Code (including dynamic instructions/docs and template-driven automation) across repositories.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

ai-sync

Minimal Go CLI to sync a canonical `.ai` source into IDE-specific outputs for Cursor, GitHub Copilot, and Claude Code.

Purpose

  • Keep one source of truth (.ai/).
  • Generate hard-copy IDE config directories (no symlinks).
  • Auto-build a generated rules dictionary section in copilot-instructions.md.

Canonical source schema

.ai/
  rules/
  skills/
  agents/
  commands/
  prompts/
  mcp/mcp.json
  templates/
    copilot/copilot-instructions.md
    claude/CLAUDE.md
    gitignore/.gitignore

Package structure

ai-sync/
  cmd/ai/main.go
  go.mod
  .gitignore
  .ai/
    README.md
    rules/
    skills/
    agents/
    commands/
    prompts/
    mcp/mcp.json
    templates/
      copilot/copilot-instructions.md
      claude/CLAUDE.md
      gitignore/.gitignore

Output mapping

Cursor

  • .ai/rules -> .cursor/rules
  • .ai/skills -> .cursor/skills
  • .ai/agents -> .cursor/agents
  • .ai/commands -> .cursor/commands
  • .ai/mcp/mcp.json -> .cursor/mcp.json
  • tool launchers generated from .ai/templates/mcp-tools/*.sh when command is ai-sync:launcher:

Copilot

  • .ai/agents -> .github/agents
  • .ai/skills -> .agents/skills
  • .ai/rules -> .github/ai/rules
  • .ai/commands -> .github/ai/commands
  • .ai/prompts -> .github/ai/prompts
  • .ai/mcp/mcp.json -> .vscode/mcp.json (normalized to servers)
  • tool launchers generated from .ai/templates/mcp-tools/*.sh when command is ai-sync:launcher:
  • generated output -> .github/copilot-instructions.md

Claude Code

  • .ai/agents -> .claude/agents
  • .ai/skills -> .claude/ai/skills
  • .ai/rules -> .claude/ai/rules
  • .ai/commands -> .claude/commands
  • .ai/prompts -> .claude/ai/prompts
  • .ai/mcp/mcp.json -> .mcp.json (project root, mcpServers)
  • tool launchers generated from .ai/templates/mcp-tools/*.sh when command is ai-sync:launcher:
  • generated output -> CLAUDE.md

Shared

  • `.ai/tem