.agent/skills/api-security/SKILL.md
Auth patterns, rate limiting, input validation, CORS, HTTPS. Use when securing Julia's backend API, bridge, or any HTTP endpoint.
npx skillsauth add abzhaw/juliaz_agents api-securityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
import { z } from 'zod';
const CreateTaskSchema = z.object({
title: z.string().min(1).max(500).trim(),
priority: z.enum(['low', 'medium', 'high']).default('medium'),
});
app.post('/tasks', (req, res) => {
const result = CreateTaskSchema.safeParse(req.body);
if (!result.success) return res.status(400).json({ error: result.error.flatten() });
// use result.data — fully typed and validated
});
import rateLimit from 'express-rate-limit';
const limiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
max: 100,
message: { error: 'Too many requests' }
});
app.use('/api', limiter);
import cors from 'cors';
app.use(cors({
origin: ['http://localhost:3002'], // only allow frontend
methods: ['GET', 'POST', 'PATCH', 'DELETE'],
credentials: true,
}));
const API_KEY = process.env.INTERNAL_API_KEY;
function requireApiKey(req: Request, res: Response, next: NextFunction) {
if (req.headers['x-api-key'] !== API_KEY) {
return res.status(401).json({ error: 'Unauthorized' });
}
next();
}
app.use('/api', requireApiKey);
import helmet from 'helmet';
app.use(helmet()); // sets X-Frame-Options, CSP, HSTS, etc.
development
Fortschrittsverfolgung der Masterarbeit. Wortanzahl pro Kapitel, Fertigstellungsgrad, fehlende Elemente, Deadlines. Haelt den Ueberblick.
development
Kapitelarchitektur und Gliederung der Masterarbeit. Verwaltet die Struktur, schlaegt vor wo Inhalte hingehoeren, validiert den logischen Fluss zwischen Kapiteln.
tools
Konvertiert Protokolleinträge und Session-Logs in thesis-fähiges deutsches Narrativ. Transformiert Entwicklungsdokumentation in akademische Prosa.
research
Sucht und analysiert akademische Literatur. Findet relevante Papers, erstellt strukturierte Zusammenfassungen. Zitiert NIEMALS — schlaegt nur vor.