KS
Killer-Skills

code-quality — how to use code-quality how to use code-quality, code-quality setup guide, what is code-quality, code-quality alternative, code-quality vs serverless framework, code-quality install for Node.js

v1.0.0
GitHub

About this Skill

Perfect for Serverless Agents needing consistent, spec-compliant code maintenance across Node.js and TypeScript implementations. Code-quality is a local serverless runtime that maps files to HTTP endpoints using a strict Web Request -> Response contract.

Features

Maps files in api/ to HTTP endpoints
Dispatches requests using a strict Web Request -> Response contract
Supports Node.js with modern JavaScript or TypeScript
Utilizes ES modules (import/export) for module management
Implements web-standard Request/Response for handler contract

# Core Topics

AndreaCadonna AndreaCadonna
[0]
[0]
Updated: 3/7/2026

Quality Score

Top 5%
38
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add AndreaCadonna/serverless_function_runtime/code-quality

Agent Capability Analysis

The code-quality MCP Server by AndreaCadonna is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use code-quality, code-quality setup guide, what is code-quality.

Ideal Agent Persona

Perfect for Serverless Agents needing consistent, spec-compliant code maintenance across Node.js and TypeScript implementations.

Core Value

Empowers agents to enforce ES module standards, utilize web-standard Request/Response handlers, and maintain consistent code quality throughout serverless function runtime implementations using modern JavaScript or TypeScript.

Capabilities Granted for code-quality MCP Server

Writing new source files with compliant code structure
Reviewing existing code for spec compliance and refactoring
Making informed implementation decisions about code structure and patterns

! Prerequisites & Limits

  • Requires Node.js environment with modern JavaScript or TypeScript support
  • Limited to serverless function runtime implementations
Project
SKILL.md
2.5 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Code Quality — Skill

Purpose

Maintain consistent, spec-compliant code throughout the serverless function runtime implementation.

When to Use

  • Writing new source files
  • Reviewing or refactoring existing code
  • Making implementation decisions about structure or patterns

Language and Runtime Conventions

  1. Node.js with modern JavaScript or TypeScript. Use ES modules (import/export).
  2. Web-standard Request/Response for the handler contract. Use the global Request and Response objects (Node.js 18+ built-in) or a minimal polyfill.
  3. Minimal dependencies. Do not add frameworks or libraries unless strictly required by the spec. Prefer Node.js built-ins.
  4. No TypeScript compilation complexity. If using TypeScript, keep the build step simple. Plain JavaScript is acceptable.

Code Structure Conventions

  1. One module, one responsibility. Each file should have a clear, single purpose.
  2. Named exports for public API. Default exports only for handler method functions.
  3. Handler functions are named by HTTP method: export function GET(request) {}, export function POST(request) {}.
  4. No global mutable state except where explicitly required by the spec (warm module reuse via module-level variables is allowed per REQ-RTG-006).

Error Handling Conventions

  1. Runtime errors use the spec's JSON format: {"errorCode": "<CODE>", "message": "<detail>"}.
  2. Error codes are exactly: ROUTE_NOT_FOUND, METHOD_NOT_ALLOWED, HANDLER_EXCEPTION, INVALID_HANDLER_RESPONSE, INVOCATION_TIMEOUT.
  3. HTTP status mapping is fixed: 404, 405, 500, 500, 504 respectively.
  4. Handler exceptions must be caught and mapped to HANDLER_EXCEPTION with the original error message.
  5. Timeout enforcement uses AbortController or equivalent — do not rely on unref'd timers alone.

Testing Conventions

  1. E2E tests run via npm test (REQ-RCV-006).
  2. Tests start the runtime, send HTTP requests, and assert responses. No mocking of the runtime itself.
  3. Each spec scenario (Section 6) maps to at least one test case.
  4. Test exit code 0 on success (REQ-RCV-007).

Quality Checklist

  • All source files use ES modules
  • Handler contract uses Web-standard Request/Response
  • No unnecessary dependencies added
  • Error responses match spec JSON format exactly
  • Timeout enforcement is 3000ms per invocation
  • No debug prints or commented-out code in committed files
  • Each file has a single, clear responsibility

Related Skills

Looking for an alternative to code-quality or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication