[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AQX1Q17F6KV792SJM6Y6FP":3,"skill-same:01M7AQX1Q17F6KV792SJM6Y6FP":50},{"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":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":32,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7AQX1Q17F6KV792SJM6Y6FP","protect-main-branch",null,"Keeps agents off main and master: a git hook reads the current branch at commit time and parses the refs being pushed at push time. The hook refuses a violation only where it is installed. As skill text alone this is advice, and nothing stops one.","open-coder-ai\u002Fchock-example","open-coder-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F326301844?v=4","01M7AQWBEFDVY5BG8APD5YCC2R","Open Coder AI","01M7AQWV4MK9V2FWR6PJFP6HYR",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock-example\u002Fblob\u002Fmain\u002F.agents\u002Fpolicies\u002Fprotect-main-branch\u002Fskills\u002Fprotect-main-branch\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: protect-main-branch\ndescription: \"Keeps agents off main and master: a git hook reads the current branch at commit time and parses the refs being pushed at push time. The hook refuses a violation only where it is installed. As skill text alone this is advice, and nothing stops one.\"\nmetadata:\n  chock.artifact: hook\n  chock.enforcement: block\n  chock.coverage_without_chock: advisory\n---\n\n# Protect Main Branch\n\nKeeps agents off main and master: a git hook reads the current branch at commit time and parses the refs being pushed at push time. The hook refuses a violation only where it is installed. As skill text alone this is advice, and nothing stops one.\n\n```\non(commit|push): block(forbidden_ref) refs=main|master\nDirect commits\u002Fpushes to a protected branch (main|master) are blocked. Create a feature branch and open a pull request.\n```\n\nThis skill is advisory: the client reading it has no mechanism to enforce it. The same policy compiled by `chock` blocks at commit and at push. See https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock\n","# Protect Main Branch\n\nKeeps agents off main and master: a git hook reads the current branch at commit time and parses the refs being pushed at push time. The hook refuses a violation only where it is installed. As skill text alone this is advice, and nothing stops one.\n\n```\non(commit|push): block(forbidden_ref) refs=main|master\nDirect commits\u002Fpushes to a protected branch (main|master) are blocked. Create a feature branch and open a pull request.\n```\n\nThis skill is advisory: the client reading it has no mechanism to enforce it. The same policy compiled by `chock` blocks at commit and at push. 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},"hook","block","advisory","main","3e20708906d069802486e31463ddea5285bfc4c6",".agents\u002Fpolicies\u002Fprotect-main-branch\u002Fskills\u002Fprotect-main-branch","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock-example","https:\u002F\u002Fchock.sh","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai","Open-source guardrails for AI coding agents","2026-11-12 23:05:11",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add open-coder-ai\u002Fchock-example --skill protect-main-branch",{"tool":42,"command":43},"bunx","bunx skills add open-coder-ai\u002Fchock-example --skill protect-main-branch",{"tool":45,"command":46},"pnpm","pnpm dlx skills add open-coder-ai\u002Fchock-example --skill protect-main-branch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock-example\u002Fblob\u002Fmain\u002F.agents\u002Fpolicies\u002Fprotect-main-branch\u002Fskills\u002Fprotect-main-branch\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7AQYBEF99Z1DR2V19AYJZ2E","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-example\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fvalidate\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7AQY69MEGSP53AK3RB7C020","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-example\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpolicy-init\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7AQY18NJGXRAYDYYJW4JAE6","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-example\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Foptimize\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7AQXWMW876T32GFKRY0VBRQ","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-example\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Feval\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7AQXT09PSVXJ66DE0NWA1E1","commit-message-style","Write a Conventional Commit message for staged changes. args(diff_summary) returns(commit_message) invoke(commit, message, changelog) exclude(code_review, push)","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock-example\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommit-message-style\u002FSKILL.md",[],[],{"skillNo":87,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AQXPJMJ60VEAN4J8M0FEAT","https:\u002F\u002Fgithub.com\u002Fopen-coder-ai\u002Fchock-example\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvalidate\u002FSKILL.md",[],[]]