[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72XV137S5E5P4JV9KXMA1J4":3,"skill-same:01M72XV137S5E5P4JV9KXMA1J4":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M72XV137S5E5P4JV9KXMA1J4","protect-mcp-setup",null,"Configure Cedar policy enforcement and Ed25519 signed receipts for Claude Code tool calls. Use when setting up projects that need cryptographic audit trails, policy-gated tool execution, or compliance-ready evidence of agent actions.","steph-frtech\u002Fclaude-code-up","steph-frtech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F198466323?v=4","01M72XD213FVQA2QXRGTJFKHE1","01M72XD227AANJ993SQTNZB1CK",1,"MIT","https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up\u002Fblob\u002Fmain\u002F.claude\u002Fmarketplaces\u002Fwshobson\u002Fplugins\u002Fprotect-mcp\u002Fskills\u002Fprotect-mcp-setup\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: protect-mcp-setup\ndescription: Configure Cedar policy enforcement and Ed25519 signed receipts for Claude Code tool calls. Use when setting up projects that need cryptographic audit trails, policy-gated tool execution, or compliance-ready evidence of agent actions.\n---\n\n# protect-mcp — Policy Enforcement + Signed Receipts\n\nCryptographic governance for every Claude Code tool call. Each invocation is\nevaluated against a Cedar policy and produces an Ed25519-signed receipt that\nanyone can verify offline.\n\n## Overview\n\nClaude Code runs powerful tools: `Bash`, `Edit`, `Write`, `WebFetch`. By default\nthere is no audit trail, no policy enforcement, and no way to prove what was\ndecided after the fact. `protect-mcp` closes all three gaps:\n\n- **Cedar policies** (AWS's open authorization engine) evaluate every tool call\n  before execution. Cedar deny is authoritative.\n- **Ed25519 receipts** record each decision with its inputs, the policy that\n  governed it, and the outcome. Receipts are hash-chained.\n- **Offline verification** via `npx @veritasacta\u002Fverify`. No server, no account,\n  no trust in the operator.\n\n## Problem\n\nAI agents make decisions that affect money, safety, and rights. The Claude Code\nsession log records what happened, but the log is:\n\n- Mutable — anyone with access can edit it\n- Unsigned — there is no way to prove integrity\n- Operator-bound — verification requires trusting whoever holds the log\n\nFor compliance contexts (finance, healthcare, regulated research), this is not\nsufficient. You need tamper-evident evidence that can be verified by third\nparties without trusting you.\n\n## Solution\n\nAdd `protect-mcp` to your Claude Code project:\n\n```bash\n# 1. Install the plugin (adds hooks + skill to your project)\nclaude plugin install wshobson\u002Fagents\u002Fprotect-mcp\n\n# 2. Configure hooks in .claude\u002Fsettings.json (see below)\n\n# 3. Start the receipt-signing server (runs locally, no external calls)\nnpx protect-mcp@latest serve --enforce\n\n# 4. Use Claude Code normally. Every tool call is now policy-evaluated\n#    and produces a signed receipt in .\u002Freceipts\u002F\n```\n\n## Hook Configuration\n\nAdd the following to your project's `.claude\u002Fsettings.json`:\n\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \".*\",\n        \"hook\": {\n          \"type\": \"command\",\n          \"command\": \"npx protect-mcp@latest evaluate --policy .\u002Fprotect.cedar --tool \\\"$TOOL_NAME\\\" --input \\\"$TOOL_INPUT\\\" || exit 2\"\n        }\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"matcher\": \".*\",\n        \"hook\": {\n          \"type\": \"command\",\n          \"command\": \"npx protect-mcp@latest sign --tool \\\"$TOOL_NAME\\\" --input \\\"$TOOL_INPUT\\\" --output \\\"$TOOL_OUTPUT\\\" --receipts .\u002Freceipts\u002F\"\n        }\n      }\n    ]\n  }\n}\n```\n\n### What each hook does\n\n**PreToolUse** — Runs BEFORE the tool executes. Evaluates the tool call against\nyour Cedar policy file. If Cedar returns `deny`, the hook exits with code 2 and\nClaude Code blocks the tool call entirely.\n\n**PostToolUse** — Runs AFTER the tool completes. Signs a receipt containing the\ntool name, input hash, output hash, decision, policy digest, and timestamp.\nWrites the receipt to `.\u002Freceipts\u002F\u003Ctimestamp>.json`.\n\n## Cedar Policy File\n\nCreate `.\u002Fprotect.cedar` at the project root:\n\n```cedar\n\u002F\u002F Allow read-only tools by default\npermit (\n    principal,\n    action in [Action::\"Read\", Action::\"Glob\", Action::\"Grep\", Action::\"WebFetch\"],\n    resource\n);\n\n\u002F\u002F Require explicit allow for destructive tools\npermit (\n    principal,\n    action == Action::\"Bash\",\n    resource\n) when {\n    \u002F\u002F Allow safe commands only\n    context.command_pattern in [\"git\", \"npm\", \"ls\", \"cat\", \"echo\", \"pwd\", \"test\"]\n};\n\n\u002F\u002F Never allow recursive deletion\nforbid (\n    principal,\n    action == Action::\"Bash\",\n    resource\n) when {\n    context.command_pattern == \"rm -rf\"\n};\n\n\u002F\u002F Require confirmation for writes outside the project\nforbid (\n    principal,\n    action in [Action::\"Edit\", Action::\"Write\"],\n    resource\n) when {\n    context.path_starts_with != \".\"\n};\n```\n\n## Verification\n\nVerify a single receipt:\n\n```bash\nnpx @veritasacta\u002Fverify receipts\u002F2026-04-15T10-30-00Z.json\n# Exit 0 = valid\n# Exit 1 = tampered\n# Exit 2 = malformed\n```\n\nVerify the entire chain:\n\n```bash\nnpx @veritasacta\u002Fverify receipts\u002F*.json\n```\n\nUse the plugin's slash commands from within Claude Code:\n\n```\n\u002Fverify-receipt receipts\u002Flatest.json\n\u002Faudit-chain .\u002Freceipts\u002F --last 20\n```\n\n## Receipt Format\n\nEach receipt is a JSON file with this structure:\n\n```json\n{\n  \"receipt_id\": \"rec_8f92a3b1\",\n  \"receipt_version\": \"1.0\",\n  \"issuer_id\": \"claude-code-protect-mcp\",\n  \"event_time\": \"2026-04-15T10:30:00.000Z\",\n  \"tool_name\": \"Bash\",\n  \"input_hash\": \"sha256:a3f8...\",\n  \"decision\": \"allow\",\n  \"policy_id\": \"autoresearch-safe\",\n  \"policy_digest\": \"sha256:b7e2...\",\n  \"parent_receipt_id\": \"rec_3d1ab7c2\",\n  \"public_key\": \"4437ca56815c0516...\",\n  \"signature\": \"4cde814b7889e987...\"\n}\n```\n\n- **Ed25519** signatures (RFC 8032)\n- **JCS canonicalization** (RFC 8785) before signing\n- **Hash-chained** to the previous receipt via `parent_receipt_id`\n- **Offline verifiable** — no network call, no vendor lookup\n\n## Why This Matters\n\n| Before | After |\n|--------|-------|\n| \"Trust me, the agent only read files\" | Cryptographically provable: every Read logged and signed |\n| \"The log shows it happened\" | The receipt proves it happened, and no one can edit it |\n| \"You'd have to audit our system\" | Anyone can verify every receipt offline |\n| \"Logs might be different by now\" | Ed25519 signatures lock the record at signing time |\n\n## Standards\n\n- **Ed25519** — RFC 8032 (digital signatures)\n- **JCS** — RFC 8785 (deterministic JSON canonicalization)\n- **Cedar** — AWS's open authorization policy language\n- **IETF draft** — [draft-farley-acta-signed-receipts](https:\u002F\u002Fdatatracker.ietf.org\u002Fdoc\u002Fdraft-farley-acta-signed-receipts\u002F)\n\n## Related\n\n- **npm**: [protect-mcp](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fprotect-mcp) (v0.5.5, 10K+ monthly downloads)\n- **Verify CLI**: [@veritasacta\u002Fverify](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@veritasacta\u002Fverify)\n- **Source**: [github.com\u002FScopeBlind\u002Fscopeblind-gateway](https:\u002F\u002Fgithub.com\u002FScopeBlind\u002Fscopeblind-gateway)\n- **Protocol**: [veritasacta.com](https:\u002F\u002Fveritasacta.com)\n- **Integrations**: Microsoft Agent Governance Toolkit (PR #667), AWS cedar-policy\u002Fcedar-for-agents (PR #64)\n","# protect-mcp — Policy Enforcement + Signed Receipts\n\nCryptographic governance for every Claude Code tool call. Each invocation is\nevaluated against a Cedar policy and produces an Ed25519-signed receipt that\nanyone can verify offline.\n\n## Overview\n\nClaude Code runs powerful tools: `Bash`, `Edit`, `Write`, `WebFetch`. By default\nthere is no audit trail, no policy enforcement, and no way to prove what was\ndecided after the fact. `protect-mcp` closes all three gaps:\n\n- **Cedar policies** (AWS's open authorization engine) evaluate every tool call\n  before execution. Cedar deny is authoritative.\n- **Ed25519 receipts** record each decision with its inputs, the policy that\n  governed it, and the outcome. Receipts are hash-chained.\n- **Offline verification** via `npx @veritasacta\u002Fverify`. No server, no account,\n  no trust in the operator.\n\n## Problem\n\nAI agents make decisions that affect money, safety, and rights. The Claude Code\nsession log records what happened, but the log is:\n\n- Mutable — anyone with access can edit it\n- Unsigned — there is no way to prove integrity\n- Operator-bound — verification requires trusting whoever holds the log\n\nFor compliance contexts (finance, healthcare, regulated research), this is not\nsufficient. You need tamper-evident evidence that can be verified by third\nparties without trusting you.\n\n## Solution\n\nAdd `protect-mcp` to your Claude Code project:\n\n```bash\n# 1. Install the plugin (adds hooks + skill to your project)\nclaude plugin install wshobson\u002Fagents\u002Fprotect-mcp\n\n# 2. Configure hooks in .claude\u002Fsettings.json (see below)\n\n# 3. Start the receipt-signing server (runs locally, no external calls)\nnpx protect-mcp@latest serve --enforce\n\n# 4. Use Claude Code normally. Every tool call is now policy-evaluated\n#    and produces a signed receipt in .\u002Freceipts\u002F\n```\n\n## Hook Configuration\n\nAdd the following to your project's `.claude\u002Fsettings.json`:\n\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \".*\",\n        \"hook\": {\n          \"type\": \"command\",\n          \"command\": \"npx protect-mcp@latest evaluate --policy .\u002Fprotect.cedar --tool \\\"$TOOL_NAME\\\" --input \\\"$TOOL_INPUT\\\" || exit 2\"\n        }\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"matcher\": \".*\",\n        \"hook\": {\n          \"type\": \"command\",\n          \"command\": \"npx protect-mcp@latest sign --tool \\\"$TOOL_NAME\\\" --input \\\"$TOOL_INPUT\\\" --output \\\"$TOOL_OUTPUT\\\" --receipts .\u002Freceipts\u002F\"\n        }\n      }\n    ]\n  }\n}\n```\n\n### What each hook does\n\n**PreToolUse** — Runs BEFORE the tool executes. Evaluates the tool call against\nyour Cedar policy file. If Cedar returns `deny`, the hook exits with code 2 and\nClaude Code blocks the tool call entirely.\n\n**PostToolUse** — Runs AFTER the tool completes. Signs a receipt containing the\ntool name, input hash, output hash, decision, policy digest, and timestamp.\nWrites the receipt to `.\u002Freceipts\u002F\u003Ctimestamp>.json`.\n\n## Cedar Policy File\n\nCreate `.\u002Fprotect.cedar` at the project root:\n\n```cedar\n\u002F\u002F Allow read-only tools by default\npermit (\n    principal,\n    action in [Action::\"Read\", Action::\"Glob\", Action::\"Grep\", Action::\"WebFetch\"],\n    resource\n);\n\n\u002F\u002F Require explicit allow for destructive tools\npermit (\n    principal,\n    action == Action::\"Bash\",\n    resource\n) when {\n    \u002F\u002F Allow safe commands only\n    context.command_pattern in [\"git\", \"npm\", \"ls\", \"cat\", \"echo\", \"pwd\", \"test\"]\n};\n\n\u002F\u002F Never allow recursive deletion\nforbid (\n    principal,\n    action == Action::\"Bash\",\n    resource\n) when {\n    context.command_pattern == \"rm -rf\"\n};\n\n\u002F\u002F Require confirmation for writes outside the project\nforbid (\n    principal,\n    action in [Action::\"Edit\", Action::\"Write\"],\n    resource\n) when {\n    context.path_starts_with != \".\"\n};\n```\n\n## Verification\n\nVerify a single receipt:\n\n```bash\nnpx @veritasacta\u002Fverify receipts\u002F2026-04-15T10-30-00Z.json\n# Exit 0 = valid\n# Exit 1 = tampered\n# Exit 2 = malformed\n```\n\nVerify the entire chain:\n\n```bash\nnpx @veritasacta\u002Fverify receipts\u002F*.json\n```\n\nUse the plugin's slash commands from within Claude Code:\n\n```\n\u002Fverify-receipt receipts\u002Flatest.json\n\u002Faudit-chain .\u002Freceipts\u002F --last 20\n```\n\n## Receipt Format\n\nEach receipt is a JSON file with this structure:\n\n```json\n{\n  \"receipt_id\": \"rec_8f92a3b1\",\n  \"receipt_version\": \"1.0\",\n  \"issuer_id\": \"claude-code-protect-mcp\",\n  \"event_time\": \"2026-04-15T10:30:00.000Z\",\n  \"tool_name\": \"Bash\",\n  \"input_hash\": \"sha256:a3f8...\",\n  \"decision\": \"allow\",\n  \"policy_id\": \"autoresearch-safe\",\n  \"policy_digest\": \"sha256:b7e2...\",\n  \"parent_receipt_id\": \"rec_3d1ab7c2\",\n  \"public_key\": \"4437ca56815c0516...\",\n  \"signature\": \"4cde814b7889e987...\"\n}\n```\n\n- **Ed25519** signatures (RFC 8032)\n- **JCS canonicalization** (RFC 8785) before signing\n- **Hash-chained** to the previous receipt via `parent_receipt_id`\n- **Offline verifiable** — no network call, no vendor lookup\n\n## Why This Matters\n\n| Before | After |\n|--------|-------|\n| \"Trust me, the agent only read files\" | Cryptographically provable: every Read logged and signed |\n| \"The log shows it happened\" | The receipt proves it happened, and no one can edit it |\n| \"You'd have to audit our system\" | Anyone can verify every receipt offline |\n| \"Logs might be different by now\" | Ed25519 signatures lock the record at signing time |\n\n## Standards\n\n- **Ed25519** — RFC 8032 (digital signatures)\n- **JCS** — RFC 8785 (deterministic JSON canonicalization)\n- **Cedar** — AWS's open authorization policy language\n- **IETF draft** — [draft-farley-acta-signed-receipts](https:\u002F\u002Fdatatracker.ietf.org\u002Fdoc\u002Fdraft-farley-acta-signed-receipts\u002F)\n\n## Related\n\n- **npm**: [protect-mcp](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fprotect-mcp) (v0.5.5, 10K+ monthly downloads)\n- **Verify CLI**: [@veritasacta\u002Fverify](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@veritasacta\u002Fverify)\n- **Source**: [github.com\u002FScopeBlind\u002Fscopeblind-gateway](https:\u002F\u002Fgithub.com\u002FScopeBlind\u002Fscopeblind-gateway)\n- **Protocol**: [veritasacta.com](https:\u002F\u002Fveritasacta.com)\n- **Integrations**: Microsoft Agent Governance Toolkit (PR #667), AWS cedar-policy\u002Fcedar-for-agents (PR #64)\n",{"name":5,"description":7},"main","900bb95bbe72cdb94af6f5a620aa5081264b7b6d",".claude\u002Fmarketplaces\u002Fwshobson\u002Fplugins\u002Fprotect-mcp\u002Fskills\u002Fprotect-mcp-setup",0,"https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up","https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up#readme","https:\u002F\u002Fgithub.com\u002Fsteph-frtech","2026-05-16 00:03:30",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add steph-frtech\u002Fclaude-code-up --skill protect-mcp-setup",{"tool":37,"command":38},"bunx","bunx skills add steph-frtech\u002Fclaude-code-up --skill protect-mcp-setup",{"tool":40,"command":41},"pnpm","pnpm dlx skills add steph-frtech\u002Fclaude-code-up --skill protect-mcp-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up\u002Fblob\u002Fmain\u002F.claude\u002Fmarketplaces\u002Fwshobson\u002Fplugins\u002Fprotect-mcp\u002Fskills\u002Fprotect-mcp-setup\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M72Y1BY6X8TX3DS19Y04NEBQ","example","One-line summary of what this skill does","https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up\u002Fblob\u002Fmain\u002Fskills\u002Fexample\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M72Y1A38EYR8S9P1MBYDAQTW","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsuperpowers__writing-plans\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M72Y174QSV1B5NV1E4KWHQBR","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsuperpowers__using-git-worktrees\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M72Y14SQRHHMKG316HGB2CGK","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsuperpowers__test-driven-development\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M72Y127BCPRH3BRKPJC3Q3G2","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsuperpowers__systematic-debugging\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M72Y1090GJA6B67KPD60WPHH","subagent-driven-development","Use when executing implementation plans with independent tasks in the current session","https:\u002F\u002Fgithub.com\u002Fsteph-frtech\u002Fclaude-code-up\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsuperpowers__subagent-driven-development\u002FSKILL.md",[],[]]