pharmacy-mcp: Agent for Claude Code

.github/agents/code.agent.md

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

A coding agent that writes and changes software according to the project’s conventions and domain-driven design (DDD), an approach that organizes code around business concepts. It also follows a memory bank when the project has one.

In plain words
What is it for?
Use it to implement features, debug problems, refactor code, review improvements, and write tests while following the project’s DDD rules.
Why use it?
It reduces inconsistent code structure and keeps implementation decisions, current work, and progress recorded during significant changes. It can also help maintain separation between business logic, application logic, infrastructure, and presentation code.

Agent for Claude Code

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/pharmacy-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/pharmacy-mcp/main/.github/agents/code.agent.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/pharmacy-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/pharmacy-mcp/code/github.svg)](https://agentmods.dev/agents/u9401066/pharmacy-mcp/code)
Your own site
<a href="https://agentmods.dev/agents/u9401066/pharmacy-mcp/code"><img src="https://agentmods.dev/badge/agents/u9401066/pharmacy-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/pharmacy-mcp/code"><img src="https://agentmods.dev/badge/agents/u9401066/pharmacy-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 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.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

Copies of this mod

2 near-identical copies found in the catalogue:

  • code — 100% identical, 0 lines differ
  • code — 100% identical, 0 lines differ
.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/pharmacy-mcp (3 stars, last pushed 3mo 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.