From trace-mcp
Runs trace-mcp security scans, quality gates, and antipattern checks before commits or PRs. Activates when creating a commit or pull request in a trace-mcp indexed project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/trace-mcp:trace-mcp-pre-commitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Before creating a commit or opening a pull request, run the trace-mcp validation suite. Fix any critical or high findings before committing.
Before creating a commit or opening a pull request, run the trace-mcp validation suite. Fix any critical or high findings before committing.
scan_security({ rules: ["all"] })
OWASP Top-10 vulnerability scan across the changed scope. If the change touches untrusted data flows, add:
taint_analysis({})
Trace untrusted sources to sensitive sinks (SQL, shell, file system, HTTP).
check_quality_gates({ scope: "changed" })
Validates complexity, coverage, duplication, and any project-configured gates on only the files you changed.
detect_antipatterns({})
Flags N+1 queries, eager loading, inefficient iteration, and language-specific performance footguns.
compare_branches({ branch: "current" })
Produces a symbol-level diff (functions added/removed/modified, signatures changed, exports changed). Use this as the basis for an accurate PR description instead of a raw line diff.
predict_bugs({})
get_risk_hotspots({})
Flags files where the combination of high complexity and high churn makes regressions likely. If your change touches a hotspot, add extra tests.
If the commit is part of a larger series, consider:
get_changed_symbols({ since: "<base-ref>" })
to generate an accurate changelog entry grounded in the symbol graph rather than commit messages.
npx claudepluginhub nikolai-vysotskyi/trace-mcp --plugin trace-mcpRuns lint, typecheck, and tests before AI review. Mechanical checks gate AI review — failures block commit.
Performs structured code reviews checking requirements, quality, and security standards after changes or before merge. Uses git diffs, context snapshots, and blast radius for scope.
Runs pre-commit self-review checklist: re-reads diffs as a stranger, scans ±20 lines for unsafe patterns like hardcoded credentials, string-built SQL, unsafe deserialization before commits, PRs, or handoffs.