fn import_selected_skills(
mstore: &Store,
identity_store: &Store,
parsed: &ParsedBundleImport,
include_skills: &[BundleImportSkillSelection],
now: i64,
warnings: &mut Vec<String>,
skipped_skills: &mut Vec<String>,
) -> Result<Vec<String>, String>Expand description
Write the selected skills as global skills and return the ids created. A skill whose slug collides and has no non-empty rename is skipped; a name conflict at write time is a warning and a skip; any other write error rolls back the skills already created and fails the commit.
The collision is recomputed server-side so §4.1 point 4 (“an empty rename on a colliding skill = skip”) is enforced here, not left to a client to honour: otherwise a “duplicate_in_bundle” collision (not yet in the global catalog) would let the FIRST of two same-slug skills write under its own slug even with an empty rename, since skill_upsert_unique_global alone would not reject it until the second attempt.