| 8603 | } |
| 8604 | |
| 8605 | static void install_agent_skill(const char *label, const char *skills_dir, bool force, |
| 8606 | bool dry_run) { |
| 8607 | char skill_path[CLI_BUF_1K]; |
| 8608 | int written = |
| 8609 | snprintf(skill_path, sizeof(skill_path), "%s/codebase-memory/SKILL.md", skills_dir); |
| 8610 | if (written < 0 || (size_t)written >= sizeof(skill_path)) { |
| 8611 | return; |
| 8612 | } |
| 8613 | if (g_install_plan) { |
| 8614 | plan_record(label, "skill", skill_path); |
| 8615 | return; |
| 8616 | } |
| 8617 | int installed = cbm_install_skills(skills_dir, force, dry_run); |
| 8618 | printf(" skill: %s (%d installed)\n", skill_path, installed); |
| 8619 | } |
| 8620 | |
| 8621 | /* Derive tier siblings only from the exact shipped Verify basename. This keeps |
| 8622 | * vendor-specific suffixes such as .agent.md, .toml, and .json intact. */ |
no test coverage detected