academic-figures-mcp: Agent for Claude Code

.github/agents/debug.agent.md

debug is an agent for Claude Code from u9401066/academic-figures-mcp. It costs 33 tokens per session (442 once invoked), scanned A, a copy of debug, Apache-2.0.

A debugging agent that investigates software problems using error details, project structure, and the project's stored history of decisions.

In plain words
What is it for?
Use it to analyze stack traces, locate affected components, follow calls through application layers, and propose or implement fixes.
Why use it?
It helps trace failures to their root cause while keeping proposed fixes consistent with the system's existing design.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

This is u9401066/academic-figures-mcp's own configuration. It tells Claude Code how to work on academic-figures-mcp 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 academic-figures-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/academic-figures-mcp. 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/u9401066/academic-figures-mcp/main/.github/agents/debug.agent.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/academic-figures-mcp

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 debug

README.md
[![agentmods](https://agentmods.dev/badge/agents/u9401066/academic-figures-mcp/debug/github.svg)](https://agentmods.dev/agents/u9401066/academic-figures-mcp/debug)
Your own site
<a href="https://agentmods.dev/agents/u9401066/academic-figures-mcp/debug"><img src="https://agentmods.dev/badge/agents/u9401066/academic-figures-mcp/debug/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 debug

Your own site · 80×15
<a href="https://agentmods.dev/agents/u9401066/academic-figures-mcp/debug"><img src="https://agentmods.dev/badge/agents/u9401066/academic-figures-mcp/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 442 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 100% copy Near-identical to another mod 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.00033 $0.00442
Opus 5.5 $0.00013 $0.00177
Sonnet 5.5 $0.00007 $0.00088
Haiku 4.5 $0.00003 $0.00044

Measured 1mo ago against content hash d2218cb5273c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug 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 1mo 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.

Origin

This is a copy

100% identical to debug — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/agents/debug.agent.md · 57 lines

What it actually says

Debug Expert

You are a debugging expert for Academic Figures MCP. Your goal is to help users identify, analyze, and fix issues in the codebase while maintaining project integrity.

Memory Bank Status Rules

  1. Begin EVERY response with '[MEMORY BANK: ACTIVE]' or '[MEMORY BANK: INACTIVE]'.
  2. If memory-bank/ exists, read all files — especially decisionLog.md for historical context.
  3. Use system patterns to understand expected behavior.

Core Responsibilities

  1. Problem Analysis — Identify root causes, analyze stack traces
  2. Debugging Strategy — Systematic approaches, minimal reproduction
  3. Solution Implementation — Fix aligned with system patterns, add error handling

Debugging Workflow

  1. Read error message / stack trace carefully
  2. Check decisionLog.md for relevant architectural context
  3. Locate the component in DDD layers
  4. Trace the call chain: Presentation → Application → Domain/Infrastructure
  5. Identify root cause and propose fix
  6. Update Memory Bank with debugging findings

Project Context

Product Context

{{memory-bank/productContext.md}}

Active Context

{{memory-bank/activeContext.md}}

System Patterns

{{memory-bank/systemPatterns.md}}

Decision Log

{{memory-bank/decisionLog.md}}

Progress

{{memory-bank/progress.md}}

Guidelines

  1. Systematically analyze before implementing solutions
  2. Consider broader system impact
  3. Document findings and solutions
  4. Add tests to prevent regression
  5. Update Memory Bank with new insights
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. 1mo ago First seen · 57 lines · 33 tokens per session scan A d2218cb5273c

Subscribe to this mod's changes

debug is an agent published in the GitHub repository u9401066/academic-figures-mcp (1 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 33 tokens to every session and 442 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to debug, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

memory-curator

Audits your memory directory for orphans, phantom references, index drift, broken wiki-links, stale entries, and near-duplicates. Writes a dated health report. Use on-demand (a monthly cadence works well) once your memory store has grown enough that drift between the index and the files is plausible.

faizkhairi/claude-code-blueprint · 65 tokens

fec-performance-optimizer

Front-end performance analysis and optimization specialization: Core Web Vitals, packaging volume, runtime and rendering, network and cache, memory leak troubleshooting; can cooperate with Lighthouse, Bundle analysis and Profiler. Use it when users mention page slowness, lag, first screen, package size, poor…

bovinphang/frontend-craft · 72 tokens

developers

VP of Engineering who leads six skills — superpowers (engineering protocols), context7 (live library docs), mcp-builder (MCP servers), skill-creator (new skills), webapp-testing (browser QA), claude-mem (persistent memory). Use PROACTIVELY for any coding, debugging, testing, docs-lookup, MCP-server, skill-authoring or…

alebgl77/claude-inc · 124 tokens

codebase-analyzer

Analyzes codebases and maintains persistent knowledge in .claude/CODEBASE.md. Creates institutional memory through full scans or delta updates. Identifies architecture, patterns, smells, and decisions. Use for initial codebase understanding or updating analysis after changes.

catch-the-wave/fullstack-ios-claude-skills · 55 tokens

timps_context_briefing

Get a 3-sentence resumption briefing from the Context Keeper: what you were working on, current state (uncommitted changes, broken tests), and recommended next step. Use when the user says 'what was I doing' or 'catch me up'. Use the timpscontextbriefing MCP tool to perform this task. Do not answer directly — delegate…

Sandeeprdy1729/timps-swarm · 88 tokens

code-intelligence

A subagent that uses Open Kioku to answer questions about the codebase with precision. Invoke when asked to explain code, find usages, trace a bug, or assess the impact of a change.

shivyadavus/open-kioku · 44 tokens