This is a 10-part series sharing how Apidog developed Apidog CLI, a command-line tool for API testing and API lifecycle management. Read in order or jump to any post that interests you:
| Title | Focus | |
|---|---|---|
| 1 | We Built 126 MCP Tools. But It Is Not the Best Solution for Agent | Problem discovery |
| 2 | Why We Developed Brand-new Apidog CLI | Architecture development |
| 3 | The Golden Rule: CLI Produces Facts, Model Acts on Facts | Core philosophy |
| 4 | agentHints: Teaching CLIs to Talk to Agents |
Structured output |
| 5 | SKILL: Shipping Operational Experience as Code | Operational experience |
| 6 | The Numbers Don't Lie: 30% Fewer Tool Calls, 25% Fewer Tokens | Quantitative results |
| 7 | From PRD to Testing Loop: A Complete Agent Workflow with Apidog CLI | Practical tutorial |
| 8 | Why CI/CD Compatibility Is Non-Negotiable for Agent Tools | DevOps perspective |
| 9 | AI Branch: Safer Project Changes with AI Agents | Security layer |
| 10 | Spec-First Was Yesterday. Welcome to Skill-First. | Vision & future |
API development is changing with AI Agents. Skill-First packages specs, tests, and scenarios into executable, verifiable skills—complementing existing approaches for the Agent era.
The Spec-First Era
For years, many development teams' collaboration processes were Spec-First.
What It Was
| Principle | Description |
|---|---|
| Design APIs first | Define API before implementation |
| Collaborate around documentation | Teams reference shared spec |
| Mock early | Frontend can develop against mock |
| Debug together | Issues visible in shared format |
| Test against spec | Verify implementation matches design |
| Publish when ready | Release documented, tested APIs |
The Value
| Benefit | Why It Matters |
|---|---|
| Clear contracts | Frontend/backend know what to expect |
| Parallel development | Teams work independently |
| Reduced friction | Miscommunication caught early |
| Stable testing | Tests match documented behavior |
| Living documentation | Spec evolves with product |
Spec-First was the right approach for human-driven API development.
The New Consumer: AI Agents
After AI Coding appeared, the consumers of API assets changed.
Agents also started consuming these assets.
What Agents Need
| Agent Activity | Asset Needed |
|---|---|
| Read endpoints | API documentation |
| Add tests | Endpoint definitions, schemas |
| Run automation | Test scenarios, environments |
| Fix code based on reports | Failure details, response data |
| Judge if change is usable | Test results, coverage |
In this context, API documentation, test cases, and test scenarios in Apidog are not just collaboration materials for humans.
They are deterministically callable assets for Agents.
Asset Transformation
| Asset | Spec-First (Human View) | Skill-First (Agent View) |
|---|---|---|
| API documentation | Collaboration material | Callable data source |
| Test cases | Quality artifact | Executable verification |
| Test scenarios | Testing workflow | Automation target |
| Environments | Configuration | Runtime context |
| Reports | Review output | Feedback signal |
Assets transform from "readable" to "callable."
Skill-First Definition
Building on Spec-First:
| What Remains | Why |
|---|---|
| Endpoint specifications | Still need clear contracts |
| Test cases | Still need quality artifacts |
| Business scenarios | Still need workflow coverage |
| Documentation | Still need human reference |
Plus:
| What's Added | Purpose |
|---|---|
| Executable skills | Agents can invoke workflows |
| Verifiable steps | Quality gates at each stage |
| Traceable chains | Audit trail of Agent actions |
Skill-First = Spec-First + Agent execution layer.
The System Architecture
| Layer | Responsibility | Example |
|---|---|---|
| Apidog | Manages API and test assets | Endpoints, schemas, test cases, scenarios |
| CLI | Provides deterministic execution | Commands, validation, output |
| SKILL | Provides task judgment and paths | Workflow guidance, sequence rules |
| Agents | Understand goals, execute, adjust | Claude Code, Cursor, Trae, Codex |
Each layer has a specific role.
How They Work Together
User: "Generate tests for the refund API and run verification"
↓
Agent: Understands task type (SKILL helps)
↓
Agent: Calls CLI to read endpoints (CLI executes)
↓
Agent: Generates test cases (Agent creates)
↓
CLI: Validates structure (cli-schema validates)
↓
Agent: Writes test cases (CLI executes)
↓
CLI: Returns agentHints (CLI guides)
↓
Agent: Reads back, adjusts (Agent follows hints)
↓
Agent: Runs tests (CLI executes)
↓
CLI: Returns report (CLI provides feedback)
↓
Agent: Summarizes to user (Agent completes)Workflow Transformation
Spec-First Workflow (Human-Driven)
Human designs spec
↓
Human documents
↓
Human creates mock
↓
Human debugs
↓
Human writes tests
↓
Human publishesCharacteristics:
| Aspect | Description |
|---|---|
| Driver | Human |
| Focus | Collaboration |
| Feedback | Manual review |
| Speed | Human-paced |
| Errors | Human catches |
Skill-First Workflow (Agent-Assisted)
Human specifies goal
↓
Agent reads existing assets
↓
Agent generates changes
↓
CLI validates
↓
Agent writes
↓
CLI guides next steps
↓
Agent verifies
↓
Human reviews resultCharacteristics:
| Aspect | Description |
|---|---|
| Driver | Agent (guided by human goal) |
| Focus | Execution |
| Feedback | Automated validation |
| Speed | Agent-paced |
| Errors | CLI catches |
What Teams Should Do
Immediate Steps
| Step | Action |
|---|---|
| 1. Install | npm install -g apidog-cli@latest |
| 2. Install SKILL | apidog skill install |
| 3. Try small task | Give Agent low-risk task |
| 4. Learn patterns | Observe Agent workflow |
| 5. Expand scope | Gradually increase task complexity |
First Agent Task Example
Use Apidog CLI to help me create my first API endpoint in Apidog.
First, check my Apidog CLI setup and list the projects I can access.
Ask me which project to use. After I confirm, create a simple GET /health
endpoint named Health Check with a 200 response example. Validate any
structured input before writing, then read the endpoint back and summarize
what was created.This gives:
| Benefit | Description |
|---|---|
| Setup check | Agent verifies environment |
| Project selection | Agent asks before writing |
| Small creation | Low-risk first task |
| Validation | cli-schema before write |
| Read-back | Confirms what was created |
| Summary | Human gets clear result |
Getting Started Commands
# Install Apidog CLI
npm install -g apidog-cli@latest
# Install companion SKILL
apidog skill install
# Check version (need 2.2.5+)
apidog -v
# Authenticate
apidog auth login
# List projects
apidog project listThe Future
| Trend | Direction |
|---|---|
| Agent participation | More API development tasks handled by Agents |
| CLI + SKILL patterns | Mature, standardized workflows |
| More Skills | Domain-specific Skills for different contexts |
| Better convergence | Improved engineering for critical nodes |
| Human-Agent collaboration | Seamless handoff between human and Agent |
The future is Agent-assisted API development.
The Complete Series Summary
We've covered the full journey:
| Part | Topic | Key Insight |
|---|---|---|
| 1 | Problem | 126 MCP tools → wall of random tools |
| 2 | Pivot | Complexity moved from context to engineering |
| 3 | Philosophy | CLI validates, Agent generates |
| 4 | Design | agentHints guides next steps |
| 5 | Experience | SKILL packages workflow knowledge |
| 6 | Validation | 30% fewer calls, 25% fewer tokens |
| 7 | Practice | PRD → OpenAPI → Tests → Verification |
| 8 | Foundation | CI/CD remains the base |
| 9 | Honesty | Four challenges remain |
| 10 | Vision | Spec-First → Skill-First |
The Final Principle
Spec-First was for human collaboration. Skill-First is for Agent execution.
| Era | Approach | Consumer |
|---|---|---|
| Traditional | Spec-First | Humans |
| Agent Age | Skill-First | Humans + Agents |
Assets become callable. Workflows become executable. Quality becomes verifiable.
Welcome to Skill-First.
Key Takeaways
- Spec-First was right for human-driven development
- Agents are now consumers of API assets
- Assets transform from readable to callable
- Skill-First = Spec-First + Agent execution
- System: Apidog (assets) → CLI (execution) → SKILL (judgment) → Agents (action)
- Human specifies goal, Agent executes, CLI validates
- Start small, learn patterns, expand scope
Download Apidog to design, mock, test, and document APIs in one workspace. Learn more about Apidog CLI for command-line API testing, CI automation, and AI Agent workflows.



