runtime-perl
Specialise Perl and Raku runtime, build, and ecosystem conventions; evolvable, acknowledges unknown tools.
- License 许可
- MIT
- 最近更新
- 2026-08-08
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- runtime-perl
- description
- Specialise Perl and Raku runtime, build, and ecosystem conventions; evolvable, acknowledges unknown tools.
03 SKILL.md 正文
Runtime: Perl / Raku
Detect Perl version, cpanm, Carton, Dist::Zilla, App::perlbrew, plenv, and Raku (Rakudo, zef). Detect frameworks: Dancer, Mojolicious, Catalyst, PSGI/Plack, and Raku frameworks (Croissant, Bailador).
Classify application shape from code and config, not framework. Prefer the existing build tool. Add migration and test harness guidance only when evidence requires it.
Build and tooling
- Perl dependency declaration lives in
cpanfile,Makefile.PL,Build.PLordist.ini(Dist::Zilla); detect which and respect it. - Carton (
cpanfile.snapshot) pins dependencies for applications;cpanmis the common installer. - Raku uses
META6.jsonandzeffor dependency management. proveis the standard test harness runner for both.- Nix owns the developer toolchain; do not introduce perlbrew, plenv or rakubrew on NixOS.
Static analysis (see specialise/static-analysis)
The Perl/Raku ecosystem has established analysis tools. The per-runtime defaults are evolvable.
| Category | Perl | Raku |
|---|---|---|
| lint | perlcritic | Raku native warnings |
| type_check | n/a | n/a |
| sast | Perl::Critic security policies | n/a |
| dependency_scan | cpm audit / CPAN audit | zef list --installed |
| complexity | perlcritic (complexity policies) | n/a |
These are starting points, not a closed list. If the project uses a tool not
listed here, record it in PROJECT_PROFILE.toon.static_analysis with a
revisit_trigger.
Language smells (for review-loop)
Perl: use strict/use warnings missing; barewords; $@ after eval
without localisation; defined vs truthiness confusion; @_ manipulation
instead of named parameters; global variables instead of lexicals; unless
blocks that are hard to read; map/grep in void context; regex without
/x for complex patterns; open without 3-arg form; system without list
form.
Raku: say without use v6.d (or later); dd left in production code;
.so/.not where explicit comparison is clearer; EVAL in production;
ignoring Failure return values; Nil where Empty is meant; deep metaop
chains that are unreadable.
Testing
- Perl's TAP (Test Anything Protocol) originated here;
proverunst/*.t. - Test::More is the baseline; Test2::Suite is the modern successor.
- Test::Deep for structural assertions; Test::Exception for error paths.
- Mocking: Test::MockModule or Test::MockObject at boundaries only.
- Raku has
Testin core;zef testorprove6runs the suite. - Respect the existing
t/layout and naming; these ecosystems have long established conventions that predate most alternatives.
Ecosystem openness
Perl and Raku have long-lived ecosystems. This skill provides defaults, not a closed list. When encountering a tool or convention not covered here:
- inspect the project's
cpanfile,dist.ini,Makefile.PL,Build.PL,META6.json, orzef.jsonfor evidence; - respect the existing convention;
- record the tool in
PROJECT_PROFILE.toonif it is material; - do not impose a tool the project does not already use unless evidence justifies it.
04 同仓库更多 Skills
agentic-template
Start or continue work in this repository using the canonical AGENTS.md contract and repository skill catalog.
wiki-tidy
Reconcile the wiki against the knowledge graph, specs and code; prune stale, keep links resolving.
update-handoff
Update HANDOFF.toon with current semantic work state.
test-first
Drive meaningful behaviour changes with the smallest useful failing test.
test-change
Select and run tests that prove a change at suitable fidelity.
specify
Create proportional OpenSpec-shaped structured change proposals for meaningful changes.