MCPcopy Create free account
hub / github.com/AI45Lab/Code / make_skill

Function make_skill

core/src/skills/validator.rs:217–228  ·  view source on GitHub ↗
(name: &str, content: &str)

Source from the content-addressed store, hash-verified

215 use crate::skills::SkillKind;
216
217 fn make_skill(name: &str, content: &str) -> Skill {
218 Skill {
219 name: name.to_string(),
220 description: "test".to_string(),
221 allowed_tools: None,
222 disable_model_invocation: false,
223 kind: SkillKind::Instruction,
224 content: content.to_string(),
225 tags: vec![],
226 version: None,
227 }
228 }
229
230 fn validator() -> DefaultSkillValidator {
231 DefaultSkillValidator::default()

Callers 11

test_invalid_namesFunction · 0.85
test_name_too_longFunction · 0.85
test_custom_max_contentFunction · 0.85

Calls

no outgoing calls

Tested by 11

test_invalid_namesFunction · 0.68
test_name_too_longFunction · 0.68
test_custom_max_contentFunction · 0.68