graphdo-ts: Agent for Claude Code

.github/agents/graphdo-tool-developer.agent.md

graphdo Tool Developer is an agent for Claude Code from co-native-ab/graphdo-ts. It costs 41 tokens per session (2,493 once invoked), scanned A, original, MIT.

A coding assistant for adding MCP tools to graphdo-ts. MCP, or Model Context Protocol, is a standard way for AI applications to call tools provided by another program.

In plain words
What is it for?
Use it to add a tool that wraps a Microsoft Graph endpoint, add commands to an existing tool group, or add Graph operations for a service that is already mocked.
Why use it?
A new tool must be connected to the Graph operation, registered with the server, given its dependencies, and tested. This assistant lays out the project's required five-step pattern so a piece is less likely to be missed.

Agent for Claude Code

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

This is co-native-ab/graphdo-ts's own configuration. It tells Claude Code how to work on graphdo-ts 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 graphdo-ts configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { GraphClient } from "../graph/client.js";.

Reuse

Borrowing it

Nothing to install: this file belongs to co-native-ab/graphdo-ts. 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/co-native-ab/graphdo-ts/main/.github/agents/graphdo-tool-developer.agent.md
Clone the repo
git clone --depth 1 https://github.com/co-native-ab/graphdo-ts

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 graphdo Tool Developer

README.md
[![agentmods](https://agentmods.dev/badge/agents/co-native-ab/graphdo-ts/graphdo-tool-developer/github.svg)](https://agentmods.dev/agents/co-native-ab/graphdo-ts/graphdo-tool-developer)
Your own site
<a href="https://agentmods.dev/agents/co-native-ab/graphdo-ts/graphdo-tool-developer"><img src="https://agentmods.dev/badge/agents/co-native-ab/graphdo-ts/graphdo-tool-developer/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 graphdo Tool Developer

Your own site · 80×15
<a href="https://agentmods.dev/agents/co-native-ab/graphdo-ts/graphdo-tool-developer"><img src="https://agentmods.dev/badge/agents/co-native-ab/graphdo-ts/graphdo-tool-developer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,493 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00041 $0.02493
Opus 5.5 $0.00016 $0.00997
Sonnet 5.5 $0.00008 $0.00499
Haiku 4.5 $0.00004 $0.00249

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

Security

Grade A, and why

graphdo Tool Developer scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `fetch(url, ...)` directly | `client.request<T>(method, path)` |
.github/agents/graphdo-tool-developer.agent.md · 298 lines

How it starts

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

graphdo Tool Developer

You are an expert in the graphdo-ts codebase. Your job is to help add new MCP tools following the project's established patterns precisely.

Always read AGENTS.md in full before making any changes. It is the authoritative reference for all conventions.

When to Use This Agent

  • Adding a new MCP tool that wraps a Microsoft Graph API endpoint
  • Adding new sub-commands to an existing tool group
  • Adding Graph operations for a surface that is already mocked

The 5-Step Pattern

Every new tool follows this exact sequence. Complete each step before moving to the next.


Step 1: Add Graph Operation (src/graph/)

Create or extend a file in src/graph/. Model after src/graph/mail.ts:

import type { GraphClient } from "./client.js";
import type { NewEntity } from "./types.js";

// Read operation
export async function getNewEntity(client: GraphClient, entityId: string): Promise<NewEntity> {
  return client.request<NewEntity>("GET", `/me/some/resource/${entityId}`);
}

// Write operation
export async function createNewEntity(
  client: GraphClient,
  body: { displayName: string },
): Promise<NewEntity> {
  return client.request<NewEntity>("POST", "/me/some/resource", body);
}

// Delete operation (Graph DELETE returns 204 with no body)
export async function deleteNewEntity(client: GraphClient, entityId: string): Promise<void> {
  await client.request<void>("DELETE", `/me/some/resource/${entityId}`);
}

Rules:

  • All Graph API calls go through client.request<T>(method, path, body?) — never use fetch directly
  • GraphRequestError is thrown automatically on non-2xx responses — no manual error checking needed
  • Use GraphListResponse<T> from src/graph/types.ts for collection endpoints: client.request<GraphListResponse<T>>("GET", path)
  • Use $top and $skip query params for pagination (see src/graph/todo.ts for examples)
  • DELETE returns void — type the generic as void

Step 2: Add TypeScript Types (src/graph/types.ts)

Read the full file on GitHub · 298 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. 1mo ago First seen · 298 lines · 41 tokens per session scan A b8ca6e73e799

Subscribe to this mod's changes

graphdo Tool Developer is an agent published in the GitHub repository co-native-ab/graphdo-ts (1 stars, last pushed 2mo ago), licensed MIT. It adds 41 tokens to every session and 2,493 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.