| 7593 | } |
| 7594 | |
| 7595 | static void install_agent_skill(const char *label, const char *skills_dir, bool force, |
| 7596 | bool dry_run) { |
| 7597 | char skill_path[CLI_BUF_1K]; |
| 7598 | int written = |
| 7599 | snprintf(skill_path, sizeof(skill_path), "%s/codebase-memory/SKILL.md", skills_dir); |
| 7600 | if (written < 0 || (size_t)written >= sizeof(skill_path)) { |
| 7601 | return; |
| 7602 | } |
| 7603 | if (g_install_plan) { |
| 7604 | plan_record(label, "skill", skill_path); |
| 7605 | return; |
| 7606 | } |
| 7607 | int installed = cbm_install_skills(skills_dir, force, dry_run); |
| 7608 | printf(" skill: %s (%d installed)\n", skill_path, installed); |
| 7609 | } |
| 7610 | |
| 7611 | /* Derive tier siblings only from the exact shipped Verify basename. This keeps |
| 7612 | * vendor-specific suffixes such as .agent.md, .toml, and .json intact. */ |
no test coverage detected