# Send Code Assistant 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-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": {
    "downloadUrl": "/downloads/code-assistant",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-assistant",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/analyzer.ts"
    ],
    "downloadMode": "redirect",
    "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Code Assistant (Asistente de Programación Pro)

Una super-habilidad para desarrolladores. Va más allá de escribir código: analiza, depura, optimiza, refactoriza y documenta.

### Capacidades

┌─────────────────────────────────────────────────────┐
│                  CODE ASSISTANT                      │
├─────────────────────────────────────────────────────┤
│  🔍 Análisis    │  Encuentra bugs y code smells     │
│  ⚡ Optimización │  Mejora rendimiento y eficiencia  │
│  🔄 Refactor    │  Limpia y estructura código       │
│  📝 Documenta   │  Genera docstrings y README       │
│  🧪 Tests       │  Crea tests unitarios             │
│  🔐 Seguridad   │  Detecta vulnerabilidades         │
└─────────────────────────────────────────────────────┘

### Análisis de Código

# Analizar un archivo
code analyze src/utils.ts

# Analizar un directorio
code analyze src/ --depth:2

# Buscar bugs específicos
code bugs src/api/
code find-bugs src/

# Revisar complejidad
code complexity src/heavy-function.ts

### Optimización

# Sugerir optimizaciones
code optimize src/slow-algorithm.py

# Optimizar queries SQL
code optimize-sql queries/

# Reducir bundle size
code optimize-bundle src/

### Refactorización

# Refactorizar archivo
code refactor src/legacy-code.js

# Aplicar convenciones (PEP8, ESLint rules)
code format src/ --style:pep8

# Extraer función
code extract-function src/long-file.ts --lines:45-80

### Documentación

# Generar docstrings
code document src/api/

# Crear README
code readme src/my-project/

# Generar changelog
code changelog --since:v1.0.0

### Tests

# Generar tests unitarios
code test-gen src/calculator.ts

# Sugerir edge cases
code edge-cases src/validator.py

### Ejemplo de Uso

Usuario: code analyze src/users/auth.ts

Bot: 🔍 Análisis de: src/users/auth.ts

     📊 Métricas:
     ├── Líneas: 245
     ├── Funciones: 12
     ├── Complejidad ciclomática: 18 ⚠️ (alta)
     └── Cobertura de docs: 30% ⚠️

     🐛 Bugs Potenciales (2):
     
     1. Línea 67: Race condition
        \`\`\`typescript
        // ❌ Problema
        if (user) {
          await saveUser(user);  // user puede cambiar entre check y save
        }
        \`\`\`
        💡 Solución: Usar transacción o lock
     
     2. Línea 142: SQL Injection
        \`\`\`typescript
        // ❌ Problema
        query(\`SELECT * FROM users WHERE id = ${userId}\`)
        \`\`\`
        💡 Solución: Usar parámetros preparados

     ⚡ Optimizaciones Sugeridas (3):
     
     1. Línea 89: Usar Map en lugar de Object para lookups frecuentes
     2. Línea 156: Memoizar resultado de getPermissions()
     3. Línea 201: Lazy loading para módulo crypto

     🔄 Refactorizaciones Sugeridas:
     
     1. Extraer validateToken() a módulo separado
     2. Aplicar patrón Repository para queries
     
     ¿Ejecutar alguna acción? [Documentar] [Refactorizar] [Generar Tests]

### Lenguajes Soportados

LenguajeAnálisisDocsTestsTypeScript/JavaScript✅✅✅Python✅✅✅Go✅✅✅Rust✅✅⚠️Java✅✅✅C/C++⚠️⚠️⚠️

### Integración con Coding Agents

Puede delegar tareas complejas a Codex, Claude Code o Pi:

# Usar Codex para refactorizar
code refactor src/legacy.ts --agent:codex

# Usar Claude para documentar
code document src/ --agent:claude

### Configuración

VariableDescripciónDefaultCODE_DEFAULT_STYLEEstilo de códigoautoCODE_MAX_COMPLEXITYUmbral de complejidad15CODE_AUTO_FIXAplicar fixes automáticamentefalseCODE_IGNORE_PATTERNSPatrones a ignorarnode_modules,dist

### Reglas de Análisis

El asistente detecta:

Security: SQL injection, XSS, path traversal, hardcoded secrets
Performance: N+1 queries, loops ineficientes, memory leaks
Style: Nombres inconsistentes, funciones largas, código muerto
Logic: Null checks faltantes, race conditions, off-by-one errors

### Integración

self-repair: Los bugs encontrados pueden auto-corregirse
knowledge-base: Busca en documentación indexada
expert-researcher: Investiga mejores prácticas
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: miguelguerra200022-sudo
- 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:20:18.918Z
- Expires at: 2026-05-08T22:20:18.918Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/code-assistant)
- [Send to Agent page](https://openagent3.xyz/skills/code-assistant/agent)
- [JSON manifest](https://openagent3.xyz/skills/code-assistant/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/code-assistant/agent.md)
- [Download page](https://openagent3.xyz/downloads/code-assistant)