RTK Rust Design Patterns
rtk-ai/rtk
Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.
Sets a folder and file layout for TypeScript types so each type has one import surface, one file per exported function or constant, and tree-shakeable consumers.
$ npx skills add paralleldrive/aidd --skill aidd-namespace -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install paralleldrive/aidd aidd-namespace --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/paralleldrive/aidd.git skills-src && mkdir -p .claude/skills && cp -r skills-src/ai/skills/aidd-namespace .claude/skills/aidd-namespace && 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 "aidd-namespace" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-namespace into .claude/skills/aidd-namespace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-namespace", 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/paralleldrive/aidd/tree/main/ai/skills/aidd-namespaceType 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 paralleldrive/aidd --skill aidd-namespace -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install paralleldrive/aidd aidd-namespace --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/paralleldrive/aidd.git skills-src && mkdir -p .agents/skills && cp -r skills-src/ai/skills/aidd-namespace .agents/skills/aidd-namespace && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "aidd-namespace" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-namespace into .agents/skills/aidd-namespace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-namespace", 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 paralleldrive/aidd --skill aidd-namespace -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install paralleldrive/aidd aidd-namespace --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/paralleldrive/aidd.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/ai/skills/aidd-namespace .cursor/skills/aidd-namespace && 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 "aidd-namespace" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-namespace into .cursor/skills/aidd-namespace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-namespace", 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/paralleldrive/aidd.git --path ai/skills/aidd-namespace--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 paralleldrive/aidd --skill aidd-namespace -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install paralleldrive/aidd aidd-namespace --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/paralleldrive/aidd.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/ai/skills/aidd-namespace .gemini/skills/aidd-namespace && 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 "aidd-namespace" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-namespace into .gemini/skills/aidd-namespace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-namespace", 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 paralleldrive/aidd aidd-namespaceInstalls 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 paralleldrive/aidd --skill aidd-namespace -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/paralleldrive/aidd.git skills-src && mkdir -p .github/skills && cp -r skills-src/ai/skills/aidd-namespace .github/skills/aidd-namespace && 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 "aidd-namespace" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-namespace into .github/skills/aidd-namespace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-namespace", 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 paralleldrive/aidd --skill aidd-namespace -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install paralleldrive/aidd aidd-namespace --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/paralleldrive/aidd.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/ai/skills/aidd-namespace .opencode/skills/aidd-namespace && 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 "aidd-namespace" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-namespace into .opencode/skills/aidd-namespace/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-namespace", 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.
aidd-namespaceSets a folder and file layout for TypeScript types so each type has one import surface, one file per exported function or constant, and tree-shakeable consumers.
The skill sets a convention where every type lives in its own folder in the types layer, with one public import surface: a file named after the type that exports a single type alias and a namespace re-export. Functions and constants in that folder each get their own file named after the export, with no type prefix, so under `types/point/` the files `length.ts`, `add.ts` and `normalize.ts` each export the like-named function.
Other rules say that code outside a namespace folder must not import from `public.js`, that helpers for external types such as String go in an extension namespace named `StringX`, and that schema-backed types are either derived with `Schema.ToType` or kept as a hand-written alias checked against the schema at compile time. The skill takes precedence over older files that do not follow it: new work and changes must conform, and legacy structure is not to be copied.
Read from SKILL.md and the folder at commit 9a7c8e3. 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 sudolang and typescript).
From 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 Namespace Pattern loads about 1.1k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 218 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 paralleldrive/aidd at commit 9a7c8e3, republished under its MIT licence (© paralleldrive). 218 words, ~1,126 tokens.
.claude/skills/aidd-namespace/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Single import surface per type: <type-name>/<type-name>.ts. Each constant or function lives in <exported-name>.ts; namespace re-export from public.js. Types live in the types/ layer per structure.
Precedence: This skill defines the canonical pattern. Existing files may not yet follow it; all new work and changes must conform. Do not copy legacy structure when adding or editing code.
Inside a type folder, name each file after the single export it provides. The folder already identifies the type, so no type prefix in the filename.
NamespaceFileNaming {
typeEntry: "<type-name>.ts — type alias and namespace re-export"
utilityOrConstant: "<exported-name>.ts — one file per exported function or constant; filename = export name"
}
Constraints {
Do not use <type-name>-<exported-name>.ts for children; <exported-name>.ts is sufficient
}Example: under types/point/, files length.ts, add.ts, and normalize.ts each export the like-named function.
ConstantVisibility {
private: "Single-file only, not exported"
exported: "Sole export from eponymous file"
public: "Re-exported from public.ts"
internal: "Exported, not in public.ts"
}Constraints {
"<type-name>/<type-name>.ts" is the only public import surface
Export a single type alias: "export type <type-name> = <type>"
Export namespace: "export * as <type-name> from \"./public.js\""
In public.ts re-export every public constant file
Child files: <exported-name>.ts (one export per file; filename matches export)
}Consumers {
never: [
"Import from public.js outside the type namespace folder",
"Import from any child file (e.g. schema.js, length.js) outside the type namespace folder"
]
do: [
"import from <type-name>.ts only; e.g. Volume from \"../../types/volume/volume.js\"",
"Access constants via the namespace: TypeName.length, etc."
]
}When authoring helper functions for external types (e.g. String), use StringX as the discoverable extension namespace name.
Only for types whose source of truth is a schema. Most types do not; use a normal type alias. When the type is schema-backed, either derive it from the schema or keep a hand-written alias (e.g. for better JSDoc) and assert it matches the schema at compile time.
Option A — derive from schema:
src/types/player-mark/schema.ts
export const schema = { enum: ["X", "O"] } as const;src/types/player-mark/public.ts
export { schema } from "./schema.js";src/types/player-mark/player-mark.ts
import { Schema } from "@adobe/data/schema";
import { schema } from "./schema.js";
export type PlayerMark = Schema.ToType<typeof schema>;
export * as PlayerMark from "./public.js";Option B — hand-written object type with compile-time assertion: Use when you want property-level JSDoc. From @adobe/data/types, use Assert<Equal<YourType, Schema.ToType<typeof schema>>> so the type stays in sync with the schema.
import { Assert, Equal } from "@adobe/data/types";
import { Schema } from "@adobe/data/schema";
import { schema } from "./schema.js";
export type Bounds = {
/** Left edge in world units. */
x: number;
/** Top edge in world units. */
y: number;
/** Width in world units. */
width: number;
/** Height in world units. */
height: number;
};
type _CheckSameType = Assert<Equal<Bounds, Schema.ToType<typeof schema>>>;
export * as Bounds from "./public.js";Constraints {
Give each function file its own <same-name>.test.ts unit test
}fn whenRefactoringToNamespace() {
Constraints {
Identify constants in the current file
Extract them into the standard pattern
Identify all consumers of public namespaces
Check each consumer: imports use <type-name>.ts only, never public.js or individual child files
Ensure unit tests exist per function file, splitting as needed
}
}© paralleldrive, 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 1 other file in ai/skills/aidd-namespace of paralleldrive/aidd.
Open the folder on GitHubat commit 9a7c8e3
Type Namespace Pattern 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 Namespace Pattern this skillparalleldrive/aidd | 384 | — | ~1.1k | Automated safety check: Pass | MIT | |
| RTK Rust Design Patternsrtk-ai/rtk | 83k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Dignified Python Standardsdocling-project/docling | 68k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Effect Client WrapperUsefulSoftwareCo/executor | 4.1k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| GitVersion .NET DevelopmentGitTools/GitVersion | 3.1k | — | ~1.7k | Automated safety check: Pass | MIT | |
| AST Visitor Pattern for Unionsprisma/orm | 48k | — | ~830 | Automated safety check: Pass | Apache-2.0 |
rtk-ai/rtk
Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.
docling-project/docling
Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.
UsefulSoftwareCo/executor
Pattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect.
GitTools/GitVersion
Gives repository-specific .NET guidance for GitVersion: build and test commands, central package management, project layout and coding conventions.
prisma/orm
Replaces a plain TypeScript union plus switch statements with frozen subclasses and a visitor interface when several places dispatch on the same variants.
KartikLabhshetwar/better-shot
Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices.
paralleldrive/aidd
Guides creating, reviewing or refactoring AI-Driven Development skills so each one stays minimal, composable and named around a single clear function.
paralleldrive/aidd
Enforces a split of UI components into terminal and layout types, with layout components composing others through standard layout tokens, for cleaner structure and fewer re-renders.
paralleldrive/aidd
Enforces @adobe/data/ecs practices when writing Database.Plugin definitions, including property order, plugin composition, services, components, resources and archetypes.
paralleldrive/aidd
Has your agent throw and catch JavaScript and TypeScript errors with the error-causes library, using named causes, preserved originals and routed handlers.
paralleldrive/aidd
Teaches the saga pattern with call and put so network requests and side effects stay out of the logic and sagas can be tested without mocks.
paralleldrive/aidd
Rules for writing Lit elements in an AIDD project: binding elements on DatabaseElement, observed values, presentation components and action-style callbacks.
Categories
Sets a folder and file layout for TypeScript types so each type has one import surface, one file per exported function or constant, and tree-shakeable consumers. The skill sets a convention where every type lives in its own folder in the types layer, with one public import surface: a file named after the type that exports a single type alias and a namespace re-export.ts` each export the like-named function.
Type Namespace Pattern fits situations like: creating a new type with helper functions and constants; refactoring a types folder into one folder per type; defining a type whose source of truth is a schema; reviewing imports to catch consumers reaching into a type's internals.
Run `npx skills add paralleldrive/aidd --skill aidd-namespace -a claude-code`. Or copy the skill folder (ai/skills/aidd-namespace in paralleldrive/aidd) into .claude/skills/aidd-namespace in your project. Claude Code loads it when a task matches its description.
Run `npx skills add paralleldrive/aidd --skill aidd-namespace -a codex`. Or copy the skill folder (ai/skills/aidd-namespace in paralleldrive/aidd) into .agents/skills/aidd-namespace 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 paralleldrive/aidd --skill aidd-namespace -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aidd-namespace, .gemini/skills/aidd-namespace, .github/skills/aidd-namespace and .opencode/skills/aidd-namespace in your project.
SKILL.md names no scripts, command-line tools or credentials: Type Namespace Pattern is instructions for the agent only.
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 Namespace Pattern is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.5k 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 Namespace Pattern: RTK Rust Design Patterns (rtk-ai/rtk, 83k stars), Dignified Python Standards (docling-project/docling, 68k stars), Effect Client Wrapper (UsefulSoftwareCo/executor, 4.1k stars) and GitVersion .NET Development (GitTools/GitVersion, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
paralleldrive (a GitHub organization) maintains it in paralleldrive/aidd, which has 384 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on June 12, 2026.
Source: paralleldrive/aidd on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.