Skip to content
Skillv1.0.0

code-standards

Code quality standards and style guide for reviewing pull requests

by mastra-ai(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from mastra-ai/mastra (templates/template-github-review-agent/workspace/skills/code-standards/SKILL.md). Install upstream with npx skills add mastra-ai/mastra --skill code-standards. Copyright stays with the author.

Code Standards Review

When reviewing code, follow this structured process:

Step 1: Critical Issues

Check for issues that MUST be fixed before merging:

  • Logic bugs and incorrect behavior
  • Missing error handling for failure cases
  • Race conditions or concurrency issues
  • Unhandled edge cases (null, undefined, empty arrays, boundary values)
  • Breaking API changes without migration path

Step 2: Code Quality

Evaluate overall code quality:

  • Functions should do one thing and be reasonably sized (< 50 lines preferred)
  • Avoid code duplication — look for repeated patterns that should be abstracted
  • Use descriptive, meaningful names for variables, functions, and types
  • Prefer explicit types over any in TypeScript
  • Ensure proper use of async/await (no floating promises, proper error propagation)

Step 3: Style Guide Conformance

Check against the style guide in references/style-guide.md:

  • Naming conventions
  • Code organization and import ordering
  • Comment quality (explain "why", not "what")

Step 4: Linting Flags

Flag these patterns:

  • var usage (should be const or let)
  • Leftover console.log or debugger statements
  • Commented-out code blocks
  • Magic numbers without named constants
  • TODO or FIXME comments without issue references

Output Format

Structure your feedback as:

  1. Summary: 1-2 sentence overview of the changes and overall quality
  2. Critical Issues: Must-fix problems with file path and line numbers
  3. Suggestions: Improvements that would make the code better
  4. Positive Notes: Good patterns and decisions worth acknowledging

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/mastra-ai-mastra-code-standards/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

mastra-ai-mastra-code-standards.ocm.jsonjson
{
  "ocm": "1",
  "id": "mastra-ai-mastra-code-standards",
  "kind": "skill",
  "name": "code-standards",
  "description": "Code quality standards and style guide for reviewing pull requests",
  "publisher": "mastra-ai",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "code-review",
      "quality",
      "style",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Code quality standards and style guide for reviewing pull requests"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/mastra-ai/mastra",
      "path": "templates/template-github-review-agent/workspace/skills/code-standards/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/mastra-ai/mastra/blob/HEAD/templates/template-github-review-agent/workspace/skills/code-standards/SKILL.md",
      "key": "mastra-ai/mastra/templates/template-github-review-agent/workspace/skills/code-standards/SKILL.md"
    }
  },
  "instructions": "# Code Standards Review\n\nWhen reviewing code, follow this structured process:\n\n## Step 1: Critical Issues\n\nCheck for issues that MUST be fixed before merging:\n\n- Logic bugs and incorrect behavior\n- Missing error handling for failure cases\n- Race conditions or concurrency issues\n- Unhandled edge cases (null, undefined, empty arrays, boundary values)\n- Breaking API changes without migration path\n\n## Step 2: Code Quality\n\nEvaluate overall code quality:\n\n- Functions should do one thing and be reasonably sized (< 50 lines preferred)\n- Avoid code duplication — look for repeated patterns that should ",
  "cost": {
    "context_tokens": 405
  }
}

Fetch it by URL: GET /api/v1/registry/mastra-ai-mastra-code-standards/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.