Agent skill

Coding Agent

by mastra-ai in mastra-ai/mastra

Authoring playbook for building agents that write, edit, review, or refactor code.

Custom licenceAuto-check passedDevelopment

Install Coding Agent

skills CLI
$ npx skills add mastra-ai/mastra --skill coding-agent -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mastra-ai/mastra coding-agent --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mastra-ai/mastra.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/editor/src/ee/workspace/skills/coding-agent .claude/skills/coding-agent && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
coding-agent
GitHub stars
29k
Token cost
~2.3k tokens
SKILL.md length
676 words
Files
1
Skills in repo
44
Repo updated
First seen
Licence
Custom licence

At a glance

Authoring playbook for building agents that write, edit, review, or refactor code.

  • Works in 2 steps: Workspace-connected coding agent — use… → No-workspace code generator — use this…
  • Asks for an agent that writes scripts
  • SKILL.md covers When to use, Agent identity template, Mode selection and System prompt template, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Coding Agent is an agent skill from mastra-ai/mastra. 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.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Refactoring, Pull requests and Code review. It works with Python, SQL, TypeScript and JavaScript. The repository describes itself as: Mastra is the modern TypeScript framework for AI-powered applications and agents.

When your agent uses it

  • Asks for an agent that writes scripts
  • Reviews pull requests
  • Refactors a codebase
  • Implements features

Example prompts

  • “/coding-agent”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Workspace-connected coding agent — use this only when the agent has file/repository access and can inspect or edit code. It should read…
  2. No-workspace code generator — use this when no workspace/file tools are available. It may produce self-contained snippets, commands…

What it can do on your machine

Read from SKILL.md and the folder at commit 79ea2ae. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Coding Agent loads about 2.3k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 676 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 676 words (~2,285 tokens).

“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…”

— opening of SKILL.md by mastra-ai, Custom licence
name
coding-agent

Read the full SKILL.md on GitHub

Files

Just SKILL.md in packages/editor/src/ee/workspace/skills/coding-agent of mastra-ai/mastra.

Open the folder on GitHubat commit 79ea2ae

Compare with similar skills

Coding Agent next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Coding Agent compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Coding Agent this skillmastra-ai/mastra29k—~2.3kAutomated safety check: PassCustom licence
Code ReviewerLeoYeAI/openclaw-master-skills2.2k1 repos~1.2kAutomated safety check: PassMIT
Smart PR ReviewLeoYeAI/openclaw-master-skills2.2k—~2.7kAutomated safety check: NotesMIT
Code Reviewerjewbetcha/opentrace1162 repos~1.1kAutomated safety check: NotesMIT
Cross-Language Coding Standardszereight/gitlab-mcp2k1 repos~1.4kAutomated safety check: PassMIT
Mz PR ReviewMaterializeInc/materialize6.4k—~1.6kAutomated safety check: NotesCustom licence

Similar skills

  • Code Reviewer

    LeoYeAI/openclaw-master-skills

    Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin.

    2.2k GitHub starsUsed in 1 repo~1.2k tokens
    DevelopmentAuto-check passed
  • Smart PR Review

    LeoYeAI/openclaw-master-skills

    Opinionated AI code reviewer — not a yes-machine. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~2.7k tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes
  • Code Reviewer

    jewbetcha/opentrace

    Comprehensive code review skill for TypeScript, JavaScript, Python, Swift, Kotlin, Go.

    116 GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check: notes
  • Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.

    2k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Mz PR Review

    MaterializeInc/materialize

    Local code review of current branch vs Materialize standards.

    6.4k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check: notes
  • Code Reviewer

    borghei/Claude-Skills

    Code review automation for TypeScript, JavaScript, Python, Go, Swift, and Kotlin.

    881 GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed

More from mastra-ai/mastra

All 44 skills in this repo
  • Docs Audit

    mastra-ai/mastra

    Autonomous, report-only documentation review for Mastra docs.

    29k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Builder Smoke Test

    mastra-ai/mastra

    Smoke test the Agent Builder feature branch end-to-end against a hermetic project scaffolded by the skill (linked to the current worktree).

    29k GitHub stars~11k tokensUpdated today
    Auto-check: notes
  • Mastra Smoke Test

    mastra-ai/mastra

    Smoke test Mastra projects locally or deploy to staging/production.

    29k GitHub stars~4k tokensUpdated today
    Auto-check: notes
  • React Best Practices

    mastra-ai/mastra

    React performance optimization guidelines from Mastra Engineering.

    29k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Agent Prompt Quality Bar

    mastra-ai/mastra

    Universal quality bar and final audit rubric for any agent system prompt.

    29k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Content Writer Agent

    mastra-ai/mastra

    Authoring playbook for building agents that draft written content — blog posts, marketing copy, social media posts, newsletters, product descriptions, landing pages, or ad copy.

    29k GitHub stars~1.3k tokensUpdated today
    Auto-check passed

Categories

Questions about Coding Agent

What does Coding Agent do?

Authoring playbook for building agents that write, edit, review, or refactor code. Coding Agent is an agent skill from mastra-ai/mastra. Authoring playbook for building agents that write, edit, review, or refactor code.

When should I use Coding Agent?

Coding Agent fits situations like: asks for an agent that writes scripts; reviews pull requests; refactors a codebase; implements features.

How do I install Coding Agent in Claude Code?

Run `npx skills add mastra-ai/mastra --skill coding-agent -a claude-code`. Or copy the skill folder (packages/editor/src/ee/workspace/skills/coding-agent in mastra-ai/mastra) into .claude/skills/coding-agent in your project. Claude Code loads it when a task matches its description.

How do I install Coding Agent in Codex?

Run `npx skills add mastra-ai/mastra --skill coding-agent -a codex`. Or copy the skill folder (packages/editor/src/ee/workspace/skills/coding-agent in mastra-ai/mastra) into .agents/skills/coding-agent in your project. Codex loads it when a task matches its description.

Can I use Coding Agent in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mastra-ai/mastra --skill coding-agent -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/coding-agent, .gemini/skills/coding-agent, .github/skills/coding-agent and .opencode/skills/coding-agent in your project.

What does Coding Agent need to run?

SKILL.md names no scripts, command-line tools or credentials: Coding Agent is instructions for the agent only. Our summary lists: Python 3.

Does Coding Agent access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Coding Agent safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Coding Agent use?

Coding Agent has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Coding Agent use?

About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Coding Agent?

Skills that share tags, products or a category with Coding Agent: Code Reviewer (LeoYeAI/openclaw-master-skills, 2.2k stars), Smart PR Review (LeoYeAI/openclaw-master-skills, 2.2k stars), Code Reviewer (jewbetcha/opentrace, 116 stars) and Cross-Language Coding Standards (zereight/gitlab-mcp, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Coding Agent?

mastra-ai (a GitHub organization) maintains it in mastra-ai/mastra, which has 28,628 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 8, 2026.

Source: mastra-ai/mastra on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.