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/verdikta/verdikta-applications/api-conventionsgit clone --depth 1 https://github.com/verdikta/verdikta-applicationsWrote 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/rules/verdikta/verdikta-applications/api-conventions)<a href="https://agentmods.dev/rules/verdikta/verdikta-applications/api-conventions"><img src="https://agentmods.dev/badge/rules/verdikta/verdikta-applications/api-conventions.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.01300 |
| Opus 5 | $0.00000 | $0.00650 |
| Sonnet 5 | $0.00000 | $0.00260 |
| Haiku 4.5 | $0.00000 | $0.00130 |
Grade A, and why
api-conventions 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 228 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Conventions
Endpoint Structure
Job Management API
POST /api/jobs/create - Create new job
GET /api/jobs - List jobs (with filters)
GET /api/jobs/:jobId - Get job details
POST /api/jobs/:jobId/submit - Submit work
GET /api/jobs/:jobId/submissions - Get all submissions
Response Format
Always return JSON with consistent structure:
Success Response:
{
"success": true,
"data": { ... },
"message": "Operation completed successfully"
}
Error Response:
{
"error": "Error category",
"details": "Specific error message",
"code": "ERROR_CODE" // optional
}
Request Validation
Always Validate
- Required fields presence
- Data types
- Value ranges (e.g., threshold 0-100)
- String lengths (e.g., narrative max 200 words)
- File sizes and types
- Ethereum addresses (0x + 40 hex chars)
Example Validation Pattern
// Validate required fields
if (!field1 || !field2) {
return res.status(400).json({
error: 'Missing required fields',
details: 'field1 and field2 are required'
});
}
// Validate ranges
if (threshold < 0 || threshold > 100) {
return res.status(400).json({
error: 'Invalid threshold',
details: 'Threshold must be between 0 and 100'
});
}
// Validate word count
const wordCount = text.trim().split(/\s+/).length;
if (wordCount > 200) {
return res.status(400).json({
error: 'Text too long',
details: `Must be 200 words or less (current: ${wordCount})`
});
}
File Upload Patterns
Multer Configuration
const storage = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, path.join(__dirname, '../tmp'));
},
filename: (req, file, cb) => {
const uniqueSuffix = `${Date.now()}-${Math.round(Math.random() * 1E9)}`;
cb(null, `${uniqueSuffix}-${file.originalname}`);
}
});
const upload = multer({
storage,
fileFilter: (req, file, cb) => {
if (isValidFileType(file.mimetype, file.originalname)) {
cb(null, true);
} else {
cb(new Error(`Invalid file type: ${file.mimetype}`));
}
},
limits: {
fileSize: MAX_FILE_SIZE,
files: 10
}
}).array('files', 10);
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.
- 4d ago First seen · 228 lines · 1,300 tokens per session scan A eba00cefbba4
api-conventions is a cursor rule published in the GitHub repository verdikta/verdikta-applications (24 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,300 tokens. 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-30.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.