Acerca de
The Context Struct Pattern skill provides Claude with specific architectural guidance for C programming, emphasizing the use of explicit state management over global variables. By mandating that the first parameter of every function is a context struct (such as ik_repl_ctx_t), this skill enables developers to eliminate global state, support multiple concurrent instances of a module, and significantly improve code testability through dependency injection. It is an essential pattern for building robust, scalable C systems like REPLs, terminal emulators, and complex runtime environments where state isolation is critical.