Source class: migration/changelog docs.
Decision: add a version-compatibility checklist section to the skill.
Why: multiple API signatures existed across versions; without this, answers were inconsistent.
Source class: troubleshooting/error catalog.
Decision: add an error-to-fix lookup table in references.
Why: user prompts often start from failures, not idealized setup.
Source class: in-repo usage scan (rg).
Decision: prioritize examples matching local project patterns.
Why: produced outputs became directly usable with fewer edits.
Prompt and output skeleton:
Prompt: “Configure client for retries and auth in production.”
Output: a production-safe template with retry/backoff, timeout defaults, and auth placeholders.
Anti-pattern transformation:
Before: single inline config with no timeout/error handling.
After: structured config with explicit timeout, retry policy, and failure handling notes.
Reference routing snippet:
If request mentions “migration” -> load migration/changelog reference first, then API reference.