api
Use this skill when a user or agent needs to query the StackHawk platform for security reporting, findings analysis, or app management. Triggers include: "stackhawk api", "security posture", "findings report", "show me findings", "untriaged findings", "which apps", "scan history", "security dashboard", "triage", "what needs attention". Prefers the `hawkop` CLI when installed; falls back to raw REST calls otherwise. Do NOT use for scanning — use the hawkscan skill for "scan my app", "hawkscan", "stackhawk.yml", "DAST". --- # StackHawk API Skill This skill enables Claude to act as a security reporting agent against the StackHawk platform. The core workflow is: **Question → Authenticate → Query API → Present Results → Suggest Next Actions** There are two execution paths for the "Query API" step: 1. **Preferred: `hawkop` CLI** — a single binary that wraps the StackHawk API with human and JSON output, response caching, and built-in pagination/auth. Most operations collapse to one command. See [`references/hawkop-shortcuts.md`](references/hawkop-shortcuts.md). 2. **Fallback: raw REST calls** — use when `hawkop` is not installed, when you need an endpoint `hawkop` doesn't wrap, or when the user explicitly asks for curl. See [`references/api-auth.md`](references/api-auth.md) and [`references/api-endpoints.md`](references/api-endpoints.md). Always try `hawkop` first. It authenticates, handles token refresh, follows pagination, and produces stable JSON — eliminating most of the boilerplate in the raw-API path. --- ## Step 1: Assess Context Before making any calls, check what's available: 1. **Is `hawkop` installed and configured?** ```bash command -v hawkop >/dev/null && HAWKOP_API_KEY=$HAWK_API_KEY hawkop status ``` - If `hawkop status` reports a valid org and JWT → use the **hawkop path** below. - If `hawkop` is installed but not configured → run `HAWKOP_API_KEY=$HAWK_API_KEY hawkop init` (interactive). For headless use, every `hawkop` example in this skill bridges `HAWK_AP
Changelog: Source: GitHub https://github.com/stackhawk/agent-skills
Loading comments...