agent-guardrails-analyze
Installation
SKILL.md
Agent Guardrails Analyze
Scan Claude Code session logs to detect recurring anti-patterns in assistant responses. Produce a ranked frequency report with excerpts and ready-to-use guardrail rule suggestions.
Known Anti-Pattern Categories
The canonical regex patterns live in the plugin's rules/ directory — one .md file per category. Always read the patterns from those files rather than hardcoding them, so analysis stays in sync with installed/refined rules.
Source of truth: ${CLAUDE_PLUGIN_ROOT}/rules/no-*.md
Read each rule file's YAML frontmatter to extract the name, pattern, and message fields. The six categories are:
| # | Category | Rule file |
|---|---|---|
| 1 | Guessing | no-guessing.md |
| 2 | Stalling | no-stalling.md |
| 3 | Preference-Asking | no-preference-asking.md |
| 4 | False Completion | no-false-completion.md |
| 5 | Skipping | no-skipping.md |
Related skills