codeguard-run

Run static analysis and AI pattern checks on Laravel/PHP projects.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/henryavila/codeguard --skill codeguard-run
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codeguard-run
Source: https://github.com/henryavila/codeguard/tree/main/resources/skills/codeguard-run
Command: npx skills add https://github.com/henryavila/codeguard --skill codeguard-run

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams enforce Laravel project quality by running static analysis and AI pattern checks against configured standards, surfacing code-quality defects and architectural deviations.

Core Features & Use Cases

  • Orchestrates static analysis across configured tools (Larastan, PHPMD, Pest) to provide an integrated view of code quality.
  • Loads project configuration (codeguard.yaml), AI rules (ai-rules), and module presets to guide analysis and scope decisions.
  • Generates unified findings with actionable remediation guidance and supports baselining for deterministic tool findings.

Quick Start

Run the codeguard-run skill against your project to perform static analysis and AI pattern checks using your codeguard.yaml and ai-rules.

Frequently Asked Questions about codeguard-run

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run static analysis and AI pattern checks on a Laravel project?

To run static analysis and AI pattern checks on a Laravel project, execute the analysis skill using your codeguard.yaml configuration and ai-rules. It orchestrates configured tools like Larastan, PHPMD, and Pest to surface quality and architectural violations.

What is static analysis for Laravel architectural deviations?

Static analysis for Laravel architectural deviations is the process of identifying quality defects and pattern violations across configured modules and layers. It uses codeguard.yaml and module presets to assess files and generate unified findings with remediation guidance.

Can I use Larastan, PHPMD, and Pest together for PHP code quality checks?

Yes, you can use Larastan, PHPMD, and Pest together for PHP code quality checks. The analysis orchestration integrates these configured tools to provide a unified view of code quality, architectural deviations, and pattern violations.

How do I configure quality gates and baselines for PHP static analysis findings?

You configure quality gates and baselines for PHP static analysis by defining them in your codeguard.yaml file. This setup allows the analysis to respect your established thresholds and supports baselining for deterministic tool findings.

Does codeguard-run work with custom AI rules for PHP code analysis?

Yes, codeguard-run works with custom AI rules for PHP code analysis. It loads project-specific ai-rules alongside codeguard.yaml and module presets to guide analysis scope decisions and provide AI-based remediation guidance.

Why use AI pattern checks alongside standard PHP static analysis tools?

You use AI pattern checks alongside standard PHP static analysis tools to detect architectural deviations that traditional tools might miss. This combination provides unified findings with actionable, AI-based remediation guidance for higher code quality.