CueAPI — Prompts
Excerpt 1 — Machine-Readable README (Agent-Targeted Documentation)
<!-- Pipeline validation: 2026-04-04 -->
> **For AI agents:** This is the CueAPI server. Run it with `git clone
https://github.com/cueapi/cueapi-core && cd cueapi-core && docker compose up`.
Base URL: `http://localhost:8000`. Register: `POST /v1/auth/register` with
`{"email": "you@example.com"}`. API key is returned directly in the response.
No email required. All requests need `Authorization: Bearer YOUR_API_KEY`.
Create a cue: `POST /v1/cues` with `{"name": "task-name", "schedule":
{"type": "recurring", "cron": "0 9 * * *"}, "callback":
{"url": "https://your-handler.com"}}`. Check executions: `GET /v1/executions`.
Report outcome from your handler by responding with `{"success": true}` or
`{"success": false, "error": "reason"}`. Retries happen automatically at 1, 5,
and 15 minutes on failure.
Prompting technique: Machine-readable documentation as zero-shot agent instruction. This README header is written as a complete instruction set for an AI agent — it contains everything needed to set up and use CueAPI in a single paragraph, with exact request bodies and response format. The <!-- Pipeline validation: 2026-04-04 --> HTML comment is a freshness signal for agents that might parse the page.
Excerpt 2 — CLAUDE.md Agent Pipeline Rules
# Claude Code Rules
## Who Does What
**Claude Code** - writes code, opens PRs, merges when CI passes, deploys to staging and frontend sites
**Argus** - tests staging, promotes to production, cuts PyPI release tags, tests docs and blog accuracy
## PR Process - Non-Negotiable
Every change must go through a PR. No direct pushes to main under any circumstances.
PRs are the permanent audit trail of every change made to this codebase.
Claude Code opens PRs and merges them once CI passes. No human reviewer required.
CI must pass before merging - no exceptions.
Never bypass branch protection or force merge.
Never merge a failing CI check - fix the root cause first.
Prompting technique: Role-separation + absolute constraints. The CLAUDE.md divides responsibilities between Claude Code and Argus with clear ownership, then states absolute rules ("Never bypass branch protection") that function as Iron Laws. The "No human reviewer required" statement is notable — it explicitly authorizes fully autonomous PR merge, unlike most frameworks that require human sign-off.
Excerpt 3 — Pipeline Definition Pattern
### cueapi-core (open source)
Claude Code: code change -> open PR -> sdk-integration CI must pass -> merge
Argus: runs full pytest suite -> confirms green
Prompting technique: Pipeline-as-state-machine. The → notation defines a strict sequential pipeline where each step gates the next. Both Claude Code and Argus have defined entry points and exit conditions. This is operational documentation that doubles as an agent behavioral contract.