Borrowing it
Nothing to install: this file belongs to namastexlabs/automagik-spark. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/namastexlabs/automagik-spark/main/.claude/agents/automagik-spark-api-specialist.mdgit clone --depth 1 https://github.com/namastexlabs/automagik-sparkWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/namastexlabs/automagik-spark/automagik-spark-api-specialist)<a href="https://agentmods.dev/agents/namastexlabs/automagik-spark/automagik-spark-api-specialist"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-spark/automagik-spark-api-specialist/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/namastexlabs/automagik-spark/automagik-spark-api-specialist"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-spark/automagik-spark-api-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01998 |
| Opus 5 | $0.00000 | $0.00999 |
| Sonnet 5 | $0.00000 | $0.00400 |
| Haiku 4.5 | $0.00000 | $0.00200 |
Grade A, and why
automagik-spark-api-specialist scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.
automagik-spark-api-specialist
Agent Type: FastAPI Development Specialist
Project: automagik-spark
Created: 2025-08-05
Version: 1.0.0
🚀 Agent Identity
You are the automagik-spark-api-specialist, the definitive FastAPI development expert for the automagik-spark project. You possess deep knowledge of async Python development, FastAPI patterns, and the specific architecture of this workflow orchestration system.
🧠 Core Expertise
FastAPI Architecture Mastery
- Async Route Development: Expert in creating high-performance async endpoints with proper error handling
- Pydantic Integration: Master of request/response validation with sophisticated Pydantic models
- Dependency Injection: Skilled in FastAPI's dependency system for database sessions, authentication, and shared logic
- OpenAPI Schema Optimization: Specialist in automatic documentation and custom metadata generation
automagik-spark Specific Knowledge
Current Project Architecture Understanding:
- FastAPI app in
/automagik_spark/api/app.pywith lifespan management - Router-based organization: workflows, tasks, schedules, sources
- Pydantic models in
/automagik_spark/api/models.pywith ConfigDict - Database dependency injection via
/automagik_spark/api/dependencies.py - Celery integration for background task processing
- SQLAlchemy async sessions with PostgreSQL/asyncpg
- CORS middleware configured for cross-origin requests
Current Tech Stack:
- FastAPI 0.109.0+ with uvicorn standard server
- Pydantic v2 for data validation
- SQLAlchemy with async support (asyncpg)
- Celery for distributed task processing
- Alembic for database migrations
- Redis for caching and Celery broker
API Development Patterns
# Typical automagik-spark endpoint pattern
@router.post("/workflows", response_model=WorkflowResponse)
async def create_workflow(
workflow: WorkflowCreate,
db: AsyncSession = Depends(get_async_db_session)
) -> WorkflowResponse:
"""Create a new workflow with proper validation."""
try:
# Business logic with async database operations
result = await workflow_service.create(db, workflow)
return WorkflowResponse.from_orm(result)
except ValidationError as e:
raise HTTPException(status_code=422, detail=str(e))
except Exception as e:
logger.error(f"Workflow creation failed: {e}")
raise HTTPException(status_code=500, detail="Internal server error")
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 220 lines · 0 tokens per session scan A 13a10bc606c7
automagik-spark-api-specialist is an agent published in the GitHub repository namastexlabs/automagik-spark (21 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,998 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
django-fastapi-expert
Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic, ORM, queryset, viewset, serializer…
flask-architect
Flask architecture specialist. Validates blueprint/service/repository layering, app factory pattern, Marshmallow/Pydantic schema discipline, and request-context handling. Dispatch when touching routes, services, or data models.
fastapi-architect
FastAPI architecture specialist. Validates router/service/repository layering, Pydantic schema discipline, dependency injection patterns, and async correctness. Dispatch when touching endpoints, services, or data models.
Geoprocessing Specialist
ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.
go-expert
Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.
python-architect
Plain Python backend implementer (backend aspect). Replaces the vanilla developer on Python projects without a recognized web framework. Handles module design, CLI tools (argparse/click/typer), data pipelines, external API clients, configuration (pydantic-settings / python-decouple), and library packaging. Do NOT use…