Shared configuration patterns for project setup commands. Provides security hooks, Claude framework structure templates, and framework detection patterns used across multiple setup commands.
Add this skill
npx mdskills install applied-artificial-intelligence/shared-setup-patternsProvides reusable templates and patterns for project setup with good token optimization rationale
1---2name: shared-setup-patterns3description: Shared configuration patterns for project setup commands. Provides security hooks, Claude framework structure templates, and framework detection patterns used across multiple setup commands.4---56# Shared Setup Patterns78**Purpose**: Common configuration patterns and templates shared across all project setup commands.910**Used by**: `/setup:python`, `/setup:javascript`, `/setup:existing`, `/setup:explore`, `/setup:user`1112**Token Impact**: Provides ~1,700 tokens of shared templates loaded once, avoiding duplication across 5+ commands (saves ~3,200 tokens through reuse).1314---1516## Contents1718This skill contains ONLY patterns shared by multiple setup commands:19201. **Security Hooks** - PreToolUse and PostToolUse hooks for all project types212. **Claude Framework Structure** - .claude/ directory templates and memory files223. **Framework Detection** - Patterns for auto-detecting project languages and frameworks2324Language-specific templates (Python, JavaScript, etc.) are kept inline in their respective commands.2526---2728## 1. Security Hooks2930Located: `templates/security_hooks.json`3132Comprehensive security and quality hooks configuration:33- **PreToolUse**: Blocks dangerous commands (rm -rf, sudo, chmod 777)34- **PostToolUse**: Auto-formats code (ruff, prettier, eslint), validates JSON/markdown3536Used by: ALL setup commands that create projects3738---3940## 2. Claude Framework Structure4142Located: `templates/claude_framework/`4344Templates for .claude/ directory structure:45- `structure.md` - Directory layout and purpose46- `memory_templates/` - project_state.md, dependencies.md, conventions.md, decisions.md47- `work_structure.md` - Work directory organization4849Used by: ALL setup commands5051---5253## 3. Framework Detection Patterns5455Located: `templates/framework_detection.md`5657Patterns for auto-detecting:58- Languages: Python, JavaScript/TypeScript, Go, Rust59- Frameworks: FastAPI, Django, Flask, Next.js, React, Express60- Tools: pytest, Jest, Mocha, go test, cargo test6162Used by: `/setup:existing`, `/setup` (if dispatcher exists)6364---6566## Usage Pattern6768Commands reference this skill in frontmatter:69```yaml70skills: [shared-setup-patterns]71```7273Then access specific templates:74- Security hooks: Load from `templates/security_hooks.json`75- Framework structure: Generate from `templates/claude_framework/` templates76- Detection: Use patterns from `templates/framework_detection.md`7778---7980## Design Principle8182**Only truly shared content lives here.** Language-specific templates (Python pyproject.toml, JavaScript package.json) stay inline in their respective commands to avoid skill overhead for single-use templates.8384This keeps each command self-contained while sharing common infrastructure patterns.85
Full transparency — inspect the skill content before installing.