{
  "$schema": "../schemas/capability-catalog.schema.json",
  "schema": "qiheng.capability-catalog.v1",
  "product": "QIHENG",
  "productVersion": "1.1.17",
  "defaultPack": "full",
  "hosts": [
    {
      "id": "codex",
      "supportLevel": "supported",
      "scopes": ["user"],
      "subagentFormat": "codex-plugin",
      "notesZh": "通过个人市场注册完整插件，当前仅支持用户级安装。"
    },
    {
      "id": "claude-code",
      "supportLevel": "supported",
      "scopes": ["user", "project"],
      "subagentFormat": "claude-code",
      "notesZh": "安装 Skills，并将 SubAgent 元数据转换为 Claude Code 兼容格式。"
    },
    {
      "id": "opencode",
      "supportLevel": "supported",
      "scopes": ["user", "project"],
      "subagentFormat": "opencode",
      "notesZh": "安装到 OpenCode 原生技能与智能体目录。"
    },
    {
      "id": "mimo-code",
      "supportLevel": "compatible",
      "scopes": ["user", "project"],
      "subagentFormat": "opencode",
      "notesZh": "按当前公开目录约定提供兼容安装，企业部署应锁定宿主版本。"
    },
    {
      "id": "bitfun",
      "supportLevel": "compatible",
      "scopes": ["user", "project"],
      "subagentFormat": "bitfun-v1",
      "notesZh": "生成 BitFun 原生自定义智能体结构和最小工具权限。"
    },
    {
      "id": "coding-agent",
      "supportLevel": "compatible",
      "scopes": ["user", "project"],
      "subagentFormat": "claude-code",
      "notesZh": "适配兼容 Claude Code 文件协议的通用编码智能体，目录不明确时要求显式配置。"
    }
  ],
  "packs": [
    {
      "id": "foundation",
      "nameZh": "流程基座",
      "descriptionZh": "完成事实采集、项目画像、流程编排和候选版本门禁控制。",
      "dependsOn": []
    },
    {
      "id": "design",
      "nameZh": "需求与设计",
      "descriptionZh": "读取规格、提炼行为契约，并完成规格、跨规格和架构质量检查。",
      "dependsOn": ["foundation"]
    },
    {
      "id": "implementation",
      "nameZh": "实现与修复",
      "descriptionZh": "分析影响、检查实现、规划并执行有来源约束的修复和验证。",
      "dependsOn": ["foundation", "design"]
    },
    {
      "id": "assurance",
      "nameZh": "质量与准入",
      "descriptionZh": "执行专项质量、对抗、证据、一致性和仓库准入门禁。",
      "dependsOn": ["foundation"]
    },
    {
      "id": "full",
      "nameZh": "完整套件",
      "descriptionZh": "安装齐衡全部 21 个 Skills 和 19 个 SubAgents。",
      "dependsOn": ["foundation", "design", "implementation", "assurance"]
    }
  ],
  "skills": [
    {
      "id": "qiheng",
      "pack": "foundation",
      "order": 0,
      "phase": "总入口",
      "responsibilityZh": "从 Spec、Change 或仓库启动、查询并续跑完整齐衡流程。",
      "agentPartners": []
    },
    {
      "id": "quality-review-orchestrator",
      "pack": "foundation",
      "order": 1,
      "phase": "全流程",
      "responsibilityZh": "维护适用性、门禁依赖、失效传播和重跑闭环。",
      "agentPartners": []
    },
    {
      "id": "workflow-core",
      "pack": "foundation",
      "order": 2,
      "phase": "全流程",
      "responsibilityZh": "定义设计文件优先级、证据、交接、状态和最终输出要求。",
      "agentPartners": []
    },
    {
      "id": "workflow-intake",
      "pack": "foundation",
      "order": 3,
      "phase": "导入",
      "responsibilityZh": "采集仓库事实并识别设计源、实现、测试和验证入口。",
      "agentPartners": ["profile-builder"]
    },
    {
      "id": "workflow-profile",
      "pack": "foundation",
      "order": 4,
      "phase": "导入",
      "responsibilityZh": "将仓库事实归一化为下游共同消费的项目画像。",
      "agentPartners": ["profile-builder"]
    },
    {
      "id": "workflow-harness",
      "pack": "foundation",
      "order": 5,
      "phase": "全流程",
      "responsibilityZh": "冻结候选版本、生成门禁图并计算交付就绪度。",
      "agentPartners": ["repository-gatekeeper"]
    },
    {
      "id": "knowledge-openspec",
      "pack": "design",
      "order": 6,
      "phase": "需求与设计",
      "responsibilityZh": "解释 OpenSpec 提案、规格、场景、任务和归档能力。",
      "agentPartners": ["spec-reader", "contract-oracle"]
    },
    {
      "id": "knowledge-bdd",
      "pack": "design",
      "order": 7,
      "phase": "需求与设计",
      "responsibilityZh": "解释或生成有来源约束的行为场景与验收契约。",
      "agentPartners": ["contract-oracle", "flow-auditor"]
    },
    {
      "id": "quality-spec-review",
      "pack": "design",
      "order": 8,
      "phase": "设计检查",
      "responsibilityZh": "检查规格完整性、一致性、可测性和可追溯性。",
      "agentPartners": ["spec-quality-reviewer"]
    },
    {
      "id": "quality-cross-spec-consistency",
      "pack": "design",
      "order": 9,
      "phase": "设计检查",
      "responsibilityZh": "识别跨规格冲突、过期规则和设计文件优先级问题。",
      "agentPartners": ["semantic-conflict-auditor"]
    },
    {
      "id": "quality-sr-ar-review",
      "pack": "design",
      "order": 10,
      "phase": "设计检查",
      "responsibilityZh": "评估需求与架构的完整性、可实现性和演进能力。",
      "agentPartners": ["architecture-reviewer", "flow-auditor"]
    },
    {
      "id": "knowledge-change-impact",
      "pack": "implementation",
      "order": 11,
      "phase": "实现与变更",
      "responsibilityZh": "追踪语义影响并确定失效证据和最小重跑集合。",
      "agentPartners": ["impact-analyst"]
    },
    {
      "id": "workflow-repair",
      "pack": "implementation",
      "order": 12,
      "phase": "一致性修复",
      "responsibilityZh": "执行检查、规划、修复、验证和收敛反馈循环。",
      "agentPartners": ["impl-inspector", "repair-planner", "code-repairer", "validation-runner"]
    },
    {
      "id": "knowledge-repair-distill",
      "pack": "implementation",
      "order": 13,
      "phase": "一致性修复",
      "responsibilityZh": "提供缺口分类、修复收敛和停止条件知识。",
      "agentPartners": ["repair-planner", "code-repairer"]
    },
    {
      "id": "quality-code-review",
      "pack": "implementation",
      "order": 14,
      "phase": "实现检查",
      "responsibilityZh": "评审正确性、安全、可靠性、性能和可维护性。",
      "agentPartners": ["code-quality-reviewer"]
    },
    {
      "id": "quality-dt-review",
      "pack": "implementation",
      "order": 15,
      "phase": "测试检查",
      "responsibilityZh": "评估开发者测试的覆盖、断言、隔离和缺陷检出能力。",
      "agentPartners": ["test-quality-reviewer", "validation-runner"]
    },
    {
      "id": "quality-ci-gate",
      "pack": "assurance",
      "order": 16,
      "phase": "交付验证",
      "responsibilityZh": "规划并验证持续集成检查、资源预算和候选版本绑定。",
      "agentPartners": ["ci-gatekeeper", "validation-runner"]
    },
    {
      "id": "quality-adversarial-challenge",
      "pack": "assurance",
      "order": 17,
      "phase": "高风险质询",
      "responsibilityZh": "对高风险主张构造可证伪挑战和可复现反例。",
      "agentPartners": ["adversarial-challenger"]
    },
    {
      "id": "quality-evidence-audit",
      "pack": "assurance",
      "order": 18,
      "phase": "证据审计",
      "responsibilityZh": "独立检查证据完整性、新鲜度、来源和候选版本绑定。",
      "agentPartners": ["evidence-auditor"]
    },
    {
      "id": "quality-consistency-gate",
      "pack": "assurance",
      "order": 19,
      "phase": "一致性签署",
      "responsibilityZh": "签署设计、实现、测试和证据链的一致性终态。",
      "agentPartners": ["final-reviewer"]
    },
    {
      "id": "quality-repository-gate",
      "pack": "assurance",
      "order": 20,
      "phase": "仓库准入",
      "responsibilityZh": "聚合上游结论并决定提交、合并或发布准入。",
      "agentPartners": ["repository-gatekeeper"]
    }
  ],
  "subagents": [
    {
      "id": "profile-builder",
      "pack": "foundation",
      "order": 0,
      "phase": "导入",
      "responsibilityZh": "构建并刷新项目画像，停止下游对路径和工具的猜测。",
      "permissions": ["read", "write"]
    },
    {
      "id": "spec-reader",
      "pack": "design",
      "order": 1,
      "phase": "需求与设计",
      "responsibilityZh": "读取权威规格并提取来源、范围、场景和约束。",
      "permissions": ["read"]
    },
    {
      "id": "contract-oracle",
      "pack": "design",
      "order": 2,
      "phase": "需求与设计",
      "responsibilityZh": "从规格和场景中提取有明确来源的设计要求。",
      "permissions": ["read"]
    },
    {
      "id": "flow-auditor",
      "pack": "design",
      "order": 3,
      "phase": "设计检查",
      "responsibilityZh": "审计生命周期、分支、状态迁移、副作用和失败路径。",
      "permissions": ["read"]
    },
    {
      "id": "spec-quality-reviewer",
      "pack": "design",
      "order": 4,
      "phase": "设计检查",
      "responsibilityZh": "独立判断规格质量并区分阻断项与建议项。",
      "permissions": ["read"]
    },
    {
      "id": "semantic-conflict-auditor",
      "pack": "design",
      "order": 5,
      "phase": "设计检查",
      "responsibilityZh": "定位跨规格语义冲突、过期基线和权限歧义。",
      "permissions": ["read"]
    },
    {
      "id": "architecture-reviewer",
      "pack": "design",
      "order": 6,
      "phase": "设计检查",
      "responsibilityZh": "评审边界、依赖、数据流、故障路径和架构约束。",
      "permissions": ["read"]
    },
    {
      "id": "impact-analyst",
      "pack": "implementation",
      "order": 7,
      "phase": "实现与变更",
      "responsibilityZh": "计算变更影响和最小安全重跑计划。",
      "permissions": ["read", "execute"]
    },
    {
      "id": "impl-inspector",
      "pack": "implementation",
      "order": 8,
      "phase": "实现检查",
      "responsibilityZh": "对照已确认设计要求检查实现，不修改文件。",
      "permissions": ["read"]
    },
    {
      "id": "repair-planner",
      "pack": "implementation",
      "order": 9,
      "phase": "一致性修复",
      "responsibilityZh": "把已确认缺口拆成小步修复、验证和停止条件。",
      "permissions": ["read"]
    },
    {
      "id": "code-repairer",
      "pack": "implementation",
      "order": 10,
      "phase": "一致性修复",
      "responsibilityZh": "执行已批准的最小修复并控制影响范围。",
      "permissions": ["read", "write", "execute"]
    },
    {
      "id": "validation-runner",
      "pack": "implementation",
      "order": 11,
      "phase": "验证",
      "responsibilityZh": "发现并运行项目验证命令，生成可复现证据。",
      "permissions": ["read", "write", "execute"]
    },
    {
      "id": "code-quality-reviewer",
      "pack": "implementation",
      "order": 12,
      "phase": "实现检查",
      "responsibilityZh": "独立评审代码风险并输出可定位发现。",
      "permissions": ["read", "execute"]
    },
    {
      "id": "test-quality-reviewer",
      "pack": "implementation",
      "order": 13,
      "phase": "测试检查",
      "responsibilityZh": "判断测试能否发现关键缺陷，而不是只统计覆盖率。",
      "permissions": ["read", "execute"]
    },
    {
      "id": "ci-gatekeeper",
      "pack": "assurance",
      "order": 14,
      "phase": "交付验证",
      "responsibilityZh": "验证持续集成检查集、结果、成本和失败策略。",
      "permissions": ["read", "execute"]
    },
    {
      "id": "adversarial-challenger",
      "pack": "assurance",
      "order": 15,
      "phase": "高风险质询",
      "responsibilityZh": "独立挑战高风险通过主张并记录反例。",
      "permissions": ["read", "execute"]
    },
    {
      "id": "evidence-auditor",
      "pack": "assurance",
      "order": 16,
      "phase": "证据审计",
      "responsibilityZh": "审计证据是否当前、完整、可复现且内容寻址。",
      "permissions": ["read", "execute"]
    },
    {
      "id": "final-reviewer",
      "pack": "assurance",
      "order": 17,
      "phase": "一致性签署",
      "responsibilityZh": "独立完成设计实现一致性终态核验。",
      "permissions": ["read", "execute"]
    },
    {
      "id": "repository-gatekeeper",
      "pack": "assurance",
      "order": 18,
      "phase": "仓库准入",
      "responsibilityZh": "根据冻结候选版本和全部上游证据作出最终准入决定。",
      "permissions": ["read", "execute"]
    }
  ]
}
