Apply Feature Knowledge
Iron Law
Pre-computed context, not a cage. Verify against current code — always.
A feature knowledge records patterns as they were when last written. Code is authoritative.
3-Step Algorithm
- Read each
FEATURE_KNOWLEDGEblock (headed--- Feature knowledge: {slug} ---):Rules:holds anti-patterns, gotchas and invariants;KB:is the full file's path (underWORKTREE_PATHwhen given). - Apply them: check your work against every bullet and cite it as
{slug} KB-AP-n(a section-labelled bullet as{slug} {section}), never a bare ID. For architecture or integration context, Read that section on demand, withoffsetandlimit: its start line is on theHeadings:line, or comes fromcommand grep -n '^## ' "<KB path>". Quote KB text only from a Read view. - Verify against current code (verify-on-read): where an assertion is outdated or contradicts the code, Read the source and trust it. Note a discrepancy in your output when it matters.
Skip Guard
When FEATURE_KNOWLEDGE is (none), empty, or not provided — skip this skill entirely.
Do not mention feature knowledge or its absence in your output.