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

Method export_managed_skills

src/agents/copilot.rs:196–220  ·  view source on GitHub ↗
(
        &self,
        home: &Path,
        profile_root: &Path,
    )

Source from the content-addressed store, hash-verified

194 }
195
196 fn export_managed_skills(
197 &self,
198 home: &Path,
199 profile_root: &Path,
200 ) -> Result<Vec<crate::automation::skill_targets::SkillInstallSummary>> {
201 if !self.has_tracedecay(home) {
202 return Ok(Vec::new());
203 }
204 let prompt_paths = [
205 super::vscode_data_dir(home).join("User/prompts/copilot-instructions.md"),
206 super::vscode_insiders_data_dir(home).join("User/prompts/copilot-instructions.md"),
207 super::copilot_cli_dir(home).join("copilot-instructions.md"),
208 ];
209 prompt_paths
210 .iter()
211 .filter(|path| path.exists())
212 .map(|path| {
213 crate::automation::skill_targets::install_managed_skills(
214 profile_root,
215 crate::automation::skill_targets::SkillInstallTarget::Agents,
216 path,
217 )
218 })
219 .collect()
220 }
221
222 fn export_managed_skills_local(
223 &self,

Callers

nothing calls this directly

Calls 7

vscode_data_dirFunction · 0.85
vscode_insiders_data_dirFunction · 0.85
copilot_cli_dirFunction · 0.85
install_managed_skillsFunction · 0.85
collectMethod · 0.80
existsMethod · 0.80
has_tracedecayMethod · 0.45

Tested by

no test coverage detected