总 Skill

先帮 AI 判断该用哪个 SheepGeo 能力,再生成可靠的接入代码。 最适合:不知道该选哪个接口,或准备做完整接入方案时。

下载
推荐提示词
1请先阅读这份 SheepGeo 总 Skill,再帮我做一个可靠的接入方案:2 31. 先判断我该用哪个 SheepGeo 能力42. 先接 /v1/balance 做余额预检53. 再实现一个任务创建接口和一个任务轮询接口64. 补上 400 / 401 / 402 / 429 / 500 / 503 错误处理75. 给出可运行的服务端代码和测试方式
Skill 内容
1---2name: sheepgeo-master-integration3description: Choose the right SheepGeo capability and build a reliable integration.4---5 6# SheepGeo Master Integration Skill7 8Base URL: https://api.sheepgeo.com9Auth: Authorization: Bearer YOUR_API_KEY10Public model IDs: doubao, qianwen, zhipu, deepseek, kimi, ernie, hunyuan, spark, mita11Citation references: completed task responses may include searchReferences arrays. Each reference can contain title, url, snippet, and source. Empty arrays mean the AI/provider did not return structured citation sources.12Scope: public /v1 Open Platform APIs (including whitelist-gated Media Publish APIs /v1/media/*). Admin, internal operations, and browser-extension APIs are out of scope.13 14Use server-side API key storage whenever possible.15 16Your job is to help a developer build with SheepGeo safely and efficiently.17 18## Choose the right capability19 20- Use AI Visibility for one-off website or brand recognition checks.21- Use Keyword Polling for keyword penetration and cross-model recommendation testing.22- Use Precision Sampling for repeated stability testing on the same question.23- Use Competitor Analysis for target-vs-competitor comparison.24- Brand Monitoring is temporarily unavailable: 品牌监控功能正在临时维护中,暂不可用。 Do not choose it for new integrations unless the user explicitly needs legacy 503 handling.25- Use Effect Tracking for published-content asset syncing and AI citation performance dashboards.26- Use Media Publish (/v1/media/*, whitelist-gated) for media discovery, domain-to-media matching, real-time quoting, dry-run validation, and idempotent article publishing paid from the separate Media Balance wallet.27- Use Balance for preflight checks, quota display, and rate-limit awareness.28 29## Default implementation order30 311. Save the API key on the server.322. Implement GET /v1/balance first.333. Implement one create-task POST endpoint.344. Implement the matching GET poll endpoint.355. Add status handling for running, completed, failed, no credits, and rate limited.36 37## Common async pattern38 39Most SheepGeo analysis APIs are async:40 411. Create task with POST.422. Save taskId.433. Poll the matching GET endpoint.444. Stop on completed or failed.455. Render summary and per-model results.46 47## Quota consumption48 49- AI Visibility: number of selected models (1 call per model).50- Keyword Polling: generate-only = models x queriesPerModel; deep penetration = models² x queriesPerModel; import mode = models x number of imported queries.51- Precision Sampling: models x repetitionCount.52- Competitor Analysis: models² x dimensions x queriesPerDimension (each model answers the question set generated by every model).53- Brand Monitoring: charged per scheduled run by enabled model count, not at task creation.54- Effect Tracking and Balance: 0 calls.55 56Always prefer explicit selectedModels over running all models. Compute the expected cost before submitting large jobs.57 58## Common error handling59 60- 400: invalid request, do not auto-retry.61- 401: invalid or missing API key, stop and fix credentials.62- 402: insufficient balance, stop and prompt recharge / balance recheck.63- 429: rate limited, retry with backoff.64- 500: internal error, limited retry allowed.65- 503: temporarily unavailable, fail gracefully.66 67## What to generate by default68 69- a server-side SheepGeo client,70- typed request/response models,71- polling helper,72- balance precheck logic,73- explicit error handling,74- citation/reference rendering for searchReferences when present,75- UI states for task lifecycle.76 77## When to switch to a specialized skill78 79If the developer has already chosen one capability, prefer the matching specialized SheepGeo skill so the code, test request, and error handling are more specific.80