api-implementation

Enforce coding standards and type safety in Claude Code api/ layers.

9|Updated May 11, 2026
One-click install
npx skills add https://github.com/sei-newbear/xp-harness --skill api-implementation-sei-newbear
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-implementation
Source: https://github.com/sei-newbear/xp-harness/tree/main/.claude/skills/harness-verification/templates/webapp/.claude/skills/api-implementation
Command: npx skills add https://github.com/sei-newbear/xp-harness --skill api-implementation-sei-newbear

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that the code written in the api/ layer adheres to best coding practices, enhances maintainability, and provides a solid foundation for your Claude Code projects.

Core Features & Use Cases

  • Coding Standards Enforcement: Promotes proper layer separation, uses type-safe definitions, and enforces JSDoc commenting.
  • Error Handling Best Practices: Implements robust error handling, separating error management from business logic.
  • Data Persistence Separation: Segregates data persistence logic, ensuring the api/ layer doesn't directly interact with databases or file systems.

Quick Start

Write a new API route in the api/ directory, following the coding standards defined in the skill.

Frequently Asked Questions about api-implementation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce type safety and coding standards in a Claude Code API layer?

Type safety in API development prevents runtime errors by using type aliases for interfaces and ensuring strict separation between business logic, data persistence, and error handling within the HTTP API layer.

How do I separate error handling from business logic in an HTTP API?

Separate error handling from business logic in an HTTP API by implementing robust error management practices that isolate error resolution processes from the core API development tasks.

Does the api/ layer in Claude Code projects allow direct database interactions?

No, the api/ layer in Claude Code projects must not directly interact with databases or file systems, ensuring data persistence logic is fully segregated from the API routes.

What are the best practices for writing JSDoc comments in API development?

Best practices for JSDoc comments in API development mandate comprehensive documentation on all public functions, ensuring code maintainability and clear interface definitions within the API layer.

Why does my API layer lack proper type safety in Claude Code?

Your API layer lacks proper type safety if it fails to use type aliases for interfaces and does not adhere to the three-layer architecture coding standards required for Claude Code projects.

When do I need a three-layer architecture for my HTTP API?

You need a three-layer architecture for your HTTP API when implementing business logic and data persistence to ensure proper separation of concerns, enhance maintainability, and enforce strict coding standards.