AgentSkillsCN

ikf-api-surface-minimizer

为热力图与数据分析设计简洁且安全的API端点,确保客户端既不会过度获取数据,也不会暴露敏感的预测信息。

SKILL.md
--- frontmatter
name: ikf-api-surface-minimizer
description: Designs minimal, secure API endpoints for heatmaps/analytics so the client never over-fetches or exposes sensitive forecast data.

IKF API Surface Minimizer

Objective

Define endpoints that return ONLY what UI needs, with auth checks and least-privilege access.

Requirements

  • No service-role keys in the client.
  • Avoid SELECT * and broad reads.
  • Prefer aggregated endpoints for analytics.
  • Ensure endpoints are scoped by org_id and authenticated user.
  • Return minimal fields: ticker, horizon, signal, pred (score optional internal).

Output

  • Endpoint list for Phase 1 + Phase 2 (today heatmap, compare drawer, wishlist rows, dashboard top/bottom, analytics summaries).
  • Response schemas.
  • Security checks per endpoint.