AgentSkillsCN

sase-deployment-and-cost-control

确保安全部署,杜绝不必要的成本。

SKILL.md
--- frontmatter
name: sase-deployment-and-cost-control
description: Ensure safe deployment and eliminate unnecessary costs.

SASE Deployment & Cost Control

This skill focuses on keeping the project sustainable and secure during the Pilot phase.

Cost Control Checklist

  1. Supabase:
    • Monitor database size.
    • Ensure Realtime is only enabled where strictly necessary (e.g., chat, live alerts). Disable globally if possible and enable per-table.
    • Check Edge Function invocation counts.
  2. Vercel:
    • Watch build minutes.
    • Optimize images (use WebP, avoid heavy assets).
  3. APIs:
    • Verify no external paid APIs are being called in loops.

Security & Deployment Safety

  1. Keys Audit:
    • NEVER commit service_role key to client-side code (VITE_*).
    • Scan for hardcoded secrets before deployment.
  2. Environment Audit:
    • Ensure VITE_ADMIN_PIN is set for Pi Mode.
    • Ensure VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY are present.
  3. Feature Flags:
    • Disable unfinished modules in production (use isDemoMode or role checks).
    • Ensure "Super Admin" features are unreachable by standard URL navigation.

Action Plan

  • Run this check before every major release ("Merge to Main").