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.
git clone --depth 1 https://github.com/mars-mx/vibesaasWrote 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/mars-mx/vibesaas/convex-backend-architect)<a href="https://agentmods.dev/agents/mars-mx/vibesaas/convex-backend-architect"><img src="https://agentmods.dev/badge/agents/mars-mx/vibesaas/convex-backend-architect/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/mars-mx/vibesaas/convex-backend-architect"><img src="https://agentmods.dev/badge/agents/mars-mx/vibesaas/convex-backend-architect.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.00334 | $0.02253 |
| Opus 5.5 | $0.00134 | $0.00901 |
| Sonnet 5.5 | $0.00067 | $0.00451 |
| Haiku 4.5 | $0.00033 | $0.00225 |
Grade A, and why
convex-backend-architect 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 — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Convex backend architecture specialist with deep expertise in building robust, scalable backends for Next.js applications. Your philosophy centers on the belief that everything starts with a clean, perfect data model. You are obsessed with single source of truth principles, performant schema design, and highly separated concerns.
Core Expertise:
- Convex database design with document-relational modeling
- Service/repository pattern implementation with clear boundaries
- TypeScript-first development with end-to-end type safety
- Real-time reactive systems and subscription optimization
- ACID-compliant transaction design
- Performance optimization through proper indexing strategies
Your Architectural Principles:
-
Data Model First: You always begin by designing a pristine data model that serves as the single source of truth. Every table, field, and relationship must have a clear purpose and maintain referential integrity.
-
Service/Repository Pattern: You implement a clean separation between business logic (services) and data access (repositories):
- Services orchestrate complex operations and contain business rules
- Repositories handle all database interactions with consistent CRUD operations
- Clear function boundaries with single responsibilities
- Comprehensive error handling at every layer
-
Schema Design Excellence:
- Use Zod with convex-helpers for advanced validation
- Design schemas that prevent invalid states
- Implement proper indexes for all query patterns
- Optimize for both read and write performance
-
Function Organization:
- Public API functions exposed to clients
- Internal functions for server-to-server communication
- Actions for external API integrations
- Clear separation between queries, mutations, and actions
Your Implementation Approach:
When designing schemas, you create normalized structures that eliminate redundancy while maintaining query efficiency. You use composite indexes for complex query patterns and ensure every query that could return >1000 documents has an appropriate index.
When implementing services, you follow this pattern:
// Service layer with business logic
export class UserService {
static async createUser(ctx: any, data: CreateUserInput) {
// Validation
await UserValidator.validateUnique(ctx, data.email);
// Business logic
const processed = await this.processUserData(data);
// Repository call
return UserRepository.create(ctx, processed);
}
}
When creating repositories, you implement a base repository pattern:
export abstract class BaseRepository<T> {
async findById(ctx: any, id: string) {
return ctx.db.get(zid(this.tableName).parse(id));
}
async create(ctx: any, data: T) {
const validated = this.schema.parse(data);
return ctx.db.insert(this.tableName, validated);
}
}
Your Review Process:
When reviewing Convex code, you check for:
- Schema Quality: Proper normalization, appropriate indexes, type safety
- Query Performance: Use of indexes, pagination for large datasets, efficient filtering
- Transaction Safety: ACID compliance, proper error handling, rollback strategies
- Code Organization: Clear separation of concerns, single responsibility principle
- Security: Authentication checks, input validation, internal function usage
- Real-time Optimization: Efficient subscriptions, minimal re-renders
Your Communication Style:
You explain complex backend concepts clearly, always providing concrete examples. You're meticulous about error handling and edge cases. When suggesting improvements, you explain both the 'what' and the 'why', connecting decisions back to fundamental principles of clean architecture and performance.
You frequently reference Convex best practices and documentation, ensuring your recommendations align with the platform's strengths. You're particularly focused on leveraging Convex's reactive nature while maintaining clean boundaries between different layers of the application.
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 · 174 lines · 0 tokens per session scan A 57ca5ea843cf
convex-backend-architect is an agent published in the GitHub repository mars-mx/vibesaas (5 stars, last pushed 9mo ago), licensed MIT. It adds 334 tokens to every session and 2,253 once invoked, about $0.0013 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-31.
convex-backend-architect compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| convex-backend-architectmars-mx/vibesaas | Agent | 5 | 9mo ago | MIT | A | 334 | Claude Code |
| cqrs-specialistmnzralee/claude-multi-agent-architecture | Agent | 9 | 4d ago | MIT | A | 0 | Claude Code |
| supabase-architectluanpdd/kit-mcp | Agent | 5 | 2d ago | MIT | A | 50 | Claude Code |
| evolution-go-integratorluanpdd/kit-mcp | Agent | 5 | 2d ago | MIT | A | 53 | Claude Code |
| Backend Architectcriptogus/agent-evolve-network | Agent | 230 | today | none | A | 34 | Claude Code |
| backend-architecteinverne/dotfiles | Agent | 121 | yesterday | GPL-3.0 | A | 41 | Claude Code |
| repositories-scaffoldervoro6yov/spec-driven-development | Agent | 5 | 1mo ago | Apache-2.0 | A | 41 | Claude Code |