Pin skills, commands, agents and CLAUDE.md
pin_contextRecords a SHA-256 of every skill, command, subagent, rule, CLAUDE.md, plugin hook config and bundled script (user, project and each installed plugin) in ~/.claude/mcp-security/context-pins.json, so later scans and the session-start check…
Instructions
Records a SHA-256 of every skill, command, subagent, rule, CLAUDE.md, plugin hook config and bundled script (user, project and each installed plugin) in ~/.claude/mcp-security/context-pins.json, so later scans and the session-start check report anything that changed after you approved it. A plugin that changes files without a new version is the rug-pull pattern. Pin only after the user has reviewed an audit_agent_context report; origins with critical or high findings are skipped unless force is true. Reads files only; launches nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Pin origins that still have critical or high findings. Only when the user explicitly accepts them. | |
| origins | No | Only these origins: "user", "project", "plugin:<name>". Default: all. | |
| project_dir | No |