[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783DTJNRQGGF9SKK4CTFDC1":3,"skill-same:01M783DTJNRQGGF9SKK4CTFDC1":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M783DTJNRQGGF9SKK4CTFDC1","coding-workflow",null,"Edit code safely (read, plan, edit, run tests, iterate, record)","theselfruleorg\u002Fpolyrob","theselfruleorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128891129?v=4","01M783D1MFDP1D5ZXSNZMKHARH","01M783D1NEE9ATD39KJYCRR09J",12,"MIT","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fcoding-workflow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: coding-workflow\ndescription: Edit code safely (read, plan, edit, run tests, iterate, record)\nlicense: MIT\nmetadata:\n  polyrob-when: 'Editing code: read, plan, edit, run tests, iterate'\n  polyrob-priority: '3'\n  polyrob-triggers: '{\"tool_ids\":[\"coding\",\"code_execution\",\"filesystem\"]}'\n  polyrob-version: '3'\n---\n# Coding Workflow\n\nEdit code safely: read, plan, change, test, iterate. Recommended workflow — adapt it.\n\n## Tool availability\nRead the `coding` line of your `\u003Ctool-catalog>`. `[loaded]` → use it. `[loadable]` →\ncall `load_tool(\"coding\")` first. `[gated:…]` → follow the remedy it names (see\n`harness-manual`). A delegated sub-agent never holds `coding`. Without `coding`, edit\nwith `filesystem_read_file` \u002F `filesystem_write_file` and state how to verify.\n\nThe `coding` verbs:\n- `coding_grep` — search the tree (a regex, a `glob` filter).\n- `coding_str_replace` — one exact edit (unique `old_string`, or `replace_all`).\n- `coding_apply_patch` — a multi-hunk unified diff for one file.\n- `coding_create_file` \u002F `coding_move_file` \u002F `coding_delete_file`.\n- `coding_run_tests` — run the project's tests.\n- `coding_snapshots` \u002F `coding_restore` — only when snapshots are on (the schema says\n  so); otherwise undo with `git_diff` and `git_checkout`.\n\n## When to use\nFixing a bug, implementing or refactoring code, adding a function, or running tests.\n\n## Workflow\n1. **Read before you write.** `coding_grep` the symbol and read the surrounding file so\n   the change fits the existing code.\n2. **Plan the smallest diff** that solves the problem; match local conventions and\n   comment density. Don't gold-plate.\n3. **Make the edit.** Prefer `coding_str_replace` for one exact edit and\n   `coding_apply_patch` for several hunks. With `filesystem`, write content\n   **verbatim** — never strip or reflow indentation. After an edit, read any\n   `\u003Cdiagnostics>` block the result carries.\n4. **Iterate** on failures — read the error, fix, re-run — don't guess.\n5. **Run the tests LAST.** `coding_run_tests` returns the tail of the output and a log\n   path; read the log with `filesystem_read_file` when the tail is not enough. An\n   edit after a green run voids it: a deploy verb (`app_service_deploy`,\n   `hf_deploy_deploy`) refuses a tree with no green run since the last edit (ship ==\n   tested). If no test tool is available, state exactly how to verify by hand.\n6. **Report and record.** Name the files changed and the test result. In a git repo,\n   follow `git-and-pr-flow`: `git_status` → `git_diff` → `git_add` (named paths) →\n   `git_commit`. Push only when the owner asked; a push is public.\n\n## Notes\n- Touch only what the task needs; leave unrelated code alone.\n- A long command, a dev server or a background job: see `shell-and-sandbox`.\n\n## Deeper methods — read one only when the step needs it\nLoad with `read_skill_resource(skill_id=\"coding-workflow\", resource_path=\"references\u002F\u003Cfile>.md\")`.\n- `review-lenses.md` — before you ship a non-trivial diff, or when asked to\n  review one. Its first lens asks which claim has no test behind it.\n- `build-failure-triage.md` — a build, install, lint or CI run fails with\n  more than one error.\n- `debugging-method.md` — the cause is not clear after one careful read, a\n  test fails only sometimes, or a first fix did not work.\n- `cleanup-passes.md` — after the change works and is green, to remove dead\n  code, copies and needless layers without changing behaviour.\n","# Coding Workflow\n\nEdit code safely: read, plan, change, test, iterate. Recommended workflow — adapt it.\n\n## Tool availability\nRead the `coding` line of your `\u003Ctool-catalog>`. `[loaded]` → use it. `[loadable]` →\ncall `load_tool(\"coding\")` first. `[gated:…]` → follow the remedy it names (see\n`harness-manual`). A delegated sub-agent never holds `coding`. Without `coding`, edit\nwith `filesystem_read_file` \u002F `filesystem_write_file` and state how to verify.\n\nThe `coding` verbs:\n- `coding_grep` — search the tree (a regex, a `glob` filter).\n- `coding_str_replace` — one exact edit (unique `old_string`, or `replace_all`).\n- `coding_apply_patch` — a multi-hunk unified diff for one file.\n- `coding_create_file` \u002F `coding_move_file` \u002F `coding_delete_file`.\n- `coding_run_tests` — run the project's tests.\n- `coding_snapshots` \u002F `coding_restore` — only when snapshots are on (the schema says\n  so); otherwise undo with `git_diff` and `git_checkout`.\n\n## When to use\nFixing a bug, implementing or refactoring code, adding a function, or running tests.\n\n## Workflow\n1. **Read before you write.** `coding_grep` the symbol and read the surrounding file so\n   the change fits the existing code.\n2. **Plan the smallest diff** that solves the problem; match local conventions and\n   comment density. Don't gold-plate.\n3. **Make the edit.** Prefer `coding_str_replace` for one exact edit and\n   `coding_apply_patch` for several hunks. With `filesystem`, write content\n   **verbatim** — never strip or reflow indentation. After an edit, read any\n   `\u003Cdiagnostics>` block the result carries.\n4. **Iterate** on failures — read the error, fix, re-run — don't guess.\n5. **Run the tests LAST.** `coding_run_tests` returns the tail of the output and a log\n   path; read the log with `filesystem_read_file` when the tail is not enough. An\n   edit after a green run voids it: a deploy verb (`app_service_deploy`,\n   `hf_deploy_deploy`) refuses a tree with no green run since the last edit (ship ==\n   tested). If no test tool is available, state exactly how to verify by hand.\n6. **Report and record.** Name the files changed and the test result. In a git repo,\n   follow `git-and-pr-flow`: `git_status` → `git_diff` → `git_add` (named paths) →\n   `git_commit`. Push only when the owner asked; a push is public.\n\n## Notes\n- Touch only what the task needs; leave unrelated code alone.\n- A long command, a dev server or a background job: see `shell-and-sandbox`.\n\n## Deeper methods — read one only when the step needs it\nLoad with `read_skill_resource(skill_id=\"coding-workflow\", resource_path=\"references\u002F\u003Cfile>.md\")`.\n- `review-lenses.md` — before you ship a non-trivial diff, or when asked to\n  review one. Its first lens asks which claim has no test behind it.\n- `build-failure-triage.md` — a build, install, lint or CI run fails with\n  more than one error.\n- `debugging-method.md` — the cause is not clear after one careful read, a\n  test fails only sometimes, or a first fix did not work.\n- `cleanup-passes.md` — after the change works and is green, to remove dead\n  code, copies and needless layers without changing behaviour.\n",{"name":5,"license":14,"metadata":23,"description":7},{"polyrob-when":24,"polyrob-version":25,"polyrob-priority":25,"polyrob-triggers":26},"Editing code: read, plan, edit, run tests, iterate","3","{\"tool_ids\":[\"coding\",\"code_execution\",\"filesystem\"]}","main","3a595c0e3db5aa91acc53dd80673c4d80e0721d1","data\u002Fprompts\u002Fskills\u002Fcoding-workflow",2,"https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg","https:\u002F\u002Ftheselfrule.org","2026-11-14 16:54:43",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add theselfruleorg\u002Fpolyrob --skill coding-workflow",{"tool":41,"command":42},"bunx","bunx skills add theselfruleorg\u002Fpolyrob --skill coding-workflow",{"tool":44,"command":45},"pnpm","pnpm dlx skills add theselfruleorg\u002Fpolyrob --skill coding-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fcoding-workflow\u002FSKILL.md",true,[49,55,59,63],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fbuild-failure-triage.md","REFERENCE","参考文档",3306,"https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fcoding-workflow\u002Freferences\u002Fbuild-failure-triage.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fcleanup-passes.md",3150,"https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fcoding-workflow\u002Freferences\u002Fcleanup-passes.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fdebugging-method.md",4218,"https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fcoding-workflow\u002Freferences\u002Fdebugging-method.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Freview-lenses.md",4788,"https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fcoding-workflow\u002Freferences\u002Freview-lenses.md",[68,75,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M783NSEPG1S13E7W3GEQMG6J","echo-basics","How to use the echo tool from the echo fixture pack.","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fpacks\u002Fecho\u002Fpolyrob_echo\u002Fskills\u002Fecho-basics\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M783NM911CND5PQCYDHA9GGV","x-engagement","Operate X account communication on the API rail (the captured-browser rail only where the owner chose it)—read inboxes, post\u002Freply, send DMs, set up the account, with the real write gates and completion evidence","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fx\u002Fpolyrob_x\u002Fskills\u002Fx-engagement\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M783NGQ43PGVT6F9XQR4ZNP2","social-discovery","Discover public X\u002Fsocial accounts and conversations with AnySite first (anysite_describe, then anysite_api), using native X account reads where they are authoritative and preserving write gates","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fx\u002Fpolyrob_x\u002Fskills\u002Fsocial-discovery\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M783NDAEPJT10SD3DNR56H96","polymarket-trading","GATED: place\u002Fcancel Polymarket orders. Owner-only, read-first, >$500 confirmation gate; references crypto-trading-safety","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fmarkets\u002Fpolyrob_markets\u002Fskills\u002Fpolymarket-trading\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M783N8GADTQMKKBQT4Z3JJ84","polymarket-portfolio-review","Read the configured Polymarket account's positions and trade history from the public Data API (no address parameter); summarize exposure and P&L","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fmarkets\u002Fpolyrob_markets\u002Fskills\u002Fpolymarket-portfolio-review\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M783N5KTTTRRRSM7XY8SY4NF","polymarket-market-research","Read Polymarket markets (discover, details, price as implied probability, orderbook, spread, volume) with no wallet","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fmarkets\u002Fpolyrob_markets\u002Fskills\u002Fpolymarket-market-research\u002FSKILL.md",[],[]]