← 返回
未分类 中文

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...
当需要发布、获取、搜索、列出、共享或查看 Codex、Claude Code、OpenClaw 或其他代理运行时的 AgentFiles 工件时使用此技能。
hammadtq
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 405
下载
💾 0
安装
1
版本
#latest

概述

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 </code></li><li>Fetch content: <code>agentfiles get <artifact-id></code></li><li>Fetch metadata: <code>agentfiles get <artifact-id> --meta</code></li><li>Search: <code>agentfiles search "<query>" -n <namespace></code></li><li>List: <code>agentfiles list -n <namespace></code></li><li>Share: <code>agentfiles share <artifact-id></code></li><li>Watch: <code>agentfiles watch -n <namespace> --json</code></li></ul><h2>Handoff</h2><ul><li>Hand off with content: <code>agentfiles handoff codex --content "Please review this patch"</code></li><li>Pipe content: <code>echo "review notes" | agentfiles handoff codex</code></li><li>Thread a conversation: <code>agentfiles handoff codex --content "..." --thread pr7-review</code></li><li>Reply back: <code>agentfiles handoff claude_code --reply-to-artifact-id <id> --content "Looks good"</code></li><li>Hand off a file: <code>agentfiles handoff codex ./review.md</code></li><li>Search a thread: <code>agentfiles search "pr7-review" -n <namespace></code></li></ul><p>Some runtimes may expose this as <code>/handoff</code>. Slash syntax is sugar, not a dependency.</p><p>Read <code>references/commands.md</code> for the command matrix. Read <code>references/runtime-notes.md</code> for auth, browser-based <code>connect</code>, polling caveats, and sandbox/network notes.</p><h2>Behavior</h2><ul><li>Prefer an installed <code>agentfiles</code> binary on <code>PATH</code>.</li><li>If it is unavailable, fall back to the published <code>agentfiles-cli</code> package through npm.</li><li>Expect network approval when npm needs to download the published CLI package.</li><li>Keep <code>setup</code> as the default onboarding path and <code>connect</code> as the advanced/manual path.</li><li>Credentials should come from the browser-approved CLI flow and the local <code>~/.attach/config.json</code> file.</li><li>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.</li><li>Preserve CLI behavior. Do not reinterpret command output unless the user asks for a reformatted result.</li></ul></div> </div> </div> <div id="tab-versions" class="detail-content"> <div class="detail-section"> <h2>版本历史</h2> <p style="margin-bottom:12px;font-size:14px;color:#94a3b8;">共 1 个版本</p> <ul class="version-list"> <li> <div> <span class="version-tag">v1.0.2</span> <span style="font-size:11px;color:#5b6abf;margin-left:8px;background:#eef0ff;padding:1px 8px;border-radius:10px;">当前</span> </div> <div style="font-size:12px;color:#94a3b8;"> 2026-03-31 09:08 安全 安全 </div> </li> </ul> </div> </div> <div id="tab-security" class="detail-content"> <div class="detail-section"> <h2>安全检测</h2> <div class="sec-grid"> <div class="sec-card"> <h4>腾讯云安全 (Keen)</h4> <div class="sec-status sec-safe"> 安全,无风险 </div> <a href="https://tix.qq.com/search/skill?keyword=b24d9ced26ce953782e4c936726a4c40" target="_blank">查看报告</a> </div> <div class="sec-card"> <h4>腾讯云安全 (Sanbu)</h4> <div class="sec-status sec-safe"> 安全,无风险 </div> <a href="https://static.cloudsec.tencent.com/html-report-v2/2026/05/26/420669_188b16f1e82c65326ceb1a6f740b7ad2.html?q-sign-algorithm=sha1&q-ak=AKID8JMG1bzBC1dz96qNhssfFftujT1NCoFi&q-sign-time=1781308900%3B1812844900&q-key-time=1781308900%3B1812844900&q-header-list=host&q-url-param-list=&q-signature=2bfecdf216b36ceade3e17fc36a0b0b85c84d878" target="_blank">查看报告</a> </div> </div> </div> </div> <!-- Recommended Skills --> <div style="margin-top:24px;"> <h2 style="font-size:18px;font-weight:600;margin-bottom:16px;">🔗 相关推荐</h2> <div class="rec-grid"> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;">developer-tools</span> <h3><a href="/s/github">Github</a></h3> <div class="rec-owner">steipete</div> <div class="rec-desc">使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 668</span> <span style="color:#5b6abf;">📥 323,831</span> </div> </div> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;">security-compliance</span> <h3><a href="/s/skill-vetter">Skill Vetter</a></h3> <div class="rec-owner">spclaudehome</div> <div class="rec-desc">AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 1,211</span> <span style="color:#5b6abf;">📥 266,197</span> </div> </div> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;">ai-intelligence</span> <h3><a href="/s/self-improving-agent">self-improving agent</a></h3> <div class="rec-owner">pskoett</div> <div class="rec-desc">捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 4,056</span> <span style="color:#5b6abf;">📥 796,297</span> </div> </div> </div> </div> </div> <script> document.addEventListener('DOMContentLoaded',function(){ document.querySelectorAll('.detail-tab').forEach(function(btn){ btn.addEventListener('click',function(e){ var tab = this.getAttribute('data-tab'); document.querySelectorAll('.detail-tab').forEach(function(b){b.classList.remove('active')}); document.querySelectorAll('.detail-content').forEach(function(c){c.classList.remove('active')}); this.classList.add('active'); var el = document.getElementById('tab-'+tab); if(el) el.classList.add('active'); }); }); }); </script> <div class="footer"> <p>Skill工具集 © 2026</p> </div></body> </html>