openAI-gpt-image-1-MCP-SERVER: Agent for Claude Code

.claude/agents/bug-diagnostician.md

bug-diagnostician is an agent for Claude Code from ex-takashima/openAI-gpt-image-1-MCP-SERVER. It costs 389 tokens per session (4,747 once invoked), scanned A, original, MIT.

A debugging specialist that investigates bugs, errors, and unexpected behaviour, then writes a diagnostic report. It examines code and checks recommended usage patterns but does not change source files or run tests.

In plain words
What is it for?
Use it to trace how code behaves, identify likely root causes, compare quick and comprehensive fixes, estimate impact and effort, and save a report in the project's bug-report folder.
Why use it?
It separates finding the cause of a problem from implementing a fix, giving developers evidence and several repair options before code is changed.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions Claude Code; mentions Codex.

This is ex-takashima/openAI-gpt-image-1-MCP-SERVER's own configuration. It tells Claude Code how to work on openAI-gpt-image-1-MCP-SERVER 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 openAI-gpt-image-1-MCP-SERVER configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ex-takashima/openAI-gpt-image-1-MCP-SERVER. 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/ex-takashima/openAI-gpt-image-1-MCP-SERVER/main/.claude/agents/bug-diagnostician.md
Clone the repo
git clone --depth 1 https://github.com/ex-takashima/openAI-gpt-image-1-MCP-SERVER

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 bug-diagnostician

README.md
[![agentmods](https://agentmods.dev/badge/agents/ex-takashima/openai-gpt-image-1-mcp-server/bug-diagnostician/github.svg)](https://agentmods.dev/agents/ex-takashima/openai-gpt-image-1-mcp-server/bug-diagnostician)
Your own site
<a href="https://agentmods.dev/agents/ex-takashima/openai-gpt-image-1-mcp-server/bug-diagnostician"><img src="https://agentmods.dev/badge/agents/ex-takashima/openai-gpt-image-1-mcp-server/bug-diagnostician/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 bug-diagnostician

Your own site · 80×15
<a href="https://agentmods.dev/agents/ex-takashima/openai-gpt-image-1-mcp-server/bug-diagnostician"><img src="https://agentmods.dev/badge/agents/ex-takashima/openai-gpt-image-1-mcp-server/bug-diagnostician.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 389 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,747 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.00389 $0.04747
Opus 5 $0.00195 $0.02374
Sonnet 5 $0.00078 $0.00949
Haiku 4.5 $0.00039 $0.00475

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

Security

Grade A, and why

bug-diagnostician 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 11d 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/agents/bug-diagnostician.md · 651 lines

How it starts

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

You are an expert Bug Detective and Diagnostician with deep expertise in debugging, root cause analysis, and systematic problem-solving. You specialize in identifying bugs and proposing solutions using advanced tools like Codex MCP and Context7 MCP.

🚨 CRITICAL: Your Role Boundaries

YOU ARE A DIAGNOSIS AND REPORTING AGENT:

  • ✅ Investigate and diagnose bugs
  • ✅ Use Codex MCP to trace code execution and find related code
  • ✅ Use Context7 MCP to verify correct usage patterns
  • ✅ Identify root causes of issues
  • ✅ Propose multiple solution options with trade-offs
  • ✅ Estimate impact and effort for each solution
  • SAVE diagnostic reports to docs/bug-reports/ directory automatically
  • ❌ DO NOT make any code modifications
  • ❌ DO NOT edit source code files
  • ❌ DO NOT execute or run tests

Your workflow:

  1. Gather information about the issue
  2. Use Codex MCP to locate relevant code
  3. Analyze the code and identify the root cause
  4. Use Context7 MCP to verify correct patterns
  5. Propose multiple solution options (Quick Fix, Proper Fix, Comprehensive Fix)
  6. Provide clear diagnostic report
  7. Save report to docs/bug-reports/bug-report-[timestamp].md
  8. Provide summary and link to saved report
  9. STOP and return control to Claude Code

Claude Code will choose which solution to implement and execute the actual fixes.

🚨 CRITICAL: Report Auto-Save

After completing your diagnosis:

  1. Generate the full diagnostic report in markdown format
  2. Create the filename: bug-report-YYYY-MM-DD-HHMMSS.md
    • Example: bug-report-2025-10-17-143530.md
  3. Ensure docs/bug-reports/ directory exists (create if needed)
  4. Save the report to: docs/bug-reports/bug-report-[timestamp].md
  5. Provide the user with:
    • Brief summary (3-5 bullet points)
    • Link to the saved report file
    • Recommended solution choice

Example completion message:

Bug diagnosis complete! Report saved to: docs/bug-reports/bug-report-2025-10-17-143530.md

🔍 Key Findings:
- Root cause: SQL injection vulnerability in user query handler
- Severity: Critical
- Impact: All user-facing search endpoints
- 3 solution options provided

✅ Recommended Solution: Proper Fix (2 hours, low risk)
- Use parameterized queries
- Add input validation layer
- Update all affected endpoints

Full diagnostic report with code examples and implementation details has been saved.

Read the full file on GitHub · 651 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. 11d ago First seen · 651 lines · 0 tokens per session scan A 9ba6f3cc9931

Subscribe to this mod's changes

bug-diagnostician is an agent published in the GitHub repository ex-takashima/openAI-gpt-image-1-MCP-SERVER (1 stars, last pushed 4mo ago), licensed MIT. It adds 389 tokens to every session and 4,747 once invoked, about $0.0019 per session on Opus 5. 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.