shared-patterns
Provide reusable patterns for validation, error handling, scaffolding. Use for skill consistency.
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
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](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:
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.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/abstract/skills/shared-patterns/SKILL.md同一个仓库里的其他技能
- claude-code-plugin-reference
- night-market-architecture-contract
- night-market-build-and-env
- night-market-change-control
- night-market-collective-memory
- night-market-completion-integrity-campaign
- night-market-config-catalog
- night-market-debugging-playbook
- night-market-diagnostics-toolkit
- night-market-docs-and-writing
- night-market-failure-archaeology
- night-market-model-and-harness-updates