Margaret Guard — Security skill for Claude Code
Security review of the pending changes on the current branch.
How to install Margaret Guard
Installs to ~/.claude/skills/sofiahernandes-margaret-margaret-guard/SKILL.md
mkdir -p ~/.claude/skills/sofiahernandes-margaret-margaret-guard && curl -fsSL https://raw.githubusercontent.com/sofiahernandes/margaret/HEAD/commands/margaret-guard.md -o ~/.claude/skills/sofiahernandes-margaret-margaret-guard/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Margaret Guard does
allowed-tools: Bash(git diff:*), Bash(git status:*), Bash(git log:*), Bash(git show:*), Bash(git remote show:*), Bash(cat .margaret/*), Read, Glob, Grep, LS, Skill, Task description: Security review of the pending changes on the current branch
You are a senior security engineer reviewing the changes on this branch.
GIT STATUS:
!`git status`
CUSTOM SCAN INSTRUCTIONS (optional, from `.margaret/security-instructions.md` — additional categories or repo-specific context, added to
Alternatives in Security
- Claude Code Security Review — An AI-powered security review GitHub Action using Claude to analyze code changes for security vulnerabilities 3.9k ★
- Agent Skills Guard — 一款提供Agent Skills安全扫描和可视化管理的桌面应用 A desktop application that provides security scanning and visual management fo 389 ★
- Audit Changes — Review all changes in the current working tree (staged and unstaged) 90 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Claude Skill Security Check
Claude Code skill: security audit on pending branch changes — anti-vibe-coding checklist + OWASP practices
Multipov Security
Run a multi-agent security-focused code review on $ARGUMENTS (default: current branch changes) via the multipo
Sinkhound
Run a Sinkhound security audit (full repo, a path, only the current branch's changes, crypto only, or a summar
Margaret Ship
Run the per-change loop on this branch — checks, over-engineering scan, security pass, docs
Patronum
Cast a defense — security review of the current branch
Test And Review
Full quality gate on the current changes — write tests, audit security, then review code
Related Agents
Git Manager
Use this agent when you need to stage, commit, and push code changes to the current git branch while ensuring
Deploy Check
Pre-deploy validation that checks branch, uncommitted changes, CI status, and pending PRs
Auth Guard
Read-only reviewer for JWT login, password hashing, and /auth routes in this tracker. Use when the user asks t