mellea-skills-compiler: Command for Claude Code

.claude/commands/mellea-fy-validate.md

mellea-fy-validate is a command for Claude Code from generative-computing/mellea-skills-compiler. It costs 0 tokens per session (5,511 once invoked), scanned A, original, Apache-2.0.

A final automated check for a generated Python package. It parses every Python file and tests whether the package's main module can be imported, then reports whether the package passes or must stop.

In plain words
What is it for?
Use it as the last gate in the Melleafy workflow, or run it separately to validate a generated Python package.
Why use it?
It catches invalid Python syntax and incorrect import paths before the generated package is accepted or used. It produces a JSON report without changing the package.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is generative-computing/mellea-skills-compiler's own configuration. It tells Claude Code how to work on mellea-skills-compiler itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mellea-skills-compiler configures →

Reuse

Borrowing it

Nothing to install: this file belongs to generative-computing/mellea-skills-compiler. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/generative-computing/mellea-skills-compiler/main/.claude/commands/mellea-fy-validate.md
Clone the repo
git clone --depth 1 https://github.com/generative-computing/mellea-skills-compiler

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mellea-fy-validate

README.md
[![agentmods](https://agentmods.dev/badge/commands/generative-computing/mellea-skills-compiler/mellea-fy-validate.svg)](https://agentmods.dev/commands/generative-computing/mellea-skills-compiler/mellea-fy-validate)
Your own site
<a href="https://agentmods.dev/commands/generative-computing/mellea-skills-compiler/mellea-fy-validate"><img src="https://agentmods.dev/badge/commands/generative-computing/mellea-skills-compiler/mellea-fy-validate.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,511 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.05511
Opus 5 $0.00000 $0.02756
Sonnet 5 $0.00000 $0.01102
Haiku 4.5 $0.00000 $0.00551

Measured 8d ago against content hash b376d67e905e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

mellea-fy-validate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/mellea-fy-validate.md · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Melleafy Step 7: Static Validation

Version: 4.3.1 (2026-04-28) | Prereq: Steps 3–6 complete | Produces: intermediate/step_7_report.json

Step 7 is the workflow's final gate. Seventeen lints in three tiers. No LLM invocations. No mutation of the generated package. Outcome is binary overall — pass or halt.

Run as: melleafy lint <package_path> (standalone), or automatically at the end of melleafy run.


Three-tier architecture

Tier 1 — Parseability (halt immediately on failure)

parseable: every .py file in the generated package passes ast.parse() without error. Then, the package entry module (<package_name>.pipeline) must import cleanly via importlib.import_module() in a subprocess. This catches wrong external import paths (e.g. mellea.stdlib.strategies vs the real mellea.stdlib.sampling) that ast.parse() cannot detect.

Implementation:

  1. Parse all .py files in parallel: For every .py file in <package_name>/, attempt ast.parse() concurrently. Collect ALL parse errors across all files before halting (do not fail on the first error). This gives the repair loop the complete error list for all failing files in one run, reducing repair iterations.

  2. Then, import check: run python -c "import <package_name>.pipeline" as a subprocess from the package's parent directory. A ModuleNotFoundError or ImportError is a lint failure, not a missing-dependency advisory.

If this lint fails, Step 7 halts. Tier 2 and Tier 3 don't run. The failure report contains all collected syntax errors and import errors (nothing else is meaningful before parsing).

Tier 2 — Structural lints (collect all, halt before Tier 3)

Run all 13 lints in parallel. Each lint is independent and can be executed concurrently. Dispatch all 13 lint operations simultaneously in a single turn (not sequentially, one per turn). All tier-2 lints run to completion even if one fails; results are collected then the tier verdict is determined.

Read the full file on GitHub · 221 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 221 lines · 0 tokens per session scan A b376d67e905e

Subscribe to this mod's changes

mellea-fy-validate is a command published in the GitHub repository generative-computing/mellea-skills-compiler (48 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 5,511 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.