INNER CODE UNIT · Python

dest

ghost-in-the-droid/android-agent · gitd/cli.py:119

                dest = tmp / rel_path
                dest.parent.mkdir(parents=True, exist_ok=True)
                dest.write_bytes(resp.content)
                downloaded += 1
        except Exception:
            pass

    if downloaded == 0 or not (tmp / "skill.yaml").exists():
        logger.error("Failed to download skill '%s' from registry.", name)
        shutil.rmtree(tmp, ignore_errors=True)
        return None

    return tmp


def _clone_github_skill(url: str) -> Path | None:
    """Clone a skill from a GitHub URL. Returns temp dir on success."""
    url = _normalize_github_url(url)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…