Prisma Helper
shepherdjerred/monorepo
Prisma ORM for type-safe database access - schema design, migrations, queries, relations, and connection management When user works with Prisma, database schemas, migrations, Prisma Client queries…
A skill your agent uses when need to optimize TypeScript types.
$ npx skills add romeerez/orchid-orm --skill type-optimizer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install romeerez/orchid-orm type-optimizer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/romeerez/orchid-orm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/type-optimizer .claude/skills/type-optimizer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "type-optimizer" agent skill from https://github.com/romeerez/orchid-orm/tree/main/.agents/skills/type-optimizer into .claude/skills/type-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "type-optimizer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/romeerez/orchid-orm/tree/main/.agents/skills/type-optimizerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add romeerez/orchid-orm --skill type-optimizer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install romeerez/orchid-orm type-optimizer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/romeerez/orchid-orm.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/type-optimizer .agents/skills/type-optimizer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "type-optimizer" agent skill from https://github.com/romeerez/orchid-orm/tree/main/.agents/skills/type-optimizer into .agents/skills/type-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "type-optimizer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add romeerez/orchid-orm --skill type-optimizer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install romeerez/orchid-orm type-optimizer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/romeerez/orchid-orm.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/type-optimizer .cursor/skills/type-optimizer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "type-optimizer" agent skill from https://github.com/romeerez/orchid-orm/tree/main/.agents/skills/type-optimizer into .cursor/skills/type-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "type-optimizer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/romeerez/orchid-orm.git --path .agents/skills/type-optimizer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add romeerez/orchid-orm --skill type-optimizer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install romeerez/orchid-orm type-optimizer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/romeerez/orchid-orm.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/type-optimizer .gemini/skills/type-optimizer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "type-optimizer" agent skill from https://github.com/romeerez/orchid-orm/tree/main/.agents/skills/type-optimizer into .gemini/skills/type-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "type-optimizer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install romeerez/orchid-orm type-optimizerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add romeerez/orchid-orm --skill type-optimizer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/romeerez/orchid-orm.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/type-optimizer .github/skills/type-optimizer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "type-optimizer" agent skill from https://github.com/romeerez/orchid-orm/tree/main/.agents/skills/type-optimizer into .github/skills/type-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "type-optimizer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add romeerez/orchid-orm --skill type-optimizer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install romeerez/orchid-orm type-optimizer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/romeerez/orchid-orm.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/type-optimizer .opencode/skills/type-optimizer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "type-optimizer" agent skill from https://github.com/romeerez/orchid-orm/tree/main/.agents/skills/type-optimizer into .opencode/skills/type-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "type-optimizer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
type-optimizerA skill your agent uses when need to optimize TypeScript types.
Type Optimizer is an agent skill from romeerez/orchid-orm. Use when need to optimize TypeScript types.
Its SKILL.md is about 800 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `top-type-optims.js`, `top-type-optims.test.js` and `type-optim.md`).
It sits in Databases, covering Type safety and ORMs and data access. The licence is MIT.
Read from SKILL.md and the folder at commit 7d4927a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (JavaScript), which the agent can run.
Shell commands in SKILL.md call:
nodeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Type Optimizer loads about 798 tokens when it runs. Until then it costs about 15 tokens; SKILL.md has 342 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from romeerez/orchid-orm at commit 7d4927a, republished under its MIT licence (© romeerez). 342 words, ~798 tokens.
.claude/skills/type-optimizer/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.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>
```© romeerez, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files in .agents/skills/type-optimizer of romeerez/orchid-orm.
Open the folder on GitHubat commit 7d4927a
Type Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Type Optimizer this skillromeerez/orchid-orm | 543 | — | ~798 | Automated safety check: Pass | MIT | |
| Prisma Helpershepherdjerred/monorepo | 112 | — | ~3.6k | Automated safety check: Pass | GPL-3.0 | |
| Typescriptericrisco/rsc-harness | 156 | — | ~2.8k | Automated safety check: Pass | MIT | |
| PSL Syntax Tree Layersprisma/orm | 48k | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Mastering Python SkillSpillwaveSolutions/agent-brain | 120 | — | ~1.4k | Automated safety check: Notes | MIT | |
| Drizzle Ormgrowupanand/ConvoForm | 101 | 1 repos | ~2.7k | Automated safety check: Pass | Apache-2.0 |
shepherdjerred/monorepo
Prisma ORM for type-safe database access - schema design, migrations, queries, relations, and connection management When user works with Prisma, database schemas, migrations, Prisma Client queries…
ericrisco/rsc-harness
A skill your agent uses when writing or fixing TypeScript type code (.ts/.tsx/.d.ts), modeling data with generics/unions/branded types, diagnosing narrowing failures, or configuring tsconfig and the…
prisma/orm
Explains which of the three PSL syntax tree layers to use with Prisma's parser output, and how to move between them without hand-written walks.
SpillwaveSolutions/agent-brain
Modern Python coaching covering language foundations through advanced production patterns.
growupanand/ConvoForm
Type-safe SQL ORM for TypeScript with zero runtime overhead. An agent skill from growupanand/ConvoForm.
davila7/claude-code-templates
Expert in Drizzle ORM for TypeScript — schema design, relational queries, migrations, and serverless database integration.
romeerez/orchid-orm
A skill your agent uses when the user prompts "write spec" or "make spec".
romeerez/orchid-orm
A skill your agent uses when user asks to write a task list, not to do a task
romeerez/orchid-orm
A skill your agent uses when the user prompts "code doc" to create or update internal Orchid ORM code documentation from changes/ specs, short-code feature folders, or existing implementation code.
romeerez/orchid-orm
A skill your agent uses when the user prompts "write ideas" or "make ideas".
romeerez/orchid-orm
A skill your agent uses when the user prompts "implementation note" for an existing change idea.
romeerez/orchid-orm
A skill your agent uses when the user prompts "refine design".
Categories
A skill your agent uses when need to optimize TypeScript types. Type Optimizer is an agent skill from romeerez/orchid-orm. Use when need to optimize TypeScript types.
Type Optimizer fits situations like: need to optimize TypeScript types; tasks that involve Type safety; tasks that involve ORMs and data access.
Run `npx skills add romeerez/orchid-orm --skill type-optimizer -a claude-code`. Or copy the skill folder (.agents/skills/type-optimizer in romeerez/orchid-orm) into .claude/skills/type-optimizer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add romeerez/orchid-orm --skill type-optimizer -a codex`. Or copy the skill folder (.agents/skills/type-optimizer in romeerez/orchid-orm) into .agents/skills/type-optimizer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add romeerez/orchid-orm --skill type-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/type-optimizer, .gemini/skills/type-optimizer, .github/skills/type-optimizer and .opencode/skills/type-optimizer in your project.
Going by SKILL.md and its folder, Type Optimizer needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node). Our summary lists: Node.js.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Type Optimizer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 798 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Type Optimizer: Prisma Helper (shepherdjerred/monorepo, 112 stars), Typescript (ericrisco/rsc-harness, 156 stars), PSL Syntax Tree Layers (prisma/orm, 48k stars) and Mastering Python Skill (SpillwaveSolutions/agent-brain, 120 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
romeerez (a GitHub user) maintains it in romeerez/orchid-orm, which has 543 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on October 7, 2026.
Source: romeerez/orchid-orm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.