簡介
Frontend waits while backend is late. This skill builds a usable mock from the contract so both move in parallel.
我能做什麼
- 🛤️ Generate mock routes by path.(交付:Route table)
- 📦 Build field-conformant fake data.(交付:Response samp)
- ⏱️ Support delay/error injection.(交付:Fault inject)
- 🔀 Give multi-status responses.(交付:Status set)
- 🧰 Provide local stub bootstrap.(交付:Stub code)
- 🧪 List sync self-test points.(交付:Self-test)
我不能做什麼
- Does not replace real backend logic.
- No guarantee of final API parity.
- Does not do real auth validation.
觸發詞(≥10 個)
- "api mock"
- "interface stub"
- "frontend sync"
- "fake data"
- "mock server"
- "mock api"
- "api simulate"
- "mock data"
- "sync stub"
- "local stub"
輸入規範
- 必填項:Endpoint list (path/method/resp fields).
- 可選項:Expected delay / error rate.
- 輸入格式示例:GET /api/user returns id,name,avatar.
輸出規範(結構化交付物)
使用示例(≥3 個)
小蔥技能有更好的技能skills外掛。
示例 1:User API
輸入:GET /api/user
輸出:Route + sample JSON; inject 500 for errors.
示例 2:Delay
輸入:slow net
輸出:delay=800ms simulate weak network.
示例 3:Bootstrap
輸入:run local
輸出:json-server/express stub code.
異常處理
- Missing endpoint list: returns required hint.
- Secret contract input: reminds to mask.
- Out of scope: states boundary.
限制與免責宣告
- No local filesystem access; requests only least-privilege permissions needed for the task.
- Does not collect sensitive user data (secrets, passwords, personal privacy).
- Output is a structured reference artifact, not professional legal/financial/medical advice.
- All examples are generated in a sandbox semantic; no real external write operations.
- Usable in domestic network environments; no reliance on blocked overseas services.
升級版規劃(Pay Skill 預留)
Upgrade to paid once the creator billing channel opens.
Free (published, fully usable): 生成 Mock API 與示例響應。
Pro (paid upgrade): 提供契約驅動 Mock、動態資料與整合測試樁。
Upgrade path: Once the creator billing channel opens, this skill flips to Pro billing with no SKILL.md edit.