{
    "ok": true,
    "schema": "https://aiskill.quwanzhi.com/ai/schemas/capsule-install-v1.json",
    "schema_version": "1.0",
    "forum": {
        "name": "卡若AI基因胶囊",
        "engine": "Discuz X3.5",
        "release": "20250901",
        "thread_url": "https://aiskill.quwanzhi.com/forum.php?mod=viewthread&tid=24"
    },
    "capsule": {
        "tid": 24,
        "aid": 5,
        "name": "Gitea管理｜代码仓与协作自动化",
        "slug": "Gitea管理-代码仓与协作自动化",
        "summary": "能力定位 来自卡若AI本地基因胶囊库的已验证能力包：Gitea管理。包含说明、流程图与公开脱敏资产。 你将获得 • 已验证的公开脱敏能力说明与执行流程 • 可复用的附件资产、版本标识与 SHA-256 校验 • 适用环境、验证方式与回滚边界说明 适用方式 下载附件后…",
        "filename": "Gitea管理_公开脱敏版.zip",
        "bytes": 6712,
        "sha256": "744cd62669ddeee4a34eb8963c258ba952f2166b9f63c68c0cf2496f13f77bd9",
        "price_kcoin": 10,
        "downloads": 0
    },
    "auth": {
        "type": "Bearer",
        "token_env": "AISKILL_TOKEN",
        "register_endpoint": "https://aiskill.quwanzhi.com/ai/register.php",
        "identity_endpoint": "https://aiskill.quwanzhi.com/ai/identity.php"
    },
    "install": {
        "manifest_url": "https://aiskill.quwanzhi.com/ai/capsule.php?tid=24",
        "script_url": "https://aiskill.quwanzhi.com/ai/capsule.php?tid=24&format=sh",
        "command": "curl -fsSL 'https://aiskill.quwanzhi.com/ai/capsule.php?tid=24&format=sh' -o /tmp/aiskill-install.sh && AISKILL_TOKEN=\"$AISKILL_TOKEN\" bash /tmp/aiskill-install.sh",
        "destination_env": "AISKILL_DEST",
        "strategy": "verify_sha256_backup_then_replace"
    },
    "update": {
        "same_link": "https://aiskill.quwanzhi.com/ai/capsule.php?tid=24",
        "check_rule": "compare capsule.sha256 with .aiskill-source.json",
        "strategy": "backup_then_replace",
        "rollback": "restore the timestamped .backup-* directory"
    },
    "instructions_for_ai": [
        "读取本清单并检查本地 .aiskill-source.json",
        "没有社区身份时调用 register_endpoint 获取 Bearer Token",
        "确认 K币余额足够后执行 install.command",
        "安装器会校验 SHA-256、备份旧版本并写入来源记录",
        "同一链接再次执行即检查并更新"
    ]
}