Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/romeerez/orchid-orm --skill type-optimizer명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | type-optimizer |
| description | Use when need to optimize TypeScript types. |
Optimize from the code in front of you. Start with proven ideas from type-optim.md, but treat each one as a candidate that must fit the current code.
--extendedDiagnostics.node .agents/skills/type-optimizer/top-type-optims.js to get the optimization list sorted by historical mean Instantiations savings..agents/skills/type-optimizer/type-optim.md.types --extendedDiagnostics after each idea.node .agents/skills/type-optimizer/update-type-optim-stats.js <optimization-number> <instantiations-diff>.previous Instantiations - new Instantiations for <instantiations-diff>: positive means the attempt improved, negative means it regressed.Instantiations.The saved list is not a blind checklist: while trying it, judge every candidate against the code in front of you. After the list ends, stop using it as guidance and focus solely on the code at hand to find new optimization ideas.
Examples in type-optim.md must be abstract and obvious. They should teach the type-system shape, not the project feature where the idea was first found.
Obj, Key, Value, Item, Input, Output.bad before good, so the reader sees the problem before the transformation.bad:
interface TargetRef<Id extends string, Keys extends string[]> {
id: Id;
keys: Keys;
}
use<
Id extends string,
Shape extends Record<string, unknown>,
Keys extends (keyof Shape & string)[],
>(fn: () => FullEndpoint<Id, Shape, Keys>): Ref<Id, Keys>;
good:
interface Needed<A, B> {
first: A;
second: B;
}
use<A, B>(fn: () => Needed<A, B>): Output<A, B>;
When the documented list is exhausted, try creative undocumented type optimization attempts. If a new idea reduces Instantiations by more than 1000 and passes checks, append it to type-optim.md, then call update-type-optim-stats.js with the new number and measured diff.
Use this template:
### <next-number>. <Imperative Title>
**stats**: {}
**when**: <code situation where it applies>
**how**: <concise transformation>
**bad**:
```ts
<costly abstract shape>
```
**good**:
```ts
<optimized abstract shape>
```