CLI reference¶
You can choose to use a Node.js interactive CLI, or a Command based CLI.
Node.js Interactive CLI¶
Begin operation by using the Mellea Skills Compiler Node.js Interactive CLI or skip to the next step to use command-based CLI.
Command-based CLI¶
Compile Agent Skill¶
Compile Agent Skill - Option 1 (Recommended)¶
Compile a skill into a typed Mellea pipeline via the CLI:
mellea-skills compile <Your-local-path>/skills/weather/spec.md # if skill is a single spec file.
mellea-skills compile <Your-local-path>/skills/weather # if skill is a directory containing spec files
Compile uses Sonnet as the default claude model. To use different claude model,
mellea-skills compile <Your-local-path>/skills/weather/spec.md --model aws/claude-opus-4-5
mellea-skills compile <Your-local-path>/skills/weather --model aws/claude-opus-4-5
Melleafy Repair: Identify and correct any errors effectively in Mellea skill compilation
Compile Agent Skill - Option 2 (Using Claude Code)¶
Run /mellea-fy directly inside Claude Code:
See mellea-fy/README.md for detailed usage of the Claude Code command.
Run Skill Pipeline¶
Run skill pipeline for a given fxiture
mellea-skills run <Your-local-path>/skills/weather/weather_mellea --fixture rain_check # provide path to the compiled skill directory and the fixture name
mellea-skills run <Your-local-path>/skills/weather/weather_mellea --enforce # Block execution when Guardian detects risks (default: audit-only)
mellea-skills run <Your-local-path>/skills/weather/weather_mellea --no_guardian # Skip Guardian checks even if a policy manifest exists.
Run Full Certification Pipeline for Mellea skill¶
Run end-to-end certification — risk identification via AI Atlas Nexus, Guardian hook instrumentation, fixture execution, and compliance report — in a single command:
mellea-skills certify <Your-local-path>/skills/weather/weather_mellea # provide path to the compiled skill directory
mellea-skills certify <Your-local-path>/skills/weather/weather_mellea --enforce # Block on risk detection
mellea-skills certify <Your-local-path>/skills/weather/weather_mellea --fixture rain_check # Run specific fixture - rain_check
mellea-skills certify <Your-local-path>/skills/weather/weather_mellea --model granite3.3:8b --guardian-model ibm/granite3.3-guardian:8b --inference-engine ollama # Using different risk model, guardian model and inference engine
Export Compiled Mellea Skill¶
Export a compiled Mellea skill to a deployment target - langgraph, claude-code, or mcp
Note: This command is experimental. Output structure and CLI interface may change in future releases without a deprecation period.
mellea-skills export --target mcp <Your-local-path>/skills/weather/weather_mellea # Supported deployment target: mcp, langgraph, claude-code
mellea-skills export --target mcp --force <Your-local-path>/skills/weather/weather_mellea # '--force' overwrites output directory if it already exists.
Certification artifacts¶
All outputs are written to audit/ adjacent to the compiled directory:
skills/weather/audit/
├── policy_manifest.json # Policy manifest (risks + governance actions)
├── POLICY.md # Human-readable policy document
├── CERTIFICATION.md # Certification report with coverage summary
├── audit_trail.jsonl # Runtime Guardian verdicts
└── pipeline_report.json # Pipeline execution output