[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72ADMRHYGZ6Y73BPK82C60A":3,"skill-same:01M72ADMRHYGZ6Y73BPK82C60A":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M72ADMRHYGZ6Y73BPK82C60A","xskill-dev",null,"Use when developing xskill itself — editing agent tool docstrings, changing the generate agent tool surface, or verifying what schema the Agno framework actually sends to the model. Covers the dump_schema workflow and where tool descriptions come from.","SkillNerds\u002Fxskill","SkillNerds","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F283534061?v=4","01M72ADC90GC2G52CXN8DKGP5Q","01M72ADC9KGMTQHYDEGS3FG98H",129,"MIT","https:\u002F\u002Fgithub.com\u002FSkillNerds\u002Fxskill\u002Fblob\u002Fmain\u002Fskills\u002Fxskill-dev\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: xskill-dev\ndescription: Use when developing xskill itself — editing agent tool docstrings, changing the generate agent tool surface, or verifying what schema the Agno framework actually sends to the model. Covers the dump_schema workflow and where tool descriptions come from.\n---\n\n# Developing xskill\n\n## 工具描述从哪来\n\nAgno 框架直接把 `@tool` 装饰的 Python 函数 docstring 当作发给模型的工具描述，\n参数说明也从 docstring 里解析。也就是说 docstring 就是模型上下文的一部分：\n\n- 写给模型看，不写内部实现细节（内部细节放代码注释）。\n- 系统提示词里不要再抄一遍工具清单，框架会自动注入 schema，抄了会漂移。\n- generate 代理的轨迹工具在 `src\u002Fxskill\u002Fagents\u002Ftraj_tools.py`，\n  通用工具在 `src\u002Fxskill\u002Fagents\u002Fagent_tools.py`，\n  wiki 工具在 `src\u002Fxskill\u002Fagents\u002Fllm_wiki.py`。\n\n## 改完 docstring 必跑：dump_schema\n\n改任何工具的 docstring 或签名之后，跑一次导出脚本，看 Agno 实际生成的\nschema 是什么样，确认模型看到的和你想的一致：\n\n```bash\n\u002Fhome\u002Fadmin\u002Fxskill\u002F.venv\u002Fbin\u002Fpython \\\n  scratch\u002Fstandalone-generate\u002Ftool_surface\u002Fdump_schema.py\n```\n\n输出写在同目录 `SCHEMA.txt`。对照检查：\n\n- 每个工具的 description 是否完整、有没有被截断或混进实现细节；\n- 参数名、类型、必填项是否与函数签名一致；\n- 新增或删除工具后，工具总数是否符合预期（generate 面当前是 16 个）。\n\n`SCHEMA.txt` 可以进 code review diff，reviewer 能直接看到模型侧的变化。\n\n## 上下文预算的流式陷阱\n\n`_wrap_with_context_mgmt` 只包 `model.invoke`。任何用 `stream=True` 跑 agent\n的路径都会走 `invoke_stream`，完全绕过 compact、spill 和超长兜底，模型跑在\n后端原生窗口里（DeepSeek 是 1M），而且日志里一条 CONTEXT 事件都不会有。\n产品 GenerateAgent 用非流式 `agent.run()` 所以没事；写实验脚本、demo、\n新 agent 入口时必须非流式，或先给 `invoke_stream` 补包装。判断预算机制\n是否真在跑，看 agent.log 里有没有 CONTEXT 事件（Compacted context、\nSpilled、Compact was not needed 任意一种）。\n\nllm_cfg 里开剪裁的键名是 `enable_spill`，不是 `spill`。\n\n## 相关材料\n\n- 工具面设计与取舍：`docs\u002Fplans\u002F2026-08-27-generate-tool-surface.md`\n- 独立实验台（Phoenix 观测、变体对比）：`scratch\u002Fstandalone-generate\u002F`，\n  入口 `run_experiment.py`，`product` 变体加载产品 traj_tools 与产品\n  SYSTEM_PROMPT，是验证产品行为的首选变体。\n","# Developing xskill\n\n## 工具描述从哪来\n\nAgno 框架直接把 `@tool` 装饰的 Python 函数 docstring 当作发给模型的工具描述，\n参数说明也从 docstring 里解析。也就是说 docstring 就是模型上下文的一部分：\n\n- 写给模型看，不写内部实现细节（内部细节放代码注释）。\n- 系统提示词里不要再抄一遍工具清单，框架会自动注入 schema，抄了会漂移。\n- generate 代理的轨迹工具在 `src\u002Fxskill\u002Fagents\u002Ftraj_tools.py`，\n  通用工具在 `src\u002Fxskill\u002Fagents\u002Fagent_tools.py`，\n  wiki 工具在 `src\u002Fxskill\u002Fagents\u002Fllm_wiki.py`。\n\n## 改完 docstring 必跑：dump_schema\n\n改任何工具的 docstring 或签名之后，跑一次导出脚本，看 Agno 实际生成的\nschema 是什么样，确认模型看到的和你想的一致：\n\n```bash\n\u002Fhome\u002Fadmin\u002Fxskill\u002F.venv\u002Fbin\u002Fpython \\\n  scratch\u002Fstandalone-generate\u002Ftool_surface\u002Fdump_schema.py\n```\n\n输出写在同目录 `SCHEMA.txt`。对照检查：\n\n- 每个工具的 description 是否完整、有没有被截断或混进实现细节；\n- 参数名、类型、必填项是否与函数签名一致；\n- 新增或删除工具后，工具总数是否符合预期（generate 面当前是 16 个）。\n\n`SCHEMA.txt` 可以进 code review diff，reviewer 能直接看到模型侧的变化。\n\n## 上下文预算的流式陷阱\n\n`_wrap_with_context_mgmt` 只包 `model.invoke`。任何用 `stream=True` 跑 agent\n的路径都会走 `invoke_stream`，完全绕过 compact、spill 和超长兜底，模型跑在\n后端原生窗口里（DeepSeek 是 1M），而且日志里一条 CONTEXT 事件都不会有。\n产品 GenerateAgent 用非流式 `agent.run()` 所以没事；写实验脚本、demo、\n新 agent 入口时必须非流式，或先给 `invoke_stream` 补包装。判断预算机制\n是否真在跑，看 agent.log 里有没有 CONTEXT 事件（Compacted context、\nSpilled、Compact was not needed 任意一种）。\n\nllm_cfg 里开剪裁的键名是 `enable_spill`，不是 `spill`。\n\n## 相关材料\n\n- 工具面设计与取舍：`docs\u002Fplans\u002F2026-08-27-generate-tool-surface.md`\n- 独立实验台（Phoenix 观测、变体对比）：`scratch\u002Fstandalone-generate\u002F`，\n  入口 `run_experiment.py`，`product` 变体加载产品 traj_tools 与产品\n  SYSTEM_PROMPT，是验证产品行为的首选变体。\n",{"name":5,"description":7},"main","d438329390736e6ea696c4fe25c53a72a06eda37","skills\u002Fxskill-dev",27,"https:\u002F\u002Fgithub.com\u002FSkillNerds\u002Fxskill","https:\u002F\u002Fxskill.wiki\u002F","https:\u002F\u002Fgithub.com\u002FSkillNerds","2026-11-11 18:14:29",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add SkillNerds\u002Fxskill --skill xskill-dev",{"tool":37,"command":38},"bunx","bunx skills add SkillNerds\u002Fxskill --skill xskill-dev",{"tool":40,"command":41},"pnpm","pnpm dlx skills add SkillNerds\u002Fxskill --skill xskill-dev","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSkillNerds\u002Fxskill\u002Fblob\u002Fmain\u002Fskills\u002Fxskill-dev\u002FSKILL.md",true,[],[46,53,60,67,74],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M72ADW9S00NVWZSWDNW5VZ90","demo-skill","A demo skill used to verify openclaw startup install path","https:\u002F\u002Fgithub.com\u002FSkillNerds\u002Fxskill\u002Fblob\u002Fmain\u002Ftests\u002Fdocker_e2e\u002Fscenarios\u002Fruntime_openclaw_detect\u002Fpre_state\u002F.xskill\u002Fskill\u002Fdemo-skill\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M72ADV32DN09D8FFD049799J","xskill-demo-marker","A unique marker skill installed by xskill, used to verify openclaw sees it","https:\u002F\u002Fgithub.com\u002FSkillNerds\u002Fxskill\u002Fblob\u002Fmain\u002Ftests\u002Fdocker_e2e\u002Fopenclaw_real_llm\u002Fdemo_skill\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M72ADQDB89DNXR7QB6YR5YTC","xskill-helper","Use this skill for xskill. Trigger when the user wants to init, connect or join a team server, generate or rewrite a team Skill from trajectories, search download upload or import team Skills, look up this user or a teammate's past chats across Claude Code Codex Cursor OpenCode Trae DeepSeek Harness and ngagent, upgrade the client, or debug a stuck daemon. Team chats: xskill traj search then traj read. This machine only: add --local to read ~\u002F.xskill\u002F*_sessions. Invoke as \u002Fxskill-helper.","https:\u002F\u002Fgithub.com\u002FSkillNerds\u002Fxskill\u002Fblob\u002Fmain\u002Fsrc\u002Fxskill\u002Fdata\u002Fskill\u002Fxskill-helper\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M72ADHX7EXZ7KV9FG1MEEVG8","using-xskill","Use when installing, configuring, or operating xskill (the `xskill` CLI \u002F `pip install xskill`) — starting the daemon, registering trajectory dirs, joining a team server, understanding how trajectories become Skills, or rebuilding\u002Fre-distilling the skill library after a model change.","https:\u002F\u002Fgithub.com\u002FSkillNerds\u002Fxskill\u002Fblob\u002Fmain\u002Fskills\u002Fusing-xskill\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M72ADFZV2TBW575YCCKWJDMG","xskill-registry-db-first","XSkill 数据访问原则：文件系统是内容真相，由 worker 同步进库；面板与业务读 请求只走数据库；内核 agent loop 可直接写盘。适用于改 dashboard、recommend、 team、pipeline、ecosystems 等读路径，以及审查是否又引入业务侧扫盘。","https:\u002F\u002Fgithub.com\u002FSkillNerds\u002Fxskill\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fxskill-registry-db-first\u002FSKILL.md",[],[]]