Borrowing it
Nothing to install: this file belongs to TheAstrelo/Claude-Pipeline. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/TheAstrelo/Claude-Pipeline/main/.agents/skills/scaffold-api/SKILL.mdgit clone --depth 1 https://github.com/TheAstrelo/Claude-PipelineWrote 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.
[](https://agentmods.dev/skills/theastrelo/claude-pipeline/scaffold-api)<a href="https://agentmods.dev/skills/theastrelo/claude-pipeline/scaffold-api"><img src="https://agentmods.dev/badge/skills/theastrelo/claude-pipeline/scaffold-api/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/theastrelo/claude-pipeline/scaffold-api"><img src="https://agentmods.dev/badge/skills/theastrelo/claude-pipeline/scaffold-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.00551 |
| Opus 5.5 | $0.00007 | $0.00220 |
| Sonnet 5.5 | $0.00003 | $0.00110 |
| Haiku 4.5 | $0.00002 | $0.00055 |
Grade A, and why
scaffold-api 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create a new Next.js API route at src/pages/api/$ARGUMENTS.ts following these project conventions exactly:
Required Structure
- Swagger JSDoc comment block at the top of the file:
/**
* @swagger
* /api/$ARGUMENTS:
* get:
* summary: <describe endpoint>
* description: <longer description>
* tags: [<Feature Area>]
* security:
* - BearerAuth: []
* - CookieAuth: []
* parameters: [...]
* responses:
* 200: { description: Success }
* 401: { description: Unauthorized }
* 500: { description: Server error }
*/
- Imports — always use these exact patterns:
import type { NextApiResponse } from 'next';
import { requireAuth, AuthenticatedRequest } from '@infrastructure/auth/middleware';
import pool from '@infrastructure/database/connection';
- Handler function with method check and userId extraction:
async function handler(req: AuthenticatedRequest, res: NextApiResponse) {
if (req.method !== 'GET') {
return res.status(405).json({ error: 'Method not allowed' });
}
const userId = req.userId!;
try {
// Query logic here using pool.query()
const { rows } = await pool.query('SELECT ...', [userId]);
return res.status(200).json(rows);
} catch (error) {
console.error('[API_NAME] Error:', error);
return res.status(500).json({ error: 'Internal server error' });
}
}
- Default export with auth wrapper:
export default requireAuth(handler);
Rules
- Use
requireAdmininstead ofrequireAuthif the route is admin-only - Use
AuthenticatedRequesttype, neverNextApiRequest - Access user via
req.userId!(non-null assertion) - Use
pool.query()for database access — no ORM - Never use
doas a SQL alias (PostgreSQL reserved word) — usedinstead - Parse numeric scores with
parseFloat(String(value)).toFixed(1) - Define TypeScript interfaces for response shapes at the top of the file
- Add proper query parameter validation before database queries
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.
- 2mo ago First seen · 72 lines · 17 tokens per session scan A f5f869e7822f
scaffold-api is a skill published in the GitHub repository TheAstrelo/Claude-Pipeline (47 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 551 once invoked, about $0.0001 per session on Opus 5.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-30.
Other skills, from other repositories
forge-bots
Forge: chat bots — Discord, Slack, Telegram: bot, slash command, webhook, signature verification, OAuth scopes, rate limit, dead-letter, interaction handler.
forge-cms
Forge: CMS work — WordPress and headless CMS: CMS, WordPress, theme, plugin, custom post type, WP-CLI, Contentful, Sanity, Strapi, Payload, content model.
forge-api
Forge: contract-first APIs: API, REST, GraphQL, gRPC, OpenAPI, endpoint, auth, JWT, versioning, rate limit, idempotency, contract test, backend.
forge-integration
Forge: business automation and API integrations — Gmail, Calendar, CRM, webhooks, Slack, payments: integration, OAuth, sync, notification, automation.
forge-scraping
Forge: SAFE, legal web scraping and data collection: scrape, crawler, spider, harvest, extract data, API pull, lead list — public/permitted sources only.
forge-fullstack
Forge: full-stack apps — frontend + backend + database + auth: full-stack, SaaS, CRUD app, Postgres, Supabase, JWT, session, signup, dashboard.