- Home
- Skills
- APIs & Backend
- Senior Dev AI Architect
Works with the AI Agents you already use
Senior Dev AI Architect
Plan maintainable changes to an existing application.
Free
Senior Dev AI Architect
Example session with this skill installed
Add pagination to the UserProfile module while maintaining backwards compatibility with the existing v1 API. Use Professional mode.
- Read your context and instructions
- Compiled the senior dev ai
I have mapped the requirements to the UserProfile module and designed a solution that retains the existing array-based response while adding cursor-based metadata for v2 consumers.
Architecture Decision & Implementation
Decision: Implement a Link-header based pagination strategy to avoid breaking the JSON body schema for legacy v1 clients.
Implementation Patch
// src/modules/user/UserProfile.service.ts
export async function getFollowers(userId: string, options: PaginationOptions) {
const { limit = 20, cursor } = options;
// Backward compatibility: v1 callers send no cursor
const data = await db.followers.findMany({
where: { userId },
take: limit + 1,
cursor: cursor ? { id: cursor } : undefined,
orderBy: { createdAt: 'desc' }
});
const hasNextPage = data.length > limit;
const results = hasNextPage ? data.slice(0, -1) : data;
const nextCursor = hasNextPage ? data[data.length - 1].id : null;
return { results, nextCursor };
}
Verification Evidence
| Check | Status | Evidence |
|---|---|---|
| Requirement Mapping | Verified | Linked to UserProfile.service and api.v1.router |
| Design Complexity | Verified | Least-complex: reused existing DB indices |
| v1 Compatibility | Verified | Response body structure remains User[] for legacy calls |
| Targeted Tests | Partial | Logic verified; integration test requires live DB tool |
Remaining Risks: High-offset performance on extremely large follower lists (>100k) has not been benchmarked.
Next steps
- Apply the patch to
src/modules/user/UserProfile.service.ts. - Run the
npm test user-profile-paginationsuite. - Review the rollback plan in
docs/arch/rollback-pagination.md.
Connects securely to your tools. The creator never sees your data.
About this skill
What it does
Plan maintainable changes to an existing application. The skill works from the material you provide and distinguishes supported findings from assumptions or missing evidence.
What you receive
Architecture decisions, implementation guidance, tests, and remaining risks.
How to start
Provide the relevant source material, your desired result, and any constraints or access limits. Ask for a review or deliverable suited to your workflow.
Limits
Results depend on the inputs and permissions you provide. Tool-dependent steps need support in your AI host; unverified work should be labeled.
The skill cannot verify information or complete tool-dependent steps without the relevant inputs and access. Review the result before using it in production.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
Requires
Nothing to install.
Permissions
May read only the source material you choose to provide. Review can proceed from pasted material if local file tools are unavailable.
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.