wolf-scripts-core
Core automation scripts for archetype selection, evidence validation, quality scoring, and safe bash execution
Install
mkdir -p .claude/skills/wolf-scripts-core && curl -L -o skill.zip "https://mcp.directory/api/skills/download/331" && unzip -o skill.zip -d .claude/skills/wolf-scripts-core && rm skill.zipInstalls to .claude/skills/wolf-scripts-core
About this skill
Wolf Scripts Core
Core automation patterns that power Wolf's behavioral adaptation system. These scripts represent battle-tested logic from 50+ phases of development.
Overview
This skill captures the essential automation patterns that run on nearly every Wolf operation:
- Archetype Selection - Automatically determine behavioral profile based on issue/PR characteristics
- Evidence Validation - Validate archetype-specific evidence requirements with conflict resolution
- Curator Rubric - Score issue quality using reproducible 1-10 scoring system
- Bash Validation - Safe bash execution with pattern checking and GitHub CLI validation
🎯 Archetype Selection Pattern
Purpose
Analyzes GitHub issues to determine the appropriate coder agent archetype based on labels, keywords, and patterns.
Available Archetypes
{
'product-implementer': {
keywords: ['feature', 'implement', 'add', 'create', 'build', 'develop', 'functionality'],
patterns: ['user story', 'as a user', 'acceptance criteria', 'business logic']
},
'reliability-fixer': {
keywords: ['bug', 'fix', 'error', 'crash', 'fail', 'broken', 'issue'],
patterns: ['steps to reproduce', 'error message', 'stack trace', 'regression']
},
'security-hardener': {
keywords: ['security', 'vulnerability', 'exploit', 'auth', 'permission', 'access'],
patterns: ['cve', 'security scan', 'penetration', 'authentication', 'authorization']
},
'perf-optimizer': {
keywords: ['performance', 'slow', 'optimize', 'speed', 'memory', 'cpu'],
patterns: ['benchmark', 'profiling', 'latency', 'throughput', 'bottleneck']
},
'research-prototyper': {
keywords: ['research', 'prototype', 'experiment', 'proof of concept', 'explore'],
patterns: ['investigation', 'feasibility', 'spike', 'technical debt', 'architecture']
}
}
Scoring Algorithm
- Keyword Matching:
score += matches.length * 2(weight keywords highly) - Pattern Matching:
score += matches.length * 3(weight patterns even higher) - Label Matching: Labels are included in full text search
- Threshold Check: Requires minimum confidence score to select archetype
- Fallback: If no archetype reaches threshold, defaults to
product-implementer
Usage Pattern
// Score all archetypes
const scores = scoreArchetypes(title, body, labels);
// Find highest score
const winner = Object.entries(scores)
.sort((a, b) => b[1] - a[1])[0];
// Confidence check
const confidence = (scores[winner[0]] / totalScore) * 100;
if (confidence < CONFIDENCE_THRESHOLD) {
// Use fallback or request human review
}
When to Use
- Starting new work items
- Issue triage and routing
- Determining agent behavioral profile
- Validating archetype assignments
Script Location: /agents/shared/scripts/select-archetype.mjs
📋 Evidence Validation Pattern
Purpose
Validates evidence requirements from multiple sources (archetypes, lenses) with priority-based conflict resolution.
Priority Levels
const PRIORITY_LEVELS = {
DEFAULT: 0, // Basic requirements
LENS: 1, // Overlay lens requirements
ARCHETYPE: 2, // Core archetype requirements
OVERRIDE: 3 // Explicit overrides
};
Conflict Resolution Strategies
- Priority-Based: Higher priority wins
- Merge Strategy: Same priority → union of requirements
- Conflict Tracking: All conflicts logged for audit
- Resolution Recording: Documents why each resolution was made
Schema Versions (Backward Compatibility)
- V1 (1.0.0): Original format
- V2 (2.0.0): Added priority field
- V3 (3.0.0): Added conflict resolution
Usage Pattern
class EvidenceValidator {
constructor() {
this.requirements = new Map();
this.conflicts = [];
this.resolutions = [];
}
// Add requirements from source
addRequirements(source, requirements, priority) {
// Detect conflicts
// Resolve based on priority or merge
// Track resolution decision
}
// Merge two requirement values
mergeRequirements(existing, incoming) {
// Arrays: union
// Objects: deep merge
// Numbers: max
// Booleans: logical OR
// Strings: concatenate with separator
}
// Validate against requirements
validate(evidence) {
// Check all requirements met
// Return validation report
}
}
When to Use
- Before creating PRs (ensure evidence collected)
- During PR review (validate evidence submitted)
- When combining archetype + lens requirements
- Resolving conflicts between requirement sources
Script Location: /agents/shared/scripts/evidence-validator.mjs
🏆 Curator Rubric Pattern
Purpose
Reproducible 1-10 scoring system for issue quality using weighted rubric across 5 categories.
Rubric Categories (100 points total)
1. Problem Definition (25 points)
- Problem Stated (5pts): Clear problem statement exists
- User Impact (5pts): User/system impact described
- Root Cause (5pts): Root cause identified or investigated
- Constraints (5pts): Constraints and limitations noted
- Success Metrics (5pts): Success criteria measurable
2. Acceptance Criteria (25 points)
- Testable (8pts): AC is specific and testable
- Complete (7pts): Covers happy and edge cases
- Prioritized (5pts): Must/should/nice clearly separated
- Given/When/Then (5pts): Uses Given/When/Then format
3. Technical Completeness (20 points)
- Dependencies (5pts): Dependencies identified
- Risks (5pts): Technical risks assessed
- Architecture (5pts): Architecture approach defined
- Performance (5pts): Performance considerations noted
4. Documentation Quality (15 points)
- Context (5pts): Sufficient context provided
- References (5pts): Links to related issues/docs
- Examples (5pts): Examples or mockups included
5. Process Compliance (15 points)
- Labels (5pts): Appropriate labels applied
- Estimates (5pts): Effort estimated (S/M/L/XL)
- Priority (5pts): Priority clearly indicated
Score Conversion (100 → 10 scale)
function convertTo10Scale(rawScore) {
return Math.round(rawScore / 10);
}
// Score ranges:
// 90-100 → 10 (Exceptional)
// 80-89 → 8-9 (Excellent)
// 70-79 → 7 (Good)
// 60-69 → 6 (Acceptable)
// 50-59 → 5 (Needs improvement)
// <50 → 1-4 (Poor)
Usage Pattern
const rubric = new CuratorRubric();
// Score an issue
const score = rubric.scoreIssue(issueNumber);
// Get detailed breakdown
const breakdown = rubric.getScoreBreakdown(issueNumber);
// Post score as comment
rubric.postScoreComment(issueNumber, score, breakdown);
// Track score history
rubric.saveScoreHistory();
When to Use
- During intake curation
- Before moving issues to pm-ready
- Quality gate enforcement
- Identifying patterns of good/poor curation
Script Location: /agents/shared/scripts/curator-rubric.mjs
🛡️ Bash Validation Pattern
Purpose
Safe bash execution with syntax checking, pattern validation, and GitHub CLI validation.
Validation Layers
- Shellcheck: Syntax and best practices validation
- Pattern Checking: Custom rules for common anti-patterns
- GitHub CLI: Validate
ghcommand usage - Dry Run: Test commands before execution
Configuration
const config = {
shellcheck: {
enabled: true,
format: 'json',
severity: ['error', 'warning', 'info']
},
patterns: {
enabled: true,
customRules: 'bash-patterns.json'
},
github: {
validateCLI: true,
dryRun: true
},
output: {
format: 'detailed', // or 'json', 'summary'
exitOnError: true
}
};
Command Line Options
# Validate single file
bash-validator.mjs --file script.sh
# Validate directory
bash-validator.mjs --directory ./scripts
# Validate staged files (pre-commit)
bash-validator.mjs --staged
# Validate workflows
bash-validator.mjs --workflows
# Comprehensive scan
bash-validator.mjs --comprehensive
# Update pattern rules
bash-validator.mjs --update-patterns
Severity Levels
- error: Critical issues that will cause failures
- warning: Potential issues, best practice violations
- info: Suggestions for improvement
Usage Pattern
class BashValidator {
constructor(options) {
this.options = { ...config, ...options };
this.results = {
files: [],
summary: { total: 0, passed: 0, failed: 0 }
};
}
// Validate file
validateFile(filepath) {
// Run shellcheck
// Check custom patterns
// Validate GitHub CLI usage
// Return validation report
}
// Aggregate results
getSummary() {
// Return summary statistics
}
}
Common Anti-Patterns Detected
- Unquoted variables
- Missing error handling
- Unsafe command substitution
- Race conditions in pipelines
- Missing shellcheck directives
When to Use
- Pre-commit hooks for bash scripts
- CI/CD validation of shell scripts
- Workflow validation
- Before executing user-provided bash
Script Location: /agents/shared/scripts/bash-validator.mjs
Integration Patterns
Combining Scripts in Workflows
Example 1: Issue Intake Pipeline
// 1. Score issue quality
const qualityScore = curatorRubric.scoreIssue(issueNumber);
// 2. If quality sufficient, select archetype
if (qualityScore >= 6) {
const archetype = selectArchetype(issueNumber);
// 3. Load archetype evidence requirements
const requirements = loadArchetypeRequirements(archetype);
// 4. Validate requirements
const validator = new EvidenceValidator();
validator.addRequirements(archetype, requirements, PRIORITY_LEVELS.ARCHETYPE);
}
Example 2: PR Validation Pipeline
// 1. Get archetype from PR labels
const archetype = extractArchetypeFromLabels(prLabels);
// 2. Load evidence requirements (archetype + le
---
*Content truncated.*
More by Nice-Wolf-Studio
View all skills by Nice-Wolf-Studio →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Related MCP Servers
Browse all serversAutomate macOS tasks with AppleScript and JavaScript. Control apps, files, and system efficiently using macOS Automator'
Android MCP — lightweight bridge enabling AI agents for Android to perform Android automation and Android UI testing: ap
Automate Xcode build, testing, and management using JavaScript scripts for efficient project workflows and smart error r
Extract and format YouTube transcripts with language selection, paragraph formatting, and enriched metadata for analysis
Streamline browser automation with Playwright MCP. Capture interactions, screenshots, and generate test scripts for effi
Playwright Recorder enables browser automation and playwright testing with visual workflows, capturing interactions for
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.