looker-audit
Installation
SKILL.md
Looker Audit & Health Check
This skill guides you through auditing a Looker instance using looker-cli and System Activity to identify performance bottlenecks, governance gaps, and cleanup opportunities. It flags the violation of best practices and suggests optimal fixes e.g. code snippets or step-by-step guide.
[!IMPORTANT]
⚠️ Rules of Engagement (CRITICAL)
- Strictly API/CLI Only: All operational auditing MUST be done via
looker-clior System Activity.- NO Local Filesystem Scans: Do NOT use
find,grep,ls,code_search, orfind_by_nameto search the local filesystem (e.g.,google3/). You are auditing a remote/containerized instance.- Immediate Action: Run your first
looker-clior API command in Step 1. Do not waste turns exploring directories.- File Paths and Content via API Only: If you need to identify file paths, line numbers, or read file content, you MUST use
looker-cli api project all_project_files [project_id]orproject_file. Do NOT use local filesystem tools to find or read them.
- Scaling Guardrail: Before running loops over project files, you MUST check the total number of files. If the total number of view files exceeds 50, you MUST ask the user to specify which projects or files should be prioritized. Do NOT proceed with exhaustive loops on large codebases without explicit user direction.
- Graceful Degradation: If the API fails to return file paths or details (e.g., 404), STOP. Report the violation using the identifiers you have (View Name, Model Name, Dashboard ID). Do NOT pivot to local filesystem searches.
- No Custom Pipelines: Use inline queries directly. Do NOT write Python scripts or pipelines.
- Comprehensive Checklist Coverage: You MUST execute queries and review ALL sections defined in the Audit Checklist. Do NOT skip sections unless explicitly instructed by the user. Thoroughness is critical.