adapter-sync
Skill152 starsChanged 4 months agoApache-2.0View on GitHub
Generate or refresh the local Claude adapter surface for DocMason from canonical committed sources.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- askSkill
- grounded-answerSkill
- grounded-compositionSkill
- knowledge-base-syncSkill
- knowledge-constructionSkill
- provenance-traceSkill
- retrieval-workflowSkill
- runtime-log-reviewSkill
- validation-repairSkill
- workspace-bootstrapSkill
- workspace-doctorSkill
- workspace-statusSkill
- operator-evalSkill
- public-sample-workspaceSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the task is to generate or refresh the currently supported adapter artifacts.
- Distinctive: line 20
If the agent cannot write local generated files, stop and explain that adapter synchronization cannot proceed.
- Very specific: line 24
Treat AGENTS.md, canonical SKILL.md files, and canonical workflow.json sidecars as the authored source of truth.
- Very specific: line 25
Use claude as the default target unless the user explicitly asks for another target.
- Very specific: line 26
Run docmason status --json when you need to confirm whether the generated adapter is missing or stale.
- Distinctive: line 28
If adapter sync fails because canonical sources or workflow metadata are missing or invalid, stop and return that failure to the main agent …
- Very specific: line 29
If adapter sync succeeds, run docmason status --json when you need to confirm the adapter is now fresh.
- Distinctive: line 34
If the requested target is not implemented, stop and report the current deferral clearly.
- Very specific: line 35
If the generated adapter is stale after canonical source changes, rerun sync-adapters instead of hand-editing generated files.
- Distinctive: line 48
Use this workflow when the chosen agent ecosystem actually depends on generated adapter files, not as a reflex before every workflow.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
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
- Treat
AGENTS.md, canonicalSKILL.mdfiles, and canonicalworkflow.jsonsidecars as the authored source of truth. - Use
claudeas the default target unless the user explicitly asks for another target. - Run
docmason status --jsonwhen you need to confirm whether the generated adapter is missing or stale. - Run
docmason sync-adapters --json. - 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.
- If adapter sync succeeds, run
docmason status --jsonwhen you need to confirm the adapter is now fresh. - 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-adaptersinstead of hand-editing generated files.
Completion Signal
- The workflow is complete when
docmason sync-adapters --jsonsucceeds 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.mdis the sole Claude project-memory entry file in this repo. - Adapter sync refreshes the generated
adapters/claude/project-memory.mdandadapters/claude/workflow-routing.mdfiles that.claude/CLAUDE.mdcan 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.
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
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.

