agentleFS
avizmarlonavizmarlon/agent-skills/skills/agent-runtime-parity/SKILL.md

agent-runtime-parity

Skill2 starsChanged 6 months agoMITView on GitHub

Maintain configuration and capability parity across multiple AI agent runtimes (Claude, Codex, Cursor, Gemini, custom agents). Use when syncing rules, skills, MCPs, configs, or credentials across team AI tools, or when debugging drift between agents.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

27 rules. About 0 are common, 23 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈23

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill when managing capabilities across multiple AI runtimes to prevent divergence, or when a configuration change, rule update, …

    line 8
  2. Very specific:

    Treat your canonical source repository (e.g., <REPO_ROOT>/skills/, <REPO_ROOT>/rules/) as the single source of truth for cross-agent …

    line 14
  3. Distinctive:

    Use tool-native configuration formats rather than converting everything to one format:

    line 30
  4. Distinctive:

    Credential routing notes: document via Bitwarden, vaults, or secure config stores—never commit raw secrets

    line 35
  5. Distinctive:

    Safe propagation: use references (env-var names, Bitwarden item IDs, vault paths) instead of values.

    line 78
  6. Distinctive:

    Before syncing into any runtime folder, compare new content against existing content.

    line 86
  7. Distinctive:

    Create a tool-native sync script (PowerShell, Bash, or Python) that:

    line 92
  8. Distinctive:

    After editing a shared skill or rule → run sync

    line 148
  9. Distinctive:

    After adding a new MCP connector → run sync

    line 149
  10. Distinctive:

    After onboarding a new AI tool → add it to target directories and run sync

    line 150
  11. Distinctive:

    After credential rotation → update vault references and run sync

    line 151
  12. Very specific:

    Add it to your sync script's $TargetDirs list

    line 171
  13. Distinctive:

    Verify the tool can see its new rules/skills

    line 173
  14. Distinctive:

    Test with a simple query to confirm parity

    line 174
  15. Very specific:

    Update your credential vault (Bitwarden, .env, AWS Secrets Manager, etc.)

    line 179
  16. Distinctive:

    Verify the new credential works in one tool first

    line 180
  17. Distinctive:

    Update all MCP configs and env-var references to point to the new credential name/ID

    line 181
  18. Distinctive:

    Test each tool to confirm it uses the new credential

    line 183
  19. Distinctive:

    If one AI tool behaves differently than others:

    line 188
  20. Distinctive:

    Check the tool's local rule/skill directory against the synced version

    line 190
  21. Distinctive:

    Verify the tool's MCP config and env-var assignments

    line 191
  22. Very specific:

    Check for local overrides (e.g., tool-specific .env that shadows the synced version)

    line 192
  23. Distinctive:

    Run sync again and restart the tool

    line 194
  24. Distinctive:

    MCP-Builder: Create and test custom MCP connectors for your tools

    line 208
  25. Distinctive:

    If managing AI agent parity across a team:

    line 216
  26. Distinctive:

    Document the sync cadence (e.g., "after every merge to main, run sync")

    line 219
  27. Distinctive:

    Use a shared git repo or artifact store for the canonical source

    line 220

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent Runtime Parity

Use this skill when managing capabilities across multiple AI runtimes to prevent divergence, or when a configuration change, rule update, MCP addition, or credential routing must propagate uniformly to all active AI surfaces.

This skill ensures that team AI tools stay synchronized and that operational changes made in one runtime surface automatically propagate to others—eliminating manual copy-paste sync and the drift that follows.

Core Model

Treat your canonical source repository (e.g., <REPO_ROOT>/skills/, <REPO_ROOT>/rules/) as the single source of truth for cross-agent capabilities.

Active AI Surfaces

Define your active AI surfaces explicitly. Common examples:

  • Claude Code (Anthropic)
  • Codex / Codex CLI (OpenAI)
  • Cursor (VSCode-based, custom LLM integration)
  • Gemini / Gemini CLI (Google)
  • Custom agent frameworks (LangChain, LlamaIndex, etc.)
  • Shared or team-wide agent orchestration tools
  • Desktop or CLI agent runners

Tool-Native Adapters

Use tool-native configuration formats rather than converting everything to one format:

  • Skill frameworks (SKILL.md, AGENT.md, etc.): store in tool-native directories
  • Rules and instructions (.mdc, .txt, .md): store in tool-specific rule folders
  • MCP/connector configs (JSON, YAML): use environment variable references instead of hardcoded secrets
  • Credential routing notes: document via Bitwarden, vaults, or secure config stores—never commit raw secrets

Example Structure

<REPO_ROOT>/
├── skills/
│   ├── skill-name-1/
│   │   └── SKILL.md
│   └── skill-name-2/
│       └── SKILL.md
├── rules/
│   ├── universal-rule.md
│   └── <tool>-specific-rule.mdc
├── mcp-configs/
│   ├── claude-config.json
│   ├── codex-config.json
│   └── cursor-config.json
└── sync-scripts/
    └── sync-agent-parity.ps1  (or .sh for Unix)

Hard Rule: Propagation Mandate

Any durable operational change made for one AI surface must be propagated to every active AI surface in the same session, or the gap must be documented explicitly.

What Must Propagate

  • Global instruction files and rules
  • Shared skills, plugins, agents, adapters, and helper scripts
  • MCP/connector declarations and configuration templates (using env-var references, not secrets)
  • API inventories, credential routing notes, and vault item metadata
  • Durable memories, handoff documents, and cross-agent troubleshooting notes
  • Environment variable names and their documented purposes

What MUST NOT Propagate

  • Raw secrets, API keys, tokens, or passwords
  • OAuth tokens, session stores, or browser cookies
  • Machine-specific authentication state (mcp-tokens, local auth files)
  • Logs, transcripts, caches, or runtime debugging output
  • Personal information or team-private data

Safe propagation: use references (env-var names, Bitwarden item IDs, vault paths) instead of values.

Duplicate Avoidance

For universal skills and rules, maintain one canonical source directory in your repository. Do not hand-maintain independent copies in each runtime folder.

Exception: tool-specific adapters (Cursor .mdc rules, tool-native config files) may be generated or adapted from the canonical source, but the source itself should remain singular.

Before syncing into any runtime folder, compare new content against existing content. Never automatically delete or overwrite real directories without inspection.

Sync Workflow

1. Define Your Sync Command

Create a tool-native sync script (PowerShell, Bash, or Python) that:

  • Reads from your canonical source directory
  • Identifies all active AI surface locations on your machine
  • Copies/symlinks rules, skills, and safe configs to each location
  • Verifies no raw secrets were copied
  • Reports what was synced and any errors

PowerShell example:

# sync-agent-parity.ps1
param(
    [string]$SourceDir = "C:\path\to\canonical\skills",
    [string[]]$TargetDirs = @(
        "C:\path\to\.claude\skills",
        "C:\path\to\.codex\skills",
        "C:\path\to\.gemini\skills"
    )
)

foreach ($target in $TargetDirs) {
    if (-not (Test-Path $target)) {
        New-Item -ItemType Directory -Path $target -Force | Out-Null
    }
    Copy-Item "$SourceDir\*" $target -Recurse -Force
    Write-Host "Synced to $target"
}

# Verify no raw API keys were copied
Get-ChildItem $TargetDirs -Recurse -File | ForEach-Object {
    $content = Get-Content $_.FullName -Raw
    if ($content -match 'sk-|api_key=|password=') {
        Write-Warning "Possible secret in $($_.FullName)"
    }
}

2. Document Sync Scope

Explicitly list what your sync script manages:

## Synced Artifacts

- Shared skills: `skills/*/SKILL.md`
- Universal rules: `rules/universal-*.md`
- MCP config templates: `mcp-configs/*.json` (env-var refs only)
- Helper scripts: `scripts/helpers/*.ps1`
- NOT synced: `.env`, Bitwarden vaults, machine-specific configs

3. Run Sync After Changes

Make it a habit:

  • After editing a shared skill or rule → run sync
  • After adding a new MCP connector → run sync
  • After onboarding a new AI tool → add it to target directories and run sync
  • After credential rotation → update vault references and run sync

Verification Checklist

After syncing, verify:

  • All target directories received updated files
  • No raw API keys or passwords appear in any synced file
  • All synced configs use environment variable references (e.g., $env:OPENROUTER_API_KEY, ${ANTHROPIC_API_KEY})
  • MCP JSON configs are valid JSON (test with jq or JSON linter)
  • Tool-native rule files (.mdc, .rules) have correct syntax for their tool
  • Bitwarden or credential vault item names are documented (not values)
  • No broken symlinks or file paths
  • Each AI tool can still be launched and reaches its configured rules/skills

Common Patterns

Adding a New AI Tool to Your Runtime

  1. Identify the new tool's rule/config directory (e.g., C:\Users\username\.newtool\skills)
  2. Add it to your sync script's $TargetDirs list
  3. Run sync
  4. Verify the tool can see its new rules/skills
  5. Test with a simple query to confirm parity

Rotating a Credential Across All Tools

  1. Generate new credential in the source service
  2. Update your credential vault (Bitwarden, .env, AWS Secrets Manager, etc.)
  3. Verify the new credential works in one tool first
  4. Update all MCP configs and env-var references to point to the new credential name/ID
  5. Run sync
  6. Test each tool to confirm it uses the new credential
  7. Revoke the old credential at source

Debugging Drift

If one AI tool behaves differently than others:

  1. Check the tool's local rule/skill directory against the synced version
  2. Verify the tool's MCP config and env-var assignments
  3. Check for local overrides (e.g., tool-specific .env that shadows the synced version)
  4. Review recent manual edits that may not have been synced
  5. Run sync again and restart the tool

Troubleshooting

ProblemDiagnosisSolution
Tool doesn't see updated rulesSync ran but tool wasn't restartedRestart the AI tool or reload its config
Secret leaked into sync targetRaw credential in a synced fileRotate credential, remove file, use env-var ref instead
One tool has different rules than othersManual local edit not syncedRe-apply edit to canonical source and run sync
MCP config fails to parseInvalid JSON in synced configValidate JSON syntax; check env-var expansion
Sync script failsPermission issue or path doesn't existVerify paths exist, user has write access, no files locked by running tools

Related Skills

  • MCP-Builder: Create and test custom MCP connectors for your tools
  • Tokens-Taxonomy: Organize and rotate credentials across team tools
  • Bitwarden-Access: Manage credentials in a shared vault

Notes for Team Leads

If managing AI agent parity across a team:

  • Designate one person as parity maintainer (responsible for canonical source and sync runs)
  • Document the sync cadence (e.g., "after every merge to main, run sync")
  • Use a shared git repo or artifact store for the canonical source
  • Audit synced artifacts regularly (quarterly secret scan)
  • Train team members to never hand-edit tool-specific copies—all changes go to canonical source

This prevents drift, reduces manual work, and ensures all team members see the same rules and capabilities across all their AI tools.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.