Cross-Language Coding Standards
zereight/gitlab-mcp
Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.
Has your agent throw and catch JavaScript and TypeScript errors with the error-causes library, using named causes, preserved originals and routed handlers.
$ npx skills add paralleldrive/aidd --skill aidd-error-causes -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install paralleldrive/aidd aidd-error-causes --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-error-causes .claude/skills/aidd-error-causes && 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-error-causes" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-error-causes into .claude/skills/aidd-error-causes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-error-causes", 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-error-causesType 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-error-causes -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install paralleldrive/aidd aidd-error-causes --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-error-causes .agents/skills/aidd-error-causes && 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-error-causes" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-error-causes into .agents/skills/aidd-error-causes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-error-causes", 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-error-causes -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install paralleldrive/aidd aidd-error-causes --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-error-causes .cursor/skills/aidd-error-causes && 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-error-causes" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-error-causes into .cursor/skills/aidd-error-causes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-error-causes", 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-error-causes--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-error-causes -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install paralleldrive/aidd aidd-error-causes --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-error-causes .gemini/skills/aidd-error-causes && 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-error-causes" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-error-causes into .gemini/skills/aidd-error-causes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-error-causes", 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-error-causesInstalls 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-error-causes -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-error-causes .github/skills/aidd-error-causes && 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-error-causes" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-error-causes into .github/skills/aidd-error-causes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-error-causes", 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-error-causes -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-error-causes --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-error-causes .opencode/skills/aidd-error-causes && 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-error-causes" agent skill from https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-error-causes into .opencode/skills/aidd-error-causes/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aidd-error-causes", 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-error-causesHas your agent throw and catch JavaScript and TypeScript errors with the error-causes library, using named causes, preserved originals and routed handlers.
This rule tells the agent to use the error-causes library for all error handling in JavaScript and TypeScript, instead of plain new Error calls. Errors are created with createError and carry a name, a message, an optional code and any custom context. Handlers can then match on names rather than instanceof checks, which also keeps working across memory realms such as iframes.
Caught errors are re-thrown with the original kept as cause, factory functions validate their parameters with structured errors, and tests assert on the cause rather than only the message. For APIs with several error types, an errorCauses pattern defines every possible error in one place and routes them to handlers by name. The rule ends with a numbered list that includes always using createError and always providing name and message.
7 steps, taken from the first numbered list in SKILL.md.
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 javascript).
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 these keys or tokens, usually read from environment variables:
API_KEYMISSING_CONFIG_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Error Causes Handling loads about 1.1k tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 245 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). 245 words, ~1,068 tokens.
.claude/skills/aidd-error-causes/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Use the error-causes library for all error handling in JavaScript/TypeScript code to enable structured error handling with named causes.
instanceof checksinstanceofimport { createError } from "error-causes";Instead of throwing plain errors:
// ❌ DON'T
throw new Error('Config key "API_KEY" is required');Use createError with structured metadata:
// ✅ DO
throw createError({
name: 'ConfigurationError',
message: 'Required configuration key "API_KEY" is not defined',
code: 'MISSING_CONFIG_KEY',
requestedKey: 'API_KEY'
});Always include these properties in createError:
name - Error name for matching (e.g., 'ValidationError', 'AuthenticationError')message - Human-readable error messagecode (optional) - Error code for programmatic handlingWhen catching and re-throwing errors, preserve the original error as cause:
try {
await someOperation();
} catch (originalError) {
throw createError({
name: 'OperationError',
message: 'Failed to perform operation',
code: 'OPERATION_FAILED',
cause: originalError // Preserve original error
});
}For factory functions that validate parameters at creation time:
const createMiddleware = ({ requiredParam } = {}) => {
if (!requiredParam) {
throw createError({
name: 'ValidationError',
message: 'requiredParam is required',
code: 'MISSING_REQUIRED_PARAM'
});
}
return async ({ request, response }) => {
// middleware implementation
};
};In tests, verify the error's cause property:
let error;
try {
functionThatThrows();
} catch (e) {
error = e;
}
assert({
given: 'invalid input',
should: 'throw Error with cause',
actual: error instanceof Error && error.cause !== undefined,
expected: true
});
assert({
given: 'invalid input',
should: 'have correct error name',
actual: error.cause.name,
expected: 'ValidationError'
});
assert({
given: 'invalid input',
should: 'have correct error code',
actual: error.cause.code,
expected: 'MISSING_REQUIRED_PARAM'
});For APIs that define multiple error types, use the errorCauses pattern:
import { errorCauses, createError } from "error-causes";
// Define all possible errors for your API
const [apiErrors, handleApiErrors] = errorCauses({
NotFound: {
code: 404,
message: 'Resource not found'
},
ValidationError: {
code: 400,
message: 'Invalid input'
},
Unauthorized: {
code: 401,
message: 'Authentication required'
}
});
const { NotFound, ValidationError, Unauthorized } = apiErrors;
// Throw errors
if (!resource) throw createError(NotFound);
// Handle errors with automatic routing
someAsyncCall()
.catch(handleApiErrors({
NotFound: ({ message }) => console.log(message),
ValidationError: ({ message }) => console.log(message),
Unauthorized: ({ message }) => redirect('/login')
}));createError instead of new Error() for thrown errorsname and message in error metadatacode when the error needs programmatic handlingcause property when re-throwingcause property in error tests, not just the error messageerrorCauses() for APIs with multiple error types© 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-error-causes of paralleldrive/aidd.
Open the folder on GitHubat commit 9a7c8e3
Error Causes Handling 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 |
|---|---|---|---|---|---|---|
| Error Causes Handling this skillparalleldrive/aidd | 384 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Cross-Language Coding Standardszereight/gitlab-mcp | 2k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| AWS Lambda Durable Functionsawslabs/agent-plugins | 912 | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 5 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop | 5.2k | — | ~2.2k | Automated safety check: Pass | MIT | |
| Generate Release Notesteambit/bit | 18k | — | ~2.2k | Automated safety check: Pass | Custom licence |
zereight/gitlab-mcp
Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.
awslabs/agent-plugins
Build resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for long-running executions.
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
dmmulroy/anti-slop
Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.
teambit/bit
Generate comprehensive release notes for Bit from git commits and pull requests.
teambit/bit
Work on the pnpm Rust engine (@pnpm/napi, the pacquet crates) that bit install runs through.
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
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.
paralleldrive/aidd
Adds completed epics to a changelog in reverse chronological order, one emoji-tagged line each, covering only significant user-facing work.
Works with
Categories
Has your agent throw and catch JavaScript and TypeScript errors with the error-causes library, using named causes, preserved originals and routed handlers. This rule tells the agent to use the error-causes library for all error handling in JavaScript and TypeScript, instead of plain new Error calls. Errors are created with createError and carry a name, a message, an optional code and any custom context.
Error Causes Handling fits situations like: writing code that throws errors in a JavaScript or TypeScript project; wrapping a caught error while keeping the original as its cause; defining the set of error types an API can return and routing them.
Run `npx skills add paralleldrive/aidd --skill aidd-error-causes -a claude-code`. Or copy the skill folder (ai/skills/aidd-error-causes in paralleldrive/aidd) into .claude/skills/aidd-error-causes in your project. Claude Code loads it when a task matches its description.
Run `npx skills add paralleldrive/aidd --skill aidd-error-causes -a codex`. Or copy the skill folder (ai/skills/aidd-error-causes in paralleldrive/aidd) into .agents/skills/aidd-error-causes 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-error-causes -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-error-causes, .gemini/skills/aidd-error-causes, .github/skills/aidd-error-causes and .opencode/skills/aidd-error-causes in your project.
Going by SKILL.md and its folder, Error Causes Handling needs credentials named API_KEY and MISSING_CONFIG_KEY. Our summary lists: The error-causes npm package.
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.
Error Causes Handling 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.3k 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 Error Causes Handling: Cross-Language Coding Standards (zereight/gitlab-mcp, 2k stars), AWS Lambda Durable Functions (awslabs/agent-plugins, 912 stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars) and Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.2k 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.