OpenParable
Skip to content
← Back to skills

Config Sync Target Adaptation

Agent Building
config-sync-target-adaptation

Config Sync Target Adaptation is an Agent Skill for agent building published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Coordinate target-specific adapters for Droid, Qwen, Codex, OpenCode, and Amp CLI environments.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/config-sync-target-adaptation/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/config-sync-target-adaptation, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Purpose

Coordinate target-specific adapters so that config-sync applies correct rules, permissions, commands, settings, and memory updates for each CLI environment.

IO Semantics

Input: Config-sync plan describing targets and components, adapter scripts under .claude/commands/config-sync/adapters, resolved target configuration and rules directories.
Output: Adapter execution results and updated target configuration files per environment.
Side Effects: Invokes adapter scripts that perform writes to target configuration directories; relies on existing backups created by higher-level workflow phases.

Deterministic Steps

  1. Adapter Selection

    • Read the config-sync plan to determine which targets and components require adapter execution.
    • Map each target to its corresponding adapter script.
  2. Target Directory Resolution

    • Resolve configuration, rules, and commands directories using common helpers (get_target_config_dir, get_target_rules_dir, get_target_commands_dir).
    • Reject hard-coded home-relative paths in adapters.
  3. Adapter Invocation

    • Execute adapter scripts for each target/component combination with required environment variables and paths.
    • Ensure adapters enforce documented safety and permission constraints.
  4. Post-Execution Validation

    • Confirm that backups exist for all modified target configuration files.
    • Record adapter execution status into the plan or run metadata.