api-dev
Scaffold, test, document, and debug REST and GraphQL APIs. Use when the user needs to create API endpoints, write integration tests, generate OpenAPI specs, test with curl, mock APIs, or troubleshoot HTTP issues.
Why use this skill?
Learn how to use the api-dev OpenClaw skill to scaffold, test, document, and debug REST and GraphQL APIs from your terminal with ease and efficiency.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/gitgoodordietrying/api-devWhat This Skill Does
The api-dev skill is a comprehensive toolkit designed to manage the entire lifecycle of HTTP-based APIs directly from your terminal. It empowers developers to scaffold endpoints, conduct rigorous integration testing, generate professional-grade OpenAPI documentation, and perform deep-dive troubleshooting for REST and GraphQL services. By leveraging standard CLI utilities like curl and jq, it provides a transparent and reproducible environment for API development, eliminating the friction often found in GUI-based clients. Whether you are building from scratch or maintaining complex microservices, this skill acts as your primary interface for interacting with remote and local web services.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/gitgoodordietrying/api-dev
Ensure your system has curl and jq installed, as these are the primary dependencies for the skill's core functions.
Use Cases
This skill is highly versatile and serves several critical roles in software engineering:
- API Prototyping: Quickly scaffold new endpoints and test the request/response cycle without needing a full frontend.
- Quality Assurance: Use the integrated shell script runner to automate sanity checks and integration tests for your CI/CD pipelines.
- Documentation Automation: Automatically generate or validate OpenAPI (Swagger) specifications to ensure your documentation never falls out of sync with your implementation.
- Advanced Troubleshooting: Use verbose curl flags and timing metrics to diagnose latency, connection drops, or SSL handshake failures.
- Mocking Services: Easily simulate external API behaviors to allow for frontend development even when backends are unavailable.
Example Prompts
- "Can you help me test my new /users POST endpoint? I need to verify that it correctly handles a JSON payload and returns a 201 Created status."
- "My API is returning a 500 error intermittently. Could you help me write a script using curl to hit the endpoint repeatedly and capture the verbose response headers for debugging?"
- "Generate an OpenAPI 3.0 specification for my existing user authentication service based on these headers and response examples."
Tips & Limitations
- Security: Be cautious when using hardcoded API tokens or secrets in command-line arguments. Always prefer environment variables (e.g., $TOKEN) to keep sensitive data out of your command history.
- Formatting: Since the skill heavily uses jq, ensure your API responses are valid JSON. If an API returns plain text or HTML, manual parsing may be required.
- Performance: For heavy load testing, while this skill is excellent for baseline verification, consider dedicated load testing tools for high-concurrency production benchmarking.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-gitgoodordietrying-api-dev": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution
Related Skills
shell-scripting
Write robust, portable shell scripts. Use when parsing arguments, handling errors properly, writing POSIX-compatible scripts, managing temp files, running commands in parallel, managing background processes, or adding --help to scripts.
skill-writer
Write high-quality agent skills (SKILL.md files) for ClawdHub/MoltHub. Use when creating a new skill from scratch, structuring skill content, writing effective frontmatter and descriptions, choosing section patterns, or following best practices for agent-consumable technical documentation.
log-analyzer
Parse, search, and analyze application logs across formats. Use when debugging from log files, setting up structured logging, analyzing error patterns, correlating events across services, parsing stack traces, or monitoring log output in real time.
emergency-rescue
Recover from developer disasters. Use when someone force-pushed to main, leaked credentials in git, ran out of disk space, killed the wrong process, corrupted a database, broke a deploy, locked themselves out of SSH, lost commits after a bad rebase, or hit any other "oh no" moment that needs immediate, calm, step-by-step recovery.
data-validation
Validate data with schemas across languages and formats. Use when defining JSON Schema, using Zod (TypeScript) or Pydantic (Python), validating API request/response shapes, checking CSV/JSON data integrity, or setting up data contracts between services.