xiaohongshu
xiaohongshu
frontend-backend-mapper
Analyzes and maps frontend API calls to backend endpoints. Detects missing endpoints, unused endpoints, and integration gaps. Optional: trace complete data flows to database and design tokens. Related: api-contract-validator for detailed type analysis.
Full skill instructions
This skill analyzes the integration between frontend API services and backend endpoints to ensure complete coverage. It can optionally trace complete data flows including database operations and design token usage.
Scan frontend API services:
frontend/src/api/*.tsgenerateKscResponses)/api/v1/ksc/generate)Scan backend endpoints:
backend/app/api/endpoints/*.py@router.post, @router.get)Perform integration analysis:
Analyze Genkit flow integration:
backend/app/genkit_flows/*.py[OPTIONAL] Trace database operations:
backend/app/core/firestore_cache.py and Firestore collection usage--include-database flag is used[OPTIONAL] Map design token usage:
frontend/src/theme/tokens.json and CSS token definitionsfrontend/src/components/**/*.tsx--include-design-tokens flag is usedGenerate mapping report:
docs/INTEGRATION_MAP.md with:
--include-database)--include-design-tokens)Generate visual diagrams:
--include-database)--include-design-tokens)Report findings:
# Frontend-Backend Integration Map
Generated: 2025-01-06T12:00:00Z
## Summary Statistics
- Total Frontend API Functions: 45
- Total Backend Endpoints: 38
- Mapped Integrations: 35 (✅ 77.8%)
- Missing Backend Endpoints: 10 (❌ 22.2%)
- Unused Backend Endpoints: 3 (⚠️ 6.7%)
- Type Mismatches: 5 (⚠️ 11.1%)
## Integration Health Score: 78/100
### ✅ MAPPED INTEGRATIONS (35)
| Frontend Function | HTTP Method | Backend Endpoint | Genkit Flow |
| ------------------------ | ----------- | ---------------------------- | --------------------- |
| `generateKscResponses()` | POST | `/api/v1/ksc/generate` | `generateKscResponse` |
| `getAtsScore()` | POST | `/api/v1/analysis/ats-score` | `atsScoring` |
| ... |
### ❌ MISSING BACKEND ENDPOINTS (10)
| Frontend Function | Expected Endpoint | Priority | Impact |
| -------------------- | ---------------------------- | -------- | -------------- |
| `sendWelcomeEmail()` | POST `/api/v1/email/welcome` | HIGH | Broken feature |
| `getUserAnalytics()` | GET `/api/v1/analytics/user` | MEDIUM | Missing data |
| ... |
### ❌ UNUSED BACKEND ENDPOINTS (3)
| Endpoint | Last Used | Recommendation |
| ---------------------------------- | --------- | -------------------- |
| GET `/api/v1/admin/legacy-reports` | Never | Consider deprecating |
| ... |
### ⚠️ TYPE MISMATCHES (5)
| Integration | Issue | Fix |
| ------------------------------- | ---------------------------------------------------------------------------------- | ------------------ |
| `analysisService.getAtsScore()` | Frontend uses `resumeText` (camelCase), backend expects `resume_text` (snake_case) | Standardize casing |
| ... |
The skill generates a Mermaid flowchart:
graph LR
A[KscGeneratorPage] -->|calls| B[aiServices.generateKscResponses]
B -->|POST /api/v1/ksc/generate| C[ksc/generate endpoint]
C -->|invokes| D[generateKscResponse flow]
D -->|caches via| E[Firestore Cache]
F[AnalysisPage] -->|calls| G[analysisService.getAtsScore]
G -.->|MISSING| H[/api/v1/analysis/ats-score]
style H fill:#ff6b6b,stroke:#ff0000
{{FRONTEND_SERVICES}}: List of frontend API service files{{BACKEND_ENDPOINTS}}: List of backend endpoint files{{MAPPED_COUNT}}: Number of mapped integrations{{MISSING_COUNT}}: Number of missing backend endpoints{{UNUSED_COUNT}}: Number of unused backend endpoints{{MISMATCH_COUNT}}: Number of type mismatches{{HEALTH_SCORE}}: Overall integration health percentage{{DIAGRAM}}: Mermaid diagram code--include-database to trace complete data flows to Firestore--include-design-tokens to audit component token compliancexiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience