shared-patterns

shared-patterns is a skill for Claude Code from athola/claude-night-market. It costs 21 tokens per session (569 once invoked), scanned A, original, MIT.

A collection of reusable patterns for building coding-agent skills, including validation, error handling, testing, and workflow checklists.

In plain words
What is it for?
Adding input validation, schema checks, error messages, unit-test scaffolding, integration-test patterns, mock fixtures, checklists, and feedback loops to other skills.
Why use it?
It gives skill authors shared templates and conventions for handling common implementation problems consistently.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [validation-patterns](../shared-patterns/modules/validation-patterns.md) module..

Part of the abstract plugin — 16 skills, 17 commands, 5 agents, 4 hooks shipped together

Good fit Adding input validation, schema checks, error messages, unit-test scaffolding, integration-test patterns, mock fixtures, checklists, and feedback loops to other skills.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/athola/claude-night-market
agentmods
npx agentmods add skills/athola/claude-night-market/shared-patterns

Made for: Claude Code.

Or install abstract, the plugin that ships this one along with the rest of its 16 skills, 17 commands, 5 agents, 4 hooks.

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 shared-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/athola/claude-night-market/shared-patterns/github.svg)](https://agentmods.dev/skills/athola/claude-night-market/shared-patterns)
Your own site
<a href="https://agentmods.dev/skills/athola/claude-night-market/shared-patterns"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/shared-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shared-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/athola/claude-night-market/shared-patterns"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/shared-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 569 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00021 $0.00569
Opus 5 $0.00010 $0.00284
Sonnet 5 $0.00004 $0.00114
Haiku 4.5 $0.00002 $0.00057

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

Security

Grade A, and why

shared-patterns scanned grade A with 0 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/abstract/skills/shared-patterns/SKILL.md · 91 lines

How it starts

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

Shared Patterns

Overview

Reusable patterns and templates for skill and hook development.

When NOT To Use

  • Authoring a skill end to end (use abstract:skill-authoring)
  • Cross-plugin contracts, which belong in leyline rather than here

Purpose

This skill provides shared patterns that are referenced by other skills in the abstract plugin. It follows DRY principles by centralizing common patterns.

Pattern Categories

Validation Patterns

See modules/validation-patterns.md for:

  • Input validation templates
  • Schema validation patterns
  • Error reporting formats

Error Handling

See modules/error-handling.md for:

  • Exception hierarchies
  • Error message formatting
  • Recovery strategies

Testing Templates

See modules/testing-templates.md for:

  • Unit test scaffolding
  • Integration test patterns
  • Mock fixtures

Workflow Patterns

See modules/workflow-patterns.md for:

  • Checklist templates
  • Feedback loop patterns
  • Progressive disclosure structures

Usage

Reference these patterns from other skills:

For validation patterns, see the `shared-patterns` skill's
[validation-patterns](../shared-patterns/modules/validation-patterns.md) module.

Verification: Run the command with --help flag to verify availability.

Exit Criteria

  • Each of the four module files (validation-patterns.md, error-handling.md, testing-templates.md, workflow-patterns.md) exists under plugins/abstract/skills/shared-patterns/modules/.
  • Any cross-skill reference to these modules uses a relative path beginning with ../shared-patterns/modules/ and resolves to an existing file on disk.
  • No consuming skill references a path under the deprecated skills/shared/modules/ directory pattern; such references are surfaced as broken links.
  • The hub SKILL.md itself stays under 150 lines with no substantive pattern content duplicated from the modules it links.

Read the full file on GitHub · 91 lines

Files

What ships with it

8 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. 9d ago First seen · 91 lines · 21 tokens per session scan A 296356c05143

Subscribe to this mod's changes

shared-patterns is a skill published in the GitHub repository athola/claude-night-market (336 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 569 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

regex-mastery

Use this skill when writing regular expressions, debugging pattern matching,optimizing regex performance, or implementing text validation. Triggers on regex, regular expressions, pattern matching, lookahead, lookbehind, named groups, capture groups, backreferences, and any task requiring text pattern matching.

alibaba/anolisa · 60 tokens

attack-patterns-reference

Use when classifying a verified web or WordPress behavior and selecting a related validation skill.

uphiago/recon-skills · 23 tokens

ground-truth-template

Generic ground truth template for creating verifiable reference skills. Auto-invoke on 'ground truth skill', 'validation criteria', 'canonical documentation template'. Do NOT load during actual ground truth usage.

YoungLeadersDotTech/young-leaders-tech-marketplace · 43 tokens

doc-templates

Reusable documentation fragments and micro-patterns — ADR templates, runbook blocks, incident post-mortem skeletons, PR description stubs, and changelog entry formats.

LuuOW/meridian-mcp · 37 tokens

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright…

shajith003/awesome-claude-skills · 62 tokens

slack-gif-creator

Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".

shajith003/awesome-claude-skills · 57 tokens