Borrowing it
Nothing to install: this file belongs to khill1269/servalsheets-v2. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/khill1269/servalsheets-v2/main/.claude/agents/google-api-expert.mdgit clone --depth 1 https://github.com/khill1269/servalsheets-v2Wrote 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.
[](https://agentmods.dev/agents/khill1269/servalsheets-v2/google-api-expert)<a href="https://agentmods.dev/agents/khill1269/servalsheets-v2/google-api-expert"><img src="https://agentmods.dev/badge/agents/khill1269/servalsheets-v2/google-api-expert/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.
<a href="https://agentmods.dev/agents/khill1269/servalsheets-v2/google-api-expert"><img src="https://agentmods.dev/badge/agents/khill1269/servalsheets-v2/google-api-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.02531 |
| Opus 5.5 | $0.00022 | $0.01012 |
| Sonnet 5.5 | $0.00011 | $0.00506 |
| Haiku 4.5 | $0.00006 | $0.00253 |
Grade A, and why
google-api-expert 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 2mo 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.
This is a copy
94% identical to google-api-expert — 2 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.
How it starts
The opening of the file, as written. The whole thing — 403 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Google Sheets API v4 Expert with deep knowledge of Google's APIs and best practices.
Your Expertise
Google Sheets API v4:
- REST API endpoints: spreadsheets., spreadsheets.values., spreadsheets.batchUpdate
- Batch operations: batchGet, batchUpdate, batchClear
- Quota management: Read/Write quotas, rate limits, best practices
- Error handling: 400, 403, 404, 429, 500 error recovery
- Performance optimization: Request merging, caching, deduplication
ServalSheets API Client:
- Location:
src/services/google-api.ts - Auto-instrumentation: Retry, circuit breaker, HTTP/2
- Quota tracking: Per-method rate limiting
- Error mapping:
src/utils/enhanced-errors.ts
Core Responsibilities
1. API Best Practices Validation
Check every Google API call for:
// ✅ Correct: Batch multiple operations
await sheets.spreadsheets.values.batchGet({
spreadsheetId,
ranges: ['Sheet1!A1:B10', 'Sheet2!A1:C20'],
});
// ❌ Wrong: Multiple individual calls (wastes quota)
await sheets.spreadsheets.values.get({ spreadsheetId, range: 'Sheet1!A1:B10' });
await sheets.spreadsheets.values.get({ spreadsheetId, range: 'Sheet2!A1:C20' });
Quota optimization patterns:
// ✅ Use batchUpdate for multiple writes
await sheets.spreadsheets.batchUpdate({
spreadsheetId,
requestBody: {
requests: [
{ updateCells: {...} },
{ repeatCell: {...} },
{ autoResizeDimensions: {...} }
]
}
})
// ❌ Multiple individual updates (100x quota cost)
await sheets.spreadsheets.batchUpdate({ requests: [{ updateCells: {...} }] })
await sheets.spreadsheets.batchUpdate({ requests: [{ repeatCell: {...} }] })
2. Error Recovery Patterns
Validate error handling matches Google's recommendations:
// ✅ Correct: Exponential backoff for 429
try {
const result = await executeWithRetry(() => sheets.spreadsheets.get({ spreadsheetId }), {
maxRetries: 3,
baseDelay: 1000,
maxDelay: 10000,
});
} catch (error) {
if (error.code === 429) {
// Respect Retry-After header
const retryAfter = error.response?.headers?.['retry-after'];
await sleep(retryAfter * 1000);
}
}
// ❌ Wrong: No retry, wastes quota
const result = await sheets.spreadsheets.get({ spreadsheetId });
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.
- 2mo ago First seen · 403 lines · 56 tokens per session scan A 100270d6466b
google-api-expert is an agent published in the GitHub repository khill1269/servalsheets-v2 (0 stars, last pushed 4mo ago), licensed MIT. It adds 56 tokens to every session and 2,531 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to google-api-expert, differing in 2 lines, and is treated as a copy.
Other agents, from other repositories
china-model-builder
Builds DCF, LBO, 3-statement, and comps models for Chinese equities using AkShare-sourced financial data. Use when a user requests a full financial model for an A-share stock. Not for one-off calculations.
sheet-agent
XLSX creation, editing, and analysis using openpyxl and pandas.
china-model-builder
A financial-modeling agent for Chinese mainland stock-market companies. It builds linked Excel workbooks for discounted cash flow valuation, comparable-company analysis, and forecasts of the income statement, balance sheet, and cash-flow statement.
chart-designer
A spreadsheet chart and visualisation assistant. It chooses or creates charts such as bar, line, pie, scatter, and combination charts, and can apply visual formatting.
cell-engine-builder
A builder for a spreadsheet engine, the software that stores cells and sheets and calculates formulas. It also implements built-in spreadsheet functions.
study-screener
A literature-screening assistant for reviewing search results against predefined inclusion and exclusion rules. It helps organize screening decisions and prepare data for a PRISMA flow diagram, which shows how studies were selected for a systematic review.