编程

AgentFiles

试用

Use this skill when you need to publish, fetch, search, list, share, or watch AgentFiles artifacts from Codex, Claude Code, OpenClaw, or other agent runtimes...

它能做什么

Use this skill when you need to publish, fetch, search, list, share, or watch AgentFiles artifacts from Codex, Claude Code, OpenClaw, or other agent runtimes...

技能文档

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 watch loops 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

  1. Run AgentFiles commands directly: agentfiles ....
  2. Pass argv directly. Never build shell strings around AgentFiles commands.
  3. If a command needs auth or namespace context, start with agentfiles whoami or agentfiles config --show.
  4. Prefer agentfiles setup for default onboarding. Use connect only when the user wants a dedicated runtime credential.
  5. For watch, remember that V1 is polling-only. Read references/runtime-notes.md when 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 agentfiles binary on PATH.
  • If it is unavailable, fall back to the published agentfiles-cli package through npm.
  • Expect network approval when npm needs to download the published CLI package.
  • Keep setup as the default onboarding path and connect as the advanced/manual path.
  • Credentials should come from the browser-approved CLI flow and the local ~/.attach/config.json file.
  • 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.

相关技能

Use when preserving, searching, reviewing, or exporting user-owned agent memory across OpenClaw, Codex, Claude, OpenCode, Hermes, Qoder, Obsidian, and Git. Inputs are local memory/chat stores and handoff summaries; outputs are Obsidian sources, memory indexes, context/profile packs, skill inventorie

8 次安装1 星标

Convert a book, paper, document, documentation site, or code repository into a structured, on-demand agent skill. Use when the user wants to turn a PDF, EPUB, DOCX, a URL, a docs site, or a GitHub repo into a skill they can load later — "make a skill from this book", "turn this paper into a skill", "turn these docs into a skill", "I want an agent that knows this library".

3 次安装

Delegate coding, repository analysis, file edits, test runs, or code review to the local Codex CLI without embedding an OpenAI API key. This skill was created to work with ChatGPT/Codex enterprise accounts that may not have the same level of API access. Invokes codex exec with existing ChatGPT/Codex CLI authentication and returns Codex's final output.

6 次安装1 星标

Manage workspace knowledge files and libraries in the Cargo content domain — upload, list, rename, move, and remove files (PDFs, CSVs, text), and create or sync native and connector-backed libraries for retrieval-augmented generation (RAG). Use when the user wants to upload or organize knowledge files, build a knowledge library, or sync an external knowledge source. To attach these to an agent, use the cargo-ai skill.

1 次安装