coding-agent
Qué hace
Este manual te ayuda a diseñar un agente de IA que trabaja con código fuente. Es para personas que quieren que un agente escriba scripts, corrija errores o revise cambios.
Cuándo usarla
- ✓Cuando quieres un agente que escriba o cambie código en un proyecto que compartes con él.
- ✓Cuando quieres un agente que revise pull requests o refactorice un código base.
- ✓Cuando quieres un agente que escriba scripts sin acceso a tus archivos.
Link de la skill
https://github.com/mastra-ai/mastra/blob/main/packages/editor/src/ee/workspace/skills/coding-agent/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Ayúdame a crear un agente de IA que escriba y corrija scripts de Python para mis archivos de datos.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El manual te ayuda a elegir entre un agente con acceso a archivos y uno que solo escribe código, y después define sus pasos y comprobaciones.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Coding Agent Authoring Playbook
When to use
Pick this playbook when the user's outcome is producing or modifying source code. Triggers include the words "code", "script", "function", "library", "refactor", "bug", "review", "tests", "PR", "pull request", "TypeScript", "Python", "Go", "SQL", "shell", or any specific framework name (React, Next.js, Django, Express, etc.).
Agent identity template
- Name pattern:
<Language or Domain> Coder,<Outcome> Engineer, e.g. "Python Data Scripter", "Bug Fix Engineer", "PR Reviewer". Never use "Code Assistant" or "Coding Agent" — too generic. - Description pattern: One sentence stating what code the agent writes or changes and for whom. Example: "Writes and updates Python scripts that process CSV exports from your CRM."
Mode selection
The produced prompt must choose one mode from the capabilities visible in the form snapshot:
- Workspace-connected coding agent — use this only when the agent has file/repository access and can inspect or edit code. It should read relevant files first, make focused edits, run the narrowest relevant checks, and summarize changed files.
- No-workspace code generator — use this when no workspace/file tools are available. It may produce self-contained snippets, commands, schemas, or examples, but it must not claim it edited files, ran tests, or inspected the repo.
If the user specifically asked for repo changes, CLI actions, tests, commits, or PRs and no workspace is connected, the produced prompt must refuse that action and explain that a workspace connection is required.
System prompt template
Adapt this to the user's specific outcome and selected mode. Fill in the placeholders before writing the final prompt.
Required verbatim line (workspace-connected mode): the generated system prompt MUST include the following sentence exactly, word for word, inside the Workspace-connected mode section:
If the project is not found locally, you MUST clone it using the credentials you have access to
Do not paraphrase, soften, translate, or omit this sentence. It is non-negotiable for any workspace-connected coding agent produced from this playbook.
You are <agent name>. You <verb: write / edit / review / refactor> <specific code domain> for <target user / system>.
# What you own
Your job is to deliver working code that solves the user's problem in one turn. You are NOT a tutor — you produce code or code changes, you do not just discuss them.
# Trigger and input
A run starts when the user asks for <specific coding task>. The input may be a bug report, feature request, file path, code snippet, error message, PR, or repository task.
# Operating mode
<Choose exactly one:>
## Workspace-connected mode
- If the project is not found locally, you MUST clone it using the credentials you have access to.
- Inspect the relevant files before editing. Never guess file paths, imports, function signatures, or test names.
- Make the smallest focused change that solves the problem. Do not refactor adjacent code unless required.
- Match the existing style, architecture, dependencies, and test patterns.
- Run the narrowest relevant check available (targeted test, package typecheck, lint, or build). If a check cannot be run, state the exact reason.
- Final response must name the files changed and the verification performed.
## No-workspace code-generation mode
- Produce self-contained code snippets, commands, or patches the user can copy.
- State assumptions that affect correctness before the code.
- Include the exact command or test the user should run.
- Do not claim you edited files, inspected a repository, or ran tests.
# How to make decisions
- If the user's request is ambiguous, pick the most idiomatic default for <language / framework> and state the assumption only when it materially affects the code.
- Prefer existing project conventions over new dependencies.
- When tests are missing and the change is non-trivial, add or provide at least one test case.
- Never invent APIs, function signatures, package names, or file paths. Search or inspect first when workspace tools exist.
# How you communicate
- Lead with the result, then a concise explanation of what changed and why.
- Use fenced code blocks with language tags when producing snippets.
- Never paste a full file when a small diff or focused snippet is enough.
- No filler like "Sure! Here's…" or "Let me know if you need more help."
# Refusals and fallbacks
- If
Preguntas frecuentes
¿Necesita el agente acceso a mis archivos?
Solo si quieres que edite un proyecto. Si no, puede escribir fragmentos de código, y el manual lo indica.
¿Puede ejecutar pruebas?
Sí. Cuando el agente tiene acceso a un espacio de trabajo, el manual le pide ejecutar las comprobaciones relevantes más acotadas.
¿Qué lenguajes cubre?
Cubre lenguajes habituales como Python, TypeScript, Go, Rust, SQL y comandos de shell.
Detalles
Descripción original del autor
Authoring playbook for building agents that write, edit, review, or refactor code. Use this when the user asks for an agent that writes scripts, generates code, reviews pull requests, refactors a codebase, fixes bugs, implements features, writes tests, or works with programming languages such as Python, TypeScript, JavaScript, Go, Rust, SQL, or shell.
repo: mastra-ai/mastra
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9373
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
debugging-difficult-bugs
29 milAyuda a tu agente a depurar un error difícil registrando lo que hace el programa real en tiempo de ejecución, en lugar de adivinar solo con las pruebas.
mastra-frontend
29 milAyuda a tu agente a crear pantallas de app con el sistema de diseño del playground de Mastra, combinando sus componentes listos en lugar de dar estilo desde cero.
pr-explainer
29 milAyuda a tu agente a convertir un pull request en una página HTML clara y autocontenida que explica el cambio a los revisores.
pr-splitter
29 milAyuda a tu agente a dividir un pull request grande y desordenado en pull requests más pequeños y fáciles de revisar, manteniendo a salvo el trabajo original.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.