craft-to-agents
Installation
SKILL.md
Craft instructions → AGENTS.md
Use scripts/sync.py beside this file; do not hand-rewrite the downloaded instructions.
The script records a source link inside each independently managed block so future
updates can recover the original document.
Workflow
-
Use
~/.config/opencode/AGENTS.mdunless the user specifies another target. Read that file first if it exists. -
Use the supplied Craft URL. For an update without a URL, find the requested section's
Source: <https://…craft.me/…>link in AGENTS.md. If the section is ambiguous, ask; refresh all linked blocks only when the user requests all of them. -
Run from this skill's base directory:
python3 "<skill-dir>/scripts/sync.py" "https://example.craft.me/SHARE_ID"