skills/ohos-req-feature-to-ir/SKILL.md
--- name: ohos-req-feature-to-ir description: Use when an OHOS Feature has completed the Phase 0 Review Ready Gate and an Initial Requirement baseline is needed before proposal creation or cross-repository requirement splitting. Activation keywords: "IR.md baseline", "AC reference inheritance", "rr_id", "extension dimension confirmation". Do NOT use for requirement intake (ohos-req-requirement-intake), feasibility analysis (ohos-req-feasibility-analysis), or SR generation (ohos-req-proposal-to-s
npx skillsauth add openharmonyinsight/openharmony-skills skills/ohos-req-feature-to-irInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Announce at start: "我正在使用 ohos-req-feature-to-ir skill 生成 IR.md。"
IR.md 通过 RR_MCP 写入 OHOS 电子流系统需求描述字段,是 Phase 0 唯一推送到电子流的产物。AC 编号跨 04-feature.md → IR.md → proposal → SR 全链路引用,重编号会断链追溯矩阵。维度确认在 IR 阶段统一完成后,下游 proposal/SR 继承结论(PIR #152 P0),不再逐条交互。
01-requirement.md02-feasibility.md03-arch-decision-record.md04-feature.mdReady 或 Conditional Ready仅在 Gate=Not Ready 时拒绝生成。Gate=Conditional Ready 时允许生成,但必须把条件项(conditions)、Owner、关闭动作和关闭时点写入 IR,生成 status: Conditional 的 IR。Conditional Ready 不是失败状态,不得误判为拒绝。
IR.md 引用 01-04 的结论而非重复内容,AC 直接引用 04-feature.md 的编号(见 NEVER §1)。
reference/IR.mdIR 是平台级系统需求,Proposal 是仓库级实现方案。判定内容归属:
| 内容 | 归属 IR | 归属 Proposal | 判定依据 | |------|---------|--------------|---------| | 接口责任方与方向 | ✅ | ❌ | 系统级架构决策 | | 验收标准(AC) | ✅ | ❌ | 可观察的平台行为 | | 具体类/方法签名 | ❌ | ✅ | 实现细节 | | 数据结构定义 | ❌ | ✅ | 代码级设计 | | 跨仓通信协议 | ✅ | ❌ | 平台级契约 | | 单仓内部重构 | ❌ | ✅ | 实现选择 |
Before writing an IR section, ask yourself: "Is this a platform-level system requirement, or a repository-level implementation detail?"
reference/IR.md 和 01-04。04-feature.md frontmatter 继承 rr_id 到 IR.md frontmatter,并填写 §0 需求追踪表(RR单号、Feature ID、IR ID)。维度: 是否涉及? 依据: [当前分析]维度确认唯一交互点:IR 是 Phase 0 全流程中维度确认的唯一逐条交互点。安全/性能/兼容/API/IPC/构建等维度在 feasibility、feature 阶段如有初步判断,可在 IR 确认时引用但不重新交互。下游产物(proposal、SR)继承 IR 的维度确认结论,不再向用户逐条重新确认。仅当 proposal 范围超出 IR 覆盖范围时,才对新增维度补充确认。
{docs_dir}/IR.md。安全与权限 > 性能与功耗 > 兼容性 > API > IPC > 构建组件
安全与权限和性能与功耗为 P0(必须确认),兼容性和 API 为 P1,IPC 和构建组件为 P2。
status:Baseline 或 Conditionalrr_id + §0 需求追踪表){docs_dir}/IR.mdtesting
--- name: ohos-req-value-decision description: Use after review meeting to record decision and route to next step. Triggers: 评审决策纪要, 评审结论回流, value decision, 评审接纳, 评审不接纳, 评审退回, 下次重新上会. Do NOT use for feature baseline (ohos-req-feature-baseline), review gate checks (ohos-req-review-gate), or IR generation (ohos-req-feature-to-ir). metadata: author: openharmony scope: common stage: requirements capability: value-decision version: 0.3.0 status: draft tags: - sdd - requirements
development
Use when converting an OpenHarmony requirement document, spec, or design proposal into an OpenHarmony review slide deck (需求评审 / 需求变更评审 / 设计评审 PPTX) — produces the fixed OpenHarmony-branded review-deck structure (OH logo on every page) with architecture/flow diagrams and field tables. Triggers on "需求评审PPT", "需求变更评审", "把需求文档转成评审PPT", "spec转评审PPT", "requirement/spec to review deck". NOT for arbitrary or generic slide decks unrelated to OpenHarmony requirement/design review.
testing
Use when performing the Phase 0 Step 0.5 Review Ready Gate on a 04-feature.md, especially when the user says "evaluate gate", "review readiness", "feature ready?", "should we generate IR", or when the ohos-req-intake-orchestration main session needs a structured Ready / Conditional Ready / Not Ready judgment instead of doing the check inline. Reads 01-04, runs seven fixed checks plus a conditional-items check, and returns a machine-readable JSON summary plus a human-readable table that the main session can route on. Do NOT use for feature baseline generation (ohos-req-feature-baseline), value decision recording (ohos-req-value-decision), or IR generation (ohos-req-feature-to-ir).
testing
--- name: ohos-req-requirement-intake description: Use when importing an OHOS requirement into Phase 0.1, especially for 01-requirement.md, requirement intake, background, user value, scenarios, scope, FR/NFR, affected modules, or priority. Triggers: 需求导入, 01-requirement, 需求基线, RR单号. Do NOT use for feasibility analysis (ohos-req-feasibility-analysis), architecture decision (ohos-req-arch-decision), or feature baseline (ohos-req-feature-baseline). metadata: author: openharmony scope: common