[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ARSGFPBZQ51F8SHZ4N02B8":3,"skill-same:01M7ARSGFPBZQ51F8SHZ4N02B8":51},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":33,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7ARSGFPBZQ51F8SHZ4N02B8","protect-agent-config",null,"Guard against an agent hand-editing its own guardrails. Agent instruction files (AGENTS.md and the per-agent wrappers), permission files (.claude\u002Fsettings.json, .mcp.json), the dependency allowlist (.chock\u002Fdependency-allowlist.txt) and vendored enforcement (.chock\u002Fbin\u002F, .chock\u002Fcompiled\u002F) define what the agent may do -- so a shell command that rewrites them is the agent modifying its own authority (MITRE ATLAS AML.T0081). The guard refuses shell writes to those paths -- a redirect, rm\u002Fmv\u002Ftee\u002Fsed -i, cp into the path, git checkout\u002Frestore, PowerShell Set-Content\u002FAdd-Content\u002FOut-File; reads and copies out pass, and `chock sync` passes. Best-effort and deliberately coarse. The 'chock: approved-config-change' marker is friction plus an audit trail, not authentication. A second, tool_use-only gate refuses Edit\u002FWrite to the same paths; it never runs at commit, so a person stays free to edit them.","open-coder-ai\u002Fchock","open-coder-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F326301844?v=4","01M7AQWBEFDVY5BG8APD5YCC2R","Open Coder AI","01M7ARPKEE5JVFVY1VFQSK1YFK",10,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\u002Fblob\u002Fmain\u002F.agents\u002Fpolicies\u002Fprotect-agent-config\u002Fskills\u002Fprotect-agent-config\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: protect-agent-config\ndescription: \"Guard against an agent hand-editing its own guardrails. Agent instruction files (AGENTS.md and the per-agent wrappers), permission files (.claude\u002Fsettings.json, .mcp.json), the dependency allowlist (.chock\u002Fdependency-allowlist.txt) and vendored enforcement (.chock\u002Fbin\u002F, .chock\u002Fcompiled\u002F) define what the agent may do -- so a shell command that rewrites them is the agent modifying its own authority (MITRE ATLAS AML.T0081). The guard refuses shell writes to those paths -- a redirect, rm\u002Fmv\u002Ftee\u002Fsed -i, cp into the path, git checkout\u002Frestore, PowerShell Set-Content\u002FAdd-Content\u002FOut-File; reads and copies out pass, and `chock sync` passes. Best-effort and deliberately coarse. The 'chock: approved-config-change' marker is friction plus an audit trail, not authentication. A second, tool_use-only gate refuses Edit\u002FWrite to the same paths; it never runs at commit, so a person stays free to edit them.\"\nmetadata:\n  chock.artifact: rule\n  chock.enforcement: advise\n  chock.coverage_without_chock: advisory\n---\n\n# Protect Agent Config\n\nGuard against an agent hand-editing its own guardrails. Agent instruction files (AGENTS.md and the per-agent wrappers), permission files (.claude\u002Fsettings.json, .mcp.json), the dependency allowlist (.chock\u002Fdependency-allowlist.txt) and vendored enforcement (.chock\u002Fbin\u002F, .chock\u002Fcompiled\u002F) define what the agent may do -- so a shell command that rewrites them is the agent modifying its own authority (MITRE ATLAS AML.T0081). The guard refuses shell writes to those paths -- a redirect, rm\u002Fmv\u002Ftee\u002Fsed -i, cp into the path, git checkout\u002Frestore, PowerShell Set-Content\u002FAdd-Content\u002FOut-File; reads and copies out pass, and `chock sync` passes. Best-effort and deliberately coarse. The 'chock: approved-config-change' marker is friction plus an audit trail, not authentication. A second, tool_use-only gate refuses Edit\u002FWrite to the same paths; it never runs at commit, so a person stays free to edit them.\n\n```\nagent_config(AGENTS.md|wrappers|.claude\u002Fsettings|.mcp.json|.chock\u002Fdependency-allowlist.txt|.chock\u002Fbin|.chock\u002Fcompiled|.agents\u002Fpolicies\u002F*\u002Fimplementations): never(hand_edit|delete); regenerate_via(chock sync)\nif(config_change_needed): propose_to_human; await(approval)  # an agent must not widen or disarm its own guardrails\n```\n\nThis skill is advisory: the client reading it has no mechanism to enforce it. The same policy compiled by `chock` can refuse an agent's shell command before it runs; blocks on an agent's file writes and at turn end. See https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\n","# Protect Agent Config\n\nGuard against an agent hand-editing its own guardrails. Agent instruction files (AGENTS.md and the per-agent wrappers), permission files (.claude\u002Fsettings.json, .mcp.json), the dependency allowlist (.chock\u002Fdependency-allowlist.txt) and vendored enforcement (.chock\u002Fbin\u002F, .chock\u002Fcompiled\u002F) define what the agent may do -- so a shell command that rewrites them is the agent modifying its own authority (MITRE ATLAS AML.T0081). The guard refuses shell writes to those paths -- a redirect, rm\u002Fmv\u002Ftee\u002Fsed -i, cp into the path, git checkout\u002Frestore, PowerShell Set-Content\u002FAdd-Content\u002FOut-File; reads and copies out pass, and `chock sync` passes. Best-effort and deliberately coarse. The 'chock: approved-config-change' marker is friction plus an audit trail, not authentication. A second, tool_use-only gate refuses Edit\u002FWrite to the same paths; it never runs at commit, so a person stays free to edit them.\n\n```\nagent_config(AGENTS.md|wrappers|.claude\u002Fsettings|.mcp.json|.chock\u002Fdependency-allowlist.txt|.chock\u002Fbin|.chock\u002Fcompiled|.agents\u002Fpolicies\u002F*\u002Fimplementations): never(hand_edit|delete); regenerate_via(chock sync)\nif(config_change_needed): propose_to_human; await(approval)  # an agent must not widen or disarm its own guardrails\n```\n\nThis skill is advisory: the client reading it has no mechanism to enforce it. The same policy compiled by `chock` can refuse an agent's shell command before it runs; blocks on an agent's file writes and at turn end. See https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\n",{"name":5,"metadata":24,"description":7},{"chock.artifact":25,"chock.enforcement":26,"chock.coverage_without_chock":27},"rule","advise","advisory","main","c983a6ec236dc6c3c62f5c5474dfc3c63ac76a38",".agents\u002Fpolicies\u002Fprotect-agent-config\u002Fskills\u002Fprotect-agent-config",1,"https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock","https:\u002F\u002Fchock.sh","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai","Open-source guardrails for AI coding agents","2026-11-15 01:32:23",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add open-coder-ai\u002Fchock --skill protect-agent-config",{"tool":43,"command":44},"bunx","bunx skills add open-coder-ai\u002Fchock --skill protect-agent-config",{"tool":46,"command":47},"pnpm","pnpm dlx skills add open-coder-ai\u002Fchock --skill protect-agent-config","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\u002Fblob\u002Fmain\u002F.agents\u002Fpolicies\u002Fprotect-agent-config\u002Fskills\u002Fprotect-agent-config\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7ARVZC23XSWF8D9X3QEDGX2","validate","Lint Chock policy conformance. args(policy_id or all) returns(findings, verdict) invoke(validate, check, promotion_to_review) exclude(eval, optimize)","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\u002Fblob\u002Fmain\u002Fsrc\u002Fchock\u002Fpacks\u002F_skills\u002Fvalidate\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7ARVV58ZTDHMBFZHHAB8HKW","policy-init","Create conformant Chock policy from request. args(request, target_path, artifact_hint) returns(folder, wiring) invoke(skill, hook, rule, workflow, convention, always_never) exclude(coding, edit_existing)","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\u002Fblob\u002Fmain\u002Fsrc\u002Fchock\u002Fpacks\u002F_skills\u002Fpolicy-init\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7ARVQGW80H7G6ME1M01GJJS","optimize","Improve Chock policy from usage evidence. args(policy_path, >=3 traces) returns(promoted_edit \u002F rejected_record \u002F no_bar) invoke(misfire, ignore, tuning) exclude(policy_init, one_off_edit)","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\u002Fblob\u002Fmain\u002Fsrc\u002Fchock\u002Fpacks\u002F_skills\u002Foptimize\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7ARVKN8ZBBDXJF248X0F0FP","eval","Run Chock policy eval suite. args(policy_path) returns(pass_rate, verdict) invoke(test, run_evals, promotion_check) exclude(validate, optimize)","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\u002Fblob\u002Fmain\u002Fsrc\u002Fchock\u002Fpacks\u002F_skills\u002Feval\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7ARVEB2D01PK6WRECM1D4KR","chock-init","Onboard a repo into Chock. args(repo_path, agents, agent_agnostic) returns(wiring) invoke(onboard, scaffold, setup) exclude(coding, policy_creation)","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\u002Fblob\u002Fmain\u002Fsrc\u002Fchock\u002Fpacks\u002F_skills\u002Fchock-init\u002FSKILL.md",[],[],{"skillNo":88,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7ARVB74FG9R0P5AF8PJK4D5","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvalidate\u002FSKILL.md",[],[]]