{
  "schemaVersion": "1.0",
  "item": {
    "slug": "code-assistant",
    "name": "Code Assistant",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/miguelguerra200022-sudo/code-assistant",
    "canonicalUrl": "https://clawhub.ai/miguelguerra200022-sudo/code-assistant",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/code-assistant",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-assistant",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/analyzer.ts"
    ],
    "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-assistant",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T22:20:18.918Z",
      "expiresAt": "2026-05-08T22:20:18.918Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-assistant",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-assistant",
        "contentDisposition": "attachment; filename=\"code-assistant-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "code-assistant"
      },
      "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-assistant"
    },
    "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-assistant",
    "agentPageUrl": "https://openagent3.xyz/skills/code-assistant/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-assistant/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-assistant/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 Assistant (Asistente de Programación Pro)",
        "body": "Una super-habilidad para desarrolladores. Va más allá de escribir código: analiza, depura, optimiza, refactoriza y documenta."
      },
      {
        "title": "Capacidades",
        "body": "┌─────────────────────────────────────────────────────┐\n│                  CODE ASSISTANT                      │\n├─────────────────────────────────────────────────────┤\n│  🔍 Análisis    │  Encuentra bugs y code smells     │\n│  ⚡ Optimización │  Mejora rendimiento y eficiencia  │\n│  🔄 Refactor    │  Limpia y estructura código       │\n│  📝 Documenta   │  Genera docstrings y README       │\n│  🧪 Tests       │  Crea tests unitarios             │\n│  🔐 Seguridad   │  Detecta vulnerabilidades         │\n└─────────────────────────────────────────────────────┘"
      },
      {
        "title": "Análisis de Código",
        "body": "# Analizar un archivo\ncode analyze src/utils.ts\n\n# Analizar un directorio\ncode analyze src/ --depth:2\n\n# Buscar bugs específicos\ncode bugs src/api/\ncode find-bugs src/\n\n# Revisar complejidad\ncode complexity src/heavy-function.ts"
      },
      {
        "title": "Optimización",
        "body": "# Sugerir optimizaciones\ncode optimize src/slow-algorithm.py\n\n# Optimizar queries SQL\ncode optimize-sql queries/\n\n# Reducir bundle size\ncode optimize-bundle src/"
      },
      {
        "title": "Refactorización",
        "body": "# Refactorizar archivo\ncode refactor src/legacy-code.js\n\n# Aplicar convenciones (PEP8, ESLint rules)\ncode format src/ --style:pep8\n\n# Extraer función\ncode extract-function src/long-file.ts --lines:45-80"
      },
      {
        "title": "Documentación",
        "body": "# Generar docstrings\ncode document src/api/\n\n# Crear README\ncode readme src/my-project/\n\n# Generar changelog\ncode changelog --since:v1.0.0"
      },
      {
        "title": "Tests",
        "body": "# Generar tests unitarios\ncode test-gen src/calculator.ts\n\n# Sugerir edge cases\ncode edge-cases src/validator.py"
      },
      {
        "title": "Ejemplo de Uso",
        "body": "Usuario: code analyze src/users/auth.ts\n\nBot: 🔍 Análisis de: src/users/auth.ts\n\n     📊 Métricas:\n     ├── Líneas: 245\n     ├── Funciones: 12\n     ├── Complejidad ciclomática: 18 ⚠️ (alta)\n     └── Cobertura de docs: 30% ⚠️\n\n     🐛 Bugs Potenciales (2):\n     \n     1. Línea 67: Race condition\n        ```typescript\n        // ❌ Problema\n        if (user) {\n          await saveUser(user);  // user puede cambiar entre check y save\n        }\n        ```\n        💡 Solución: Usar transacción o lock\n     \n     2. Línea 142: SQL Injection\n        ```typescript\n        // ❌ Problema\n        query(`SELECT * FROM users WHERE id = ${userId}`)\n        ```\n        💡 Solución: Usar parámetros preparados\n\n     ⚡ Optimizaciones Sugeridas (3):\n     \n     1. Línea 89: Usar Map en lugar de Object para lookups frecuentes\n     2. Línea 156: Memoizar resultado de getPermissions()\n     3. Línea 201: Lazy loading para módulo crypto\n\n     🔄 Refactorizaciones Sugeridas:\n     \n     1. Extraer validateToken() a módulo separado\n     2. Aplicar patrón Repository para queries\n     \n     ¿Ejecutar alguna acción? [Documentar] [Refactorizar] [Generar Tests]"
      },
      {
        "title": "Lenguajes Soportados",
        "body": "LenguajeAnálisisDocsTestsTypeScript/JavaScript✅✅✅Python✅✅✅Go✅✅✅Rust✅✅⚠️Java✅✅✅C/C++⚠️⚠️⚠️"
      },
      {
        "title": "Integración con Coding Agents",
        "body": "Puede delegar tareas complejas a Codex, Claude Code o Pi:\n\n# Usar Codex para refactorizar\ncode refactor src/legacy.ts --agent:codex\n\n# Usar Claude para documentar\ncode document src/ --agent:claude"
      },
      {
        "title": "Configuración",
        "body": "VariableDescripciónDefaultCODE_DEFAULT_STYLEEstilo de códigoautoCODE_MAX_COMPLEXITYUmbral de complejidad15CODE_AUTO_FIXAplicar fixes automáticamentefalseCODE_IGNORE_PATTERNSPatrones a ignorarnode_modules,dist"
      },
      {
        "title": "Reglas de Análisis",
        "body": "El asistente detecta:\n\nSecurity: SQL injection, XSS, path traversal, hardcoded secrets\nPerformance: N+1 queries, loops ineficientes, memory leaks\nStyle: Nombres inconsistentes, funciones largas, código muerto\nLogic: Null checks faltantes, race conditions, off-by-one errors"
      },
      {
        "title": "Integración",
        "body": "self-repair: Los bugs encontrados pueden auto-corregirse\nknowledge-base: Busca en documentación indexada\nexpert-researcher: Investiga mejores prácticas"
      }
    ],
    "body": "Code Assistant (Asistente de Programación Pro)\n\nUna super-habilidad para desarrolladores. Va más allá de escribir código: analiza, depura, optimiza, refactoriza y documenta.\n\nCapacidades\n┌─────────────────────────────────────────────────────┐\n│                  CODE ASSISTANT                      │\n├─────────────────────────────────────────────────────┤\n│  🔍 Análisis    │  Encuentra bugs y code smells     │\n│  ⚡ Optimización │  Mejora rendimiento y eficiencia  │\n│  🔄 Refactor    │  Limpia y estructura código       │\n│  📝 Documenta   │  Genera docstrings y README       │\n│  🧪 Tests       │  Crea tests unitarios             │\n│  🔐 Seguridad   │  Detecta vulnerabilidades         │\n└─────────────────────────────────────────────────────┘\n\nComandos\nAnálisis de Código\n# Analizar un archivo\ncode analyze src/utils.ts\n\n# Analizar un directorio\ncode analyze src/ --depth:2\n\n# Buscar bugs específicos\ncode bugs src/api/\ncode find-bugs src/\n\n# Revisar complejidad\ncode complexity src/heavy-function.ts\n\nOptimización\n# Sugerir optimizaciones\ncode optimize src/slow-algorithm.py\n\n# Optimizar queries SQL\ncode optimize-sql queries/\n\n# Reducir bundle size\ncode optimize-bundle src/\n\nRefactorización\n# Refactorizar archivo\ncode refactor src/legacy-code.js\n\n# Aplicar convenciones (PEP8, ESLint rules)\ncode format src/ --style:pep8\n\n# Extraer función\ncode extract-function src/long-file.ts --lines:45-80\n\nDocumentación\n# Generar docstrings\ncode document src/api/\n\n# Crear README\ncode readme src/my-project/\n\n# Generar changelog\ncode changelog --since:v1.0.0\n\nTests\n# Generar tests unitarios\ncode test-gen src/calculator.ts\n\n# Sugerir edge cases\ncode edge-cases src/validator.py\n\nEjemplo de Uso\nUsuario: code analyze src/users/auth.ts\n\nBot: 🔍 Análisis de: src/users/auth.ts\n\n     📊 Métricas:\n     ├── Líneas: 245\n     ├── Funciones: 12\n     ├── Complejidad ciclomática: 18 ⚠️ (alta)\n     └── Cobertura de docs: 30% ⚠️\n\n     🐛 Bugs Potenciales (2):\n     \n     1. Línea 67: Race condition\n        ```typescript\n        // ❌ Problema\n        if (user) {\n          await saveUser(user);  // user puede cambiar entre check y save\n        }\n        ```\n        💡 Solución: Usar transacción o lock\n     \n     2. Línea 142: SQL Injection\n        ```typescript\n        // ❌ Problema\n        query(`SELECT * FROM users WHERE id = ${userId}`)\n        ```\n        💡 Solución: Usar parámetros preparados\n\n     ⚡ Optimizaciones Sugeridas (3):\n     \n     1. Línea 89: Usar Map en lugar de Object para lookups frecuentes\n     2. Línea 156: Memoizar resultado de getPermissions()\n     3. Línea 201: Lazy loading para módulo crypto\n\n     🔄 Refactorizaciones Sugeridas:\n     \n     1. Extraer validateToken() a módulo separado\n     2. Aplicar patrón Repository para queries\n     \n     ¿Ejecutar alguna acción? [Documentar] [Refactorizar] [Generar Tests]\n\nLenguajes Soportados\nLenguaje\tAnálisis\tDocs\tTests\nTypeScript/JavaScript\t✅\t✅\t✅\nPython\t✅\t✅\t✅\nGo\t✅\t✅\t✅\nRust\t✅\t✅\t⚠️\nJava\t✅\t✅\t✅\nC/C++\t⚠️\t⚠️\t⚠️\nIntegración con Coding Agents\n\nPuede delegar tareas complejas a Codex, Claude Code o Pi:\n\n# Usar Codex para refactorizar\ncode refactor src/legacy.ts --agent:codex\n\n# Usar Claude para documentar\ncode document src/ --agent:claude\n\nConfiguración\nVariable\tDescripción\tDefault\nCODE_DEFAULT_STYLE\tEstilo de código\tauto\nCODE_MAX_COMPLEXITY\tUmbral de complejidad\t15\nCODE_AUTO_FIX\tAplicar fixes automáticamente\tfalse\nCODE_IGNORE_PATTERNS\tPatrones a ignorar\tnode_modules,dist\nReglas de Análisis\n\nEl asistente detecta:\n\nSecurity: SQL injection, XSS, path traversal, hardcoded secrets\nPerformance: N+1 queries, loops ineficientes, memory leaks\nStyle: Nombres inconsistentes, funciones largas, código muerto\nLogic: Null checks faltantes, race conditions, off-by-one errors\nIntegración\nself-repair: Los bugs encontrados pueden auto-corregirse\nknowledge-base: Busca en documentación indexada\nexpert-researcher: Investiga mejores prácticas"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/miguelguerra200022-sudo/code-assistant",
    "publisherUrl": "https://clawhub.ai/miguelguerra200022-sudo/code-assistant",
    "owner": "miguelguerra200022-sudo",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/code-assistant",
    "downloadUrl": "https://openagent3.xyz/downloads/code-assistant",
    "agentUrl": "https://openagent3.xyz/skills/code-assistant/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-assistant/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-assistant/agent.md"
  }
}