atac
Skill3 starsChanged 3 months agoMITView on GitHub
Use when developing, maintaining, or running API test plans with ATAC (Arguably a Terminal API Client). Covers creating collections, writing post-request assertion scripts, running tests headlessly, managing environments, and storing test plans in a git repo. Triggers on "atac", "API test plan", "test endpoints", "run collection", "assert status code", or any programmatic HTTP endpoint testing workflow.
- Reads credentials
In this repository86 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adrSkill
- adzic-bddSkill
- agent-md-refactorSkill
- agent-muxSkill
- agent-role-impersonatorSkill
- agilquest-reservationsSkill
- ai-text-humanizerSkill
- architecture-decision-recordsSkill
- ast-grepSkill
- aws-cliSkill
- bart-adversarial-reviewerSkill
- bddSkill
- branch-doctorSkill
- c4-architectureSkill
- c4Skill
- claude-sub-agentSkill
- codemap-config-setupSkill
- codemap-exploreSkill
- codemap-handoffSkill
- codemap-hub-safetySkill
- codemapSkill
- commitSkill
- copilot-sub-agentSkill
- daily-standupSkill
- daily-statusSkill
- debugSkill
- design-thinkingSkill
- doctorSkill
- docx-word-processorSkill
- farley-tddSkill
- forensicsSkill
- gemini-sub-agentSkill
- git-commit-formatterSkill
- git-forensicsSkill
- github-actions-permissionsSkill
- github-cliSkill
- git-repo-discoverySkill
- git-safety-guardrailsSkill
- harness-idpSkill
- humanizeSkill
- iteration-plannerSkill
- jira-issue-managerSkill
- justfile-assistantSkill
- kiro-sub-agentSkill
- lessons-learnedSkill
- lessonsSkill
- lisa-planning-agentSkill
- lovejoy-release-agentSkill
- lsp-code-analysisSkill
- macro-to-microSkill
- marge-product-agentSkill
- meeting-notesSkill
- mermaid-diagram-generatorSkill
- modern-cli-overridesSkill
- native-web-searchSkill
- obsidian-notetakerSkill
- outlook-headlessSkill
- pdf-document-processorSkill
- pi-sub-agentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Always point atac at the directory: atac -d ./api-tests <command>
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ATAC — API Test Plans
ATAC is a terminal API client (like Postman/Bruno) that stores collections as committed JSON/YAML files and runs fully headlessly — ideal for CI and agent-driven test plans.
Binary: ~/.cargo/bin/atac
Docs: https://atac.julien-cpsn.com/
Key Concepts
| Concept | What it is |
| Directory | A folder containing *.json/*.yaml collections, .env.* files, and atac.toml |
| Collection | A JSON or YAML file of named requests (one file = one collection) |
| Request | URL + method + headers + body + auth + pre/post scripts |
| Environment | .env.<name> file of KEY=VALUE pairs; variables used as {{KEY}} |
| Script | JavaScript (Boa engine) run pre- or post-request; reads/writes request, response, env objects |
Directory Structure for a Test Plan Repo
api-tests/
├── atac.toml # optional config
├── .env.staging # KEY=VALUE env vars
├── .env.production
├── health.json # collection: health checks
├── auth.json # collection: auth flows
└── users.yaml # collection: user CRUDAlways point atac at the directory: atac -d ./api-tests <command>
Quick Reference
# Run a single request
atac -d ./api-tests request send auth/login --status-code --console
# Run an entire collection
atac -d ./api-tests collection send auth --status-code --console --env staging
# One-shot (no collection needed)
atac try -u https://api.example.com/health --status-code
# Create a new collection + request programmatically
atac -d ./api-tests collection new my-collection
atac -d ./api-tests request new my-collection/my-request \
-u "{{BASE_URL}}/endpoint" -m POST \
--body-json '{"key":"value"}' \
--post-request-script 'if (response.status_code !== "200 OK") { throw "Expected 200, got " + response.status_code; }'
# Add/update a post-request assertion script
atac -d ./api-tests request scripts my-collection/my-request set post \
'if (response.status_code !== "200 OK") { throw "FAIL: " + response.status_code; }'
# Use an environment
atac -d ./api-tests collection send health --env staging --status-code --consolePost-Request Assertion Scripts (JavaScript)
Scripts run in a Boa JS engine. Two global objects are available:
response object fields:
response.status_code // e.g. "200 OK", "404 Not Found"
response.content // body string (if Body variant)
response.headers // array of [key, value] pairs
response.cookies // cookie string
// Note: response.duration is available in TUI but NOT in post-request scriptsenv object: key/value map of the active environment — read and write to
pass values between requests:
env.TOKEN = JSON.parse(response.content).token;console.log(msg) — output shown with --console flag
pretty_print(obj) — pretty-prints any object via console.log
Assertion Pattern
// Assert status
if (response.status_code !== "200 OK") {
throw "FAIL: expected 200, got " + response.status_code;
}
// Assert body field
var body = JSON.parse(response.content);
if (!body.id) {
throw "FAIL: missing 'id' in response body";
}
// Chain: store token for next request
env.AUTH_TOKEN = body.token;
console.log("PASS: login ok, token stored");Exit behaviour: ATAC does NOT fail with a non-zero exit code when a script throws. Use
--consoleand parse output in CI, or check--status-codeoutput. See references/ci-testing.md for shell-level assertion wrappers.
Environment Files
.env.<name> files are plain KEY=VALUE (no quotes needed):
BASE_URL=https://api.staging.example.com
AUTH_TOKEN=
TIMEOUT=5000Reference in requests as {{BASE_URL}}, {{AUTH_TOKEN}}.
Built-in variables (no env file needed): {{NOW}}, {{TIMESTAMP}},
{{UUIDv4}}, {{UUIDv7}}, and any OS environment variable.
Collection File Format
Collections are plain JSON or YAML — commit them to git.
{
"name": "health",
"requests": [
{
"name": "GET /health",
"url": "{{BASE_URL}}/health",
"method": "GET",
"auth": "no_auth",
"scripts": {
"pre_request_script": null,
"post_request_script": "if (response.status_code !== \"200 OK\") throw \"FAIL\";"
},
"settings": {
"use_config_proxy": true,
"allow_redirects": true,
"timeout": 30000,
"store_received_cookies": true,
"pretty_print_response_content": true,
"accept_invalid_certs": false,
"accept_invalid_hostnames": false
},
"protocol": { "type": "http", "method": "GET", "body": "no_body" }
}
]
}See references/collection-format.md for full JSON/YAML schema with all auth types and body variants.
Importing Existing Collections
# From Postman v2.1 export
atac -d ./api-tests import postman ./my-collection.postman_collection.json
# From OpenAPI spec
atac -d ./api-tests import open-api ./openapi.yaml
# From a cURL command
atac -d ./api-tests import curl ./request.curlWorkflow: Build a Test Plan in a Repo
- Create the directory — one folder per project, committed to git
- Add environments —
.env.staging,.env.productionwithBASE_URL, secrets - Create collections — one per domain (auth, users, health)
- Add requests — via CLI (
atac request new) or edit JSON/YAML directly - Write assertions — post-request scripts that
throwon failure - Run headlessly —
atac -d . collection send <name> --console --status-code --env staging - Commit — collections and env files (exclude secrets via
.gitignore)
CI Integration
See references/ci-testing.md for:
- Shell wrapper to detect assertion failures from
--consoleoutput - GitHub Actions example
--no-ansi-logflag for clean CI output- Exit-code workaround (ATAC exits 0 even on script throws)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

