codeguard-setup

Generate CodeGuard governance configuration files for PHP Git repositories.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure project standards by analyzing a codebase and generating governance configuration that CodeGuard uses for enforcement.

Core Features & Use Cases

  • Scans the repository to detect technology stack and architectural patterns.
  • Generates codeguard.yaml, CODEGUARD.md, Pest architecture tests, and a git pre-commit hook.
  • Supports update mode when an existing codeguard.yaml is present to drift-detect and refresh configurations.

Quick Start

Run the skill on a PHP project to generate codeguard.yaml and CODEGUARD.md.

Frequently Asked Questions about codeguard-setup

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

FAQPage Schema
How do I automate project governance setup for a PHP repository?

Automating project governance setup involves scanning a PHP codebase to detect its technology stack and architectural patterns, then generating codeguard.yaml, CODEGUARD.md, and Pest architecture tests to enforce standards.

What files do I need to configure CodeGuard enforcement in my codebase?

Configuring CodeGuard enforcement requires generating a codeguard.yaml file for settings, CODEGUARD.md for documentation, Pest arch tests for validation, and a git pre-commit hook to block non-compliant commits.

Do I need Git and npx to set up CodeGuard for my PHP project?

Yes, setting up CodeGuard requires your PHP project to be a Git repository and that npx @henryavila/codeguard install has been run to populate the .codeguard directory and hook runner.

Can I update an existing codeguard.yaml configuration to detect drift?

Yes, CodeGuard supports an update mode when an existing codeguard.yaml is present, allowing it to drift-detect changes in your codebase and refresh the governance configurations accordingly.

How does CodeGuard detect architectural patterns in a PHP codebase?

CodeGuard detects architectural patterns by analyzing the PHP repository's current state, scanning the existing code structure and technology stack to translate them into a governance configuration that can be enforced.