# hummingbird

Get coding guidance for Hummingbird 2 in Swift, from HTTP routing and request contexts to response handling.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 62
- Author: wendylabsinc
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/wendylabsinc/claude-skills/tree/HEAD/hummingbird/SKILL.md
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/skills/hummingbird

## What it does

This skill gives an agent reference material for building HTTP services with Hummingbird 2, a Swift framework built on SwiftNIO with Swift Concurrency support. Use it while working on a Swift server or REST API, especially when you need help with routing, middleware, request contexts, or authentication.

The examples cover route groups, path and query values, JSON request decoding, and several ways to produce an HTTP response. They also show how `ChildRequestContext` can expose a required property to protected routes, and how `EditedResponse` carries a status and headers alongside a response body. The material guides code changes; it does not provide a finished application.

A project using Hummingbird needs the package added in `Package.swift` and the `Hummingbird` product included in its target. The setup example starts at version `2.0.0`, so check that dependency when applying the guidance to a project.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add wendylabsinc/claude-skills --skill hummingbird -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/hummingbird/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/hummingbird/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add wendylabsinc/claude-skills --skill hummingbird -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/hummingbird/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add wendylabsinc/claude-skills --skill hummingbird -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/hummingbird/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install wendylabsinc/claude-skills hummingbird
```

2. **Manually: put the files in place**
- File: `.github/skills/hummingbird/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add wendylabsinc/claude-skills --skill hummingbird -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/wendylabsinc/claude-skills --path hummingbird
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/hummingbird/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add wendylabsinc/claude-skills --skill hummingbird -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/wendylabsinc/claude-skills/tree/HEAD/hummingbird/SKILL.md

## When to use it
- route requests by HTTP method and path
- group API endpoints under a shared prefix
- read path and query values in handlers
- decode a JSON request into a Swift type
- return JSON with a chosen status and headers

## Example prompts
- Add a `GET /users/{id}` route to my Swift server and read `id` from the request context.
- Show how to group API routes and attach authentication middleware in Hummingbird 2.
- Explain how to decode a JSON request and return an `EditedResponse` with a creation status.

## Similar
- [mcp-builder](https://affpapa.org/en/nevibecode/skills/mcp-builder.md) — skill · 130949 installs
- [claude-api](https://affpapa.org/en/nevibecode/skills/claude-api.md) — skill · 74198 installs
- [lark-im](https://affpapa.org/en/nevibecode/skills/lark-im.md) — skill · 472900 installs
- [lark-event](https://affpapa.org/en/nevibecode/skills/lark-event.md) — skill · 466800 installs
- [caveman-discover](https://affpapa.org/en/nevibecode/skills/caveman-discover.md) — skill · 104400 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs

From the same set: [wendylabsinc/claude-skills](https://affpapa.org/en/nevibecode/by/wendylabsinc/claude-skills.md) — 25 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
