/loom-engineering:loom-brainstorming <feature request or product idea>from loom-engineering
Explores 2-3 implementation options with trade-offs for new features or requirements. Guides structured brainstorming, clarification, and spec output.
Ships in loom-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
loom-pipeline-selector 命中 quickfix/bugfix 流程。本阶段应创建或使用 specs/<date+feature>/ 作为 specDir。所有阶段产物都必须写入该目录内;禁止在项目根目录写 spec.md、progress.md 或 handoffs/。
.loom/rules/product.md,先读取,作为产品定位、目标用户和原型约束的视角依据(PM / pm-prototype 流水线)。.loom/rules/constitution.md,读取其中架构、目录和编码约束。loom intent capture 保存不可覆盖的 SRC-nnn 版本,在 v2 账本登记返回的描述符;不要从模型摘要反造“原文”。如果预计涉及模型、布局、架构图等可视化内容,单独询问用户是否使用浏览器展示。详细流程见 references/visual-companion.md。
每个方案包含:方案名称、架构思路、数据流、trade-off、实现步骤。以推荐方案开头并解释原因;如果范围跨多个独立子系统,先建议拆分。
先区分问题来源:能通过读取代码、文档、spec 或现有约定回答的问题,必须先自行探索,不要问用户。
对简单需求,把待决议项集中展示给用户,优先给多选项:
## 待决议项
| # | 问题 | 选项 |
| --- | -------------- | --------------------------------- |
| 1 | 数据存储方式? | A: 关系型数据库 / B: 文档型数据库 |
对复杂需求进入一问一答澄清:
用户确认方案后,写入 specs/<date+feature>/spec.md 和 specs/<date+feature>/requirements.json。文件夹命名格式:<YYYY-MM-DD>+<功能名>,如 2026-04-26+user-management。
使用 assets/spec-template.md。首屏写清问题、本次范围和可观察的关键验收结果,已确认的非目标和仍需确认的问题一并列出;没有相应内容时省略该项。
正文用 ### REQ-001 需求名称 逐项展开,保留项目实际的 REQ-xxx,用短段和短列表说明适用条件、正常结果和适用的关键例外。目标概览只提炼判断标准,不逐条复述正文。接口、数据和方案取舍只在影响验收或兼容时展开。
给出原始需求链接和同目录的 requirements.json 入口。结构化字段、行为维度、测试细目及来源版本写入账本,规格正文保留用户需要审查的业务含义和验收预期。删除模板引导文字、空项及不适用章节,不添加示例用的额外需求编号。
新建来源可追溯需求采用 schema_version: 2。每项 intent 明确 explicit / inferred、准确原文引用、推断理由、决策及实际确认者、可观察例子、非目标、不变量、假设和未决问题。字段以当前 loom intent draft 生成的账本和运行时校验为准,命令见 loom intent --help;草稿不代替需求分析。已有旧账本不自动升级或伪造历史来源。
requirements.json 必须与 spec.md 的所有 REQ-xxx 一一对应。每个 requirement 必须包含:
id:如 REQ-001。status:初始为 failing。types:需求类型,如 functional、input、authorization、write、state、security、performance、observable、recovery。required_categories:该需求必须覆盖的行为维度,如 happy-path、invalid-input、authorization、atomicity、state-transition、observability。acceptance:需求级验收标准。behaviors:可独立验证的行为义务,ID 使用 REQ-xxx-Bnn,每条必须有 category、description、status、acceptance。行为维度必须从以下白名单选择:happy-path、boundary、invalid-input、authorization、state-transition、idempotency、concurrency、atomicity、external-failure、compatibility、security、performance、observability、recovery、forbidden-behavior。
不得只生成默认 functional / happy-path。如果需求涉及输入、权限、写操作、状态变化、幂等、并发、外部依赖、安全、性能、可观测性或恢复,必须在 types / required_categories 和 behaviors 中显式体现。
TBD、TODO 或未完成段落。REQ-xxx 找到正常结果和重要例外。spec.md 的每个 REQ-xxx 必须出现在 requirements.json,每个 required_categories 必须有对应 behavior。自审通过后让用户审查 spec。用户要求修改时,修复并重新自审;只有用户批准后才继续 writing-plans。
v2 账本先用 loom intent check --draft --spec-dir <dir> 校验原文和结构,确认后记录真实决策,再用 loom intent check --spec-dir <dir> 检查就绪状态。关键权限、破坏性数据或兼容性问题未决时停止;非关键假设必须显式保留。来源更新时用 loom intent impact 列出需重新确认的项,不能复用旧批准。检查通过只证明声明与来源一致,不证明不存在误解;优先核对关键正例和反例。
用户批准 spec 后,写入 specs/<date+feature>/handoffs/brainstorming.json,至少包含:
{
"stage": "brainstorming",
"status": "done",
"summary": "已确认的方案和关键取舍摘要",
"artifacts": ["spec.md", "requirements.json"],
"decisions": ["用户已选择的关键方案"],
"open_questions": []
}
阶段结束后压缩 brainstorming 原始讨论、方案比较和搜索输出;下一阶段必须重新读取 specs/<date+feature>/spec.md、specs/<date+feature>/requirements.json、specs/<date+feature>/progress.md、specs/<date+feature>/handoffs/brainstorming.json 和必要规则文件,不依赖旧对话全文。
specs/<date+feature>/spec.md 与 specs/<date+feature>/requirements.json 保存、自审完成、用户批准,并完成 specs/<date+feature>/handoffs/brainstorming.json。
What SKILL.md sets; muted values are Claude Code's defaults
Explore implementation options, trade-offs, or requirements for a new feature before writing a plan.
Other plugins' skills for the same job
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest/PreSkillShellCommand at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest/PreSkillShellCommand at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
22 skills in this plugin
/loom-analyze-artifactsRead-only cross-artifact consistency analysis after planning and before approval. Verifies that spec.md, requirements.json, plan.md, tasks/Tn.md, traceability.json are mutually consistent: no duplicate/ambiguous requirements, every behavior mapped to a task, no orphan tasks, no coverage gaps, no contradictions. Outputs artifact-analysis.json with coverage% and severity. CRITICAL/HIGH findings block the approval gate. Use when: planning produced plan.md + tasks + traceability.json, before the user approves the plan.
/loom-convergeCheck local behavior references, then independently review code and test semantics against approved requirements. Use when: executing produced test-report.md and implementation drift must be checked before final verification.
/loom-