Appwrite SDK Generator is a PHP library that creates software development kits for multiple programming languages and platforms from API specifications. It helps developers produce client libraries with services, methods, models, enums, and related types from formats such as OpenAPI.
Borrowing it
Nothing to install: this file belongs to appwrite/sdk-generator. 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/appwrite/sdk-generator/main/AGENTS.mdgit clone --depth 1 https://github.com/appwrite/sdk-generatorWrote 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/instructions/appwrite/sdk-generator/agents-md)<a href="https://agentmods.dev/instructions/appwrite/sdk-generator/agents-md"><img src="https://agentmods.dev/badge/instructions/appwrite/sdk-generator/agents-md/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/instructions/appwrite/sdk-generator/agents-md"><img src="https://agentmods.dev/badge/instructions/appwrite/sdk-generator/agents-md.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.04433 | $0.04433 |
| Opus 5.5 | $0.01773 | $0.01773 |
| Sonnet 5.5 | $0.00887 | $0.00887 |
| Haiku 4.5 | $0.00443 | $0.00443 |
Grade C, and why
sdk-generator AGENTS.md scanned grade C 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 6d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf examples/dart examples/flutter How it starts
The opening of the file, as written. The whole thing — 392 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agents Guide — SDK Generator
This file provides guidance for AI agents (Claude Code and subagents) working in this repository.
Critical Rules for Agents
Rule 1: Always regenerate after template edits
Templates are not used directly — they're rendered at generation time. The examples/ folder is the ground truth for what the generator actually produces. Always regenerate after making template changes.
Rule 2: New files require getFiles() registration
The generator does not auto-discover templates. Every output file must have an explicit entry in the getFiles(): array method of the corresponding Language class. Forgetting this means the file silently doesn't get generated.
Rule 3: Check language inheritance before changing parent templates
| Parent | Children affected |
|---|---|
JS |
Web |
Web |
Node, ReactNative |
Dart |
Flutter |
Swift |
Apple |
Kotlin |
Android |
Go |
CLI |
Modifying a parent's template or getFiles() affects all children. Regenerate and verify child SDKs too.
One coupling is not visible in the hierarchy.
templates/cli/install.sh.twig and templates/cli/install.ps1.twig build every download
URL from language.params.npmPackage. The same parameter names release assets produced
by .goreleaser.yaml and consumed by the Scoop manifest and npm platform packages.
Change the asset naming in one place and all four must move together.
Regenerate the CLI after changing any of them:
php example.php cli
Rule 4: copy scope = no Twig processing
Files with 'scope' => 'copy' are copied verbatim — no variable substitution happens. If your new file needs template variables, use 'scope' => 'default' (or service, method, etc.).
Rule 5: Destination paths are also Twig templates
The destination string in each getFiles() entry supports Twig expressions and filters:
'destination' => 'src/Services/{{ service.name | caseCamel }}.php',
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.
- 6d ago Changed · +2 lines · +194 tokens per session 1b6cf4e737b4
- 17d ago Changed 5b809bef1757
- 19d ago Changed · -4 tokens per session 78aedcdcc968
- 1mo ago Changed 3dfd7f67c7b9
- 1mo ago Changed · +6 lines · +263 tokens per session 2362c3a234d8
- 2mo ago First seen · 384 lines · 3,980 tokens per session scan C d9765d49edf4
sdk-generator AGENTS.md is an instructions file published in the GitHub repository appwrite/sdk-generator (329 stars, last pushed yesterday), licensed MIT. It adds 4,433 tokens to every session, about $0.0177 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
sdk-generator AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sdk-generator AGENTS.mdappwrite/sdk-generator | Instructions file | 329 | yesterday | MIT | C | 4,433 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |