backend

Guide backend development in the InsForge monorepo with PostgreSQL and RLS.

12.7k|1.1k|Updated Jul 29, 2025
One-click install
npx skills add https://github.com/InsForge/InsForge --skill backend-insforge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend
Source: https://github.com/InsForge/InsForge/tree/main/.agents/skills/insforge-dev/backend
Command: npx skills add https://github.com/InsForge/InsForge --skill backend-insforge

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @insforge/sdk, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

The InsForge backend skill addresses the complexities of backend development in the InsForge monorepo by providing a structured set of guidelines and scripts for maintainers to efficiently edit and maintain backend components.

Core Features & Use Cases

  • Structured Development: Offers a clear structure for backend development, guiding maintainers through routing, services, providers, and infrastructure.
  • Best Practices: Implements best practices like ESM-style imports, PostgreSQL database usage, and transactional processes for robust code.
  • Idempotent Migrations: Ensures that database migrations are safe to re-run, crucial for maintaining a stable database environment.
  • RLS Enforcement: Utilizes Row Level Security for secure access to tables, enhancing data protection.
  • Unit Testing: Encourages comprehensive unit testing for all new code, ensuring reliability.

Quick Start

Use the backend skill to initialize a new backend project in the InsForge monorepo and run the necessary tests to ensure everything is in place.

Frequently Asked Questions about backend

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

FAQPage Schema
How do I structure backend routing and database operations in a monorepo?

To structure backend development in a monorepo, this skill guides maintainers through routing, service logic, providers, and database operations while enforcing best practices like ESM-style imports and PostgreSQL usage.

What is the best way to ensure database migrations are safe to re-run in PostgreSQL?

Idempotent migrations ensure database migrations are safe to re-run, which is crucial for maintaining a stable PostgreSQL database environment without causing duplicate data or errors.

How does Row Level Security enhance backend data protection?

Row Level Security (RLS) enhances data protection by enforcing secure access controls directly on database tables, ensuring that backend service logic only queries or modifies authorized data rows.

Do I need the InsForge SDK and PostgreSQL to use this backend development skill?

Yes, this backend skill requires both the InsForge SDK and PostgreSQL to manage routing, implement transactional processes, and execute database operations within the monorepo.

Can I use this skill to initialize a new backend project and run tests?

Yes, you can use this skill to initialize a new backend project in the InsForge monorepo and run the necessary tests, as it encourages comprehensive unit testing for all new code to ensure reliability.