Connect Component To Figma
dequelabs/cauldron
Add a Figma Code Connect (.figma.tsx) file for a Cauldron React component.
Provides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation.
$ npx skills add bretzel-app/crumbs --skill typescript-best-practices -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install bretzel-app/crumbs typescript-best-practices --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/bretzel-app/crumbs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/typescript-best-practices .claude/skills/typescript-best-practices && 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 "typescript-best-practices" agent skill from https://github.com/bretzel-app/crumbs/tree/main/.agents/skills/typescript-best-practices into .claude/skills/typescript-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-best-practices", 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/bretzel-app/crumbs/tree/main/.agents/skills/typescript-best-practicesType 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 bretzel-app/crumbs --skill typescript-best-practices -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install bretzel-app/crumbs typescript-best-practices --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bretzel-app/crumbs.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/typescript-best-practices .agents/skills/typescript-best-practices && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "typescript-best-practices" agent skill from https://github.com/bretzel-app/crumbs/tree/main/.agents/skills/typescript-best-practices into .agents/skills/typescript-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-best-practices", 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 bretzel-app/crumbs --skill typescript-best-practices -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install bretzel-app/crumbs typescript-best-practices --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bretzel-app/crumbs.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/typescript-best-practices .cursor/skills/typescript-best-practices && 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 "typescript-best-practices" agent skill from https://github.com/bretzel-app/crumbs/tree/main/.agents/skills/typescript-best-practices into .cursor/skills/typescript-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-best-practices", 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/bretzel-app/crumbs.git --path .agents/skills/typescript-best-practices--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 bretzel-app/crumbs --skill typescript-best-practices -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install bretzel-app/crumbs typescript-best-practices --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bretzel-app/crumbs.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/typescript-best-practices .gemini/skills/typescript-best-practices && 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 "typescript-best-practices" agent skill from https://github.com/bretzel-app/crumbs/tree/main/.agents/skills/typescript-best-practices into .gemini/skills/typescript-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-best-practices", 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 bretzel-app/crumbs typescript-best-practicesInstalls 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 bretzel-app/crumbs --skill typescript-best-practices -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/bretzel-app/crumbs.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/typescript-best-practices .github/skills/typescript-best-practices && 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 "typescript-best-practices" agent skill from https://github.com/bretzel-app/crumbs/tree/main/.agents/skills/typescript-best-practices into .github/skills/typescript-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-best-practices", 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 bretzel-app/crumbs --skill typescript-best-practices -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install bretzel-app/crumbs typescript-best-practices --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bretzel-app/crumbs.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/typescript-best-practices .opencode/skills/typescript-best-practices && 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 "typescript-best-practices" agent skill from https://github.com/bretzel-app/crumbs/tree/main/.agents/skills/typescript-best-practices into .opencode/skills/typescript-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-best-practices", 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.
typescript-best-practicesProvides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation.
Typescript Best Practices is an agent skill from bretzel-app/crumbs. Provides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation. Must use when reading or writing TypeScript/JavaScript files.
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design, covering React components. It works with TypeScript, JavaScript, SvelteKit and React. The repository describes itself as: Crumbs by Bretzel - a self-hosted, privacy-first Google Keep alternative. Capture your thoughts, ideas and notes. Built with SvelteKit. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 31732e8. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Typescript Best Practices loads about 2.2k tokens when it runs. Until then it costs about 57 tokens; SKILL.md has 540 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 bretzel-app/crumbs at commit 31732e8, republished under its MIT licence (© bretzel-app). 540 words, ~2,176 tokens.
.claude/skills/typescript-best-practices/SKILL.md (or your agent's skills folder).When working with React components (.tsx, .jsx files or @react imports), always load react-best-practices alongside this skill. This skill covers TypeScript fundamentals; React-specific patterns (effects, hooks, refs, component design) are in the dedicated React skill.
Types define the contract before implementation. Follow this workflow:
Use the type system to prevent invalid states at compile time.
Discriminated unions for mutually exclusive states:
// Good: only valid combinations possible
type RequestState<T> =
| { status: 'idle' }
| { status: 'loading' }
| { status: 'success'; data: T }
| { status: 'error'; error: Error };
// Bad: allows invalid combinations like { loading: true, error: Error }
type RequestState<T> = {
loading: boolean;
data?: T;
error?: Error;
};Branded types for domain primitives:
type UserId = string & { readonly __brand: 'UserId' };
type OrderId = string & { readonly __brand: 'OrderId' };
// Compiler prevents passing OrderId where UserId expected
function getUser(id: UserId): Promise<User> { /* ... */ }
function createUserId(id: string): UserId {
return id as UserId;
}Const assertions for literal unions:
const ROLES = ['admin', 'user', 'guest'] as const;
type Role = typeof ROLES[number]; // 'admin' | 'user' | 'guest'
// Array and type stay in sync automatically
function isValidRole(role: string): role is Role {
return ROLES.includes(role as Role);
}Required vs optional fields - be explicit:
// Creation: some fields required
type CreateUser = {
email: string;
name: string;
};
// Update: all fields optional
type UpdateUser = Partial<CreateUser>;
// Database row: all fields present
type User = CreateUser & {
id: UserId;
createdAt: Date;
};Prefer smaller, focused files: one component, hook, or utility per file. Split when a file handles multiple concerns or exceeds ~200 lines. Colocate tests with implementation (foo.test.ts alongside foo.ts). Group related files by feature rather than by type.
const over let; use readonly and Readonly<T> for immutable data.array.map/filter/reduce over for loops; chain transformations in pipelines.strict mode; model data with interfaces and types. Strong typing catches bugs at compile time.switch with never checks in default. Unhandled cases become compile errors.await for async calls; wrap external calls with contextual error messages. Unhandled rejections crash Node processes.Explicit failure for unimplemented logic:
export function buildWidget(widgetType: string): never {
throw new Error(`buildWidget not implemented for type: ${widgetType}`);
}Exhaustive switch with never check:
type Status = "active" | "inactive";
export function processStatus(status: Status): string {
switch (status) {
case "active":
return "processing";
case "inactive":
return "skipped";
default: {
const _exhaustive: never = status;
throw new Error(`unhandled status: ${_exhaustive}`);
}
}
}Wrap external calls with context:
export async function fetchWidget(id: string): Promise<Widget> {
const response = await fetch(`/api/widgets/${id}`);
if (!response.ok) {
throw new Error(`fetch widget ${id} failed: ${response.status}`);
}
return response.json();
}Debug logging with namespaced logger:
import debug from "debug";
const log = debug("myapp:widgets");
export function createWidget(name: string): Widget {
log("creating widget: %s", name);
const widget = { id: crypto.randomUUID(), name };
log("created widget: %s", widget.id);
return widget;
}z.infer<>. Avoid duplicating types and schemas.safeParse for user input where failure is expected; use parse at trust boundaries where invalid data is a bug..extend(), .pick(), .omit(), .merge() for DRY definitions..transform() for data normalization at parse time (trim strings, parse dates)..refine() for custom validation logic.Schema as source of truth with type inference:
import { z } from "zod";
const UserSchema = z.object({
id: z.string().uuid(),
email: z.string().email(),
name: z.string().min(1),
createdAt: z.string().transform((s) => new Date(s)),
});
type User = z.infer<typeof UserSchema>;Return parse results to callers (never swallow errors):
import { z, SafeParseReturnType } from "zod";
export function parseUserInput(raw: unknown): SafeParseReturnType<unknown, User> {
return UserSchema.safeParse(raw);
}
// Caller handles both success and error:
const result = parseUserInput(formData);
if (!result.success) {
setErrors(result.error.flatten().fieldErrors);
return;
}
await submitUser(result.data);Strict parsing at trust boundaries:
export async function fetchUser(id: string): Promise<User> {
const response = await fetch(`/api/users/${id}`);
if (!response.ok) {
throw new Error(`fetch user ${id} failed: ${response.status}`);
}
const data = await response.json();
return UserSchema.parse(data); // throws if API contract violated
}Schema composition:
const CreateUserSchema = UserSchema.omit({ id: true, createdAt: true });
const UpdateUserSchema = CreateUserSchema.partial();
const UserWithPostsSchema = UserSchema.extend({
posts: z.array(PostSchema),
});process.env throughout the codebase.Typed config with Zod validation:
import { z } from "zod";
const ConfigSchema = z.object({
PORT: z.coerce.number().default(3000),
DATABASE_URL: z.string().url(),
API_KEY: z.string().min(1),
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
});
export const config = ConfigSchema.parse(process.env);Access config values (not process.env directly):
import { config } from "./config";
const server = app.listen(config.PORT);
const db = connect(config.DATABASE_URL);For advanced type utilities beyond TypeScript builtins, consider type-fest:
Opaque<T, Token> - cleaner branded types than manual & { __brand } patternPartialDeep<T> - recursive partial for nested objectsReadonlyDeep<T> - recursive readonly for immutable dataLiteralUnion<Literals, Fallback> - literals with autocomplete + string fallbackSetRequired<T, K> / SetOptional<T, K> - targeted field modificationsSimplify<T> - flatten complex intersection types in IDE tooltipsimport type { Opaque, PartialDeep, SetRequired } from 'type-fest';
// Branded type (cleaner than manual approach)
type UserId = Opaque<string, 'UserId'>;
// Deep partial for patch operations
type UserPatch = PartialDeep<User>;
// Make specific fields required
type UserWithEmail = SetRequired<Partial<User>, 'email'>;© bretzel-app, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/typescript-best-practices of bretzel-app/crumbs.
Open the folder on GitHubat commit 31732e8
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in bretzel-app/crumbs, which our catalogue first saw on October 7, 2026.
Typescript Best Practices 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 |
|---|---|---|---|---|---|---|
| Typescript Best Practices this skillbretzel-app/crumbs | 127 | 1 repos | ~2.2k | Automated safety check: Pass | MIT | |
| Connect Component To Figmadequelabs/cauldron | 129 | — | ~2k | Automated safety check: Pass | MPL-2.0 | |
| Fork And GoSimplePDF/simplepdf-embed | 407 | — | ~7.9k | Automated safety check: Notes | MIT | |
| Javascript Practiceseser/stack | 128 | — | ~599 | Automated safety check: Pass | Custom licence | |
| Typescript Rulessoftspark/ai-toolkit | 179 | — | ~2.7k | Automated safety check: Notes | Apache-2.0 | |
| Web Artifacts Builderanthropics/skills | 180k | 41 repos | ~769 | Automated safety check: Pass | Apache-2.0 |
dequelabs/cauldron
Add a Figma Code Connect (.figma.tsx) file for a Cauldron React component.
SimplePDF/simplepdf-embed
Guided walkthrough for forking and deploying your own SimplePDF Copilot: hosting choice, Pro-account confirmation, AI-provider wiring, demo customization, deploy, and the SimplePDF whitelist step.
eser/stack
TS and JS conventions for eserstack packages: namespace imports, mod.ts entries, cross-runtime APIs, explicit checks, async, tests and laroux React components.
softspark/ai-toolkit
TypeScript/JavaScript coding rules: style, patterns, security, testing.
anthropics/skills
Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.
langgenius/dify
Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data…
bretzel-app/crumbs
Drizzle ORM schema management and SQLite migrations — adding tables, modifying columns, creating indexes, generating and running migrations, Drizzle query patterns.
Works with
Categories
Provides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation. Typescript Best Practices is an agent skill from bretzel-app/crumbs. Provides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation.
Typescript Best Practices fits situations like: writing TypeScript/JavaScript files; tasks that involve React components.
Run `npx skills add bretzel-app/crumbs --skill typescript-best-practices -a claude-code`. Or copy the skill folder (.agents/skills/typescript-best-practices in bretzel-app/crumbs) into .claude/skills/typescript-best-practices in your project. Claude Code loads it when a task matches its description.
Run `npx skills add bretzel-app/crumbs --skill typescript-best-practices -a codex`. Or copy the skill folder (.agents/skills/typescript-best-practices in bretzel-app/crumbs) into .agents/skills/typescript-best-practices 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 bretzel-app/crumbs --skill typescript-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/typescript-best-practices, .gemini/skills/typescript-best-practices, .github/skills/typescript-best-practices and .opencode/skills/typescript-best-practices in your project.
Going by SKILL.md and its folder, Typescript Best Practices needs credentials named API_KEY. Our summary lists: A credential in API_KEY.
SKILL.md names 1 domain. As links in the text: github.com. 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.
Typescript Best Practices is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.7k 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 Typescript Best Practices: Connect Component To Figma (dequelabs/cauldron, 129 stars), Fork And Go (SimplePDF/simplepdf-embed, 407 stars), Javascript Practices (eser/stack, 128 stars) and Typescript Rules (softspark/ai-toolkit, 179 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
bretzel-app (a GitHub organization) maintains it in bretzel-app/crumbs, which has 127 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 6, 2026.
Source: bretzel-app/crumbs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.