infrastructure

infrastructure is a skill for Claude Code from dsfaccini/siigo-mcp. It costs 32 tokens per session (612 once invoked), scanned A, original, MIT.

Guidance for deploying FastMCP servers with Railway, Docker, Postgres, and Cloudflare R2.

In plain words
What is it for?
Setting up Dockerfiles, Railway deployments, environment variables, Postgres, Cloudflare R2 storage, and Logfire monitoring.
Why use it?
It helps organize the container, deployment settings, environment variables, storage, database, and monitoring work needed to run a server.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/dsfaccini/siigo-mcp/infrastructure
Any agent
npx skills add dsfaccini/siigo-mcp --skill infrastructure
Clone the repo
git clone --depth 1 https://github.com/dsfaccini/siigo-mcp

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 infrastructure

README.md
[![agentmods](https://agentmods.dev/badge/skills/dsfaccini/siigo-mcp/infrastructure.svg)](https://agentmods.dev/skills/dsfaccini/siigo-mcp/infrastructure)
Your own site
<a href="https://agentmods.dev/skills/dsfaccini/siigo-mcp/infrastructure"><img src="https://agentmods.dev/badge/skills/dsfaccini/siigo-mcp/infrastructure.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 612 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00032 $0.00612
Opus 5 $0.00016 $0.00306
Sonnet 5 $0.00006 $0.00122
Haiku 4.5 $0.00003 $0.00061

Measured 5d ago against content hash 50bb09561808, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

infrastructure 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 5d 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/skills/infrastructure/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Infrastructure Expert

Skill for deployment, Docker, and cloud infrastructure.

When to Use

Invoke this skill when working on:

  • Railway deployment configuration
  • Dockerfile optimization
  • Environment variable management
  • Future database (Postgres) setup
  • Future blob storage (Cloudflare R2) setup

Current Stack

Deployment: Railway

  • Platform: Railway
  • Deployment: Dockerfile-based
  • Environment variables via Railway dashboard

Container: Docker

  • Base image: python:3.13-slim
  • Package manager: uv (fast Python package manager)
  • Entry point: FastMCP server

Observability: Logfire

  • Pydantic Logfire
  • Automatic OpenTelemetry instrumentation
  • Configure via LOGFIRE_TOKEN env var

Dockerfile Pattern

FROM python:3.13-slim

WORKDIR /app

# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv

# Copy dependency files
COPY pyproject.toml uv.lock ./

# Install dependencies (cached layer)
RUN uv sync --frozen --no-dev

# Copy source code
COPY src/ ./src/

# Run server
CMD ["uv", "run", "python", "-m", "siigo_mcp.server"]

Environment Variables

Required

  • SIIGO_USERNAME: Siigo API username
  • SIIGO_ACCESS_KEY: Siigo API access key
  • SIIGO_PARTNER_ID: Partner identifier for API calls

Optional

  • LOGFIRE_TOKEN: Pydantic Logfire token for observability
  • LOG_LEVEL: Logging level (default: INFO)

Future Infrastructure

Database: PostgreSQL

  • Use case: Caching, session state, audit logs
  • Railway provides managed Postgres
  • Connection via DATABASE_URL env var

Blob Storage: Cloudflare R2

  • Use case: PDF storage, document archival
  • S3-compatible API
  • Credentials: R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET

Railway Deployment

Setup

  1. Connect GitHub repository
  2. Configure environment variables
  3. Railway auto-detects Dockerfile
  4. Automatic deploys on push to main

Health Check

Add health endpoint for Railway:

@mcp.resource("health://status")
async def health_check() -> str:
    return "ok"

Read the full file on GitHub · 104 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. 5d ago First seen · 104 lines · 32 tokens per session scan A 50bb09561808

Subscribe to this mod's changes

infrastructure is a skill published in the GitHub repository dsfaccini/siigo-mcp (1 stars, last pushed 8mo ago), licensed MIT. It adds 32 tokens to every session and 612 once invoked, about $0.0002 per session on Opus 5. 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-31.

Related

Other skills, from other repositories

azd-deployment

Deploy containerized frontend + backend applications to Azure Container Apps with remote builds, managed identity, and idempotent infrastructure.

sickn33/agentic-awesome-skills · 29 tokens

openshell-cli

Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration and refresh, policy iteration, settings, service exposure, BYOC workflows, and inference routing. Covers basic through advanced multi-step workflows. Trigger keywords - openshell, sandbox…

NVIDIA/OpenShell · 127 tokens

langbot-deploy

Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…

langbot-app/LangBot · 104 tokens

compute-env-setup

Set up a compute environment on a remote provider so Claude Science jobs can run there. Covers direct SSH/conda hosts, Slurm clusters, container-via-bridge runners, and managed-API providers (Modal, GCP, RunPod). Use when standing up a new provider, porting an env to a different backend, adding a tool that needs its…

UnicomAI/wanwu · 134 tokens

azure-cloud-migrate

Assess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/Kubernetes/Cloud Run/Spring Boot→Container Apps. WHEN: migrate Lambda to Functions, AWS to Azure, migrate Beanstalk, migrate Heroku, migrate App Engine, Cloud…

microsoft/skills · 106 tokens

compute-env-setup

Set up a reproducible Feynman compute environment for research jobs. Use when a task needs Python/R packages, GPU libraries, containers, Modal, SSH, caches, or managed model runtime setup.

companion-inc/feynman · 45 tokens