Schema hook writes to stdout on exit 2 and fires on every edit; agents pin models; scoring/geo/clustering math done by the LLM

Author: haruntekin89Created Sep 24, 2026Updated Sep 24, 2026

Found during a prompt audit of my Claude Code setup (target: Claude Fable 5.1 main, Claude Opus 5.5 subagents). Checked against main (2.4.0) today; installed version was 2.2.0. Several 2.2.0 findings are already fixed in 2.4.0 (e.g. the GPTBot training/search contradiction), so this lists only what is still present.

1. The PostToolUse schema hook can't reach the model, and fires on every edit in every project

hooks/hooks.json registers validate-schema.py on Edit|Write with no path filter, so it runs (node + Python interpreter probing) on every edit in every project where the plugin is enabled, including non-web repos. When it finds errors it does print(...) to stdout and sys.exit(2) (validate-schema.py:317-325, comment "Block the edit"). Claude Code only feeds stderr back to the model on exit 2, so the model gets an empty error; and PostToolUse cannot block an edit that has already happened. It also flags [Phone], [Address]-style placeholders (:43) that skills/seo-schema itself tells the model to write.

Suggested: write diagnostics to stderr, fix the docstring/comment (report, not block), restrict the matcher or early-exit on non-JSON-LD-bearing files, and don't flag the skill's own template placeholders.

2. All 19 agents pin a model in frontmatter

agents/*.md all carry model: sonnet or model: opus. Frontmatter pins take precedence over the user's subagent default (CLAUDE_CODE_SUBAGENT_MODEL), so users can't run the agents on the model they configured, and the pins silently degrade as new models ship. Suggested: drop the pins (inherit the default), or make the model a documented option.

3. Deterministic work handed to the LLM

  • skills/seo-cluster/SKILL.md (pairwise SERP overlap): "for each candidate pair … count shared URLs", up to 180 set intersections done in the model. Set intersection / URL normalization / thresholding belongs in a script; the model should keep intent classification and cluster design.
  • skills/seo-maps/SKILL.md + references/maps-geo-grid.md, maps-gbp-checklist.md: Haversine grid points, SoLV, GBP point totals with multipliers and re-normalization computed by hand.
  • Weighted health-score aggregation in ~10 places (skills/seo/SKILL.md, seo-audit, seo-backlinks, seo-ecommerce, several agents): the model supplies category scores; the weighting/redistribution/caps should be computed in google_report.py / validate_backlink_report.py.
  • skills/seo-audit/SKILL.md describes a 500-page crawl with "Concurrent requests: 5, Delay 1 second" that no script implements; the model cannot enforce concurrency or delay.

4. Mandatory 10-principle thinking walk

skills/seo/SKILL.md:96,107+ and references/thinking-framework.md: every audit must "walk PERCEIVE → ANALYZE → VALIDATE → ACT" including "internal metacognition" and a FEEL step. On models with adaptive thinking this is redundant, and a fixed reasoning script for a judgment task tends to lower output quality. The per-recommendation quality bar (first principle, dependencies, how we'd know it failed, metric to watch) is the valuable part; keep that, drop the required phase walk.

5. Smaller

  • agents/seo-performance.md overlaps seo-technical and seo-google (same CWV tables, same PSI/CrUX scripts); the one real difference (Lighthouse lab fallback) fits in seo-google.
  • "Never reference FID in any output" appears in ~7 files with an IMPORTANT label; one plain line ("Use INP; FID was retired in 2024") suffices.
  • "ALWAYS offer to generate a PDF report" repeated in ~7 places attaches an offer to every command.
  • skills/seo/SKILL.md:144-152 appends a Skool community footer to user deliverables; as a user I'd want that opt-in.