mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
docs: tighten perl support guidance
This commit is contained in:
committed by
Affaan Mustafa
parent
36bcf20588
commit
78a56174b1
@@ -17,7 +17,7 @@
|
|||||||

|

|
||||||

|

|
||||||
|
|
||||||
> **50K+ stars** | **6K+ forks** | **30 contributors** | **7 languages supported** | **Anthropic Hackathon Winner**
|
> **50K+ stars** | **6K+ forks** | **30 contributors** | **5 languages supported** | **Anthropic Hackathon Winner**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -366,6 +366,7 @@ everything-claude-code/
|
|||||||
| |-- python/ # Python specific
|
| |-- python/ # Python specific
|
||||||
| |-- golang/ # Go specific
|
| |-- golang/ # Go specific
|
||||||
| |-- perl/ # Perl specific (NEW)
|
| |-- perl/ # Perl specific (NEW)
|
||||||
|
| |-- swift/ # Swift specific
|
||||||
|
|
|
|
||||||
|-- hooks/ # Trigger-based automations
|
|-- hooks/ # Trigger-based automations
|
||||||
| |-- README.md # Hook documentation, recipes, and customization guide
|
| |-- README.md # Hook documentation, recipes, and customization guide
|
||||||
@@ -832,7 +833,7 @@ Please contribute! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|||||||
|
|
||||||
### Ideas for Contributions
|
### Ideas for Contributions
|
||||||
|
|
||||||
- Language-specific skills (Rust, C#, Swift, Kotlin) — Go, Python, Java, Perl already included
|
- Language-specific skills (Rust, C#, Kotlin, Java) — Go, Python, Perl, Swift, and TypeScript already included
|
||||||
- Framework-specific configs (Rails, Laravel, FastAPI, NestJS) — Django, Spring Boot already included
|
- Framework-specific configs (Rails, Laravel, FastAPI, NestJS) — Django, Spring Boot already included
|
||||||
- DevOps agents (Kubernetes, Terraform, AWS, Docker)
|
- DevOps agents (Kubernetes, Terraform, AWS, Docker)
|
||||||
- Testing strategies (different frameworks, visual regression)
|
- Testing strategies (different frameworks, visual regression)
|
||||||
|
|||||||
@@ -488,7 +488,7 @@ node tests/hooks/hooks.test.js
|
|||||||
|
|
||||||
### 贡献想法
|
### 贡献想法
|
||||||
|
|
||||||
- 特定语言的技能(Rust、C#、Swift、Kotlin)- 现已包含 Go、Python、Java、Perl!
|
- 特定语言的技能(Rust、C#、Kotlin、Java)- 现已包含 Go、Python、Perl、Swift 和 TypeScript!
|
||||||
- 特定框架的配置(Django、Rails、Laravel)
|
- 特定框架的配置(Django、Rails、Laravel)
|
||||||
- DevOps 代理(Kubernetes、Terraform、AWS)
|
- DevOps 代理(Kubernetes、Terraform、AWS)
|
||||||
- 测试策略(不同框架)
|
- 测试策略(不同框架)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ paths:
|
|||||||
---
|
---
|
||||||
# Perl Coding Style
|
# Perl Coding Style
|
||||||
|
|
||||||
> This file extends [common/coding-style.md](../common/coding-style.md) with Perl specific content.
|
> This file extends [common/coding-style.md](../common/coding-style.md) with Perl-specific content.
|
||||||
|
|
||||||
## Standards
|
## Standards
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ paths:
|
|||||||
---
|
---
|
||||||
# Perl Hooks
|
# Perl Hooks
|
||||||
|
|
||||||
> This file extends [common/hooks.md](../common/hooks.md) with Perl specific content.
|
> This file extends [common/hooks.md](../common/hooks.md) with Perl-specific content.
|
||||||
|
|
||||||
## PostToolUse Hooks
|
## PostToolUse Hooks
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ paths:
|
|||||||
---
|
---
|
||||||
# Perl Patterns
|
# Perl Patterns
|
||||||
|
|
||||||
> This file extends [common/patterns.md](../common/patterns.md) with Perl specific content.
|
> This file extends [common/patterns.md](../common/patterns.md) with Perl-specific content.
|
||||||
|
|
||||||
## Repository Pattern
|
## Repository Pattern
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ paths:
|
|||||||
---
|
---
|
||||||
# Perl Security
|
# Perl Security
|
||||||
|
|
||||||
> This file extends [common/security.md](../common/security.md) with Perl specific content.
|
> This file extends [common/security.md](../common/security.md) with Perl-specific content.
|
||||||
|
|
||||||
## Taint Mode
|
## Taint Mode
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ paths:
|
|||||||
---
|
---
|
||||||
# Perl Testing
|
# Perl Testing
|
||||||
|
|
||||||
> This file extends [common/testing.md](../common/testing.md) with Perl specific content.
|
> This file extends [common/testing.md](../common/testing.md) with Perl-specific content.
|
||||||
|
|
||||||
## Framework
|
## Framework
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ Idiomatic Perl 5.36+ patterns and best practices for building robust, maintainab
|
|||||||
- Designing Perl module architecture
|
- Designing Perl module architecture
|
||||||
- Migrating pre-5.36 code to modern Perl
|
- Migrating pre-5.36 code to modern Perl
|
||||||
|
|
||||||
|
## How It Works
|
||||||
|
|
||||||
|
Apply these patterns as a bias toward modern Perl 5.36+ defaults: signatures, explicit modules, focused error handling, and testable boundaries. The examples below are meant to be copied as starting points, then tightened for the actual app, dependency stack, and deployment model in front of you.
|
||||||
|
|
||||||
## Core Principles
|
## Core Principles
|
||||||
|
|
||||||
### 1. Use `v5.36` Pragma
|
### 1. Use `v5.36` Pragma
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ Comprehensive security guidelines for Perl applications covering input validatio
|
|||||||
- Executing system commands from Perl
|
- Executing system commands from Perl
|
||||||
- Writing DBI database queries
|
- Writing DBI database queries
|
||||||
|
|
||||||
|
## How It Works
|
||||||
|
|
||||||
|
Start with taint-aware input boundaries, then move outward: validate and untaint inputs, keep filesystem and process execution constrained, and use parameterized DBI queries everywhere. The examples below show the safe defaults this skill expects you to apply before shipping Perl code that touches user input, the shell, or the network.
|
||||||
|
|
||||||
## Taint Mode
|
## Taint Mode
|
||||||
|
|
||||||
Perl's taint mode (`-T`) tracks data from external sources and prevents it from being used in unsafe operations without explicit validation.
|
Perl's taint mode (`-T`) tracks data from external sources and prevents it from being used in unsafe operations without explicit validation.
|
||||||
@@ -197,7 +201,7 @@ sub safe_path($base_dir, $user_path) {
|
|||||||
// die "Path does not exist\n";
|
// die "Path does not exist\n";
|
||||||
my $base_real = realpath($base_dir)
|
my $base_real = realpath($base_dir)
|
||||||
// die "Base dir does not exist\n";
|
// die "Base dir does not exist\n";
|
||||||
die "Path traversal blocked\n" unless $real =~ /^\Q$base_real\E\//;
|
die "Path traversal blocked\n" unless $real =~ /^\Q$base_real\E(?:\/|\z)/;
|
||||||
return $real;
|
return $real;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user