Skip to content
Back to skills

Shared Patterns

ASecurity

Provide reusable patterns for validation, error handling, scaffolding. Use for skill consistency.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
ai-agentsgotestinggit

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add thedixitjain/the-mega-skill-library --skill shared-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shared Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shared Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedixitjain-shared-patterns/badge)](https://www.skillsdirectory.com/skills/thedixitjain-shared-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shared-patterns
description: "Provide reusable patterns for validation, error handling, scaffolding. Use for skill consistency."
category: engineering-core
source_repo: athola/claude-night-market
source_path: "plugins/abstract/skills/shared-patterns/SKILL.md"
source_url: https://github.com/athola/claude-night-market/blob/HEAD/plugins/abstract/skills/shared-patterns/SKILL.md
---

# Shared Patterns

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](modules/validation-patterns.md) for:
- Input validation templates
- Schema validation patterns
- Error reporting formats

### Error Handling

See [modules/error-handling.md](modules/error-handling.md) for:
- Exception hierarchies
- Error message formatting
- Recovery strategies

### Testing Templates

See [modules/testing-templates.md](modules/testing-templates.md) for:
- Unit test scaffolding
- Integration test patterns
- Mock fixtures

### Workflow Patterns

See [modules/workflow-patterns.md](modules/workflow-patterns.md) for:
- Checklist templates
- Feedback loop patterns
- Progressive disclosure structures

## Usage

Reference these patterns from other skills:

```markdown
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.

---

**Source:** [`athola/claude-night-market`](https://github.com/athola/claude-night-market) → `plugins/abstract/skills/shared-patterns/SKILL.md`

Files in this skill

  • SKILL.md2.5 KB
  • modules/advanced.md3.4 KB
  • modules/creation.md3.6 KB
  • modules/editing.md4 KB
  • modules/error-handling.md2.3 KB
  • modules/testing-templates.md4.5 KB
  • modules/troubleshooting.md4.7 KB
  • modules/validation-patterns.md2.9 KB
  • modules/workflow-patterns.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.