hydra-gate-forbidden-patterns

Scan PHP lib directories for forbidden debug helper functions.

1|1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/ConductionNL/shillinq --skill hydra-gate-forbidden-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hydra-gate-forbidden-patterns
Source: https://github.com/ConductionNL/shillinq/tree/main/.claude/skills/hydra-gate-forbidden-patterns
Command: npx skills add https://github.com/ConductionNL/shillinq --skill hydra-gate-forbidden-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents accidental inclusion of debug helpers like var_dump, die, or dd in production code, which are common causes of PR rejections and security leaks.

Core Features & Use Cases

  • Automated Pattern Scanning: Scans the lib/ directory for forbidden debug functions using word-boundary-aware grep to avoid false positives.
  • Deterministic Fix Actions: Provides clear guidance on replacing debug calls with proper logging or exception handling.
  • Use Case: Before pushing code to the repository, run this gate to ensure no local debugging artifacts remain, maintaining high code quality and preventing pipeline failures.

Quick Start

Run the hydra-gate-forbidden-patterns skill to scan the lib directory for any forbidden debug helpers that need to be removed.

Frequently Asked Questions about hydra-gate-forbidden-patterns

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

FAQPage Schema
How do I prevent debug code like var_dump and die from leaking into my PHP production code?

To prevent debug code like var_dump and die from leaking into PHP production code, use an automated quality gate to scan your lib directory for forbidden helper functions before pushing. This enforces pipeline standards and avoids PR rejections.

What is the best way to scan a PHP codebase for forbidden debug functions without false positives?

Scanning a PHP codebase for forbidden debug functions without false positives requires word-boundary-aware grep pattern matching. This technique accurately identifies exact debug helper calls while ignoring similar substrings in legitimate variable names.

How does automated pattern scanning improve PHP code quality in a CI pipeline?

Automated pattern scanning improves PHP code quality in a CI pipeline by deterministically flagging local debugging artifacts before code is merged. This guarantees production-ready code by replacing manual checks with consistent quality gate enforcement.

Can I use this forbidden pattern gate on any PHP project directory structure?

This forbidden pattern gate targets the lib directory specifically, so it supports PHP projects following that structure. Projects using different directory layouts may need to adjust the scanning path to accurately detect debug helpers.

What should I replace debug helper functions with when fixing pipeline failures?

When fixing pipeline failures caused by debug helper functions, you should replace them with proper logging or exception handling. This ensures your PHP application maintains clean error reporting without exposing internal state in production.