AGENT SKILL

sniff

Detect PHP framework, WordPress, data layer, and capabilities and install only the applicable project pivots.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 1
Forks
0

01 前言 Front Matter

name
sniff
tags
[ "backend", "php", "audit" ]
author
François-Xavier Guillois
version
0.12.0
description
Detect PHP framework, WordPress, data layer, and capabilities and install only the applicable project pivots.
permissions
[ "bash", "files" ]
vibe_version
>=1.0.0

02 资源文件 15

03 SKILL.md 正文

Read host portability before resolving plugin files, invoking sibling skills, or persisting project guidance.

sc-php Sniff

PHP stack detector and pivot manifeste producer.

Available actions

# Action Role Input
01 scan Detect capabilities, emit pivot manifeste, map perf/data install targets current project path
02 install-pivots Install perf/data pivots to .claude/rules/07-quality/ scan pivot manifeste

Default flow

Sequential: scan → install-pivots.

Conceptual model

  • A capability is something the app does: use SOLID patterns, test with Bruno, serve HTTP via a framework, query a database via an ORM, render lightweight HTML via HTMX, etc.
  • A pivot is the PHP knowledge for the chosen solution (e.g. Laravel perf patterns, Eloquent query conventions)
  • Capability pivots live in the plugin (skills/sniff/references/capabilities/) — they are loaded at audit time by sc-php:audit, not installed to the project
  • Perf pivots and data pivots are the exception: they ARE written to .claude/rules/07-quality/ because web-optimize and data-optimize read them from there

Transversal rules

  • If no PHP manifest is found (composer.json absent and none of the sentinel files present), abort with an explicit message.
  • Never install a capability pivot to .claude/rules/ — those are loaded on demand at audit time.
  • Never install a perf pivot for a framework not detected.
  • Never install a data pivot for an ORM not detected.
  • Compare installed pivot content against the plugin reference before updating — skip files already identical.
  • Report every file written, updated, or skipped.
  • Report gaps: capabilities detected but no matching plugin pivot exists.
  • Output format is strict plain-text with ✅ / ❌ lines. Markdown tables are forbidden in all actions of this skill.

04 同仓库更多 Skills