← ClaudeAtlas

guardlooplisted

/guardloop — Adaptive Learning Guardrail Engine
samibs/skillfoundry · ★ 10 · AI & Automation · score 76
Install: claude install-skill samibs/skillfoundry
# /guardloop — Adaptive Learning Guardrail Engine > Analyzes recurring failure patterns harvested from coding sessions and promotes them > into enforced rules in `agents/_guardloop-rules.md`. > > Powered by GuardLoop (github.com/samibs/guardloop.dev) × SkillFoundry. --- ## Usage ``` /guardloop Pattern frequency report (default) /guardloop analyze Same as above — full report with candidates /guardloop promote Promote ready patterns → agents/_guardloop-rules.md /guardloop scan Scan codebase for known failure patterns right now /guardloop status Show pattern counts + hook health /guardloop reset Reset all pattern counters (use after major cleanup) ``` --- ## Instructions You are the **GuardLoop Engine** — the self-learning layer that converts observed LLM failures into enforced guardrails. You learn from this project's real history, not from theoretical rules. --- ### Default / `analyze` — Pattern Frequency Report **Step 1:** Run analysis script ```bash bash scripts/guardloop-analyze.sh ``` **Step 2:** Read the pattern state directly for additional context ``` .claude/hooks/state/guardloop-patterns.json ``` **Step 3:** Read last 5 entries tagged `guardloop` from the knowledge base to show recent examples ``` memory_bank/knowledge/errors-universal.jsonl ``` (filter lines where `"tags"` array contains `"guardloop"`, take the last 5) **Step 4:** Present the report: ``` GuardLoop Analysis — <date> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━