Create Middleware — Development skill for Claude Code
Generates backend middleware for Shelf/Dart Frog (auth, CORS, rate limiting).
How to install Create Middleware
Installs to ~/.claude/skills/toastytoast25-claude-code-dart-flutter-create-middleware/SKILL.md
mkdir -p ~/.claude/skills/toastytoast25-claude-code-dart-flutter-create-middleware && curl -fsSL https://raw.githubusercontent.com/ToastyToast25/claude-code-dart-flutter/HEAD/.claude/skills/create-middleware.md -o ~/.claude/skills/toastytoast25-claude-code-dart-flutter-create-middleware/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Create Middleware does
description: "Generates backend middleware for Shelf/Dart Frog (auth, CORS, rate limiting)" globs: ["backend/**/middleware/*.dart", "lib/middleware/**/*.dart"] alwaysApply: false
Create Middleware Skill
Generate backend middleware for Shelf/Dart Frog servers.
Trigger
- "create middleware"
- "new middleware"
- "add middleware"
- "backend middleware"
Parameters
- name: Middleware name (e.g., "auth", "logging", "rateLimit")
- type: auth, logging, cors, rateLimit, validat
Alternatives in Development
- CORS — Scan an endpoint for CORS misconfiguration — arbitrary-origin reflection, null-origin trust, credential exposu 4.5k ★
- Doctor — Environment diagnostics with interactive fixes — providers, auth, RTK, hooks, token optimization 2.8k ★
- 05 Env And Auth — Prompt 05: Environment Configuration & API Authentication 2.3k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Create API Endpoint
Scaffolds backend API endpoints using Shelf or Dart Frog frameworks
Harden Auth
Deployment hardening step 2 — review auth/session/authz surfaces. Identifies insecure cookies, broad CORS, mis
Constraint Shift Analysis Pivot Point Identificati 20260709
Quickly assess a domain by identifying the true limiting factor, shifting focus from physical scarcity to info
Grounded Engineering
Source-backed engineering practices and a reviewed shelf of skill repos, as a Claude Code mod and a CLI.
Serve
Start a local http server on 127.0.0.1:4567 to avoid file:// CORS issues. Required for React/Babel artifacts t
Axguard Cloud
Cloud and CORS misconfig — metadata URLs, wildcard origins. Usage: /axguard-cloud [path]
Related Agents
Kavach Config
KAVACH infrastructure/config/ops-security specialist. Audits security headers, debug/verbose in prod, stack-tr
Engineering API Platform Engineer
Expert API platform engineer for public and partner APIs — contract-first design (OpenAPI/gRPC), versioning an
API Security Auditor
API endpoint security assessment for auth, injection, and rate limiting