/harness-claude:node-http-serverfrom harness-claude
Build low-level HTTP servers using Node.js http module with middleware pattern, route handling, body parsing, and graceful shutdown.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /harness-claude:node-http-server still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Build low-level HTTP servers with Node.js http module and middleware pattern
import { createServer, IncomingMessage, ServerResponse } from 'node:http';
const server = createServer((req: IncomingMessage, res: ServerResponse) => {
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ message: 'Hello, world!' }));
});
server.listen(3000, () => {
console.log('Server running on http://localhost:3000');
});
const server = createServer((req, res) => {
const url = new URL(req.url!, `http://${req.headers.host}`);
if (req.method === 'GET' && url.pathname === '/api/health') {
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ status: 'ok' }));
return;
}
if (req.method === 'GET' && url.pathname === '/api/users') {
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify(users));
return;
}
res.writeHead(404);
res.end('Not Found');
});
async function parseBody(req: IncomingMessage): Promise<unknown> {
return new Promise((resolve, reject) => {
const chunks: Buffer[] = [];
req.on('data', (chunk) => chunks.push(chunk));
req.on('end', () => {
const body = Buffer.concat(chunks).toString();
try {
resolve(JSON.parse(body));
} catch {
reject(new Error('Invalid JSON'));
}
});
req.on('error', reject);
});
}
// Usage in handler
if (req.method === 'POST' && url.pathname === '/api/users') {
const body = await parseBody(req);
// process body...
}
type Handler = (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
function compose(...handlers: Handler[]) {
return (req: IncomingMessage, res: ServerResponse) => {
let i = 0;
function next() {
if (i < handlers.length) handlers[i++](req, res, next);
}
next();
};
}
const logger: Handler = (req, res, next) => {
console.log(`${req.method} ${req.url}`);
next();
};
const cors: Handler = (req, res, next) => {
res.setHeader('Access-Control-Allow-Origin', '*');
next();
};
const server = createServer(compose(logger, cors, router));
const server = createServer(handler);
server.listen(3000);
process.on('SIGTERM', () => {
server.close(() => {
console.log('Server shut down gracefully');
process.exit(0);
});
setTimeout(() => {
console.error('Forced shutdown after timeout');
process.exit(1);
}, 10_000);
});
The node:http module provides the lowest-level HTTP handling in Node.js. Frameworks like Express, Fastify, and Hono build on top of it.
IncomingMessage is a Readable stream. The request body is not buffered automatically — you must consume the stream manually. This is by design for memory efficiency with large uploads.
ServerResponse is a Writable stream. Calling res.end() finishes the response. Calling res.write() before res.end() enables streaming responses.
Keep-alive: Node.js HTTP server keeps connections alive by default (HTTP/1.1). Set server.keepAliveTimeout to control how long idle connections stay open.
Trade-offs:
http module gives full control — but lacks routing, middleware, and body parsing that frameworks providehttps://nodejs.org/api/http.html
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Read when SKILL.md points to them.
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claude793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communication/a11y-image-text-altImage and Text Alternatives> Write effective alt text for images and provide text alternatives for all non-text content/a11y-keyboard-navigationKeyboard Navigation> Ensure all interactive elements are reachable and operable via keyboard alone without requiring a mouse/a11y-modal-patternsAccessible Modal Dialog Patterns> Build accessible modal dialogs with focus trapping, escape dismissal, background inertness, and screen reader announcementsOther plugins' skills for the same job