importer
diapason.skills.importer
¶
SkillImporter — install ResolvedSkill instances into ~/.diapason/skills/.
Steps performed by import_skill:
- Parse the source SKILL.md through SkillParser (strict + tolerant).
- Translate tool references in the markdown body via ToolTranslator.
- Decide on scripts (default-skip; opt-in via with_scripts=True).
- Write to disk at
/ / /: - translated SKILL.md
- references/, assets/, templates/ (always copied)
- scripts/ (only if approved)
- .source metadata file
- Return ImportResult with status, warnings, translated/missing tools.
ImportResult
dataclass
¶
Result of importing a single skill.
SkillImporter
¶
Install resolved skills into the user skills directory.
import_skill(resolved, *, with_scripts=False, force=False, confirm_dangerous=False)
¶
Install resolved into <target_root>/<source>/<name>/.
Returns an :class:ImportResult with status, paths, translated
tools, untranslated tools, and warnings.