Cc Table Driven Methods

Replace complex conditional logic with table lookups. CHECKER mode identifies opportunities where if/else chains or inheritance hierarchies should become tables. APPLIER mode designs table structure, access method (direct/indexed/stair-step), and key transformations. Use when writing 4+ if/else branches, switch statements keep growing, subclasses differ only in data not behavior, or data changes without code changes. Triggers on: too many if statements, switch growing, subclass per type, customer-controlled format, data-driven behavior, lookup table, mapping data to actions.

majiayu000 ec4be81 2 files · 12.4 KB Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/data/cc-table-driven-methods commit ec4be814b7

Frequently asked questions

npx skillmds add majiayu000/cc-table-driven-methods