[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CN8VZT2YXB8EFJRHSCZ735":3,"skill-same:01M6CN8VZT2YXB8EFJRHSCZ735":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":64,"repositoryHtmlUrl":65,"repositoryHomepageUrl":17,"ownerHtmlUrl":66,"ownerBlogUrl":67,"ownerDescription":17,"updatedAt":68,"install":69,"resources":82},"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）。","joshuamschultz\u002FArc","joshuamschultz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2312349?v=4","01M6CN5XFME1WP2XMKCZBH4MMG","Josh","01M6CN5XMCNJTZPB9HE6N2MD2R",3,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fupdate-tool\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"update","tool","update tool","change","semver","capabilities","file","workspace","read","behavior","fix","version","patch","bump","bug","2026-11-10 10:12:30",false,"---\nname: update-tool\nversion: 1.0.0\ndescription: Update an existing @tool source file in workspace\u002Fcapabilities\u002F, bumping its semver per major\u002Fminor\u002Fpatch.\ntriggers: [fix the tool, the tool has a bug, change behavior of, bump the version of, update the tool]\ntools: [read, update_tool, reload]\n---\n\n## Resources\n\n(auto-filled by the loader)\n\n## Contract\n\nInputs you must have:\n- The tool's `name` (matches the file basename in `workspace\u002Fcapabilities\u002F`).\n- The full `new_source` body — `update_tool` overwrites, it does not patch.\n- A clear judgment about which version segment to bump.\n\nOutputs the agent must produce:\n- The replaced file with a bumped semver in its `@tool(version=...)` argument.\n- A `reload()` call after the update succeeds.\n\n## Knowledge\n\n`update_tool` is a wholesale replacement. There is no partial edit — read the file with `read`, modify the source string in place, then call `update_tool(name, new_source, version_bump)`. The new source MUST contain the bumped version string (e.g. `version=\"1.2.4\"` for a patch bump from `1.2.3`); the validator rejects mismatched versions.\n\nSemver judgment (D-357 — LLM owns this call):\n\n- **patch** — bug fix that doesn't change the function signature, return shape, or success\u002Ferror contract. The LLM caller's existing prompts continue to work unchanged. Examples: fix a typo in an error message, handle an edge case that previously raised, narrow a regex, fix an off-by-one.\n- **minor** — additive change. New optional parameters with safe defaults, new fields in the return string, broader input acceptance. The LLM's existing prompts still work; new prompts can use new functionality.\n- **major** — breaking change. Required parameter renamed, return format restructured, behavior of an existing input changed. Any existing LLM prompt may break.\n\nWhen in doubt, bump higher. A surprised caller is worse than a redundant version bump.\n\n## Steps\n\n1. Read the existing source: `read(file_path=\"\u003Cworkspace>\u002Fcapabilities\u002F\u003Cname>.py\")`.\n2. Decide the bump level based on the semver rules above. If the change is anything more than a typo fix, prefer minor over patch.\n3. Compose the new source — copy the existing body, apply the change, update the `version=\"...\"` in the `@tool(...)` decorator to the bumped value.\n4. Call `update_tool(name=..., new_source=..., version_bump=\"\u003Cpatch|minor|major>\")`. If it returns `Error: must declare version=\"...\"`, the version literal in your source doesn't match the bump — fix and retry.\n5. Call `reload()`. The diff should mention `~1 replaced (\u003Cname> \u003Cold>→\u003Cnew>)`.\n6. Invoke the updated tool with sample arguments to confirm the change works.\n\n## Anti Patterns\n\n- **Don't** call `update_tool` without first reading the existing file. You'll lose context on what already worked.\n- **Don't** bump patch when you've changed an argument signature. That's a major.\n- **Don't** skip the reload — your update is on disk but the registry still serves the old version.\n- **Don't** forget to update the `version=\"...\"` literal inside the source. The validator rejects mismatches.\n- **Don't** re-create with `create_tool` to \"fix\" something. Use `update_tool` so the version trail is preserved.\n\n## Examples\n\n```python\n# Bug fix: missing-file path returns a confusing message\nold_source = await read(file_path=\"capabilities\u002Fword_count.py\")\nnew_source = old_source.replace(\n    \"Error: not a file:\",\n    \"Error: file not found in workspace:\",\n).replace(\n    'version=\"1.0.0\"',\n    'version=\"1.0.1\"',\n)\nawait update_tool(name=\"word_count\", new_source=new_source, version_bump=\"patch\")\nawait reload()\n```\n\n## Validation\n\n- `update_tool` returned `Updated tool ... \u003Cold>→\u003Cnew>`.\n- `reload()` returned a diff containing `~1 replaced (\u003Cname> \u003Cold>→\u003Cnew>)`.\n- Live invocation with the previous-failing input now returns the new behavior.\n","## Resources\n\n(auto-filled by the loader)\n\n## Contract\n\nInputs you must have:\n- The tool's `name` (matches the file basename in `workspace\u002Fcapabilities\u002F`).\n- The full `new_source` body — `update_tool` overwrites, it does not patch.\n- A clear judgment about which version segment to bump.\n\nOutputs the agent must produce:\n- The replaced file with a bumped semver in its `@tool(version=...)` argument.\n- A `reload()` call after the update succeeds.\n\n## Knowledge\n\n`update_tool` is a wholesale replacement. There is no partial edit — read the file with `read`, modify the source string in place, then call `update_tool(name, new_source, version_bump)`. The new source MUST contain the bumped version string (e.g. `version=\"1.2.4\"` for a patch bump from `1.2.3`); the validator rejects mismatched versions.\n\nSemver judgment (D-357 — LLM owns this call):\n\n- **patch** — bug fix that doesn't change the function signature, return shape, or success\u002Ferror contract. The LLM caller's existing prompts continue to work unchanged. Examples: fix a typo in an error message, handle an edge case that previously raised, narrow a regex, fix an off-by-one.\n- **minor** — additive change. New optional parameters with safe defaults, new fields in the return string, broader input acceptance. The LLM's existing prompts still work; new prompts can use new functionality.\n- **major** — breaking change. Required parameter renamed, return format restructured, behavior of an existing input changed. Any existing LLM prompt may break.\n\nWhen in doubt, bump higher. A surprised caller is worse than a redundant version bump.\n\n## Steps\n\n1. Read the existing source: `read(file_path=\"\u003Cworkspace>\u002Fcapabilities\u002F\u003Cname>.py\")`.\n2. Decide the bump level based on the semver rules above. If the change is anything more than a typo fix, prefer minor over patch.\n3. Compose the new source — copy the existing body, apply the change, update the `version=\"...\"` in the `@tool(...)` decorator to the bumped value.\n4. Call `update_tool(name=..., new_source=..., version_bump=\"\u003Cpatch|minor|major>\")`. If it returns `Error: must declare version=\"...\"`, the version literal in your source doesn't match the bump — fix and retry.\n5. Call `reload()`. The diff should mention `~1 replaced (\u003Cname> \u003Cold>→\u003Cnew>)`.\n6. Invoke the updated tool with sample arguments to confirm the change works.\n\n## Anti Patterns\n\n- **Don't** call `update_tool` without first reading the existing file. You'll lose context on what already worked.\n- **Don't** bump patch when you've changed an argument signature. That's a major.\n- **Don't** skip the reload — your update is on disk but the registry still serves the old version.\n- **Don't** forget to update the `version=\"...\"` literal inside the source. The validator rejects mismatches.\n- **Don't** re-create with `create_tool` to \"fix\" something. Use `update_tool` so the version trail is preserved.\n\n## Examples\n\n```python\n# Bug fix: missing-file path returns a confusing message\nold_source = await read(file_path=\"capabilities\u002Fword_count.py\")\nnew_source = old_source.replace(\n    \"Error: not a file:\",\n    \"Error: file not found in workspace:\",\n).replace(\n    'version=\"1.0.0\"',\n    'version=\"1.0.1\"',\n)\nawait update_tool(name=\"word_count\", new_source=new_source, version_bump=\"patch\")\nawait reload()\n```\n\n## Validation\n\n- `update_tool` returned `Updated tool ... \u003Cold>→\u003Cnew>`.\n- `reload()` returned a diff containing `~1 replaced (\u003Cname> \u003Cold>→\u003Cnew>)`.\n- Live invocation with the previous-failing input now returns the new behavior.\n",{"name":5,"tools":51,"version":54,"triggers":55,"description":7},[39,52,53],"update_tool","reload","1.0.0",[56,57,58,59,60],"fix the tool","the tool has a bug","change behavior of","bump the version of","update the tool","main","e2fb5cfd858fb29298ab468e61a273f1e372b0e7","packages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fupdate-tool",0,"https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz","https:\u002F\u002Fjoshuaschultz.com","2026-10-22 08:51:07",{"source":9,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add joshuamschultz\u002FArc --skill update-tool",{"tool":75,"command":76},"bunx","bunx skills add joshuamschultz\u002FArc --skill update-tool",{"tool":78,"command":79},"pnpm","pnpm dlx skills add joshuamschultz\u002FArc --skill update-tool","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fupdate-tool\u002FSKILL.md",true,[83],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fvalidate.py","SCRIPT","脚本",1249,"https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fupdate-tool\u002Fscripts\u002Fvalidate.py",[90,107,141,149,162,175],{"skillNo":91,"name":92,"nameZh":93,"description":94,"descriptionZh":95,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":96,"categories":97,"keywords":104,"publishedAt":46},"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",[98,101],{"categoryNo":99,"categoryName":100,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀",{"categoryNo":102,"categoryName":103,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[92,105,32,39,106],"back","Echo",{"skillNo":108,"name":109,"nameZh":110,"description":111,"descriptionZh":112,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":113,"categories":114,"keywords":121,"publishedAt":46},"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",[115,118],{"categoryNo":116,"categoryName":117,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8CC5FE9VPCST4F3M1W5T9X8","流程编排组合与验证",{"categoryNo":119,"categoryName":120,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CFZE430SYV1X18T05BR67Y","业务分析师",[122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140],"workflow builder","builder","workflow","SET","list","automate this","run","create","automate","node","edit","business","process","channel","remove","files","build","conversation","do",{"skillNo":142,"name":143,"nameZh":17,"description":144,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":46},"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",[],[31,148,44,42,41,39,38,36,35],"update skill",{"skillNo":150,"name":151,"nameZh":17,"description":152,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":46},"01M6CN8PRNV3S8D4BZN9EYHWVZ","create-tool","Author a new @tool-decorated Python file in the agent workspace, validate it, and register it via reload().","https:\u002F\u002Fgithub.com\u002Fjoshuamschultz\u002FArc\u002Fblob\u002Fmain\u002Fpackages\u002Farcagent\u002Fsrc\u002Farcagent\u002Fbuiltins\u002Fcapabilities\u002Fskills\u002Fcreate-tool\u002FSKILL.md",[],[156,129,32,157,158,37,159,38,160,39,161,138],"create tool","python","validate","Bash","agent workspace","write",{"skillNo":163,"name":164,"nameZh":17,"description":165,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":46},"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",[],[169,129,39,124,170,36,171,38,172,161,132,173,174],"create skill","scaffold","write a skill","capture","document","new skill",{"skillNo":176,"name":177,"nameZh":17,"description":178,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":46},"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",[],[177,182,183,37,184,185,39,186,187,188],"sql","database","operator","data","use","schema","Connector"]