Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/verdikta/verdikta-applicationsnpx agentmods add rules/verdikta/verdikta-applications/api-conventionsWrote 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/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/rules/verdikta/verdikta-applications/api-conventions"><img src="https://agentmods.dev/badge/rules/verdikta/verdikta-applications/api-conventions.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.01300 | $0.01300 |
| Opus 5.5 | $0.00520 | $0.00520 |
| Sonnet 5.5 | $0.00260 | $0.00260 |
| Haiku 4.5 | $0.00130 | $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 3mo 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.
- 3mo 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 (61 stars, last pushed today), licensed MIT. It adds 1,300 tokens to every session, about $0.0052 per session on Opus 5.5. 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.
api-conventions compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-conventionsverdikta/verdikta-applications | Cursor rule | 61 | today | MIT | A | 1,300 | Cursor |
| djangosanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 9d ago | CC0-1.0 | A | 2,043 | Cursor |
| api-property-optionality-hygienenovuhq/novu | Cursor rule | 40k | today | none | A | 0 | Cursor |
| cursormrwogu/promptscript | Cursor rule | 324 | yesterday | MIT | A | 53 | Cursor |
| pythonPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 734 | Cursor |
| gosupertokens/create-supertokens-app | Cursor rule | 24 | 6d ago | Apache-2.0 | A | 0 | Cursor |
| ehs-ims-conventionsSafetyMP/Autonomous-EHS-Management | Cursor rule | 9 | 3d ago | Apache-2.0 | A | 722 | Cursor |