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.5 $0.00000 $0.00799
Sonnet 5.5 $0.00000 $0.00400
Haiku 4.5 $0.00000 $0.00200

Measured 2mo ago against content hash 13a10bc606c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 12mo 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

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

backend-engineer

Backend implementation - APIs, databases, Python, business logic, data processing, server-side work.

jpoley/flowspec · 22 tokens

python-engineer

Hands-on Python 3.12+ engineer. Ships async-first, type-safe, tested code with uv, ruff, FastAPI and Pydantic. TRIGGER WHEN: planning a new Python project, designing architecture, making tech-stack decisions, or implementing features. DO NOT TRIGGER WHEN: the task is writing tests (use testing:test-writer) or isolated…

acaprino/daodan · 87 tokens

hermes

Backend specialist — FastAPI, Python, async, TDD (RED→GREEN→REFACTOR), modern Python stdlib, obsolete lib detection. Calls apollo for discovery, sends to themis.

ils15/pantheon-legacy · 44 tokens

error-handlers-integrator

Initializes REST API exception-to-HTTP mapping end-to-end. Invoke with: @error-handlers-integrator.

voro6yov/spec-driven-development · 33 tokens

drf-api

Django REST Framework specialist. Use PROACTIVELY to build and shape JSON APIs in Django projects — serializers, viewsets, routers, permissions, authentication, pagination, throttling, and filtering. Serializers own field validation; views own permissions.

toffyui/ccteams · 54 tokens