Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.
Coding
AgentFiles
Try itUse this skill when you need to publish, fetch, search, list, share, or watch AgentFiles artifacts from Codex, Claude Code, OpenClaw, or other agent runtimes...
What it does
Use this skill for runtime-facing AgentFiles work:
The skill document
AgentFiles
Use this skill for runtime-facing AgentFiles work:
- publish files or text as artifacts
- fetch artifact content or metadata
- search or list recent artifacts
- create share links
- verify the current principal with
whoami - run polling
watchloops for sidecars or wrappers
Do not reimplement AgentFiles API calls inside the skill unless the user explicitly asks for a direct API path. This skill is a thin wrapper around the existing CLI.
Workflow
- Run AgentFiles commands directly:
agentfiles .... - Pass argv directly. Never build shell strings around AgentFiles commands.
- If a command needs auth or namespace context, start with
agentfiles whoamioragentfiles config --show. - Prefer
agentfiles setupfor default onboarding. Useconnectonly when the user wants a dedicated runtime credential. - For
watch, remember that V1 is polling-only. Readreferences/runtime-notes.mdwhen you need caveats or troubleshooting.
Common Patterns
- Verify auth:
agentfiles whoami - Show config:
agentfiles config --show - Publish text:
agentfiles publish --content "..." --title "..." - Publish file:
agentfiles publish ./path/to/file -n --title - Fetch content:
agentfiles get - Fetch metadata:
agentfiles get --meta - Search:
agentfiles search "" -n - List:
agentfiles list -n - Share:
agentfiles share - Watch:
agentfiles watch -n --json
Handoff
- Hand off with content:
agentfiles handoff codex --content "Please review this patch" - Pipe content:
echo "review notes" | agentfiles handoff codex - Thread a conversation:
agentfiles handoff codex --content "..." --thread pr7-review - Reply back:
agentfiles handoff claude_code --reply-to-artifact-id --content "Looks good" - Hand off a file:
agentfiles handoff codex ./review.md - Search a thread:
agentfiles search "pr7-review" -n
Some runtimes may expose this as /handoff. Slash syntax is sugar, not a dependency.
Read references/commands.md for the command matrix. Read references/runtime-notes.md for auth, browser-based connect, polling caveats, and sandbox/network notes.
Behavior
- Prefer an installed
agentfilesbinary onPATH. - If it is unavailable, fall back to the published
agentfiles-clipackage through npm. - Expect network approval when npm needs to download the published CLI package.
- Keep
setupas the default onboarding path andconnectas the advanced/manual path. - Credentials should come from the browser-approved CLI flow and the local
~/.attach/config.jsonfile. - Do not ask the user to paste API keys into the skill or inline them in commands unless they explicitly choose the manual env-based path.
- Preserve CLI behavior. Do not reinterpret command output unless the user asks for a reformatted result.
Related skills
Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.
Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.
Save, search, and manage personal notes and knowledge bases in Get笔记 on explicit request.
Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.
Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.
More from hammadtq
Browse all skillsGet a cryptographic identity for your AI agent. Generate Ed25519 keys, sign your work, prove who you are — across any platform.