| 7444 | } |
| 7445 | |
| 7446 | static void install_agent_skill(const char *label, const char *skills_dir, bool force, |
| 7447 | bool dry_run) { |
| 7448 | char skill_path[CLI_BUF_1K]; |
| 7449 | int written = |
| 7450 | snprintf(skill_path, sizeof(skill_path), "%s/codebase-memory/SKILL.md", skills_dir); |
| 7451 | if (written < 0 || (size_t)written >= sizeof(skill_path)) { |
| 7452 | return; |
| 7453 | } |
| 7454 | if (g_install_plan) { |
| 7455 | plan_record(label, "skill", skill_path); |
| 7456 | return; |
| 7457 | } |
| 7458 | int installed = cbm_install_skills(skills_dir, force, dry_run); |
| 7459 | printf(" skill: %s (%d installed)\n", skill_path, installed); |
| 7460 | } |
| 7461 | |
| 7462 | /* Derive tier siblings only from the exact shipped Verify basename. This keeps |
| 7463 | * vendor-specific suffixes such as .agent.md, .toml, and .json intact. */ |
no test coverage detected