affordance-advisor
affordance-advisor
A single-CLI sidekick that maps completion events (bob finished a UI change, alf finished a security pass, forge finalized a MEDIUM+ design, etc.) to one-line hints about host-native commands that could accelerate the next step.
The advisor is a suggestion layer, not an execution layer. It never runs anything. It hands back a JSON array of recommendations. The caller (model writing a completion report) chooses whether to weave a hint into the report as a final tip.
Why this exists (the contamination problem)
Every other skill in this fleet is host-agnostic — it must work identically under Claude Code, Codex CLI, Antigravity CLI (agy), and Copilot CLI/Chat. If a portable skill body contained a host-native command token (the kind that begins with a forward slash on Claude, or a subcommand of codex/agy/gh etc.), and that skill were symlinked into another host's skill corpus, the foreign host would either follow the suggestion literally (broken) or carry noisy text in its loaded descriptions.
The mitigation is mechanical: host-native command strings live ONLY in this skill's registry/*.yaml data files. The body of every other skill stays neutral. A lint test (see tests/test_lint_portability.py) enforces this by scanning the entire skill corpus.
HARD-RULE (advisor): Skills MUST NOT grep registry/*.yaml directly. The only legal read path is scripts/advise.py. Direct registry reads bypass the active-CLI gate and re-introduce the contamination risk through copy-paste.