backend-patterns
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
Skill by PatriotAgenticLLC
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/patriotagenticllc-backend-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/backend-patterns
What's inside
- Skill name
backend-patterns- Description
- Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
- License
- MIT
- Instructions
- 584 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- body: 584 lines (spec recommends under 500)
Files (2)
- README.md
- SKILL.md
SKILL.md (first lines)
# Backend Development Patterns
Backend architecture patterns and best practices for scalable server-side applications.
## API Design Patterns
### RESTful API Structure
```typescript
// Resource-based URLs
GET /api/items # List resources
GET /api/items/:id # Get single resource
POST /api/items # Create resource
PUT /api/items/:id # Replace resource
PATCH /api/items/:id # Update resource
DELETE /api/items/:id # Delete resource
// Query parameters for filtering, sorting, pagination
GET /api/items?status=active&sort=volume&limit=20&offset=0
```
### Repository Pattern
```typescript
// Abstract data access logic
interface ItemRepository {
findAll(filters?: ItemFilters): Promise<Item[]>
findById(id: string): Promise<Item | null>
create(data: CreateItemDto): Promise<Item>
update(id: string, data: UpdateItemDto): Promise<Item>
delete(id: string): Promise<void>
}
class DatabaseItemRepository implements ItemRepository {
async findAll(filters?: ItemFilters): Promise<Item[]> {
let query = db.from('items').select('*')
if (filters?.status) {
query = query.where('status', filters.status)
}
if (filters?.limit) {
query = query.limit(filters.limit)
}
const { data, error } = await query
if (error) throw new Error(error.message)
return data
}
// Other methods...
}
```
### Service Layer Pattern
```typescript
// Business logic separated from data access
class ItemService {
constructor(private itemRepo: ItemRepository) {}
async searchItems(query: string, limit: number = 10): Promise<Item[]> {
// Business logic
const embedding = await generateEmbedding(query)
const results = await this.vectorSearch(embedding, limit)
// Fetch full data
const items = await this.itemRepo.findByIds(results.map(r => r.id))
// Sort by similarity
return items.sort((a, b) => {
const scoreA = results.find(r => r.id === a.id)?.score || 0
const scoreB = results.find(r => r.id === b.id)?.score || 0
return scoreA - scoreB
})
}
private async vectorSearch(embedding: number[], limit: number) {
// Vector search implementation
}
}
```
### Middleware Pattern
```typescript
// Request/response processing pipeline
export function withAuth(handler: NextApiHandler): NextApiHandler {
return async (req, res) => {
const token = req.headers.authorization?.replace('Bearer ', '')
if (!token) {
return res.status(401).json({ error: 'Unauthorized' })
}
try {
const user = await verifyToken(token)
req.user = user
return handler(req, res)
} catch (error) {
return res.status(401).json({ error: 'Invalid token' })
}
}
}
// Usage
export default withAuth(async (req, res) => {
// Handler has access to req.user
})
```
## Database Patterns
### Query Optimization
```typescript
// GOOD: Select only needed columns
const { data } = await dbFrom PatriotAgenticLLC/better_claude_skillz, MIT.
More from PatriotAgenticLLC/better_claude_skillz
- 0.511score
a11y-check
PatriotAgenticLLC
Run WCAG accessibility audits on frontend projects.
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
e2e
PatriotAgenticLLC
Generate and run end-to-end tests with Playwright.
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
code-review
PatriotAgenticLLC
Technical code review for quality and bugs that runs pre-commit
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
code-review-ecc
PatriotAgenticLLC
Comprehensive security and quality review of uncommitted changes
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
deps-audit
PatriotAgenticLLC
Scan one or more projects for dependency vulnerabilities, outdated packages, and cross-project version conflicts.
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
eval
PatriotAgenticLLC
Manage eval-driven development workflow with define, check, report, and list operations
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
optimize-context
PatriotAgenticLLC
Scan project, then generate or reconcile .primeignore patterns for smarter /prime loading
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
api-contract
PatriotAgenticLLC
Generate OpenAPI specs from code, validate API contracts, and check for breaking changes between versions.
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
build-fix
PatriotAgenticLLC
Incrementally fix TypeScript and build errors one at a time with verification.
SkillCFreshness: C★ 3Claude Code +9 - 0.507score
config-audit
PatriotAgenticLLC
Evaluate the full Claude Code configuration stack for duplication, security, staleness, consistency, coverage gaps, optimization, and innovation opportunities.
SkillCFreshness: C★ 3Claude Code +9 - 0.505score
execution-report
PatriotAgenticLLC
Document what was implemented vs planned
SkillCFreshness: C★ 3Claude Code +9 - 0.505score
checkpoint
PatriotAgenticLLC
Create or verify a checkpoint in your workflow
SkillCFreshness: C★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 1, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from PatriotAgenticLLC
- 0.511score
e2e
PatriotAgenticLLC
Generate and run end-to-end tests with Playwright.
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
a11y-check
PatriotAgenticLLC
Run WCAG accessibility audits on frontend projects.
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
optimize-context
PatriotAgenticLLC
Scan project, then generate or reconcile .primeignore patterns for smarter /prime loading
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
code-review-ecc
PatriotAgenticLLC
Comprehensive security and quality review of uncommitted changes
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
api-contract
PatriotAgenticLLC
Generate OpenAPI specs from code, validate API contracts, and check for breaking changes between versions.
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
code-review
PatriotAgenticLLC
Technical code review for quality and bugs that runs pre-commit
SkillCFreshness: C★ 3Claude Code +9
Cite this page
backend-patterns skill. Agent Mart. https://agentmart.dev/skills/patriotagenticllc-backend-patterns (last updated 2026-10-24)