daas-platform

Provides DaaS platform architecture, REST API, and MCP tool reference for Next.js development.

Updated May 27, 2026
One-click install
npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill daas-platform-rkaaaa404
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: daas-platform
Source: https://github.com/Rkaaaa404/cyberhack-SYDT/tree/main/.agents/skills/daas-platform
Command: npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill daas-platform-rkaaaa404

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Developers building on the DaaS (Data-as-a-Service) platform often rebuild features the backend already provides, misuse MCP tool parameters, or hit subtle authentication and CORS bugs. This Skill supplies the architectural rules, API patterns, and production-learned fixes needed to integrate Next.js frontends with DaaS and Supabase correctly. ## Core Features & Use Cases - Two-Tier Architecture Guidance: Enforces the rule that frontends call the DaaS REST API for all data operations and use Supabase only for authentication, never querying the database directly. - Backend-First Rule: Maps common requirements (audit trails, workflows, cron jobs, RBAC, file storage, multi-tenancy) to built-in DaaS features so agents do not rebuild them in Next.js. - MCP Tool Reference: Documents every DaaS MCP tool (items, schema, fields, permissions, extensions, cron, services, scope) with correct parameter formats and known pitfalls. - Production Bug Fixes: Codifies provider architecture rules for DaaSProvider placement, token handling via onAuthStateChange, CORS configuration, and scope forwarding. - Use Case: When asked to add audit logging to a collection, the Skill directs you to query the built-in /api/activity endpoint instead of writing custom logging middleware. ## Quick Start Ask the agent to create a new DaaS collection with fields and read permissions, and it will verify the schema and use the correct MCP tools automatically.

Frequently Asked Questions about daas-platform

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

FAQPage Schema
How do I query DaaS collections from a Next.js frontend?▼

Query DaaS collections through the REST API at /api/items/:collection using filter, sort, fields, and aggregate query parameters. The frontend must never query Supabase directly; Supabase is used only for authentication via server-side proxy routes.

What MCP tools does DaaS provide for AI agents?▼

DaaS provides MCP tools for items CRUD, schema reading, collections, fields, relations, files, users, roles, permissions, extensions, cron jobs, services, and scope management. All tools use top-level parameters in arguments and authenticate with static tokens via JSON-RPC 2.0.

Should I build custom audit logging in my DaaS app?▼

No, DaaS automatically logs all item mutations to the daas_activity table with before/after snapshots and user attribution. Query the built-in GET /api/activity endpoint instead of creating custom audit tables or logging hooks.

Why do I get 401 errors after logout and re-login in Next.js?▼

This happens when DaaSProvider is placed in the root layout, which never unmounts during client-side navigation and delivers a stale null token. Move it to the (authenticated) layout and use onAuthStateChange instead of getSession for token state.

Why does my DaaS query return a 500 error with no message?▼

A 500 error typically means you referenced a non-existent field in sort, fields, or filter parameters. Always verify actual field names with the mcp_daas_schema tool before writing queries, since timestamp columns vary between instances.

Can I use the items MCP tool to manage roles and permissions?▼

No, roles, policies, and permissions must be managed through their dedicated MCP tools which support full CRUD. Using the items tool for these system collections is explicitly prohibited and bypasses proper validation.