| 8809 | } |
| 8810 | |
| 8811 | static void install_agent_skill(const char *label, const char *skills_dir, bool force, |
| 8812 | bool dry_run) { |
| 8813 | char skill_path[CLI_BUF_1K]; |
| 8814 | int written = |
| 8815 | snprintf(skill_path, sizeof(skill_path), "%s/codebase-memory/SKILL.md", skills_dir); |
| 8816 | if (written < 0 || (size_t)written >= sizeof(skill_path)) { |
| 8817 | return; |
| 8818 | } |
| 8819 | if (g_install_plan) { |
| 8820 | plan_record(label, "skill", skill_path); |
| 8821 | return; |
| 8822 | } |
| 8823 | int installed = cbm_install_skills(skills_dir, force, dry_run); |
| 8824 | printf(" skill: %s (%d installed)\n", skill_path, installed); |
| 8825 | } |
| 8826 | |
| 8827 | /* Derive tier siblings only from the exact shipped Verify basename. This keeps |
| 8828 | * vendor-specific suffixes such as .agent.md, .toml, and .json intact. */ |
no test coverage detected