backend-rules

Guide secure backend implementation and review for API routes, middleware, and authentication.

2|1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/timgranlundmarsden/claude-agent-flow --skill backend-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-rules
Source: https://github.com/timgranlundmarsden/claude-agent-flow/tree/main/skills/backend-rules
Command: npx skills add https://github.com/timgranlundmarsden/claude-agent-flow --skill backend-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill gives clear operating rules for backend work so server-side tasks stay secure, testable, and aligned with repository boundaries.

Core Features & Use Cases

  • API and Middleware Guidance: Use it when implementing or reviewing route handlers, middleware, or other server logic.
  • Security Guardrails: It reinforces input validation, secret handling, and authorization checks to reduce backend risks.
  • Testing and Handoff Discipline: It requires comprehensive test coverage and notes when frontend or storage-layer follow-up is needed, such as API contract changes or RLS policy work.

Quick Start

Apply the backend-rules skill to this server-side task so the work follows the API, security, and testing standards in the repository.

Frequently Asked Questions about backend-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What security rules should I follow for backend API route implementation?

Backend API route implementation requires strict input validation, secret protection, and authorization enforcement. These secure backend rules ensure server-side tasks align with repository boundaries and reduce risks across route handlers and middleware.

How do I ensure my database queries and authentication logic are tested?

To ensure database queries and authentication logic are tested, you must enforce comprehensive test coverage across all server-side tasks. This backend rules skill requires validating business logic and noting when storage-layer follow-up like RLS policy work is needed.

Does this backend rules guidance apply to middleware and infrastructure configuration?

Yes, this backend rules guidance applies directly to middleware and infrastructure configuration. It provides operating rules for server-side tasks including route handlers, business logic, and infrastructure setup to keep changes secure and testable.

What is the best way to handle authorization and RLS policy handoff in backend development?

The best way to handle authorization and RLS policy handoff is to enforce authorization checks in business logic and document required storage-layer follow-up. This backend rules approach requires explicit notes when RLS policy work or API contract changes are needed.

Why do I need input validation and secret protection for server-side tasks?

Input validation and secret protection are required for server-side tasks to reduce backend risks and maintain security guardrails. Enforcing these secure backend rules prevents unauthorized access and ensures changes align with repository boundaries.

Can I use backend-rules for reviewing API contract changes and business logic?

Yes, you can use backend-rules for reviewing API contract changes and business logic. It guides secure backend implementation and review by requiring comprehensive test coverage and flagging when frontend or storage-layer follow-up is necessary.