api-naming

Standardize API naming and access boundaries across PowerX services.

357|65|Updated Jul 29, 2022
One-click install
npx skills add https://github.com/ArtisanCloud/PowerX --skill api-naming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-naming
Source: https://github.com/ArtisanCloud/PowerX/tree/main/.codex/skills/governance/api-naming
Command: npx skills add https://github.com/ArtisanCloud/PowerX --skill api-naming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill defines a clear, enforceable API naming and access convention for PowerX to eliminate inconsistent endpoints, unclear versioning, and accidental exposure of internal/plugin APIs, reducing security gaps and integration friction.

Core Features & Use Cases

  • Path prefix and boundary rules: Clarifies public (/api/v1), management (/api/v1/admin) and internal (<APIPrefix>/internal) domains and their intended audiences.
  • Versioning and compatibility: Prescribes where stable public APIs live and how to introduce breaking changes with new versions.
  • Authentication and tenant handling: Requires auth for admin and internal routes and specifies tenant propagation and validation to prevent cross-tenant access.
  • Plugin and reverse-proxy patterns: Documents host plugin proxy paths, plugin internal endpoints, and examples for plugin lifecycle and governance.
  • OpenAPI and audit guidance: Specifies which endpoints must expose OpenAPI and what tracing/audit metadata to include for observability and compliance.

Quick Start

Audit your service routes against the PowerX API naming and access rules and list any mismatches with recommended fixes.

Frequently Asked Questions about api-naming

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

FAQPage Schema
How do I standardize API path prefixes for public, admin, and internal endpoints?

Standardize API path prefixes by enforcing specific boundaries: use /api/v1 for public endpoints, /api/v1/admin for management routes, and <APIPrefix>/internal for internal domains. This clarifies intended audiences and prevents accidental exposure of internal plugin APIs.

What is the best way to handle API versioning and introduce breaking changes?

API versioning requires prescribing a stable location for public APIs and introducing breaking changes through new versions. This approach eliminates unclear versioning and maintains compatibility across services while enforcing consistent versioning policies.

How does tenant propagation work for admin and internal API routes?

Tenant propagation for admin and internal API routes requires authentication and specifies tenant validation to prevent cross-tenant access. This mechanism enforces access boundaries and reduces security gaps across services.

Do I need OpenAPI exposure rules for all API endpoints?

OpenAPI exposure rules do not apply to all endpoints uniformly. The convention specifies exactly which endpoints must expose OpenAPI and outlines the tracing and audit metadata required for observability and compliance.

How do I audit existing service routes against API naming and access conventions?

Audit service routes by comparing them against API naming and access rules to identify mismatches. Generate a list of inconsistencies with recommended fixes to align endpoints with path prefix, versioning, and authentication policies.

Can I use reverse-proxy patterns for host plugin internal endpoints?

Reverse-proxy patterns support host plugin proxy paths and plugin internal endpoints. The convention documents these patterns with examples for plugin lifecycle and governance to ensure secure and standardized integration.