MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / install_agent_skill

Function install_agent_skill

src/cli/cli.c:7810–7824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7808}
7809
7810static void install_agent_skill(const char *label, const char *skills_dir, bool force,
7811 bool dry_run) {
7812 char skill_path[CLI_BUF_1K];
7813 int written =
7814 snprintf(skill_path, sizeof(skill_path), "%s/codebase-memory/SKILL.md", skills_dir);
7815 if (written < 0 || (size_t)written >= sizeof(skill_path)) {
7816 return;
7817 }
7818 if (g_install_plan) {
7819 plan_record(label, "skill", skill_path);
7820 return;
7821 }
7822 int installed = cbm_install_skills(skills_dir, force, dry_run);
7823 printf(" skill: %s (%d installed)\n", skill_path, installed);
7824}
7825
7826/* Derive tier siblings only from the exact shipped Verify basename. This keeps
7827 * vendor-specific suffixes such as .agent.md, .toml, and .json intact. */

Calls 2

plan_recordFunction · 0.85
cbm_install_skillsFunction · 0.85

Tested by

no test coverage detected