[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CN8PRNV3S8D4BZN9EYHWVZ":3,"skill-same:01M6CN8PRNV3S8D4BZN9EYHWVZ":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6CN8PRNV3S8D4BZN9EYHWVZ","create-tool",null,"Author a new @tool-decorated Python file in the agent workspace, validate it, and register it via reload().","joshuamschultz\u002FArc","joshuamschultz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2312349?v=4","01M6CN5XFME1WP2XMKCZBH4MMG","Josh","01M6CN5XMCNJTZPB9HE6N2MD2R",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-tool\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"create","tool","create tool","python","validate","file","Bash","workspace","agent workspace","read","write","build","2026-11-10 10:12:30",false,"---\nname: create-tool\nversion: 1.0.0\ndescription: Author a new @tool-decorated Python file in the agent workspace, validate it, and register it via reload().\ntriggers: [add a tool, build a tool, extend yourself, write a tool that, I need a tool to]\ntools: [write, create_tool, reload, read, bash]\n---\n\n## Resources\n\n(auto-filled by the loader)\n\n## Contract\n\nInputs you must have:\n- A clear, single-sentence statement of what the new tool does.\n- Argument names with concrete types (`str`, `int`, `bool`, `list[str]`).\n- A description of the success-case return string.\n\nOutputs the agent must produce:\n- A `.py` file at `workspace\u002Fcapabilities\u002F\u003Cname>.py` decorated with `@tool(...)`.\n- A `reload()` call after `create_tool` succeeds.\n- A test invocation of the new tool to confirm it works.\n\nDon't proceed if the user's request is ambiguous about WHEN the tool should be called. Ask.\n\n## Knowledge\n\nThe `@tool` decorator lives in `arcagent.tools._decorator`. Its full field list is in `references\u002Fdecorator-fields.md`. The AST validator that `create_tool` runs is documented in `references\u002Fast-blocked-list.md` — read it before writing source that touches files, network, or imports beyond `typing`\u002F`dataclasses`. Good and bad tool authoring patterns are in `references\u002Fexamples-good-and-bad.md`.\n\nThe `version` field is required and must match the bumped version when calling `update_tool` later. Start at `\"1.0.0\"`.\n\n`classification` is the safety guard: `\"read_only\"` if the tool only reads state (and is therefore parallel-safe), `\"state_modifying\"` for anything that writes, calls subprocesses, or touches external state. **Default to `\"state_modifying\"`** — when unsure, the safer choice loses concurrency, never correctness.\n\n`when_to_use` is the LLM-facing hint shown in the system prompt's tool manifest. Keep it under 80 characters and lead with the trigger phrase (\"When you need to ...\").\n\n## Steps\n\n1. Read this SKILL.md once. Don't re-read mid-task.\n2. Decide the tool's name (snake_case, valid Python identifier) and write a one-line description.\n3. Compose the source body — use `templates\u002Ftool.py.template` as the starting point.\n4. Call `create_tool(name=..., source=...)`. If it returns `Error: AST validation rejected ...`, read the rejection category, fix the offending pattern (it's almost always a privileged import or `getattr` on a denied attribute), and try again.\n5. Call `reload()`. The diff string should mention `+1 added (\u003Cyour-name>)`.\n6. Invoke your new tool with sample arguments to confirm it works end-to-end.\n7. If anything is wrong, call `update_tool(name=..., new_source=..., version_bump=\"patch\")` — never delete and re-create.\n\n## Anti Patterns\n\n- **Don't** auto-call `reload()` from inside `create_tool`. The split is intentional: write many capabilities, reload once.\n- **Don't** put workspace paths in the source body. Use the runtime context (`from arcagent.builtins.capabilities import _runtime; _runtime.workspace()`).\n- **Don't** import `os`, `sys`, `subprocess`, `socket`, `ctypes`, `pickle`, `marshal`, `shelve`, or any module not in the AST validator's allowlist. The validator will reject the source and your call to `create_tool` will fail.\n- **Don't** name your tool the same as an existing one — `create_tool` rejects collisions. Use `update_tool` instead.\n- **Don't** skip the test invocation in step 6. A tool that registers but doesn't work wastes context for every future LLM call.\n\n## Examples\n\n```python\n# Good — read-only, single-purpose, classification correct\n@tool(\n    description=\"Count lines in a workspace file\",\n    classification=\"read_only\",\n    capability_tags=[\"file_read\"],\n    when_to_use=\"When you need a quick line count without reading the whole file\",\n    version=\"1.0.0\",\n)\nasync def line_count(file_path: str) -> str:\n    from arcagent.builtins.capabilities import _runtime\n    from arcagent.tools._validation import resolve_workspace_path\n    p = resolve_workspace_path(file_path, _runtime.workspace())\n    return str(sum(1 for _ in p.open()))\n```\n\n## Validation\n\nBefore declaring the new tool done:\n- `create_tool` returned `Created tool ...`.\n- `reload()` returned a diff containing `+1 added`.\n- A live invocation returned the expected output.\n- `scripts\u002Fvalidate.py` (if you wrote one alongside the tool) exits 0.\n","## Resources\n\n(auto-filled by the loader)\n\n## Contract\n\nInputs you must have:\n- A clear, single-sentence statement of what the new tool does.\n- Argument names with concrete types (`str`, `int`, `bool`, `list[str]`).\n- A description of the success-case return string.\n\nOutputs the agent must produce:\n- A `.py` file at `workspace\u002Fcapabilities\u002F\u003Cname>.py` decorated with `@tool(...)`.\n- A `reload()` call after `create_tool` succeeds.\n- A test invocation of the new tool to confirm it works.\n\nDon't proceed if the user's request is ambiguous about WHEN the tool should be called. Ask.\n\n## Knowledge\n\nThe `@tool` decorator lives in `arcagent.tools._decorator`. Its full field list is in `references\u002Fdecorator-fields.md`. The AST validator that `create_tool` runs is documented in `references\u002Fast-blocked-list.md` — read it before writing source that touches files, network, or imports beyond `typing`\u002F`dataclasses`. Good and bad tool authoring patterns are in `references\u002Fexamples-good-and-bad.md`.\n\nThe `version` field is required and must match the bumped version when calling `update_tool` later. Start at `\"1.0.0\"`.\n\n`classification` is the safety guard: `\"read_only\"` if the tool only reads state (and is therefore parallel-safe), `\"state_modifying\"` for anything that writes, calls subprocesses, or touches external state. **Default to `\"state_modifying\"`** — when unsure, the safer choice loses concurrency, never correctness.\n\n`when_to_use` is the LLM-facing hint shown in the system prompt's tool manifest. Keep it under 80 characters and lead with the trigger phrase (\"When you need to ...\").\n\n## Steps\n\n1. Read this SKILL.md once. Don't re-read mid-task.\n2. Decide the tool's name (snake_case, valid Python identifier) and write a one-line description.\n3. Compose the source body — use `templates\u002Ftool.py.template` as the starting point.\n4. Call `create_tool(name=..., source=...)`. If it returns `Error: AST validation rejected ...`, read the rejection category, fix the offending pattern (it's almost always a privileged import or `getattr` on a denied attribute), and try again.\n5. Call `reload()`. The diff string should mention `+1 added (\u003Cyour-name>)`.\n6. Invoke your new tool with sample arguments to confirm it works end-to-end.\n7. If anything is wrong, call `update_tool(name=..., new_source=..., version_bump=\"patch\")` — never delete and re-create.\n\n## Anti Patterns\n\n- **Don't** auto-call `reload()` from inside `create_tool`. The split is intentional: write many capabilities, reload once.\n- **Don't** put workspace paths in the source body. Use the runtime context (`from arcagent.builtins.capabilities import _runtime; _runtime.workspace()`).\n- **Don't** import `os`, `sys`, `subprocess`, `socket`, `ctypes`, `pickle`, `marshal`, `shelve`, or any module not in the AST validator's allowlist. The validator will reject the source and your call to `create_tool` will fail.\n- **Don't** name your tool the same as an existing one — `create_tool` rejects collisions. Use `update_tool` instead.\n- **Don't** skip the test invocation in step 6. A tool that registers but doesn't work wastes context for every future LLM call.\n\n## Examples\n\n```python\n# Good — read-only, single-purpose, classification correct\n@tool(\n    description=\"Count lines in a workspace file\",\n    classification=\"read_only\",\n    capability_tags=[\"file_read\"],\n    when_to_use=\"When you need a quick line count without reading the whole file\",\n    version=\"1.0.0\",\n)\nasync def line_count(file_path: str) -> str:\n    from arcagent.builtins.capabilities import _runtime\n    from arcagent.tools._validation import resolve_workspace_path\n    p = resolve_workspace_path(file_path, _runtime.workspace())\n    return str(sum(1 for _ in p.open()))\n```\n\n## Validation\n\nBefore declaring the new tool done:\n- `create_tool` returned `Created tool ...`.\n- `reload()` returned a diff containing `+1 added`.\n- A live invocation returned the expected output.\n- `scripts\u002Fvalidate.py` (if you wrote one alongside the tool) exits 0.\n",{"name":5,"tools":36,"version":40,"triggers":41,"description":7},[29,37,38,28,39],"create_tool","reload","bash","1.0.0",[42,43,44,45,46],"add a tool","build a tool","extend yourself","write a tool that","I need a tool to","main","e2fb5cfd858fb29298ab468e61a273f1e372b0e7","packages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-tool",0,"https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz","https:\u002F\u002Fjoshuaschultz.com","2026-10-22 08:51:07",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add joshuamschultz\u002FArc --skill create-tool",{"tool":61,"command":62},"bunx","bunx skills add joshuamschultz\u002FArc --skill create-tool",{"tool":64,"command":65},"pnpm","pnpm dlx skills add joshuamschultz\u002FArc --skill create-tool","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-tool\u002FSKILL.md",true,[69,75,79,83,89],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fast-blocked-list.md","REFERENCE","参考文档",2361,"https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-tool\u002Freferences\u002Fast-blocked-list.md",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fdecorator-fields.md",1859,"https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-tool\u002Freferences\u002Fdecorator-fields.md",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fexamples-good-and-bad.md",3312,"https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-tool\u002Freferences\u002Fexamples-good-and-bad.md",{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fvalidate.py","SCRIPT","脚本",1408,"https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-tool\u002Fscripts\u002Fvalidate.py",{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"templates\u002Ftool.py.template","OTHER","其他",722,"https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-tool\u002Ftemplates\u002Ftool.py.template",[96,117,149,175,183,196],{"skillNo":97,"name":98,"nameZh":99,"description":100,"descriptionZh":101,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":114,"publishedAt":31},"01M6CN91Q5XSKA66KDKFV9BRTQ","notes","笔记读取","Read a note back with the notes_echo tool.","使用 notes_echo 工具回读笔记内容。","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Ftests\u002Ffixtures\u002Fnotes_connector\u002Fskills\u002Fnotes\u002FSKILL.md",[104,109],{"categoryNo":105,"categoryName":106,"taxonomyType":107,"taxonomyTypeDesc":108},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀","SCENARIO","使用场景",{"categoryNo":110,"categoryName":111,"taxonomyType":112,"taxonomyTypeDesc":113},"01M8BS5011KJDVSRXG1DC4P666","普通用户","PROFESSION","适用职业",[98,20,28,115,116],"Echo","back",{"skillNo":118,"name":119,"nameZh":120,"description":121,"descriptionZh":122,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":131,"publishedAt":31},"01M6CN8Z0BXKCQEJGJG21DFPA7","workflow-builder","ArcFlow 工作流构建","Turn a repeatable business process described in conversation into a named, validated ArcFlow workflow draft.","将对话中描述的可重复业务流程，转化为经过命名和验证的 ArcFlow 工作流草稿。","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fworkflow-builder\u002FSKILL.md",[125,128],{"categoryNo":126,"categoryName":127,"taxonomyType":107,"taxonomyTypeDesc":108},"01M8CC5FE9VPCST4F3M1W5T9X8","流程编排组合与验证",{"categoryNo":129,"categoryName":130,"taxonomyType":112,"taxonomyTypeDesc":113},"01M8CFZE430SYV1X18T05BR67Y","业务分析师",[132,133,134,135,19,136,137,138,139,140,141,142,143,144,145,146,30,147,148],"workflow builder","workflow","builder","list","run","automate this","SET","automate","node","edit","business","process","channel","remove","files","conversation","do",{"skillNo":150,"name":151,"nameZh":152,"description":153,"descriptionZh":154,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":163,"publishedAt":31},"01M6CN8VZT2YXB8EFJRHSCZ735","update-tool","@tool 工具源文件更新","Update an existing @tool source file in workspace\u002Fcapabilities\u002F, bumping its semver per major\u002Fminor\u002Fpatch.","更新 workspace\u002Fcapabilities\u002F 目录下现有的 @tool 源文件，并按 major\u002Fminor\u002Fpatch 规则递增其语义化版本（semver）。","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fupdate-tool\u002FSKILL.md",[157,160],{"categoryNo":158,"categoryName":159,"taxonomyType":107,"taxonomyTypeDesc":108},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":161,"categoryName":162,"taxonomyType":112,"taxonomyTypeDesc":113},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[164,165,20,166,167,168,169,170,171,172,28,173,174,24,26],"update tool","update","bump","bug","patch","version","fix","behavior","capabilities","change","semver",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":31},"01M6CN8SJRCCV05HMF91ZNAK8Z","update-skill","Update an existing skill's SKILL.md body in workspace\u002Fcapabilities\u002Fskills\u002F, bumping its frontmatter semver.","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fupdate-skill\u002FSKILL.md",[],[165,182,174,172,26,28,170,169,166],"update skill",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":31},"01M6CN8M1G6VJPG9KQN9CA04BZ","create-skill","Scaffold a new skill folder under workspace\u002Fcapabilities\u002Fskills\u002F with frontmatter and the seven required sections.","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-skill\u002FSKILL.md",[],[190,19,29,133,191,172,192,26,193,28,141,194,195],"create skill","scaffold","write a skill","capture","document","new skill",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":31},"01M6CN8HHQA05AGKWYNPSMJCK6","sqlite","Use the SQLite connector to read the operator's semantic layer and make bounded typed reads of an approved database file. Trigger for questions about data in a connected SQLite database; skip for writes, schema changes, or raw SQL.","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fextensions\u002Fsqlite\u002Fskills\u002Fsqlite\u002FSKILL.md",[],[198,203,24,204,205,28,206,207,208,209],"database","operator","data","use","schema","Connector","sql"]