add-public-endpoint

Scaffold public API routes in Next.js with visibility checks and rate limiting.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ebenfc/bird-photo-gallery --skill add-public-endpoint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-public-endpoint
Source: https://github.com/ebenfc/bird-photo-gallery/tree/main/.claude/skills/add-public-endpoint
Command: npx skills add https://github.com/ebenfc/bird-photo-gallery --skill add-public-endpoint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of new, unauthenticated API endpoints for public access, ensuring essential security checks are in place.

Core Features & Use Cases

  • Public API Scaffolding: Generates boilerplate code for new public API routes.
  • Security Enforcement: Automatically includes visibility checks and rate limiting.
  • Use Case: When you need to expose a read-only gallery view for users who are not logged in, this Skill helps you quickly set up the /api/public/gallery/:username endpoint.

Quick Start

Use the add-public-endpoint skill to create a new public API route at src/app/api/public/gallery/$ARGUMENTS.

Frequently Asked Questions about add-public-endpoint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a public API route in Next.js that allows unauthenticated access?

It scaffolds new public API routes in Next.js applications by generating boilerplate code while enforcing visibility checks and rate limiting for secure unauthenticated access. This creates read-only endpoints suitable for public-facing features.

What security measures are needed when exposing unauthenticated endpoints in Next.js?

Exposing unauthenticated endpoints requires visibility checks and rate limiting middleware to secure public access. The scaffolding process integrates user data caching and route matching to ensure only intended data is accessible.

Can I create a read-only public gallery endpoint for users who are not logged in?

Yes, you can create a read-only public gallery endpoint for unauthenticated users by scaffolding the `/api/public/gallery/:username` route. This automatically includes the necessary security checks and rate limiting for public access.

Does scaffolding public API routes include rate limiting middleware integration?

Yes, scaffolding public API routes includes rate limiting middleware integration to prevent abuse of unauthenticated access. It also enforces visibility checks and user data caching to secure the read-only endpoints.

When should I use a public endpoint instead of an authenticated API route in Next.js?

Use a public endpoint instead of an authenticated API route when exposing read-only data, like a user gallery, to unauthenticated visitors. This approach requires visibility checks and rate limiting to secure the public-facing features.