| 7400 | } |
| 7401 | |
| 7402 | static void install_agent_skill(const char *label, const char *skills_dir, bool force, |
| 7403 | bool dry_run) { |
| 7404 | char skill_path[CLI_BUF_1K]; |
| 7405 | int written = |
| 7406 | snprintf(skill_path, sizeof(skill_path), "%s/codebase-memory/SKILL.md", skills_dir); |
| 7407 | if (written < 0 || (size_t)written >= sizeof(skill_path)) { |
| 7408 | return; |
| 7409 | } |
| 7410 | if (g_install_plan) { |
| 7411 | plan_record(label, "skill", skill_path); |
| 7412 | return; |
| 7413 | } |
| 7414 | int installed = cbm_install_skills(skills_dir, force, dry_run); |
| 7415 | printf(" skill: %s (%d installed)\n", skill_path, installed); |
| 7416 | } |
| 7417 | |
| 7418 | /* Derive tier siblings only from the exact shipped Verify basename. This keeps |
| 7419 | * vendor-specific suffixes such as .agent.md, .toml, and .json intact. */ |
no test coverage detected