📦 sql-reflect — SQL定位代码
v1.0.0通过解析 SQL 结构,一键反向追踪 PHP/Laravel 项目中触发该语句的代码文件、方法及行号,秒级定位问题源头。
0· 98·0 当前·0 累计
下载技能包
最后更新
2026/3/30
安全扫描
OpenClaw
安全
high confidenceThe skill's instructions and requirements are consistent with its stated purpose of locating SQL origins in a PHP/Laravel codebase; it is instruction-only, requests no credentials, and has no install steps.
评估建议
This skill is coherent and doesn't request credentials or installs, but it operates by reading your codebase. Before using it: 1) Confirm the agent running the skill has read access only to the repository (app/, Models) you want searched — avoid granting broad system access. 2) Ensure your environment has standard tools (grep) available, since SKILL.md assumes they exist. 3) Treat results as pointers: the skill may return multiple candidates or false positives (especially for dynamically built S...详细分析 ▾
✓ 用途与能力
The name/description (locate SQL trigger points in PHP/Laravel) align with the instructions: extracting table/field patterns and searching app/ and Models for matching code. The mapping table and Laravel conventions used are appropriate for the stated goal.
ℹ 指令范围
The SKILL.md explicitly instructs using grep and searching the repository (app/, Models, etc.). The skill metadata did not list required binaries but the instructions assume filesystem access and availability of grep; the agent must have read access to the project files (app/ and Models) for the skill to work. This is reasonable but worth noting: the skill will read source files and may present multiple candidate locations that need human review.
✓ 安装机制
Instruction-only skill with no install spec and no code files — nothing will be written to disk or downloaded during install.
✓ 凭证需求
The skill declares no environment variables, credentials, or config paths and the instructions do not request any secrets. This is proportionate to the stated purpose.
✓ 持久化与权限
always:false and normal invocation settings. The skill does not request persistent privileges or modify other skills/system settings.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/3/30
Initial release of sql-reflect: locate PHP/Laravel code that triggers specific SQL queries. - Extracts key info from SQL (tables, fields, conditions) to reverse-locate code. - Uses prioritized grep searches for table/model names and field patterns in PHP files. - Analyzes and matches SQL structures with Laravel methods (e.g., join, whereHas). - Maps results to clear output: file/method/line, involved models/relations, calling chain, and use case. - Includes detailed mapping tables for SQL-to-Laravel patterns and table-model correspondences. - Designed to handle ambiguous cases and provide multiple possible source locations if needed.
● 无害
安装命令
点击复制官方npx clawhub@latest install sql-reflect
镜像加速npx clawhub@latest install sql-reflect --registry https://cn.longxiaskill.com