跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

API Endpoint Creator

技能 已验证 活跃

Creates RPC-style endpoint following layered architecture (Controller → Manager → Repository). Use when creating new API endpoints or CRUD operations.

目的

To automate the creation of well-structured, maintainable API endpoints, enforcing best practices and saving development time.

功能

  • Generates RPC-style API endpoints
  • Enforces layered architecture (Controller, Manager, Repository)
  • Creates request/response models
  • Generates manager interfaces and implementations
  • Includes Retrofit client code
  • Scaffolds integration tests

使用场景

  • Creating new REST API endpoints from scratch
  • Adding CRUD operations for new domain entities
  • Setting up the full backend stack for an API
  • Ensuring consistency in API development

非目标

  • Generating UI components
  • Writing database schema definitions
  • Handling frontend framework logic
  • Deploying the generated code

工作流

  1. Create Request/Response Models
  2. Create Controller
  3. Create Manager Interface
  4. Create Manager Implementation
  5. Register Factory Bean
  6. Create Retrofit Client
  7. Create Integration Test
  8. Run Tests

安装

npx skills add spartan-stratos/spartan-ai-toolkit

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

质量评分

已验证
97 /100
about 24 hours ago 分析

信任信号

最近提交3 days ago
星标68
许可证MIT
状态
查看源代码