360 Secure SkillHub
360 安全技能中心

shared-patterns

为 Skill 与 Hook 开发提供共享的可复用模式:输入与 Schema 验证模板、异常层级与错误信息格式、单元与集成测试脚手架及 Mock 夹具、清单与反馈回路等工作流模式,按 modules/ 分文件组织并供其他 Skill 引用,遵循 DRY 原则。

athola
athola
热度 63.54
最近更新 2026-08-26 21:05:31
分类:开发依赖:纯提示词应用场景:模板 / 代码生成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nm-abstract-shared-patterns
Metadata
name
shared-patterns
description
Provide reusable patterns for validation, error handling, scaffolding. Use for skill consistency
version
1.9.8
triggers
["patterns","templates","shared","validation","reusable"]
metadata
{"openclaw":{"homepage":"https://github.com/athola/claude-night-market/tree/master/plugins/abstract","emoji":"🦞"}}
source
claude-night-market
source_plugin
abstract

Night Market Skill — ported from claude-night-market/abstract. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Shared Patterns

Reusable patterns and templates for skill and hook development.

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.