{"skill":{"slug":"sql-reflect","displayName":"sql-reflect","summary":"快速定位 SQL 语句在 PHP/Laravel 代码中的触发位置，通过分析 SQL 结构反向追踪到具体的代码文件、方法和行号","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":127,"installsAllTime":0,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1774842517772,"updatedAt":1774843609167},"latestVersion":{"version":"1.0.0","createdAt":1774842517772,"changelog":"Initial release of sql-reflect: locate PHP/Laravel code that triggers specific SQL queries.\n\n- Extracts key info from SQL (tables, fields, conditions) to reverse-locate code.\n- Uses prioritized grep searches for table/model names and field patterns in PHP files.\n- Analyzes and matches SQL structures with Laravel methods (e.g., join, whereHas).\n- Maps results to clear output: file/method/line, involved models/relations, calling chain, and use case.\n- Includes detailed mapping tables for SQL-to-Laravel patterns and table-model correspondences.\n- Designed to handle ambiguous cases and provide multiple possible source locations if needed.","license":"MIT-0"},"metadata":null,"owner":{"handle":"willing-lin","userId":"s1799pt190dnqs24mdmfcw7exn83x1j3","displayName":"will_lin","image":"https://avatars.githubusercontent.com/u/21698871?v=4"},"moderation":null}