(skills_dir: Path)
| 928 | ) |
| 929 | |
| 930 | def _ensure_usable(skills_dir: Path) -> Optional[Path]: |
| 931 | try: |
| 932 | skills_dir.mkdir(parents=True, exist_ok=True) |
| 933 | if not skills_dir.is_dir(): |
| 934 | raise NotADirectoryError(f"{skills_dir} is not a directory") |
| 935 | except (OSError, ValueError) as exc: |
| 936 | _print_cli_warning( |
| 937 | "resolve", |
| 938 | "skills directory", |
| 939 | str(skills_dir), |
| 940 | exc, |
| 941 | continuing="Continuing without skill registration.", |
| 942 | ) |
| 943 | return None |
| 944 | return skills_dir |
| 945 | |
| 946 | try: |
| 947 | skills_dir = resolve_active_skills_dir(self.project_root) |
nothing calls this directly
no test coverage detected