rules-perl

Enforce Perl coding standards for naming, testing, and SQL safety.

4|1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/NSObjects/specpowers --skill rules-perl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rules-perl
Source: https://github.com/NSObjects/specpowers/tree/main/skills/rules-perl
Command: npx skills add https://github.com/NSObjects/specpowers --skill rules-perl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Perl projects inherit universal rules but diverge on community expectations, so this guide delivers Perl-specific overrides that keep agents from breaking naming, formatting, testing, and safety conventions.

Core Features & Use Cases

  • Naming & Formatting: Enforces perlstyle naming, PascalCase packages, snake_case variables, perltidy formatting, and perlcritic checks tailored to Perl idioms.
  • Strictness & Safety: Requires use strict, use warnings, modern features, perlcritic configuration, and lexical resource handling to avoid silent bugs.
  • Testing & Data Safety: Directs TAP-based testing with Test::More, coverage tooling, DBI placeholders, and autodie/Carp strategies for robust error handling and SQL protection.

Quick Start

Apply the rules-perl conventions when reviewing a Perl module to check naming, testing, and SQL best practices.

Frequently Asked Questions about rules-perl

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

FAQPage Schema
How do I enforce Perl coding standards for naming, formatting, and safety conventions?

To enforce Perl coding standards, apply perlstyle naming, PascalCase packages, snake_case variables, and mandate `use strict` with `use warnings` to prevent silent bugs and ensure code compliance.

What is the best way to run deterministic Perl code reviews for SQL usage and error handling?

The best way to run deterministic Perl code reviews is to check DBI placeholders for SQL injection protection and verify `autodie` or `Carp` strategies for robust error handling during module creation or modification.

How do I configure perltidy and perlcritic checks tailored to Perl idioms?

Configure perltidy for formatting and perlcritic for checks tailored to Perl idioms to satisfy technical requirements, ensuring scripts follow deterministic guidance on formatting and strictness during creation.

Does this Perl rules guide support TAP-based testing with Test::More?

Yes, this Perl rules guide supports TAP-based testing with `Test::More` and coverage tooling, directing robust test creation to satisfy technical requirements and ensure code reliability for modified scripts.

Why does my Perl project need lexical resource handling and strictness rules?

Your Perl project needs lexical resource handling and `use strict` rules to avoid silent bugs, enforce modern features, and ensure deterministic guidance on resource cleanup and error handling during script execution.

Can I use this Perl coding rules guide for projects adopting rules-common references?

Yes, you can use this Perl coding rules guide for projects that already adopt rules-common references, providing Perl-specific overrides to keep agents from breaking community expectations on naming and testing conventions.