ipal-audit: skip the starter's //: alternative lines; reference skills refreshed
CI / check (push) Canceled after 0s
CI / reference (push) Canceled after 0s
CI / reference-full (push) Canceled after 0s

- audit.sh g(): matches on a starter alternative line (`//: …` after file:line:,
  the commented-out variants inside @starter:if markers) are dropped. The reference
  site's `//: robots: { aiBots: 'block-training' }` / 'disallow' alternatives made
  `audit:robots-blocks-ai-bots` fire although the site blocks no AI bots. The doctor
  runs audit.sh, so it follows. Tests: a //: line is not a finding, a real
  robots: { aiBots: 'block-training' } line still is.
- reference/.agents/skills refreshed with ipal-skills (ipal-reference, ipal-setup,
  ipal-site and ipal-audit were behind the plugin's after the doctor/starter merges).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 16:27:49 +01:00
co-authored by Claude Opus 5.5
parent aa88e4ea39
commit dd11bc8146
7 changed files with 71 additions and 5 deletions
@@ -41,7 +41,9 @@ report() {
[ "$count" -gt 20 ] && printf ' … and %s more\n' "$((count - 20))"
}
g() { grep -rnE "$@" 2>/dev/null || true; }
# grep that skips the starter's alternative lines (`//: …` after `file:line:`) — commented-out
# variants inside @starter:if markers, not code the site runs.
g() { grep -rnE "$@" 2>/dev/null | grep -vE '^[^:]+:[0-9]+:[[:space:]]*//:' || true; }
# drop matches that sit inside a // or /* comment (keeps http:// URLs)
# (also a whole-line comment right after grep's "file:line:" prefix)
nc() { grep -vE "^[^:]+:[0-9]+:[[:space:]]*(//|/?\*)|(^|[^:])//.*$1|/\*.*$1" || true; }