e3-subscriptions-reports

Implements subscription plans, assignments, and admin reports for the EOS backend.

Updated May 1, 2026
One-click install
npx skills add https://github.com/RomeroSilvia/Eos --skill e3-subscriptions-reports-romerosilvia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e3-subscriptions-reports
Source: https://github.com/RomeroSilvia/Eos/tree/main/agents/skills/e3-subscriptions-reports
Command: npx skills add https://github.com/RomeroSilvia/Eos --skill e3-subscriptions-reports-romerosilvia

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It guides the implementation of EOS Entrega 3 Module 5, covering subscription plan management, subscription assignment to users and centers, and admin reporting by center with date filters. ## Core Features & Use Cases - Subscription Plans CRUD: Backend endpoints to list, create, and update subscription plans under /api/admin/subscriptions/plans. - Subscription Assignment: Endpoints to assign and query subscriptions for users and centers, with status treated as informative only. - Admin Reports: A reports endpoint filtered by centerId and date range, plus frontend admin screens for plans and reports. - Use Case: A center admin needs to create a new subscription plan, assign it to a user, and then pull a report of subscriptions for their center between two dates. ## Quick Start Use this skill to implement the Entrega 3 M5 subscription plans, subscription assignment, and admin reports endpoints with their tests and documentation.

Frequently Asked Questions about e3-subscriptions-reports

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

FAQPage Schema
How do I implement subscription plan CRUD endpoints in Express?

Create a vertical module under backend/src/modules/subscriptions following the routes, controller, service, repository, tests pattern. Expose GET and POST /api/admin/subscriptions/plans plus PATCH /api/admin/subscriptions/plans/:planId, all protected by authenticate and requireRole('center_admin').

How do I build an admin reports endpoint filtered by center and date?

Implement GET /api/admin/reports accepting centerId, from, and to query parameters in a backend/src/modules/reports module. Back it with the metrics views defined in the 20260701000501_e3_m5_metrics_views.sql migration.

Does subscription status block other modules in EOS E3?

No. In Entrega 3 the subscriptions.status field is informative only and must not block other modules. Treat it as display data rather than an authorization gate.

What is out of scope for the EOS E3 M5 module?

M5 excludes the M1 routine wizard refactor, M2 federated auth and realtime notifications, M3 center CRUD internals, and M4 audit panel and security sweeps. Only subscriptions, reports, their tests, and docs are in scope.

How do I verify the subscriptions module implementation?

Run npm test and npm run typecheck inside the backend directory. Also confirm the SQL migrations and seed file are applied and that the required docs updates are included in the same PR.