Php Route Mapper

PHP Web 源码路由与参数映射分析工具。从源码中提取所有入口路由与参数结构,输出完整请求模板与参数清单(禁止省略)。

223 stars 42 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add NeverSight/learn-skills.dev --skill php-route-mapper
Manual install
git clone --depth 1 https://github.com/NeverSight/learn-skills.dev.git /tmp/learn-skills.dev
mkdir -p ~/.claude/skills
cp -r /tmp/learn-skills.dev/data/skills-md/0xshe/php-code-audit-skill/php-route-mapper ~/.claude/skills/php-route-mapper

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# PHP 源码 Route & Param Mapper

分析 PHP Web 项目源码,提取**完整**的 HTTP 路由入口与请求参数结构,生成可用于安全测试的请求模板(Burp/Repeater 风格),并自动保存为 Markdown。

## CRITICAL:完整输出(强制)
此技能必须输出所有发现的路由与接口,不允许省略:
- 禁止出现省略占位符;必须输出完整的路由与参数内容
- 禁止只输出“关键路由/重要路由”
- 每条路由必须包含:HTTP 方法、路径规则、处理器位置、完整参数结构、完整请求模板(在代码块里)

## 核心输入
用户提供:
- `source_path`:PHP 项目源码根目录
可选:
- `context_path`:如果存在反向代理/网关前缀,可用于拼接完整路径(必须有证据来源)

## 输出目录结构(建议)
```
{output_path}/
├── route_mapping/
│   ├── routes_{timestamp}.md
│   └── params_{timestamp}.md
└── quality/
    └── route_mapper_validation_{timestamp}.md
```

路径与流水线合并模式下的对应关系见 **`shared/IO_PATH_CONVENTION.md`**(`route_mapping/*.md` 与报告内「路由/参数」章节等价)。

## 识别范围(必做)
1. 路由配置/定义(按框架识别)
   - Laravel:`routes/web.php`、`routes/api.php`、`Route::get/post/{subpath}`、`Route::resource`、Route group 前缀与中间件
   - Symfony:`config/routes/*`、PHP8 attribute `#[Route({route_options})]`、Annotation `@Route({route_options})`
   - Slim:`$app->get/post/any({handler})`、自定义中间件
   - WordPress:`admin-post.php`/`admin-ajax.php`、`add_action('admin_post_*')`、`add_action('wp_ajax_*')`
   - 纯 PHP:front controller(如 `public/index.php`)的分发逻辑、基于 `$_SERVER['REQUEST_URI']` 的路由匹配
2. 动态路由/参数化路由(必做)
   - `{id}` / `(?P<id>{id_pattern})` / 正则路由:必须把可控参数列出来
   - 路由约束(where/regex limit):必须输出约束规则与可控性边界

## 参数结构解析(必做)
对每条路由输出以下参数来源与类型信息:
- Path 参数:来自路由规则的占位(输出如 `{id}`)
- Query 参数:`$_GET` / `request()->query({query})` / 框架 query 解析结果
- Body 参数:`php://input`、`$_POST`、JSON `json_decode({json})`
Read the full skill on GitHub

Details

Skill name
php-route-mapper
Path
data/skills-md/0xshe/php-code-audit-skill/php-route-mapper/SKILL.md
Repo updated
18 November 2026

FAQ

What does the Php Route Mapper skill do?

PHP Web 源码路由与参数映射分析工具。从源码中提取所有入口路由与参数结构,输出完整请求模板与参数清单(禁止省略)。

How do I install the Php Route Mapper skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add NeverSight/learn-skills.dev --skill php-route-mapper. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Php Route Mapper popular?

It lives in NeverSight/learn-skills.dev, which has 223 GitHub stars and 42 forks.

Related skills

Council

223

NeverSight/learn-skills.dev

Convene the Council of High Intelligence — multi-persona deliberation with historical thinkers for deeper analysis of complex problems.

Other42

Megaeth Developer

223

NeverSight/learn-skills.dev

End-to-end MegaETH development playbook (Feb 2026). Covers wallet operations, token swaps (Kyber Network), eth_sendRawTransactionSync (EIP-7966) for instant receipts, JSON-RPC batching, real-time mini-block subscriptions, storage-aware contract patterns (Solady RedBlackTreeLib), MegaEVM gas model, WebSocket keepalive, bridging from Ethereum, and debugging with mega-evme. Use when building on MegaETH, managing wallets, sending transactions, or deploying contracts.

Software Development42

Openclaw Stock Skill

223

NeverSight/learn-skills.dev

使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。

Finance & Crypto42

Php Route Tracer

223

NeverSight/learn-skills.dev

PHP Web 路由到 Sink 的多层数据流追踪工具。根据用户指定路由,追踪从 handler 到最终敏感操作点,输出层级证据、参数变量追踪、可控性分析(不做漏洞结论)。

Software Development42

Php Pro

121

theguysudo/ENZO

Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invokes strict typing, PHPStan level 9, async patterns with Swoole, and PSR standards. Creates controllers, configures middleware, generates migrations, writes PHPUnit/Pest tests, defines typed DTOs and value objects, sets up dependency injection, and scaffolds REST/GraphQL APIs. Use when working with Eloquent, Doctrine, Composer, Psalm, ReactPHP, or any PHP API development.

Software Development29

Php Session Cookie Audit

223

NeverSight/learn-skills.dev

PHP Web 源码会话与 Cookie 安全审计工具。识别 session 固定、Cookie flags 不安全、JWT 验证缺陷与记住登录风险,输出分级、PoC 与修复建议(禁止省略)。

Software Development42

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.