secure-task-crud

Implement secure multi-tenant task management REST APIs with per-user isolation.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/omerspac/advanced-to-do-app --skill secure-task-crud-omerspac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secure-task-crud
Source: https://github.com/omerspac/advanced-to-do-app/tree/main/Phase-2/.claude/skills/secure-task-crud
Command: npx skills add https://github.com/omerspac/advanced-to-do-app --skill secure-task-crud-omerspac

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implement secure, multi-tenant task management REST APIs with async performance, ensuring users can only access their own tasks.

Core Features & Use Cases

  • Strict Isolation: Implicit filtering of all queries by current_user.id.
  • Ownership Validation: Explicit checks to ensure users can only modify/delete their own tasks.
  • RESTful Design: Standardized routes for list, create, get, update, delete, and status toggling.
  • Payload Validation: Integration with Pydantic/SQLModel for request/response serialization.
  • Async Execution: Full utilization of async database sessions for non-blocking I/O.

Quick Start

Use secure, async REST endpoints to manage your tasks for your authenticated user.

Frequently Asked Questions about secure-task-crud

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

FAQPage Schema
How do I build secure multi-tenant task management REST APIs with user data isolation?

Build secure multi-tenant task management REST APIs by implicitly filtering all database queries with current_user checks. This enforces strict per-user data isolation, ensuring authenticated users can only access their own tasks.

How does async database execution handle payload validation in a secure task API?

Async database execution handles payload validation by leveraging Pydantic and SQLModel for safe request and response serialization. This uses non-blocking I/O to validate payloads while maintaining secure async database sessions.

What's the best way to enforce ownership validation for task updates and deletions?

The best way to enforce ownership validation is through explicit checks during task modifications. The API ensures users can only modify or delete their own tasks by validating ownership against the current_user context before executing operations.

Can I use Pydantic and SQLModel for async RESTful task routes?

Yes, you can use Pydantic and SQLModel for async RESTful task routes. They provide safe payload serialization and standardized routes for listing, creating, getting, updating, deleting, and toggling task statuses.

Why does strict tenant isolation matter for async task management APIs?

Strict tenant isolation matters for async task management APIs because it prevents unauthorized cross-tenant data access. By scoping all queries to the current_user.id, the API guarantees that users never retrieve or modify another user's tasks.

Do I need authentication to scope async task management queries?

Yes, you need authentication to scope async task management queries. The API relies on a current_user context to implicitly filter all database queries, making user authentication a strict prerequisite for secure data isolation.