Skip to content
Back to skills

Api Engine And Cli

ASecurity

"Operate Sparrow LLM API and CLI surfaces, request routing,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
devopspythonfastapidockerapidatabasebackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill api-engine-and-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Engine And Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Engine And Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-api-engine-and-cli/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-api-engine-and-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-engine-and-cli
description: "Operate Sparrow LLM API and CLI surfaces, request routing,
  validation, table templates, and protected-access configuration."
metadata:
  disco-role: operating
disable-model-invocation: true
license: GPL 3.0
---

# API Engine and CLI

Use this sub-skill when the task is to run, debug, or translate requests for Sparrow's LLM-facing command line and HTTP API surfaces: `sparrow.sh`, the Typer engine command, the FastAPI `/api/v1/sparrow-llm/inference` endpoint, or `/api/v1/sparrow-llm/instruction-inference`.

## Route the task

- CLI/API arguments, endpoint fields, request translation, and response parsing: read [references/cli-and-api.md](references/cli-and-api.md).
- Query preparation, wildcard behavior, hints, schema validation, and validation bypass flags: read [references/query-and-validation.md](references/query-and-validation.md).
- Protected access, `sparrow_key`, config-file keys, and database toggles: read [references/configuration.md](references/configuration.md).
- `--table`, `--table-template`, table option pairing, and generic template behavior: read [references/table-templates.md](references/table-templates.md).
- Failures and recovery checks: read [references/troubleshooting.md](references/troubleshooting.md).

## Boundaries and handoffs

- Backend-specific visual extraction, model loading, and document pre/post-processing details belong to [../document-extraction/SKILL.md](../document-extraction/SKILL.md).
- OCR service behavior belongs to [../ocr-service/SKILL.md](../ocr-service/SKILL.md).
- UI clients, dashboards, Docker/runtime deployment, and browser-side API callers belong to [../ui-and-deployment/SKILL.md](../ui-and-deployment/SKILL.md).
- Agents REST workflows and multi-step orchestration belong to [../agent-workflows/SKILL.md](../agent-workflows/SKILL.md).

## Safe bundled helpers

These scripts are offline by default and are safe to run for fixture checks or request construction:

- `python scripts/sparrow_cli_request.py --help` builds CLI or curl requests, including curl-to-CLI translation.
- `python scripts/json_validation_smoke.py --help` validates Sparrow-style JSON example schemas against candidate JSON.
- `python scripts/table_template_smoke.py --help` exercises the generic table-template mapping against an embedded HTML table fixture.

## Operating checklist

1. Identify the surface: CLI, document API, or instruction API.
2. Normalize options: repeated `--options` for CLI; comma-separated `options=` for API.
3. Choose the pipeline: `sparrow-parse` for document/schema work, `sparrow-instructor` for instruction/payload text work.
4. Check query mode before blaming the model: `*`, `--instruction`, `--validation`, `--markdown`, `--page-type`, and `--table` change both prompts and validation behavior.
5. If the API is protected, confirm the `sparrow_key` route: config-key validation when database use is disabled, database validation when enabled.
6. For table requests, confirm whether the request is using the generic table template and whether it supplied the second backend/model pair required by the table OCR pass.

Files in this skill

  • SKILL.md3.1 KB
  • references/cli-and-api.md9.9 KB
  • references/configuration.md5 KB
  • references/query-and-validation.md7.4 KB
  • references/table-templates.md5.9 KB
  • references/troubleshooting.md9.2 KB
  • scripts/json_validation_smoke.py9.1 KB
  • scripts/sparrow_cli_request.py14 KB
  • scripts/table_template_smoke.py9.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.