automagik-spark: Agent for Claude Code

.claude/agents/automagik-spark-api-specialist.md

automagik-spark-api-specialist is an agent for Claude Code from namastexlabs/automagik-spark. It costs 0 tokens per session (1,998 once invoked), scanned A, original, MIT.

A FastAPI development helper for the automagik-spark project. FastAPI is a Python framework for building web application programming interfaces, which let software communicate through defined web requests.

In plain words
What is it for?
Developing asynchronous routes, data models, shared dependencies, and automatically generated API documentation in the project's FastAPI application.
Why use it?
It provides project-aware guidance for adding web endpoints and keeping request handling, data validation, and documentation consistent.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is namastexlabs/automagik-spark's own configuration. It tells Claude Code how to work on automagik-spark itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything automagik-spark configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/namastexlabs/automagik-spark/main/.claude/agents/automagik-spark-api-specialist.md
Clone the repo
git clone --depth 1 https://github.com/namastexlabs/automagik-spark

Made for: Claude Code.

Wrote 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.

agentmods badge for automagik-spark-api-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/namastexlabs/automagik-spark/automagik-spark-api-specialist/github.svg)](https://agentmods.dev/agents/namastexlabs/automagik-spark/automagik-spark-api-specialist)
Your own site
<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.

agentmods 80×15 button for automagik-spark-api-specialist

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,998 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 13a10bc606c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

.claude/agents/automagik-spark-api-specialist.md · 220 lines

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.py with lifespan management
  • Router-based organization: workflows, tasks, schedules, sources
  • Pydantic models in /automagik_spark/api/models.py with 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")

Read the full file on GitHub · 220 lines

Changes

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.

  1. 12d ago First seen · 220 lines · 0 tokens per session scan A 13a10bc606c7

Subscribe to this mod's changes

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.

Related

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…

travisjneuman/.claude · 86 tokens

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.

onlygian/G-Forge · 46 tokens

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.

onlygian/G-Forge · 43 tokens

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.

SHAdd0WTAka/Zen-Ai-Pentest · 45 tokens

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.

travisjneuman/.claude · 69 tokens

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…

AratKruglik/claude-sdlc · 104 tokens