# Send Code Detective to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "downloadUrl": "/downloads/code-detective",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-detective",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Code Detective — Найди Баг в Коде

Игра для тренировки навыков отладки. Пользователь ищет ошибки в коде.

### 1. Запуск игры

Когда пользователь просит "найди баг" или "поиграем в отладку":

🔍 Code Detective — Найди баг!

Я покажу код с ошибкой, а ты найдёшь её!

Выбери сложность:
[🟢 Легко] [🟡 Средне] [🔴 Сложно]

### 2. Формат вопроса

Покажи код и используй message с параметром buttons:

{
  "action": "send",
  "channel": "telegram",
  "target": "<user_id>",
  "message": "🐛 Найди баг в этом коде (вопрос 1/5):\\n\\n\`\`\`python\\ndef greet(name):\\n    print(\\"Привет, \\" + name)\\n\\ngreet(\\"Артём)\\n\`\`\`\\n\\nЧто не так?",
  "buttons": [
    [{"text": "💡 Подсказка", "callback_data": "hint:q1"}],
    [{"text": "🔄 Пропустить", "callback_data": "skip:q1"}]
  ]
}

### 3. Уровни сложности

🟢 Легко: Синтаксические ошибки, очевидные опечатки

# Пример: Забыта закрывающая кавычка
name = "Артём
print(name)

🟡 Средне: Логические ошибки, типичные паттерны

// Пример: var вместо let в цикле
for (var i = 0; i < 3; i++) {
  setTimeout(() => console.log(i), 100);
}
// Выведет 3, 3, 3 вместо 0, 1, 2

🔴 Сложно: Сложные баги, несколько ошибок

# Пример: UnboundLocalError
def counter():
    count = 0
    def increment():
        count += 1  # Ошибка!
        return count
    return increment()

### 4. Типичные баги для игры

Python:

Забытые кавычки в строке
Отступы (indentation)
Переменная до объявления
!= вместо ==
Забытый return
Изменение global без global

JavaScript:

=== vs ==
Забытый await
this в стрелочных функциях
var вместо let/const в циклах

Общие:

Бесконечные циклы
Off-by-one ошибки
Забытые break в switch

### 5. Подсказки

Если пользователь просит подсказку — дай направление, но не ответ:

💡 Подсказка: посмотри на строки с текстом...

### 6. Правильный ответ

Когда пользователь угадал:

✅ Верно! Забыта закрывающая кавычка!
🎯 +15 очков

💡 Совет: В IDE подсветка помогает найти такие ошибки.

[➡️ Следующий вопрос]

### 7. Неправильный ответ

❌ Не совсем!

Проблема в строке 4: greet("Артём)
Не хватает закрывающей кавычки.

[➡️ Следующий вопрос]

### 8. Финал игры

🔍 Code Detective завершён!
━━━━━━━━━━━━━━━━━━
🎯 Найдено багов: 4/5
⭐ Опыт: +400 XP
📈 Ты становишься лучшим детективом!

[🔄 Играть снова]

### Стиль общения

Поощряй: "Хороший глаз!", "Ты на верном пути!"
Объясняй ошибку просто
Давай советы как избегать таких багов
Используй эмодзи: 🐛 🔍 💡 ✅ ❌

### Пример полного цикла

User: найди баг!

Bot: 🔍 Code Detective!
Выбери сложность:

[🟢 Легко] [🟡 Средне] [🔴 Сложно]

---

User: [🟢 Легко]

Bot: 🐛 Найди баг (вопрос 1/3):

\`\`\`python
x = 10
y = 0
result = x / y
print(result)

[💡 Подсказка]

User: деление на ноль!

Bot: ✅ Верно! ZeroDivisionError!
🎯 +15 очков

[➡️ Следующий вопрос]
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: russianoracle
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T22:23:10.651Z
- Expires at: 2026-05-08T22:23:10.651Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/code-detective)
- [Send to Agent page](https://openagent3.xyz/skills/code-detective/agent)
- [JSON manifest](https://openagent3.xyz/skills/code-detective/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/code-detective/agent.md)
- [Download page](https://openagent3.xyz/downloads/code-detective)