claude-code-sample-3

claude-code-sample-3 is a skill for Claude Code, Codex from andersonamaral2/Claude-Code-to-Deep-Agents-Skills-Converter. It costs 0 tokens per session (1,125 once invoked), scanned D, original, MIT.

A recipe for creating a Node.js and Express web API with user registration, login, protected routes, PostgreSQL storage, and Docker-based local setup.

In plain words
What is it for?
Use it to scaffold a REST API where users can register and log in, access restricted endpoints, and run the app and database locally in containers.
Why use it?
It provides the project structure and code needed for common account and database features, so you do not have to design them from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - ./db/init.sql:/docker-entrypoint-initdb.d/init.sql.

Good fit Use it to scaffold a REST API where users can register and log in, access restricted endpoints, and run the app and database locally in containers.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/andersonamaral2/Claude-Code-to-Deep-Agents-Skills-Converter
agentmods
npx agentmods add skills/andersonamaral2/claude-code-to-deep-agents-skills-converter/claude-code-sample-3

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for claude-code-sample-3

README.md
[![agentmods](https://agentmods.dev/badge/skills/andersonamaral2/claude-code-to-deep-agents-skills-converter/claude-code-sample-3/github.svg)](https://agentmods.dev/skills/andersonamaral2/claude-code-to-deep-agents-skills-converter/claude-code-sample-3)
Your own site
<a href="https://agentmods.dev/skills/andersonamaral2/claude-code-to-deep-agents-skills-converter/claude-code-sample-3"><img src="https://agentmods.dev/badge/skills/andersonamaral2/claude-code-to-deep-agents-skills-converter/claude-code-sample-3/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.

agentmods 80×15 button for claude-code-sample-3

Your own site · 80×15
<a href="https://agentmods.dev/skills/andersonamaral2/claude-code-to-deep-agents-skills-converter/claude-code-sample-3"><img src="https://agentmods.dev/badge/skills/andersonamaral2/claude-code-to-deep-agents-skills-converter/claude-code-sample-3.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,125 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01125
Opus 5 $0.00000 $0.00562
Sonnet 5 $0.00000 $0.00225
Haiku 4.5 $0.00000 $0.00112

Measured 12d ago against content hash 8156670fde05, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade D, and why

claude-code-sample-3 scanned grade D with 3 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 12d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -s -X POST http://localhost:3000/auth/register -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"secret123"}'

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

TOKEN=$(curl -s -X POST http://localhost:3000/auth/login -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"secret123"}' | python3 -c "import sys,json;print(json.load(sys.stdin)['token'])")

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST http://localhost:3000/auth/register -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"secret123"}'
examples/claude-code-sample-3/SKILL.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Express.js JWT API with PostgreSQL and Docker

Builds a production-style Express.js REST API with JWT authentication, a PostgreSQL database, layered middleware, and Docker Compose for local development.


When to use

When the user asks to scaffold a secure Node.js/Express REST API with login/registration, protected routes, a relational database, and containerized local development.


Prerequisites

Make sure Node.js 18+ and npm are installed, plus Docker and Docker Compose for the database.

Set these environment variables (the app reads them at boot):

  • $JWT_SECRET — secret used to sign access tokens
  • $DATABASE_URL — PostgreSQL connection string
  • $PORT — port the API listens on (default 3000)

Steps

Initialize the project and install dependencies:

npm init -y
npm install express jsonwebtoken bcrypt pg dotenv
npm install --save-dev nodemon

Create the file src/db.js for the PostgreSQL connection pool:

const { Pool } = require('pg');

const pool = new Pool({ connectionString: process.env.DATABASE_URL });

module.exports = { pool };

Create src/middleware/auth.js, a middleware that verifies the JWT in the Authorization: Bearer header:

const jwt = require('jsonwebtoken');

function authRequired(req, res, next) {
  const header = req.headers.authorization || '';
  const token = header.startsWith('Bearer ') ? header.slice(7) : null;
  if (!token) return res.status(401).json({ error: 'missing token' });
  try {
    req.user = jwt.verify(token, process.env.JWT_SECRET);
    next();
  } catch {
    return res.status(401).json({ error: 'invalid token' });
  }
}

module.exports = { authRequired };

Create src/middleware/logger.js, a simple request logger:

module.exports = function logger(req, res, next) {
  console.log(`${new Date().toISOString()} ${req.method} ${req.path}`);
  next();
};

Create src/routes/auth.js with POST /auth/register and POST /auth/login. Register hashes the password with bcrypt and inserts the user; login verifies the password and returns a signed JWT.

Read the full file on GitHub · 160 lines

Changes

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.

  1. 12d ago First seen · 160 lines · 0 tokens per session scan D 8156670fde05

Subscribe to this mod's changes

claude-code-sample-3 is a skill published in the GitHub repository andersonamaral2/Claude-Code-to-Deep-Agents-Skills-Converter (57 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,125 tokens. A static security scan graded it D with 3 findings (sends data to an external url, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

azure-postgres-ts

Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package. Use for PostgreSQL queries, connection pooling, transactions, and Microsoft Entra ID (passwordless) authentication. Triggers: "PostgreSQL", "postgres", "pg client", "node-postgres", "Azure PostgreSQL…

microsoft/skills · 94 tokens

butterbase

AI-native, open-source backend-as-a-service with a built-in Model Context Protocol server. Postgres, auth, storage, functions, AI gateway.

butterbase-ai/butterbase · 34 tokens

supabase

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…

supabase/agent-skills · 185 tokens

supabase-cli

This skill should be used when user asks to "use supabase CLI", "supabase init", "supabase start", "run migrations", "deploy edge functions", "manage Supabase project", or works with the supabase command-line tool for local development and project management.

fcakyon/claude-codex-settings · 60 tokens

supabase-js

This skill should be used when user asks to "use supabase-js", "query Supabase database", "supabase auth", "supabase storage", "supabase realtime", "supabase edge functions", or works with the @supabase/supabase-js JavaScript/TypeScript SDK.

fcakyon/claude-codex-settings · 64 tokens

supabase-node

Express/Hono with Supabase and Drizzle ORM.

alinaqi/maggy · 14 tokens