helpers/skills_import.py.dox.md
skills_import.py helper module.skills_import.py because this directory is intentionally flat.skills_import.py owns the runtime implementation.skills_import.py.dox.md owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.ImportPlanItem (no explicit base class)ImportResult (no explicit base class)_is_within(child: Path, parent: Path) -> bool_derive_namespace(source: Path) -> str_candidate_skill_roots(source_dir: Path) -> List[Path]: Heuristics to find likely skill roots inside a repo/pack:_safe_extract_zip(zip_path: Path, target: Path) -> Noneextract_skills_zip(zip_path: Path, tmp_subdir: str=..., prefix: str=...) -> tuple[Path, Path]: Extract a zip into a temp folder inside Agent Zero's tmp directory and return the scan/import root plus cleanup root._unzip_to_temp_dir(zip_path: Path) -> Path: Extract a zip into a temp folder under tmp/skill_imports (inside Agent Zero base dir).build_import_plan(source: Path, dest_root: Path, namespace: Optional[str]=...) -> Tuple[List[ImportPlanItem], Path]: Build a copy plan for importing skills from a source folder._resolve_conflict(dest: Path, policy: ConflictPolicy) -> Tuple[Path, bool]: Returns (final_dest_path, should_copy).get_project_skills_folder(project_name: str) -> Path: Get the skills folder path for a project.get_agent_profile_skills_folder(profile_name: str) -> Pathget_project_agent_profile_skills_folder(project_name: str, profile_name: str) -> Pathresolve_skills_destination_root(project_name: Optional[str], agent_profile: Optional[str]) -> Pathimport_skills(source_path: str, namespace: Optional[str]=..., conflict: ConflictPolicy=..., dry_run: bool=..., project_name: Optional[str]=..., agent_profile: Optional[str]=...) -> ImportResult: Import external Skills into usr/skills/<namespace>/...PROJECT_SKILLS_DIR.__future__, dataclasses, helpers, helpers.skills, os, pathlib, shutil, stat, tempfile, time, typing, zipfile.dataclass, strip, plugins.is_dir, Path, base_tmp.mkdir, time.strftime, target.mkdir, _candidate_skill_roots, Path.expanduser, resolve_skills_destination_root, dest_root.mkdir, build_import_plan, ImportResult, child.resolve.relative_to, direct.is_dir, discover_skill_md_files, plugins.iterdir, files.get_abs_path, zipfile.ZipFile, archive.extractall, shutil.rmtree.No child DOX files.