mealie-mcp-server-ts: Command for Claude Code

.claude/commands/clavix/refine.md

refine is a command for Claude Code from that0n3guy/mealie-mcp-server-ts. It costs 0 tokens per session (9,948 once invoked), scanned B, original, MIT.

A guided command for updating an existing product requirements document or saved prompt. A product requirements document describes what a product should do.

In plain words
What is it for?
Use it to find a saved document, review it, add or remove requirements, and refine prompts without starting over.
Why use it?
It lets you change existing planning material while preserving what still matters and recording the changes.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is that0n3guy/mealie-mcp-server-ts's own configuration. It tells Claude Code how to work on mealie-mcp-server-ts 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 mealie-mcp-server-ts configures →

Reuse

Borrowing it

Nothing to install: this file belongs to that0n3guy/mealie-mcp-server-ts. 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/that0n3guy/mealie-mcp-server-ts/main/.claude/commands/clavix/refine.md
Clone the repo
git clone --depth 1 https://github.com/that0n3guy/mealie-mcp-server-ts

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 refine

README.md
[![agentmods](https://agentmods.dev/badge/commands/that0n3guy/mealie-mcp-server-ts/refine/github.svg)](https://agentmods.dev/commands/that0n3guy/mealie-mcp-server-ts/refine)
Your own site
<a href="https://agentmods.dev/commands/that0n3guy/mealie-mcp-server-ts/refine"><img src="https://agentmods.dev/badge/commands/that0n3guy/mealie-mcp-server-ts/refine/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 refine

Your own site · 80×15
<a href="https://agentmods.dev/commands/that0n3guy/mealie-mcp-server-ts/refine"><img src="https://agentmods.dev/badge/commands/that0n3guy/mealie-mcp-server-ts/refine.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 9,948 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.09948
Opus 5 $0.00000 $0.04974
Sonnet 5 $0.00000 $0.01990
Haiku 4.5 $0.00000 $0.00995

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

Security

Grade B, and why

refine scanned grade B with 1 finding 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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

**⚠️ Never tell the user a file was saved without verifying it exists.**
.claude/commands/clavix/refine.md · 1,410 lines

How it starts

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

Clavix: Update Your Work

Want to tweak your PRD or improve a saved prompt? Let's update what you already have without starting from scratch.


What This Does

When you run /clavix:refine, I:

  1. Find what you've got - Look for your PRDs and saved prompts
  2. Ask what to update - Which one do you want to refine?
  3. Load it up - Read what's there now
  4. Talk through changes - What do you want to add, change, or remove?
  5. Save the update - Keep track of what changed

We're improving what exists, not starting over.


CLAVIX MODE: Refinement

I'm in refinement mode. Updating existing stuff, not building new things.

What I'll do:

  • Find your existing PRDs and prompts
  • Ask which one to update
  • Show you what's there now
  • Talk through what you want to change
  • Save the updated version
  • Track what changed and what stayed the same

What I won't do:

  • Write code
  • Create brand new PRDs (use /clavix:prd for that)
  • Create brand new prompts (use /clavix:improve for that)
  • Change things without asking you first

We're tweaking what exists, not starting fresh.


Self-Correction Protocol

DETECT: If you find yourself doing any of these 6 mistake types:

Type What It Looks Like
1. Implementation Code Writing function/class definitions, creating components, generating API endpoints
2. Skipping Mode Selection Not asking user what to refine (PRD vs prompt) first
3. Not Loading Existing Content Making changes without reading current state first
4. Losing Requirements Removing existing requirements during refinement without user approval
5. Not Tracking Changes Failing to mark what was [ADDED], [MODIFIED], [REMOVED], [UNCHANGED]
6. Capability Hallucination Claiming features Clavix doesn't have, inventing workflows

STOP: Immediately halt the incorrect action

CORRECT: Output: "I apologize - I was [describe mistake]. Let me get back to refining your existing work."

Read the full file on GitHub · 1,410 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 · 1,410 lines · 0 tokens per session scan B 6745ad6c80c9

Subscribe to this mod's changes

refine is a command published in the GitHub repository that0n3guy/mealie-mcp-server-ts (0 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 9,948 tokens. A static security scan graded it B with 1 finding (subtle steering). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.