OpenParable
Skip to content
← Back to skills

Adapter Sync

Agent Building
adapter-sync

Adapter Sync is an Agent Skill for agent building published in the JetXu-LLM/DocMason repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Generate or refresh the local Claude adapter surface for DocMason from canonical committed sources.

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/JetXu-LLM/DocMason/blob/HEAD/skills/canonical/adapter-sync/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/adapter-sync, 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.

Adapter Sync

Use this skill when the task is to generate or refresh the currently supported adapter artifacts.

This is an explicit adapter-maintenance workflow. It is not a universal prerequisite before every ordinary ask turn. For non-native compatibility targets such as Claude Code, this is the first adaptation step once workspace bootstrap has determined that generated adapter guidance is needed.

Required Capabilities

  • local file access
  • shell or command execution
  • ability to regenerate derived files instead of editing them manually

If the agent cannot write local generated files, stop and explain that adapter synchronization cannot proceed.

Procedure

  1. Treat AGENTS.md, canonical SKILL.md files, and canonical workflow.json sidecars as the authored source of truth.
  2. Use claude as the default target unless the user explicitly asks for another target.
  3. Run docmason status --json when you need to confirm whether the generated adapter is missing or stale.
  4. Run docmason sync-adapters --json.
  5. If adapter sync fails because canonical sources or workflow metadata are missing or invalid, stop and return that failure to the main agent instead of improvising a manual adapter.
  6. If adapter sync succeeds, run docmason status --json when you need to confirm the adapter is now fresh.
  7. Return the final adapter status judgment to the main agent. Do not delegate adapter regeneration sign-off.

Escalation Rules

  • If the requested target is not implemented, stop and report the current deferral clearly.
  • If the generated adapter is stale after canonical source changes, rerun sync-adapters instead of hand-editing generated files.

Completion Signal

  • The workflow is complete when docmason sync-adapters --json succeeds or returns a clear unsupported-target or metadata-validation failure that the main agent can surface directly.

Notes

  • DocMason currently supports the Claude target only.
  • Generated adapters are local derived artifacts and should not be hand-maintained.
  • The committed .claude/CLAUDE.md is the sole Claude project-memory entry file in this repo.
  • Adapter sync refreshes the generated adapters/claude/project-memory.md and adapters/claude/workflow-routing.md files that .claude/CLAUDE.md can import.
  • Adapter sync also refreshes the repo-local .claude/skills/ thin shim layer instead of relying on a hand-created symlink to the full repo skills tree.
  • Use this workflow when the chosen agent ecosystem actually depends on generated adapter files, not as a reflex before every workflow.