协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
lucidchart-sdk-patterns【开发与工程】Apply supported patterns with Lucid lucid-package and lucid-extension-sdk while treating installed types as authoritative. Use when implementing or reviewing editor extensions. Trigger with "Lucid SDK pattern".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Implement an editor-extension feature from the installed SDK, project manifest, and official guidance—never from guessed type names or stale snippets.
Use Read, Glob, and Grep to inspect source, installed declarations, manifests, and tests; use WebFetch for current official docs; use Write or Edit only for bounded local changes and evidence.
lucid-package supplies project tooling and lucid-extension-sdk supplies supported APIs and types. Official Lucid AI guidance says to consult documentation and types, avoid guessing APIs, use correct pnpm mode syntax, and request least extension scopes.
Editor bundles must not contain server secrets. Put source OAuth and confidential credentials behind an approved connector/server boundary. Review manifest scopes before any developer install.
--help and correct package-manager argument passing.Do not upgrade dependencies, broaden scopes, install developer packages, connect production data, or publish without approval.
Return SDK/CLI versions, inspected types/docs, chosen pattern, changed files, scopes, gate receipts, drift, and approval state.
| Condition | Response |
|---|---|
| Documented example fails type checking | Follow the installed type and report version drift. |
| Needed API is absent | Stop and redesign with supported primitives; do not cast around it. |
| Feature requires a secret in the bundle | Introduce an approved server/connector boundary. |
feature=data-refresh; sdk=pinned-lockfile; installed-types=inspected; typecheck=pass; manifest-scopes=unchanged
Preserve the type-level and fixture regression tests before moving to developer-mode verification.