Evidence-first automation inventory and overlap audit workflow for ECC. Use when the user wants to know which jobs, hooks, connectors, MCP servers, or wrappers are live, broken, redundant, or missing before fixing anything.
git clone https://github.com/affaan-m/ECC.git--- name: automation-audit-ops description: Evidence-first automation inventory and overlap audit workflow for ECC. Use when the user wants to know which jobs, hooks, connectors, MCP servers, or wrappers are live, broken, redundant, or missing before fixing anything. metadata: origin: ECC --- # Automation Audit Ops Use this when the user asks what automations are live, which jobs are broken, where overlap exists, or what tooling and connectors are actually doing useful work right now. This is an audit-first operator skill. The job is to produce an evidence-backed inventory and a keep / merge / cut / fix-next recommendation set before rewriting anything. ## Skill Stack Pull these ECC-native skills into the workflow when relevant: - `workspace-surface-audit` for connector, MCP, hook, and app inventory - `knowledge-ops` when the audit needs to reconcile live repo truth with durable context - `github-ops` when the answer depends on CI, scheduled workflows, issues, or PR automation - `ecc-tools-cost-audit` when the real problem is webhook fanout, queued jobs, or billing burn in the sibling app repo - `research-ops` when local inventory must be compared against current platform support or public docs - `verification-loop` for proving post-fix state instead of relying on assumed recovery ## When to Use - user asks "what automations do I have", "what is live", "what is broken", or "what overlaps" - the task spans cron jobs, GitHub Actions, local hooks, MCP servers, connectors, wrappers, or app integrations - the user wants to know what was ported from another agent system and what still needs to be rebuilt inside ECC - the workspace has accumulated multiple ways to do the same thing and the user wants one canonical lane ## Guardrails - start read-only unless the user explicitly asked for fixes - separate: - configured - authenticated - recently verified - stale or broken - missing entirely - do not claim a tool is live just because a skill or config references it - do not merge or delete overlapping surfaces until the evidence table exists ## Workflow ### 1. Inventory the real surface Read the current live surface before theorizing: - repo hooks and local hook scripts - GitHub Actions and scheduled workflows - MCP configs and enabled servers - connector- or app-backed integrations - wrapper scripts and repo-specific automation entrypoints Group them by surface: - local runtime - repo CI / automation - connected external systems - messaging / notifications - billing / customer operations - research / monitoring ### 2. Classify each item by live state For every surfaced automation, mark: - configured - authenticated - recently verified - stale or broken - missing Then classify the problem type: - active breakage - auth outage - stale status - overlap or redundancy - missing capability ### 3. Trace the proof path Back every important claim with a concrete source: - file path - workflow run - hook log - config entry - recent command output - exact failure signature If the current state is ambiguous, say so directly instead of pretending the audit is complete. ### 4. End with keep / merge / cut / fix-next For each overlapping or suspect surface, return one call: - keep - merge - cut - fix next The value is in collapsing noisy automation into one canonical ECC lane, not in preserving every historical path. ## Output Format ```text CURRENT SURFACE - automation - source - live state - proof FINDINGS - active breakage - overlap - stale status - missing capability RECOMMENDATION - keep - merge - cut - fix next NEXT ECC MOVE - exact skill / hook / workflow / app lane to strengthen ``` ## Pitfalls - do not answer from memory when the live inventory can be read - do not treat "present in config" as "working" - do not fix lower-value redundancy before naming the broken high-signal path - do not widen the task into a repo rewrite if the user asked for inventory first ## Verification - important claims cite a live proof path - each surfaced automation is labeled with a clear live-state category - the final recommendation distinguishes keep / merge / cut / fix-next
[{"step":"Define the scope of your audit by specifying the environment and component types. For example: 'audit production environment for jobs, hooks, and connectors'.","tip":"Use the exact names of your environments (e.g., 'prod', 'staging', 'dev') and component types (e.g., 'scheduled_tasks', 'webhooks', 'api_connectors') to ensure accuracy."},{"step":"Gather evidence by running diagnostic commands or queries. For ECC, this might include: `kubectl get jobs -n ecc-prod`, `curl -X GET http://ecc-hooks/status`, or querying your automation platform's API for execution logs.","tip":"If you don’t have direct access to logs, ask your DevOps team to provide recent execution data or enable verbose logging for the audit period."},{"step":"Input the gathered data into the AI audit tool using the prompt template. Include placeholders like [ECC_ENVIRONMENT] and [COMPONENT_TYPES] with your specific values.","tip":"For large environments, break the audit into chunks (e.g., audit jobs first, then hooks) to avoid overwhelming the AI with too much data at once."},{"step":"Review the AI-generated report and prioritize fixes based on risk levels. Cross-reference the dependency map to identify cascading issues.","tip":"Use the 'Next Steps' section of the report to create a prioritized backlog in your project management tool (e.g., Jira, Linear)."},{"step":"Validate the AI’s findings by manually checking a sample of the flagged components (e.g., test a broken webhook or inspect a redundant job configuration).","tip":"If the AI’s recommendations don’t match your manual findings, adjust the audit scope or provide additional context to refine the output."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/affaan-m/ECC/tree/main/skills/automation-audit-opsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Conduct a comprehensive automation audit for [ECC_ENVIRONMENT] (e.g., production, staging, dev) to identify live, broken, redundant, or missing automation components. Focus on [COMPONENT_TYPES] (e.g., jobs, hooks, connectors, MCP servers, wrappers) and generate an evidence-first report prioritized by risk. Include last execution timestamps, success/failure rates, and dependency mappings where available. Flag any components with no recent activity or conflicting configurations.
### Automation Audit Report for ECC Production Environment **Generated:** 2024-05-15 | **Auditor:** AI Audit Assistant #### Executive Summary This audit reviewed 124 automation components across 8 categories in the ECC production environment. **Critical findings:** 3 components are failing silently (no logs in 30+ days), 12 are redundant (same task performed by 2+ components), and 8 dependencies are missing (required upstream services unavailable). **Recommendation:** Prioritize fixing the 3 broken components and consolidating the 12 redundancies to reduce maintenance overhead by ~20%. #### Detailed Findings **1. Jobs (42 total)** - **Live & Healthy:** 35 (83.3%) - Last executed within 7 days. - *Example:* `daily_backup_job` (last run: 2024-05-14 02:15, success rate: 99.8%). - **Broken:** 3 (7.1%) - Silent failures detected. - *Example:* `user_sync_job` (last run: 2024-04-10, failure rate: 100% due to missing API key). - **Redundant:** 4 (9.5%) - Duplicate tasks identified. - *Example:* `report_generation_job` and `nightly_report_job` both generate the same CSV export. **2. Hooks (28 total)** - **Live & Healthy:** 22 (78.6%) - Triggered successfully in the last 48 hours. - **Broken:** 2 (7.1%) - Failed to fire due to misconfigured webhook URLs. - **Missing:** 4 (14.3%) - Required hooks for `order_processed` event are not implemented. **3. Connectors (15 total)** - **Live & Healthy:** 10 (66.7%) - Connected to external services (e.g., Salesforce, Stripe). - **Broken:** 3 (20%) - Authentication expired for `stripe_connector` (last error: 401 Unauthorized). - **Redundant:** 2 (13.3%) - `salesforce_sync` and `sfdc_sync` perform identical operations. **4. MCP Servers (8 total)** - **Live & Healthy:** 6 (75%) - Responding to health checks. - **Broken:** 2 (25%) - `file_processor_mcp` and `image_resizer_mcp` are unresponsive (last ping: 2024-05-01). **5. Wrappers (11 total)** - **Live & Healthy:** 9 (81.8%) - Wrapping legacy systems for API compatibility. - **Broken:** 1 (9.1%) - `legacy_db_wrapper` fails to parse SQL queries (syntax error). - **Missing:** 1 (9.1%) - No wrapper for the new `payment_gateway` system. #### Risk Assessment | Risk Level | Components | Impact | Action Required | |------------|------------|--------|-----------------| | Critical | 3 | High | Immediate fix | | High | 5 | Medium | Next sprint | | Medium | 7 | Low | Backlog | | Low | 12 | Minimal| Monitor | #### Dependency Map - **Broken Components:** `user_sync_job` depends on `auth_service`, which is currently down. - **Redundant Components:** `report_generation_job` and `nightly_report_job` both depend on `data_export_service` (overloaded). #### Next Steps 1. **Immediate:** Fix `user_sync_job` (restore API key) and `stripe_connector` (renew credentials). 2. **Sprint:** Consolidate redundant jobs (`report_generation_job` → `nightly_report_job`) and restore broken MCP servers. 3. **Backlog:** Implement missing hooks for `order_processed` event and create wrapper for `payment_gateway`. **Total Effort Estimate:** 12 hours (3 critical, 5 high, 4 medium).
skills-collection
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan