协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
algolia-local-dev-loop【开发与工程】Create a fast local development loop for Algolia record transforms and search behavior without contaminating shared indices. Use when iterating on search code, fixtures, or client wrappers. Trigger with "Algolia local development", "mock Algolia", or "test search locally".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: algolia-local-dev-loop description: >- Create a fast local development loop for Algolia record transforms and search behavior without contaminating shared indices. Use when iterating on search code, fixtures, or client wrappers. Trigger with "Algolia local development", "mock Algolia", or "test search locally". argument-hint: "[repository-path] [test-mode]" allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit version: 1.8.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT tags:
This skill combines deterministic offline tests with an optional disposable-index integration test. It makes the local loop useful without pretending a mock reproduces provider ranking, task timing, or authorization.
Use Read, Glob, and Grep to inspect local code, configuration names, tests, and dependency versions. Use WebFetch only for current official Algolia documentation. Use Write or Edit only after identifying the target files, constraints, and verification plan.
Offline tests need no credential. Optional live tests use a custom key restricted to the disposable prefix and are disabled when credentials are absent.
Do not require live credentials for the default test command, share a personal Admin key, or clean up any index outside the validated disposable prefix.
Return the local scripts, test boundary, fixtures, live-test guard, cleanup behavior, and evidence for both credential-free and optional integration modes.
| Condition | Response |
|---|---|
| Credential absent | Run offline tests and report the live test as skipped. |
| Mock diverges from adapter | Update the adapter contract and its typed fixture together. |
| Disposable prefix invalid | Fail before any network write. |
| Cleanup fails | Report the exact retained index for manual review. |
Use this compact input and expected handoff to calibrate scope and evidence quality.
Input:
mode=offline-default; integration=ALGOLIA_LIVE_TEST=1; prefix=dev-$USER-$RUN
Expected handoff:
unit=pass; live=skipped; production-index-access=none