shared
Foundational infrastructure patterns shared across all leyline skills. Triggers: leyline patterns, shared infrastructure, python imports, config patterns, leyline foundation, cross-skill patterns Use when: other leyline skills need common patterns, creating new infrastructure skills, ensuring consistency across leyline plugin DO NOT use directly: this skill is infrastructure for other leyline skills. This skill provides shared patterns consumed by other leyline skills.
$ Installer
git clone https://github.com/athola/claude-night-market /tmp/claude-night-market && cp -r /tmp/claude-night-market/plugins/leyline/skills/shared ~/.claude/skills/claude-night-market// tip: Run this command in your terminal to install the skill
name: shared description: | Foundational infrastructure patterns shared across all leyline skills.
Triggers: leyline patterns, shared infrastructure, python imports, config patterns, leyline foundation, cross-skill patterns
Use when: other leyline skills need common patterns, creating new infrastructure skills, ensuring consistency across leyline plugin
DO NOT use directly: this skill is infrastructure for other leyline skills.
This skill provides shared patterns consumed by other leyline skills. category: infrastructure tags: [shared, patterns, infrastructure, foundation] provides: infrastructure: [python-imports, error-handling, config-patterns] reusable_by: [all leyline skills, conserve, conjure, abstract] estimated_tokens: 150
Shared Infrastructure for Leyline
Purpose
Foundational patterns for the leyline infrastructure layer. These patterns are used across all leyline skills and by plugins that depend on leyline.
Modules
Python Import Patterns
The modules/python-imports.md module documents how to import leyline utilities:
- Standard import paths
- Fallback patterns for different contexts
- Type hints and protocols
Error Handling Patterns
The modules/error-handling.md module standardizes error handling:
- Error classification (retryable, fatal, user-facing)
- Recovery strategies
- Logging conventions
Config Patterns
The modules/config-patterns.md module provides configuration standards:
- Environment variable naming
- YAML config file structure
- Default value handling
Leyline Architecture
leyline/skills/
âââ shared/ # This skill - foundational patterns
âââ mecw-patterns/ # Context window management
âââ progressive-loading/ # On-demand content loading
âââ evaluation-framework/# Scoring and decision thresholds
âââ storage-templates/ # Knowledge storage formats
âââ pytest-config/ # Testing infrastructure
âââ testing-quality-standards/ # Test quality criteria
âââ quota-management/ # Service quota tracking
âââ usage-logging/ # Audit trail patterns
âââ service-registry/ # Service configuration
âââ error-patterns/ # Error handling
âââ authentication-patterns/ # Auth verification
Integration Notes
Leyline provides the foundation layer. Other plugins reference leyline skills:
conservationusesmecw-patterns,progressive-loadingconjureusesquota-management,usage-logging,service-registrymemory-palaceusesevaluation-framework,storage-templates
Repository
