component-patterns

component-patterns is a skill for Claude Code from ashaykubal/essential-agents-skills. It costs 20 tokens per session (1,175 once invoked), scanned A, a copy of component-patterns, MIT.

A set of testing patterns for checking real behavior in different software components, such as command-line tools, servers, parsers, processes, databases, and external APIs.

In plain words
What is it for?
Use it when creating verification scripts or test audits: identify the component type from its code, then apply the matching testing pattern.
Why use it?
It helps choose appropriate verification steps instead of testing every kind of component in the same way.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when creating verification scripts or test audits: identify the component type from its code, then apply the matching testing pattern.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ashaykubal/essential-agents-skills/component-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ashaykubal/essential-agents-skills --skill component-patterns
Clone the repo
git clone --depth 1 https://github.com/ashaykubal/essential-agents-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for component-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/ashaykubal/essential-agents-skills/component-patterns.svg)](https://agentmods.dev/skills/ashaykubal/essential-agents-skills/component-patterns)
Your own site
<a href="https://agentmods.dev/skills/ashaykubal/essential-agents-skills/component-patterns"><img src="https://agentmods.dev/badge/skills/ashaykubal/essential-agents-skills/component-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,175 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.01175
Opus 5 $0.00010 $0.00588
Sonnet 5 $0.00004 $0.00235
Haiku 4.5 $0.00002 $0.00118

Measured 8d ago against content hash 09c23e42a695, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

component-patterns scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `expect(fetch).toHaveBeenCalledWith(url)` | `const resp = await fetch(url); expect(resp.status).toBe(200)` |

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| Imports `child_process`, has `spawn`/`exec`/`execSync` | Process Spawner | `references/pattern-process-spawner.md` |
Origin

This is a copy

89% identical to component-patterns — 267 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/component-patterns/SKILL.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Component Patterns

Purpose

Provide verification strategies for different component types. This skill defines how to test real behavior for CLIs, servers, parsers, processes, databases, and external APIs.

When to Use

Load this skill when:

  • Generating verification scripts via bulwark-verify skill
  • Determining how to test a specific component type
  • Implementing test-audit Step 7 rewrites

Component Type Detection

Analyze the code to determine component type based on these indicators:

Indicators Component Type Pattern Reference
Imports child_process, has spawn/exec/execSync Process Spawner references/pattern-process-spawner.md
Imports http/https/express/fastify/koa, has listen() HTTP Server references/pattern-http-server.md
Imports fs, reads/parses files, has parse functions File Parser references/pattern-file-parser.md
Has CLI argument parsing (process.argv, yargs, commander, argparse) CLI Command references/pattern-cli-command.md
Imports database driver (pg, mysql, mongoose, sqlite, prisma) Database references/pattern-database.md
Makes outbound HTTP calls (fetch, axios, got, requests) External API references/pattern-external-api.md

Pattern Reference Files

Each pattern reference contains:

  • Strategy: High-level approach for testing the component type
  • Templates: Ready-to-use verification script templates in Bash, Node/Jest, and Python/pytest
  • Placeholders: Variables to substitute with component-specific values

Available Patterns

Pattern File Languages
CLI Command references/pattern-cli-command.md Bash, Node, Python
HTTP Server references/pattern-http-server.md Bash, Node (supertest), Python
File Parser references/pattern-file-parser.md Bash, Node, Python
Process Spawner references/pattern-process-spawner.md Bash, Node
Database references/pattern-database.md Node, Python, Bash (SQLite)
External API references/pattern-external-api.md Node (MSW), Python (responses)

Read the full file on GitHub · 132 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 132 lines · 20 tokens per session scan A 09c23e42a695

Subscribe to this mod's changes

component-patterns is a skill published in the GitHub repository ashaykubal/essential-agents-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 1,175 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). It is 89% identical to component-patterns, differing in 267 lines, and is treated as a copy.

Related

Other skills, from other repositories

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

neuron-evaluation-engineer

Create and run AI evaluations with datasets, assertions, and output drivers in Neuron AI. Use this skill whenever the user mentions evaluation, testing AI systems, creating evaluators, dataset-driven testing, assertion-based validation, or wants to measure AI system performance. Also trigger for tasks involving…

neuron-core/neuron-ai · 77 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens

atmos-validation

Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.

cloudposse/atmos · 31 tokens

skill-benchmark

Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.

HoangNguyen0403/agent-skills-standard · 16 tokens