mellea-skills-compiler: Command for Claude Code

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

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

A code-generation command from Melleafy that creates a Python package from a dependency plan. It first creates file structures and placeholders, then fills in the code bodies.

In plain words
What is it for?
Generating files such as pipeline.py, schemas.py, config.py, and main.py after a dependency plan is ready. It also defines where those files and pyproject.toml must be placed.
Why use it?
It makes the required package layout and generation order explicit. This prevents Python files from being written in the wrong directory or generated without the required behaviour instructions.

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-generate.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-generate

README.md
[![agentmods](https://agentmods.dev/badge/commands/generative-computing/mellea-skills-compiler/mellea-fy-generate/github.svg)](https://agentmods.dev/commands/generative-computing/mellea-skills-compiler/mellea-fy-generate)
Your own site
<a href="https://agentmods.dev/commands/generative-computing/mellea-skills-compiler/mellea-fy-generate"><img src="https://agentmods.dev/badge/commands/generative-computing/mellea-skills-compiler/mellea-fy-generate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mellea-fy-generate

Your own site · 80×15
<a href="https://agentmods.dev/commands/generative-computing/mellea-skills-compiler/mellea-fy-generate"><img src="https://agentmods.dev/badge/commands/generative-computing/mellea-skills-compiler/mellea-fy-generate.svg" alt="Reviewed on agentmods" width="80" 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 7,069 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 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.07069
Opus 5 $0.00000 $0.03535
Sonnet 5 $0.00000 $0.01414
Haiku 4.5 $0.00000 $0.00707

Measured yesterday against content hash 526d1ae34b80, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mellea-fy-generate scanned grade A with 2 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

from urllib.parse import urlparse

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Modes that read from stdin (e.g. `input=$(cat)` in the script body) → call `subprocess.run(..., input=target, capture_output=True, text=True)`. Do NOT append `target` to the command list.
.claude/commands/mellea-fy-generate.md · 500 lines

How it starts

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

Melleafy Steps 3 + 5: Skeleton Emission and Body Generation

Version: 4.3.0 (2026-04-28) | Prereq: dependency_plan.json (Step 2.5 complete) | Produces: Populated Python package

Output path rule (Rule OUT-3): All .py files (pipeline.py, config.py, schemas.py, main.py, etc.) are written inside <package_name>/. pyproject.toml is the only file written at the skill root (NOT inside <package_name>/). See mellea-fy.md §Output directory layout for the full tree.

Step 3 emits skeleton files (imports, signatures, docstring placeholders) from the element mapping and dependency plan. Step 5 invokes the LLM to fill in every code body. Read /mellea-fy-behaviours before generating any code — the Known Behaviours mitigations must be baked into every generated file.


Step 3: File set and skeleton emission

File set determined by mapping + dependency plan

File When generated
pipeline.py Always
schemas.py Always (at minimum contains Final[str] placeholder if no schemas found)
config.py Always (persona text, model ID, loop budgets from dependency_plan.json:bundle entries)
requirements.py When any VALIDATE_OUTPUT elements exist
slots.py When any EXTRACT or CLASSIFY elements map to @generative
tools.py When any C6 element has disposition real_impl
constrained_slots.py When any C6 element has disposition stub or delegate_to_runtime
mobjects.py When any TRANSFORM or QUERY elements exist
loader.py When any C3 element has disposition load_from_disk
main.py Always (CLI entry point)
pyproject.toml Always
fixtures/ Always (5–8 fixtures, generated in Step 4)
SETUP.md When any C4, C5, C9, non-bundled C6, C7, non-default C8, or host-needing modality
README.md Always
melleafy.json Always (skeleton in Step 3; finalised in Step 6)
dependencies.yaml When any C6/C7/C8 entry is non-bundle

Read the full file on GitHub · 500 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. yesterday Changed 526d1ae34b80
  2. 9d ago First seen · 500 lines · 0 tokens per session scan A 8528a38c28b6

Subscribe to this mod's changes

mellea-fy-generate is a command published in the GitHub repository generative-computing/mellea-skills-compiler (48 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 7,069 tokens. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.