fix

fix is a command for Codex from KaelSensei/MagicAIBuilder. It costs 0 tokens per session (913 once invoked), scanned A, original, MIT.

An issue-fixing command that starts a defined workflow when you run `/fix` with a problem description.

In plain words
What is it for?
It helps analyze and resolve code or interface problems using screenshots, logs, stack traces, and other issue details.
Why use it?
It gathers project instructions, documentation, branch details, and supplied error evidence before investigating, reducing missed context during debugging.

Command for Codex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/kaelsensei/magicaibuilder/fix
Clone the repo
git clone --depth 1 https://github.com/KaelSensei/MagicAIBuilder

Made for: Codex.

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 fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/kaelsensei/magicaibuilder/fix.svg)](https://agentmods.dev/commands/kaelsensei/magicaibuilder/fix)
Your own site
<a href="https://agentmods.dev/commands/kaelsensei/magicaibuilder/fix"><img src="https://agentmods.dev/badge/commands/kaelsensei/magicaibuilder/fix.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 913 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00913
Opus 5 $0.00000 $0.00456
Sonnet 5 $0.00000 $0.00183
Haiku 4.5 $0.00000 $0.00091

Measured 4d ago against content hash f2095c952259, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fix 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 4d 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.

.agents/commands/fix.md · 125 lines

How it starts

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

Fix Command – Issue Resolution Workflow

When /fix <issue description> is invoked, immediately execute the following steps.


Step 1: Load Project Context

  1. Assume the project root as the working directory
  2. Load and respect all Cursor rules from .cursor/rules/*.mdc
  3. Read core project documentation if present:
    • README.md
    • PROGRESS.md
    • Architecture or task documents relevant to the issue
  4. Identify the current Git branch and assume it is a fix branch, not main
  5. Check for attachments (screenshots, error logs, stack traces, videos):
    • Analyze any visual evidence of the issue
    • Extract error messages, console output, or visual bugs from images
    • Review stack traces or debug information if provided
    • Use attachments to understand the exact failure scenario
    • If attachments show different issues than described, ask for clarification

Step 2: Understand the Issue

  1. Parse the issue description provided after /fix
  2. Incorporate context from any attached evidence:
    • Screenshots showing UI bugs or unexpected behavior
    • Error messages or console logs
    • Stack traces pointing to problematic code
    • Before/after comparisons
    • Network request failures or API errors
  3. Determine:
    • Is this a bug, security issue, regression, or logic flaw
    • Which layer is affected (React Native UI, SQLite, scraping, image caching, TypeScript)
  4. Locate the exact code paths involved
  5. Cross-reference visual evidence with code to pinpoint root cause
  6. Do not assume the fix — verify by reading the code first

Step 3: Security & Safety Check (Mandatory)

Before writing any code:

  1. Treat the issue as potentially security-sensitive
  2. Check for:
    • Backdoors or hidden logic
    • Unsafe external calls (only Moxfield/Scryfall should be called)
    • SQL injection risks
    • File system access issues
    • Dependency or supply-chain risks
  3. If attachments show suspicious behavior (unexpected network calls, unauthorized data access):
    • Investigate thoroughly before proceeding
    • Flag potential security implications
  4. Use MCP (Model Context Protocol) or equivalent security reasoning to:
    • Validate the fix does not introduce new vulnerabilities
    • Ensure no malicious patterns are added
  5. If security implications are unclear, stop and ask before proceeding

Read the full file on GitHub · 125 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. 4d ago First seen · 125 lines · 0 tokens per session scan A f2095c952259

Subscribe to this mod's changes

fix is a command published in the GitHub repository KaelSensei/MagicAIBuilder (2 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 913 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-31.

Related

Other commands, from other repositories

spec-plan

Step 4 of the Vibe-Spec workflow. Generate the high-level plan file for every phase in the V2 phase index, each with a scope + status header, so the user has a complete set of plan files to work from.

Connorrmcd6/vibe-spec · 49 tokens

spec-phases

Step 3 of the Vibe-Spec workflow. Break the V1 spec into sequential, self-contained phases and append a phase index, producing the final V2 spec.

Connorrmcd6/vibe-spec · 35 tokens

spec-secrets

Audit a Vibe-Spec app for secrets leaking to the browser. A locked-down, redacting command — a local script reads .env and the built bundle, and Claude only ever sees variable NAMES and pass/fail verdicts. Secret values never enter the model's context.

Connorrmcd6/vibe-spec · 57 tokens

spec-setup

Guided environment setup for the Vibe-Spec stack. Figures out which tools your project needs (from your spec, or by project type), checks what's missing, and helps you install only the gaps — proposing exact per-OS commands and running each only after you confirm.

Connorrmcd6/vibe-spec · 55 tokens

spec-doctor

Read-only environment health check for the Vibe-Spec stack. Detects your OS and reports which prerequisite tools (Git, Node, pnpm, Docker, uv) are installed, their versions, and what each is needed for. Installs nothing.

Connorrmcd6/vibe-spec · 51 tokens

spec-implement

Step 5 of the Vibe-Spec workflow. Promote a phase plan to detailed, implement it following the vibe-spec references, then update the docs so the spec reflects reality.

Connorrmcd6/vibe-spec · 36 tokens