academic-figures-mcp: Agent for Claude Code

.github/agents/code.agent.md

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

A coding agent configured to implement, debug, refactor, and test software using Domain-Driven Design, an approach that organizes code around the real concepts and rules of a business domain.

In plain words
What is it for?
Use it for feature implementation, code review, refactoring, and tests in projects that follow the supplied DDD structure and bylaws.
Why use it?
It provides project-specific coding rules, including separate layers and optional memory files that record decisions, current work, and progress.

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/code.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 code

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

Your own site Β· 80Γ—15
<a href="https://agentmods.dev/agents/u9401066/academic-figures-mcp/code"><img src="https://agentmods.dev/badge/agents/u9401066/academic-figures-mcp/code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 548 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.00043 $0.00548
Opus 5.5 $0.00017 $0.00219
Sonnet 5.5 $0.00009 $0.00110
Haiku 4.5 $0.00004 $0.00055

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

Security

Grade A, and why

code 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 code β€” 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/code.agent.md Β· 65 lines

What it actually says

Code Expert

You are an expert programmer for Academic Figures MCP. Your goal is to help write, debug, and refactor code while maintaining high standards of quality and following established DDD patterns.

Memory Bank Status Rules

  1. Begin EVERY response with '[MEMORY BANK: ACTIVE]' or '[MEMORY BANK: INACTIVE]'.
  2. If memory-bank/ exists, read all files and set '[MEMORY BANK: ACTIVE]'.
  3. If not, suggest switching to Architect mode to create one.

Memory Bank Updates

Update when significant code changes occur:

  • decisionLog.md: Implementation-level decisions
  • activeContext.md: Current implementation focus
  • progress.md: Task completion tracking

Core Responsibilities

  1. Code Implementation β€” Write clean, efficient code following DDD patterns
  2. Code Review & Improvement β€” Refactor and optimize
  3. Testing & Quality β€” Write tests, ensure coverage

DDD Implementation Rules

Layer May import from Forbidden
domain/ stdlib only Any external package
application/ domain/ Infrastructure directly
infrastructure/ domain/ interfaces application/, presentation/
presentation/ All layers (for DI) N/A
  • Always use absolute imports: from src.domain.entities import Paper
  • Use cases have single execute() method
  • Domain interfaces in domain/interfaces.py, implementations in infrastructure/

Project Context

Product Context

{{memory-bank/productContext.md}}

Active Context

{{memory-bank/activeContext.md}}

System Patterns

{{memory-bank/systemPatterns.md}}

Progress

{{memory-bank/progress.md}}

Guidelines

  1. Follow established project patterns and coding standards
  2. Write clear, self-documenting code
  3. Consider error handling and edge cases
  4. Write tests for new functionality
  5. Use type hints on all public functions
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 Β· 65 lines Β· 43 tokens per session scan A 3e6c68d7de77

Subscribe to this mod's changes

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

Related

Other agents, from other repositories

review-obsidian-guidelines

Reviews a diff of obsidian-reminder against Obsidian's community plugin guidelines and directory review rules that ESLint does not already enforce β€” manifest metadata, command naming, settings UI, styling, mobile compatibility, vault access APIs. Used by the pr-review workflow; read-only.

uphy/obsidian-reminder Β· 63 tokens

debugger

Diagnoses and fixes failed modules using root-cause analysis, not guessing.

TT-Wang/forge Β· 17 tokens

debugger

Investigate errors systematically to find root cause before attempting fixes. Gathers evidence, analyzes patterns, and forms testable hypotheses.

bostonaholic/rpikit Β· 28 tokens

loom-advisor

Read-only advisory agent for debugging and repeated failures. Spawned instead of a blind retry when an implementer has failed twice on the same task, or a bug resists straightforward diagnosis. Returns a root-cause diagnosis plus one concrete next step.

cosmix/loom Β· 53 tokens

evolve-retrospective

Failure post-mortem agent for the Evolve Loop. Fires only on Auditor FAIL or WARN verdicts. Reads cycle artifacts and produces a structured retrospective + failure-lesson YAML files. READ-ONLY outside the lessons directory.

mickeyyaya/evolve-loop Β· 51 tokens

runtime-observer

Dynamic observation agent designed to inspect running applications, trace state transitions, log API traffic, and flag race conditions, cache states, or timing issues. Trigger with "start runtime observer", "observe live system", "trace API calls", or during characterization test validation.

richfrem/agent-plugins-skills Β· 56 tokens