OpenParable
Skip to content
← Back to skills

Static Analysis Runner

Testing & Quality
static-analysis-runner

Static Analysis Runner is an Agent Skill for testing & quality published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Run static analysis tools including SonarQube, ESLint, and multi-language linters

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/software-architecture/skills/static-analysis-runner/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/static-analysis-runner, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Static Analysis Runner Skill

Overview

Runs static analysis tools including SonarQube, ESLint/TSLint, and multi-language linters with custom rule configuration and report aggregation.

Capabilities

  • Run SonarQube analysis
  • Execute ESLint/TSLint
  • Multi-language support
  • Custom rule configuration
  • Report aggregation
  • Quality gate evaluation
  • Trend analysis

Target Processes

  • refactoring-plan
  • security-architecture-review
  • performance-optimization

Input Schema

{
  "type": "object",
  "required": ["paths"],
  "properties": {
    "paths": {
      "type": "array",
      "items": { "type": "string" },
      "description": "Paths to analyze"
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": ["sonarqube", "eslint", "tslint", "pylint", "rubocop", "checkstyle"]
      },
      "default": ["eslint"]
    },
    "config": {
      "type": "object",
      "properties": {
        "configFile": {
          "type": "string",
          "description": "Path to linter config file"
        },
        "rules": {
          "type": "object",
          "description": "Rule overrides"
        },
        "fix": {
          "type": "boolean",
          "default": false
        }
      }
    },
    "qualityGate": {
      "type": "object",
      "properties": {
        "maxErrors": { "type": "number" },
        "maxWarnings": { "type": "number" }
      }
    }
  }
}

Output Schema

{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tool": { "type": "string" },
          "files": { "type": "array" },
          "errors": { "type": "number" },
          "warnings": { "type": "number" }
        }
      }
    },
    "qualityGatePassed": {
      "type": "boolean"
    },
    "summary": {
      "type": "object",
      "properties": {
        "totalErrors": { "type": "number" },
        "totalWarnings": { "type": "number" },
        "filesAnalyzed": { "type": "number" }
      }
    }
  }
}

Usage Example

{
  kind: 'skill',
  skill: {
    name: 'static-analysis-runner',
    context: {
      paths: ['src/**/*.ts'],
      tools: ['eslint'],
      config: {
        configFile: '.eslintrc.js',
        fix: false
      },
      qualityGate: {
        maxErrors: 0,
        maxWarnings: 10
      }
    }
  }
}