claude-skills/scripts/evals/fixtures/cr/users.js
Claude f9ea3bd6aa
feat(evals): nightly trigger and behaviour evals for every skill
Harness in scripts/evals/ built from the v2.14 audit evals: trigger cases
for all 384 unique skills (13 hand-written, the rest drafted with Claude),
6 behaviour cases with fixtures and a blind JSON-schema grader, a date
rotation (15 skills/night, $10 cap), and a scoreboard that flags
regressions. The workflow stays off until ANTHROPIC_API_KEY and
SKILL_EVALS_ENABLED are set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFLywRRE8eU2sVPtJAL
2026-10-29 07:28:49 +00:00

13 lines
421 B
JavaScript

const express = require('express');
const db = require('./db');
const app = express();
app.get('/user/:id', async (req, res) => {
const rows = await db.query('SELECT * FROM users WHERE id = ' + req.params.id);
res.json(rows);
});
app.post('/user/:id/avatar', async (req, res) => {
const path = '/var/uploads/' + req.query.name;
require('fs').writeFileSync(path, req.body);
res.send('ok');
});
app.listen(3000);