MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / categorize_skill

Function categorize_skill

src/analytics.rs:122–131  ·  view source on GitHub ↗
(raw: &str)

Source from the content-addressed store, hash-verified

120}
121
122pub fn categorize_skill(raw: &str) -> UsageCategory {
123 let normalized = raw.trim().to_ascii_lowercase();
124 if normalized.starts_with("tracedecay:") {
125 UsageCategory::TraceDecayWorkflowSkill
126 } else if normalized.is_empty() {
127 UsageCategory::Other
128 } else {
129 UsageCategory::WorkflowSkill
130 }
131}
132
133pub fn infer_usage_events(
134 tool_names: Option<&str>,

Callers 2

insert_skill_eventFunction · 0.85
record_fallback_usageFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected