MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fake_plugin_with_skills

Function fake_plugin_with_skills

atomic-agent/src/integrations/install.rs:1026–1051  ·  view source on GitHub ↗

Build a fake plugin that uses [skills-source] + [[skill]].

(agent: &str, dst_dir: &Path)

Source from the content-addressed store, hash-verified

1024
1025 /// Build a fake plugin that uses [skills-source] + [[skill]].
1026 fn fake_plugin_with_skills(agent: &str, dst_dir: &Path) -> tempfile::TempDir {
1027 let pkg = tempfile::tempdir().unwrap();
1028 std::fs::write(
1029 pkg.path().join(MANIFEST_FILE),
1030 format!(
1031 r#"
1032schema = 1
1033agent = "{agent}"
1034version = "1.0.0"
1035
1036[requires]
1037atomic = ">=0.1.0"
1038
1039[skills-source]
1040package = "atomic-skills"
1041
1042[[skill]]
1043src = "skills/atomic-vault/SKILL.md"
1044dst = "{0}/skills/atomic-vault/SKILL.md"
1045"#,
1046 toml_path(dst_dir),
1047 ),
1048 )
1049 .unwrap();
1050 pkg
1051 }
1052
1053 #[test]
1054 #[serial]

Callers 2

Calls 3

writeFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected