Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/gemvc/gemvc/cursorrulesgit clone --depth 1 https://github.com/gemvc/gemvcWhat 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 | $0.01588 | $0.01588 |
| Opus 5 | $0.00794 | $0.00794 |
| Sonnet 5 | $0.00318 | $0.00318 |
| Haiku 4.5 | $0.00159 | $0.00159 |
Grade A, and why
cursorrules 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 yesterday.
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.
- Prefer `gemvc/helper` (TypeChecker, CryptHelper, …) and `gemvc/http-client` (outbound HTTP) — never invent Laravel validators or curl wrappers How it starts
The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GEMVC Framework - AI Assistant Context
Root AI front door (this file). Depth: docs/AGENTS.md · Claude: docs/CLAUDE.md · Antigravity: docs/GEMINI.md · map: llms.txt
Read first: docs/ai/INDEX.md → docs/ai/CANONICAL.md → docs/ai/CORE_REFERENCE.md
Packages: docs/guides/ecosystem.md — GEMVC is a multi-package ecosystem (vendor/gemvc/*). Core: gemvc/helper, gemvc/http-client (see docs/guides/helper.md, docs/guides/http-client.md).
GEMVC is NOT Laravel or Symfony. IT IS GEMVC (NOT MVC) 4 Layer Architect Server-agnostic PHP REST API (Apache / OpenSwoole / Nginx / FrankenPHP). Version 5.16.0.
4-Layer Pattern (strongly recommended)
API (app/api/) → Controller → Model (app/model/) → Table / ViewTable (app/table/)
Runtime allows bypassing a layer; do not for normal HTTP services. Flexibility is inside layers, not skipping them.
Naming: User.php, UserController.php, UserModel.php, UserTable.php.
Views: UserAccessTable extends ViewTable (defineView(), flat column aliases).
URL (Apache/Nginx/FrankenPHP): /api/{Service}/{method}. OpenSwoole: SERVICE_IN_URL_SECTION / METHOD_IN_URL_SECTION (no automatic api hop). No routes files. FrankenPHP path deny = Caddyfile (not .htaccess) — docs/guides/frankenphp.md.
_properties ignored in CRUD (aggregations)protectedproperties: still DB columns (still in SQLSELECT *hydration); hidden from typical list/API payloads /createListdefaults — prefer explicit column lists- Property names = DB columns (or view SELECT aliases on
ViewTable)
Hard Do / Don't
DO
- Extend
ApiService(public) orProtectedApiService(authenticated — all servers). Deprecated:SwooleApiService/ProtectedSwooleApiService definePostSchema/defineGetSchemabefore using post/get datacallController()in API +createModel()in Controller (all servers)requireInternalService()for family-only routes (GEMVC_INTERNAL_SECRETHMAC)- Sibling mesh:
ServiceCall::to(...)->withInternalTrust()(GEMVC_SERVICES_JSON) — http-client.md - Prefer
Protected*over manually forgetting$this->requireAuth()on CRUD services requireAuth(['role'])still valid on public bases when you need a custom constructor flowrequireRateLimit()uses globalREQUEST_RATE_LIMIT_DRIVER; overrides:requireRateLimitApcu|Redis|Both()(no auto-fallback)- Global rate limit:
REQUEST_RATE_LIMIT_PER_SEC+DRIVERin.env— BootstrapenforceFromEnv - Money:
public string+$_type_mapdecimal+decimalValuePost(); concurrent:beginTransaction+forUpdate+ BCMath on$this(not hydrated rows / not raw PDO) - Prefer
gemvc/helper(TypeChecker, CryptHelper, …) andgemvc/http-client(outbound HTTP) — never invent Laravel validators or curl wrappers - Prefer
createList+ APIfindable/filterable/sortablefor lists (not hand-rolled filter SQL) - SQL views:
ViewTable+defineView()/viewDependsOn(); migrate withgemvc db:migrateor--all - Treat
Schema::primary/autoIncrementas not migrate DDL today (PK from propertyid/setPrimaryKey)
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.
- yesterday First seen · 115 lines · 1,588 tokens per session scan A 62ea4f465ab0
cursorrules is a cursor rule published in the GitHub repository gemvc/gemvc (22 stars, last pushed 7d ago), licensed MIT. It adds 1,588 tokens to every session, about $0.0079 per session on Opus 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-30.
Other cursor rules, from other repositories
git
Never mutate git history, remotes, or GitHub repo state.
css
TSF stylesheet conventions, layout debugging, and minification.
javascript
TSF JavaScript syntax, formatting, and minification.
local
Private workspace guidance and gitignored .local search (Grep/Glob are blind).
docs
Readme wording constraints, WordPress readme format, changelog prose style, and public API naming requirements.
core
Repository coding standards and conventions for AI assistants.