| name | alembic-guard |
| description | Guard checks code against project Recipe standards via MCP tool alembic_guard (auto-routes by code/files params). Use when the user wants to audit, lint, or verify code compliance. |
Alembic Guard โ Code Compliance Checking
Use this skill when: The user wants to check whether code meets project standards (่ง่ / Audit / Guard / Lint).
MCP Tool: alembic_guard
Single code check (code param):
{ "code": "URLSession.shared.dataTask(with: url) { ... }", "language": "objc", "filePath": "Sources/Network/OldAPI.m" }
Multi-file audit (files[] param):
{ "files": [{ "path": "Sources/Network/APIClient.m" }, { "path": "Sources/Network/RequestManager.m" }], "scope": "project" }
Returns violations with { ruleId, severity, message, line, pattern }. Batch results auto-recorded to ViolationsStore.
Guard Knowledge Source
Guard uses Recipe content as the standard โ no separate config:
- kind=rule โ enforced as Guard rules (severity: error/warning/info)
- kind=pattern โ best-practice references
constraints.guards[].pattern โ regex patterns for automated detection
Agent Workflow
Quick Check ("ๆฃๆฅ่ฟๆฎตไปฃ็ ")
alembic_guard with code โ present violations + fix suggestions
Module Audit ("ๅฎกๆฅ็ฝ็ปๆจกๅ")
alembic_structure(operation=files) โ get file list
alembic_guard with file paths โ summarize by severity
Project-wide
alembic_bootstrap โ full project scan including Guard audit
Related Skills
- alembic-recipes: Recipe content IS the Guard standard