nexa-skill-compiler
v1.0.0
Published
Industrial-grade multi-target compiler for AI Agent Skills - Write Once, Run Anywhere
Downloads
116
Maintainers
Readme
Installation
# Install via npm
npm install -g nexa-skill-compiler
# Or install the Rust binary directly (recommended)
cargo install nexa-skill-cliQuick Start
# Compile a skill for all platforms
nsc build skill.md
# Compile for specific target
nsc build skill.md --target claude
# Validate a skill file
nsc validate skill.md
# Initialize a new skill from template
nsc init my-skillWhat is NSC?
Nexa Skill Compiler (NSC) is an industrial-grade multi-target compiler that transforms unified SKILL.md specifications into platform-specific agent instructions.
🔍 Frontend: Parsing & Validation
- YAML Frontmatter Parser with type validation
- Permission Auditor for security analysis
- MCP Dependency Checker
🧠 Mid-end: IR & Optimization
- SkillIR - Platform-independent intermediate representation
- Anti-Skill Injection - Automatic defense against dangerous behaviors
- Security Level Analyzer with 4-tier model
🚀 Backend: Multi-Target Emission
- Claude Target - Claude Code compatible output
- Codex Target - OpenAI Codex/GPT format
- Gemini Target - Google Gemini system instructions
Performance
Based on large-scale comparative experiments:
| Metric | Original Skills | Compiled Skills | Improvement | |--------|-----------------|-----------------|-------------| | Avg Duration | 45.2s | 37.6s | 16.9% faster | | Success Rate | 96% | 100% | +4% |
Links
License
MIT License - see LICENSE for details.
