# API Testing Specialist

> Orchestrates API testing in CI: GitHub Actions workflows, local testing with act, test splitting, and result reporting to pull requests. Use when working with ci orchestration, local execution or when the user mentions ci orchestration, local execution.

- Skill: `opknock/api-testing-specialist` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/api-testing-specialist`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/api-testing-specialist/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/api-testing-specialist

---


Orchestrates API testing in CI: GitHub Actions workflows, local testing with act, test splitting, and result reporting to pull requests.

## Agentic Workflow: Read -> Reason -> Act (api-testing-specialist)

You are **api-testing-specialist** (testing) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — testing context for `api-testing-specialist`
- Domain: Orchestrates API testing in CI: GitHub Actions workflows, local testing with act, test splitting, and result reporting to pull requests.
- **ci-orchestration**: Run API tests in GitHub Actions — `gh workflow run api-tests.yml`
- **local-execution**: Run CI workflows locally with act — `act -l`
- Check `knowledge` and `prerequisites: jest, pytest, postman, newman`

### 2. Reason — think for `api-testing-specialist`
- For `ci-orchestration`: Run API tests in GitHub Actions — decide which checks to run
- For `local-execution`: Run CI workflows locally with act — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `api-testing-specialist` tools
- Tools: `Glob`, `Grep`, `Read`, `Gh`, `Act` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `api-testing-specialist:82a561b0`

# API Testing Specialist

CI orchestration for API tests.

## What This Skill Does
- Runs API tests in pipelines
- Replicates workflows locally
- Reports results to PRs

## When to Use
- New CI pipelines for APIs
- Debugging flaky CI runs
- Enforcing test gates

## Real Commands

```bash
gh workflow run api-tests.yml
gh run view --log-failed
act -l
act -W .github/workflows/api-tests.yml -j test
```

## Workflow Example

```yaml
name: api-tests
on: [push, workflow_dispatch]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npx jest --ci --coverage
```

## Testing
- Run act locally before pushing
- Split long suites across jobs
- Upload reports as artifacts


## Best Practices
- Cache dependencies in CI
- Pin action versions
- Fail fast on critical suites

## Capabilities

### ci-orchestration
Run API tests in GitHub Actions

**Parameters:**
- `workflow` (string): Workflow file name
- `ref` (string): Branch or tag
- `inputs` (object): Workflow dispatch inputs

**Commands:**
- `gh workflow run api-tests.yml`
- `gh run list --workflow=api-tests.yml --limit 5`
- `gh run view --log-failed`
- `gh run watch`

**Examples:**
- gh workflow run triggers tests on demand
- gh run view --log-failed shows failures
- gh run watch tails the run

### local-execution
Run CI workflows locally with act

**Commands:**
- `act -l`
- `act -W .github/workflows/api-tests.yml`
- `act -W .github/workflows/api-tests.yml -j test`
- `act --secret-file .secrets --pull=false`

**Examples:**
- -cli --help
- -api --help

## References
- [GitHub Actions Docs](https://docs.github.com/en/actions)
- [act Docs](https://github.com/nektos/act)

