Overview
- Skill Key
- 1kalin/afrexai-api-architect
- Author
- 1kalin
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/1kalin/afrexai-api-architect
- Latest Commit SHA
- 41a7a48bd4078af50a53fc7579b0462e1d2f69c1
Design, build, test, document, and secure production-grade APIs. Covers the full lifecycle from schema design through deployment, monitoring, and versioning. Use when designing new APIs, reviewing existing ones, generating OpenAPI specs, building test suites, or debugging production issues.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 afrexai-api-architect 技能。 若已安装,则直接安装 afrexai-api-architect 技能。
# API Architect — Full Lifecycle API Development
Design, build, test, document, secure, and monitor production-grade APIs. Not just curl commands — a complete engineering methodology.
## When to Use
- Designing a new API (REST, GraphQL, or gRPC)
- Reviewing an existing API for quality, consistency, or security
- Generating or validating OpenAPI/Swagger specs
- Building comprehensive test suites (unit, integration, contract, load)
- Debugging production API issues
- Planning API versioning and deprecation
- Setting up monitoring, rate limiting, and error handling
---
## Phase 1: API Design
### Design-First Approach
Always design before coding. The spec IS the contract.
#### Resource Modeling
Map your domain to resources using this template:
```yaml
# api-design.yaml
service: order-management
base_path: /api/v1
resources:
- name: orders
path: /orders
description: Customer purchase orders
identifier: order_id (UUID)
parent: null
operations: [list, create, get, update, cancel]
sub_resources:
- name: line_items
path: /orders/{order_id}/items
operations: [list, add, update, remove]
- name: payments
path: /orders/{order_id}/payments
operations: [list, create, get, refund]
states: [draft, confirmed, processing, shipped, delivered, cancelled]
transitions:
- from: draft → to: confirmed (action: confirm)
- from: confirmed → to: processing (action: process)
- from: processing → to: shipped (action: ship)
- from: shipped → to: delivered (action: deliver)
- from: [draft, confirmed] → to: cancelled (action: cancel)
```
#### Naming Conventions Checklist
| Rule | Good | Bad |
|------|------|-----|
| Plural nouns for collections | `/users` | `/user`, `/getUsers` |
| Kebab-case for multi-word | `/line-items` | `/lineItems`, `/line_items` |
| No verbs in URLs | `POST /orders` | `/createOrder` |
| Nest for ownership | `/users/123/orders` | `/orders?user=123` (for prima...
# AfrexAI API Architect 🔌 The complete API development lifecycle skill — from design through deployment, monitoring, and versioning. ## What This Does Turns your AI agent into a senior API engineer. Not just curl commands — a full methodology: - **Design**: Resource modeling, naming conventions, status code decision trees - **Spec**: OpenAPI 3.1 generation with quality scoring (0-20 checklist) - **Build**: Validation layers, error codes, idempotency, rate limiting patterns - **Test**: Test pyramid, per-endpoint checklists, contract testing, curl recipes - **Secure**: 30+ point security audit, CORS config, auth patterns - **Version**: Strategy decision matrix, deprecation playbook, migration templates - **Monitor**: Metrics dashboard, structured logging, health checks - **Review**: 100-point API quality rubric across 6 dimensions ## Install ```bash clawhub install afrexai-api-architect ``` ## Quick Start Tell your agent: - *"Design a REST API for an order management system"* - *"Review this API for quality and security issues"* - *"Generate an OpenAPI spec for my user service"* - *"Write comprehensive tests for the POST /orders endpoint"* - *"Security audit our payment API"* ## What Makes This Different Most API skills give you curl examples. This gives you: - A **design-first methodology** (spec before code) - **Decision matrices** (pagination type, versioning strategy, status codes) - **Scoring rubrics** (spec quality 0-20, API quality 0-100) - **Production patterns** (idempotency, rate limiting, webhook design) - **GraphQL guidance** with anti-pattern detection - **Edge case handling** (timezones, concurrent updates, eventual consistency) ## ⚡ Level Up Want industry-specific API patterns? Our context packs include API design guidance tailored to your vertical: - **SaaS Context Pack** — Multi-tenant API design, subscription billing APIs - **Fintech Context Pack** — Payment processing, PSD2 compliance, ledger APIs - **Healthcare Context Pack** — FHIR/...
human-pages-ai
Search and hire real humans for tasks — photography, delivery, research, and more
zseven-w
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
capt-marbles
Attio CRM integration for managing companies, people, deals, notes, tasks, and custom objects. Use when working with Attio CRM data, searching contacts, managing sales pipelines, adding notes to records, creating tasks, or syncing prospect information.
capt-marbles
Web scraping and crawling with Firecrawl API. Fetch webpage content as markdown, take screenshots, extract structured data, search the web, and crawl documentation sites. Use when the user needs to scrape a URL, get current web info, capture a screenshot, extract specific data from pages, or crawl docs for a framework/library.
caqlayan
Tweet Processor Skill
carlosarturoleon
Connect to Windsor.ai MCP for natural language access to 325+ data sources including Facebook Ads, GA4, HubSpot, Shopify, and more.