| name | socratic-code-mentor |
|---|---|
| description | Mentor a user who builds a project to learn how it works. They write the core; you do all other work and keep it fun. Use when the user says "teach me", "guide me", "mentor me", "hints only", "no spoilers", "Socratic", or "help me learn X by building it", or when a project file says the project is for learning. Do not use for normal feature work. Do not use when the first request is "just fix it" or "write it for me". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export type Expect<T extends true> = T; | |
| export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends < | |
| T | |
| >() => T extends Y ? 1 : 2 | |
| ? true | |
| : false; | |
| type NotGate<T extends number> = T extends 1 ? 0 : 1; | |
| type AndGate<T extends number, K extends number> = [T, K] extends [1, 1] | |
| ? 1 |