{
  "schemaVersion": "1.0",
  "item": {
    "slug": "code-detective",
    "name": "Code Detective",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/russianoracle/code-detective",
    "canonicalUrl": "https://clawhub.ai/russianoracle/code-detective",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/code-detective",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-detective",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "code-detective",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T22:23:10.651Z",
      "expiresAt": "2026-05-08T22:23:10.651Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-detective",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-detective",
        "contentDisposition": "attachment; filename=\"code-detective-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "code-detective"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/code-detective"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/code-detective",
    "agentPageUrl": "https://openagent3.xyz/skills/code-detective/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-detective/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-detective/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Code Detective — Найди Баг в Коде",
        "body": "Игра для тренировки навыков отладки. Пользователь ищет ошибки в коде."
      },
      {
        "title": "1. Запуск игры",
        "body": "Когда пользователь просит \"найди баг\" или \"поиграем в отладку\":\n\n🔍 Code Detective — Найди баг!\n\nЯ покажу код с ошибкой, а ты найдёшь её!\n\nВыбери сложность:\n[🟢 Легко] [🟡 Средне] [🔴 Сложно]"
      },
      {
        "title": "2. Формат вопроса",
        "body": "Покажи код и используй message с параметром buttons:\n\n{\n  \"action\": \"send\",\n  \"channel\": \"telegram\",\n  \"target\": \"<user_id>\",\n  \"message\": \"🐛 Найди баг в этом коде (вопрос 1/5):\\n\\n```python\\ndef greet(name):\\n    print(\\\"Привет, \\\" + name)\\n\\ngreet(\\\"Артём)\\n```\\n\\nЧто не так?\",\n  \"buttons\": [\n    [{\"text\": \"💡 Подсказка\", \"callback_data\": \"hint:q1\"}],\n    [{\"text\": \"🔄 Пропустить\", \"callback_data\": \"skip:q1\"}]\n  ]\n}"
      },
      {
        "title": "3. Уровни сложности",
        "body": "🟢 Легко: Синтаксические ошибки, очевидные опечатки\n\n# Пример: Забыта закрывающая кавычка\nname = \"Артём\nprint(name)\n\n🟡 Средне: Логические ошибки, типичные паттерны\n\n// Пример: var вместо let в цикле\nfor (var i = 0; i < 3; i++) {\n  setTimeout(() => console.log(i), 100);\n}\n// Выведет 3, 3, 3 вместо 0, 1, 2\n\n🔴 Сложно: Сложные баги, несколько ошибок\n\n# Пример: UnboundLocalError\ndef counter():\n    count = 0\n    def increment():\n        count += 1  # Ошибка!\n        return count\n    return increment()"
      },
      {
        "title": "4. Типичные баги для игры",
        "body": "Python:\n\nЗабытые кавычки в строке\nОтступы (indentation)\nПеременная до объявления\n!= вместо ==\nЗабытый return\nИзменение global без global\n\nJavaScript:\n\n=== vs ==\nЗабытый await\nthis в стрелочных функциях\nvar вместо let/const в циклах\n\nОбщие:\n\nБесконечные циклы\nOff-by-one ошибки\nЗабытые break в switch"
      },
      {
        "title": "5. Подсказки",
        "body": "Если пользователь просит подсказку — дай направление, но не ответ:\n\n💡 Подсказка: посмотри на строки с текстом..."
      },
      {
        "title": "6. Правильный ответ",
        "body": "Когда пользователь угадал:\n\n✅ Верно! Забыта закрывающая кавычка!\n🎯 +15 очков\n\n💡 Совет: В IDE подсветка помогает найти такие ошибки.\n\n[➡️ Следующий вопрос]"
      },
      {
        "title": "7. Неправильный ответ",
        "body": "❌ Не совсем!\n\nПроблема в строке 4: greet(\"Артём)\nНе хватает закрывающей кавычки.\n\n[➡️ Следующий вопрос]"
      },
      {
        "title": "8. Финал игры",
        "body": "🔍 Code Detective завершён!\n━━━━━━━━━━━━━━━━━━\n🎯 Найдено багов: 4/5\n⭐ Опыт: +400 XP\n📈 Ты становишься лучшим детективом!\n\n[🔄 Играть снова]"
      },
      {
        "title": "Стиль общения",
        "body": "Поощряй: \"Хороший глаз!\", \"Ты на верном пути!\"\nОбъясняй ошибку просто\nДавай советы как избегать таких багов\nИспользуй эмодзи: 🐛 🔍 💡 ✅ ❌"
      },
      {
        "title": "Пример полного цикла",
        "body": "User: найди баг!\n\nBot: 🔍 Code Detective!\nВыбери сложность:\n\n[🟢 Легко] [🟡 Средне] [🔴 Сложно]\n\n---\n\nUser: [🟢 Легко]\n\nBot: 🐛 Найди баг (вопрос 1/3):\n\n```python\nx = 10\ny = 0\nresult = x / y\nprint(result)\n\n[💡 Подсказка]\n\nUser: деление на ноль!\n\nBot: ✅ Верно! ZeroDivisionError!\n🎯 +15 очков\n\n[➡️ Следующий вопрос]"
      }
    ],
    "body": "Code Detective — Найди Баг в Коде\n\nИгра для тренировки навыков отладки. Пользователь ищет ошибки в коде.\n\nКак использовать\n1. Запуск игры\n\nКогда пользователь просит \"найди баг\" или \"поиграем в отладку\":\n\n🔍 Code Detective — Найди баг!\n\nЯ покажу код с ошибкой, а ты найдёшь её!\n\nВыбери сложность:\n[🟢 Легко] [🟡 Средне] [🔴 Сложно]\n\n2. Формат вопроса\n\nПокажи код и используй message с параметром buttons:\n\n{\n  \"action\": \"send\",\n  \"channel\": \"telegram\",\n  \"target\": \"<user_id>\",\n  \"message\": \"🐛 Найди баг в этом коде (вопрос 1/5):\\n\\n```python\\ndef greet(name):\\n    print(\\\"Привет, \\\" + name)\\n\\ngreet(\\\"Артём)\\n```\\n\\nЧто не так?\",\n  \"buttons\": [\n    [{\"text\": \"💡 Подсказка\", \"callback_data\": \"hint:q1\"}],\n    [{\"text\": \"🔄 Пропустить\", \"callback_data\": \"skip:q1\"}]\n  ]\n}\n\n3. Уровни сложности\n\n🟢 Легко: Синтаксические ошибки, очевидные опечатки\n\n# Пример: Забыта закрывающая кавычка\nname = \"Артём\nprint(name)\n\n\n🟡 Средне: Логические ошибки, типичные паттерны\n\n// Пример: var вместо let в цикле\nfor (var i = 0; i < 3; i++) {\n  setTimeout(() => console.log(i), 100);\n}\n// Выведет 3, 3, 3 вместо 0, 1, 2\n\n\n🔴 Сложно: Сложные баги, несколько ошибок\n\n# Пример: UnboundLocalError\ndef counter():\n    count = 0\n    def increment():\n        count += 1  # Ошибка!\n        return count\n    return increment()\n\n4. Типичные баги для игры\n\nPython:\n\nЗабытые кавычки в строке\nОтступы (indentation)\nПеременная до объявления\n!= вместо ==\nЗабытый return\nИзменение global без global\n\nJavaScript:\n\n=== vs ==\nЗабытый await\nthis в стрелочных функциях\nvar вместо let/const в циклах\n\nОбщие:\n\nБесконечные циклы\nOff-by-one ошибки\nЗабытые break в switch\n5. Подсказки\n\nЕсли пользователь просит подсказку — дай направление, но не ответ:\n\n💡 Подсказка: посмотри на строки с текстом...\n\n6. Правильный ответ\n\nКогда пользователь угадал:\n\n✅ Верно! Забыта закрывающая кавычка!\n🎯 +15 очков\n\n💡 Совет: В IDE подсветка помогает найти такие ошибки.\n\n[➡️ Следующий вопрос]\n\n7. Неправильный ответ\n❌ Не совсем!\n\nПроблема в строке 4: greet(\"Артём)\nНе хватает закрывающей кавычки.\n\n[➡️ Следующий вопрос]\n\n8. Финал игры\n🔍 Code Detective завершён!\n━━━━━━━━━━━━━━━━━━\n🎯 Найдено багов: 4/5\n⭐ Опыт: +400 XP\n📈 Ты становишься лучшим детективом!\n\n[🔄 Играть снова]\n\nСтиль общения\nПоощряй: \"Хороший глаз!\", \"Ты на верном пути!\"\nОбъясняй ошибку просто\nДавай советы как избегать таких багов\nИспользуй эмодзи: 🐛 🔍 💡 ✅ ❌\nПример полного цикла\nUser: найди баг!\n\nBot: 🔍 Code Detective!\nВыбери сложность:\n\n[🟢 Легко] [🟡 Средне] [🔴 Сложно]\n\n---\n\nUser: [🟢 Легко]\n\nBot: 🐛 Найди баг (вопрос 1/3):\n\n```python\nx = 10\ny = 0\nresult = x / y\nprint(result)\n\n\n[💡 Подсказка]\n\nUser: деление на ноль!\n\nBot: ✅ Верно! ZeroDivisionError! 🎯 +15 очков\n\n[➡️ Следующий вопрос]"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/russianoracle/code-detective",
    "publisherUrl": "https://clawhub.ai/russianoracle/code-detective",
    "owner": "russianoracle",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/code-detective",
    "downloadUrl": "https://openagent3.xyz/downloads/code-detective",
    "agentUrl": "https://openagent3.xyz/skills/code-detective/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-detective/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-detective/agent.md"
  }
}