alpha-skill
v0.0.3
Published
Engineering-grade framework for AI automation agents. Auto-installs Claude Code skills on npm install.
Downloads
288
Maintainers
Readme
Alpha Skill
Engineering-grade framework for AI automation agents.
Alpha Skill is a structured framework for defining, generating, and validating executable skills. It treats natural language prompts as software artifacts, enforcing strict architectural patterns for security, determinism, and reliability.
⚡ Quick Start
# Install via npm (auto-installs to Claude Code, Cursor, and OpenCode)
npm install alpha-skill
# Or clone and use directly
git clone https://github.com/yawningphantom/alpha-skill.git && cd alpha-skill
claude
/alpha-skill Create a skill for code reviewsAlpha Skill (alpha-skill) 🚀
Purpose: Production-ready skill generator with automatic quality refinement using Reinforcement Learning loop.
Features:
- 4-Agent Architecture: Orchestrates Generator → Adversary → Evaluator → Optimizer loop
- Automatic Refinement: Iterates until score ≥90 and all tests pass
- Empirical Testing: Generates and runs adversarial test cases
- Production Hardened: Survives injection attacks, edge cases, and boundary conditions
/alpha-skill "Create a skill that audits AWS security groups for open ports"
# → Generates v1 → Tests (7/10 fail) → Refines v2 → Tests (13/13 pass) ✅Installation
Automatic (Recommended)
npm install alpha-skillThis automatically installs all skills to:
- Claude Code:
~/.claude/skills/ - Cursor:
~/.cursor/rules/ - OpenCode:
~/.opencode/commands/
Manual
git clone https://github.com/yawningphantom/alpha-skill.git
cd alpha-skill
# Claude Code
cp -r skills/skill-* ~/.claude/skills/
# Cursor
mkdir -p ~/.cursor/rules
cp skills/skill-*/SKILL.md ~/.cursor/rules/
# OpenCode
mkdir -p ~/.opencode/commands
cp skills/skill-*/SKILL.md ~/.opencode/commands/🚀 Claude Code
claude
/alpha-skill Create a skill for code reviews💻 Cursor Editor
# Reference in Cursor:
@alpha-skill create a skill for API testing🖥️ OpenCode
# Use as a custom command:
/alpha-skill "Create a skill for code reviews"Quick Start
# Generate your first production-ready skill (automatic RL loop)
/alpha-skill "Create a skill that reviews pull requests for security issues"
# → Generates v1 → Tests → Refines → Tests → Production-ready ✅Common Usage Patterns
Generate production-ready skill (Recommended):
/alpha-skill "Create a skill for [task]" --target 90
# Automatic refinement until score ≥90 and all tests passSkill Types
The framework defines four immutable patterns:
- Reference: Static documentation and lookups.
- Command: Parameterized execution of specific actions.
- Workflow: Sequential, multi-step procedures with state.
- Interactive: Complex branching logic and user-guided decision trees.
Enforcement components
- Input Sandwiching: XML isolation for untrusted user input.
- Meta-Structure: Strict section ordering (Overview -> Input -> Process -> Output).
- Cognitive Manifest: Runtime selection of required reasoning models (CoT, CoD).
Documentation
Core Guides
- Framework Specification - Architecture and patterns
- Tooling Guide - CLI and automation
- Optimization Techniques - Performance tuning
Distribution & Sharing
- Skill Distribution Guide - Complete guide to sharing skills (project/team/enterprise)
- Contribution Guidelines - How to contribute
Publishing to npm
# 1. Bump version (patch/minor/major)
npm version patch # 0.0.1 → 0.0.2
npm version minor # 0.0.2 → 0.1.0
npm version major # 0.1.0 → 1.0.0
# 2. Publish
npm publish
# 3. Push the version tag to git
git push && git push --tagsLicense
MIT License
