Favicon of http-service-patterns

http-service-patterns Skill

AI Agent SkillPythonOpen source

Use when building an HTTP service with FastAPI. Covers lifecycle management, background poll loops, SPA static file serving with API reverse proxy, bidirectional WebSocket relay, and SSE event streaming. Published by microsoft in amplifier-bundle-skills.

Decision snapshot

Is this a fit?

Best for

Deployment, Design and media, Includes SKILL.md, Reusable instructions

Works with

Compatibility not yet detected.

Access

Permission behavior not yet detected.

Setup

Copy skill directory

Project health

2 months ago · MIT license

Considerations

No specific cautions were detected. Review the source and requested permissions before installing.

What is http-service-patterns Skill?

Use when building an HTTP service with FastAPI. Covers lifecycle management, background poll loops, SPA static file serving with API reverse proxy, bidirectional WebSocket relay, and SSE event streaming. Published by microsoft in amplifier-bundle-skills. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
26/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement. See how SkillIndex evaluates profiles.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Deployment
  • Design and media
  • Deployment use cases
  • Design and media use cases

Declared skill metadata

  • Source file: skills/http-service-patterns/SKILL.md

These fields retain source and confidence evidence from the indexed SKILL.md.

Compatibility and setup

Copy skill directory
  • Install or run with Copy skill directory

When to use http-service-patterns Skill

  • Use it for deployment.
  • Use it for design and media.

Built with

PythonCopy skill directory

Editorial notes

Source

  • Creator: microsoft
  • Repository: microsoft/amplifier-bundle-skills
  • Skill file: skills/http-service-patterns/SKILL.md

What it does

Use when building an HTTP service with FastAPI. Covers lifecycle management, background poll loops, SPA static file serving with API reverse proxy, bidirectional WebSocket relay, and SSE event streaming.

Skill instructions

HTTP Services & Proxies The Pattern Problem: You need a web service that does more than serve requests — it has a background loop reconciling state, it proxies WebSocket connections to a backend process, and it must start reliably even when the previous instance didn't exit cleanly. Approach: FastAPI lifespan for startup/shutdown, asyncio.createtask for background loops, bidirectional WebSocket relay for proxying, and pre-bind port cleanup to prevent systemd crash-loops. Pattern proven in production across multiple Python CLI tools and web services. Key Design Decisions 1. Pre-bind port cleanup — preventing the restart crash-loop When systemd restarts a service, the old process may still hold the port in TIMEWAIT. The new process fails to bind, exits with status=1, systemd restarts it, repeat. In one production deployment, 2,075+ systemd restarts occurred before manual intervention. The fix runs before uvicorn.run(): python def killstaleportholder(port: int) - None: """Kill any existin

Verified compatibility and discovery

Frequently asked questions

What is http-service-patterns?

http-service-patterns is a open-source AI agent skill with Copy skill directory. Use when building an HTTP service with FastAPI. Covers lifecycle management, background poll loops, SPA static file serving with API reverse proxy, bidirectional WebSocket relay, and SSE event.

Who is http-service-patterns best for?

http-service-patterns is best for reusing agent instructions, scripts, and references, deployment workflows, design and media workflows.

How do I install http-service-patterns?

Install or run http-service-patterns using Copy skill directory. Check http-service-patterns for the latest setup command.

Is http-service-patterns actively maintained?

http-service-patterns may need a closer maintenance check before production use.

Share:

Stars
10
Forks
9
Last commit
2 months ago
Last verified
Sep 1, 2026
Metadata fetched
Sep 1, 2026
Repository age
7 months
License
MIT

Project health auto-fetched from the source repository.

Maintain this resource?

Review this source-backed profile, send a correction with evidence, or link to it from your documentation. Claims verify your relationship to the project; profile facts still require source evidence and editorial review.

Alternatives to http-service-patterns