CMDCSkillEngine.Types.SkillRecord (cmdc_skill_engine v0.2.1)

Copy Markdown View Source

Skill 完整档案:身份 + 血统 + 依赖 + 质量统计。

质量指标

  • applied_rate — 选中后被实际应用的比率
  • completion_rate — 应用后任务完成的比率
  • effective_rate — 端到端效率:选中 → 应用 → 完成
  • fallback_rate — 选中但未应用的比率(Skill 不可用信号)

Summary

Types

t()

@type t() :: %CMDCSkillEngine.Types.SkillRecord{
  category: CMDCSkillEngine.Types.SkillCategory.t(),
  critical_tools: [String.t()],
  description: String.t(),
  first_seen: DateTime.t() | nil,
  is_active: boolean(),
  last_updated: DateTime.t() | nil,
  lineage: CMDCSkillEngine.Types.SkillLineage.t(),
  name: String.t(),
  path: String.t(),
  recent_analyses: [CMDCSkillEngine.Types.ExecutionAnalysis.t()],
  skill_id: String.t(),
  tags: [String.t()],
  tool_dependencies: [String.t()],
  total_applied: non_neg_integer(),
  total_completions: non_neg_integer(),
  total_fallbacks: non_neg_integer(),
  total_selections: non_neg_integer()
}

Functions

applied_rate(map)

@spec applied_rate(t()) :: float()

completion_rate(map)

@spec completion_rate(t()) :: float()

effective_rate(map)

@spec effective_rate(t()) :: float()

fallback_rate(map)

@spec fallback_rate(t()) :: float()