Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/bartholomej/node-csfd-api/agents-mdgit clone --depth 1 https://github.com/bartholomej/node-csfd-apiWhat 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 | $0.00688 | $0.00688 |
| Opus 5 | $0.00344 | $0.00344 |
| Sonnet 5 | $0.00138 | $0.00138 |
| Haiku 4.5 | $0.00069 | $0.00069 |
Grade A, and why
node-csfd-api AGENTS.md 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 2d 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 β 66 lines β stays where its author put it; the contents beside it link to each section on GitHub.
AI Agent Guide for node-csfd-api
This file serves as the primary context source for AI agents (Claude, Gemini, GPT) working on this repository.
π§ Project Identity
Project: node-csfd-api
Description: A TypeScript wrapper and scraper for CSFD.cz (Czecho-Slovak Film Database). It exposes data via a Node.js API and a Model Context Protocol (MCP) server for AI consumption.
Core Stack: TypeScript, Node.js, node-html-parser, Zod, Express.
πΊοΈ High-Level Architecture
The project is divided into layers. Do not mix concerns.
-
Core Scraper (
src/):- Fetchers (
src/fetchers): Handles HTTP requests, User-Agents, and cookies. - Helpers (
src/helpers): CRITICAL. Pure functions that take HTML Elements and return raw data strings/objects. - Services (
src/services): Orchestrators. They call Fetchers, then use Helpers to parse data, and return typed DTOs. - DTOs (
src/dto): TypeScript interfaces defining the shape of the data.
- Fetchers (
-
MCP Server (
mcp-server/):- The AI interfacing layer. It wraps
src/servicesinto tools executable by LLMs. - See
.ai/MCP_ARCH.mdfor specific rules.
- The AI interfacing layer. It wraps
-
App Server (
server/):- A classic Express/Node server exposing the scraper as a REST API.
β‘ Golden Rules for Code Generation
1. Scraping & robustness
- Never put CSS selectors directly in Service classes. Always wrap them in a Helper function in
src/helpers. - Never assume an element exists. CSFD changes layouts. Use optional chaining
?.ortry/catchinside helpers. - See
.ai/SCRAPING.mdfor the parsing strategy.
2. File Structure & Imports
- Use standard ES imports.
- When importing local files, use the
.jsextension in imports where necessary for ESM compatibility (e.g.,import { x } from './file.js'), but follow the existing pattern in the file you are editing.
3. Testing
- Use
vitest. - Prefer integration tests against live CSFD for critical paths (or use recorded mocks if available).
- Run
npm run demoto verify basic functionality quickly.
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.
- 2d ago First seen Β· 66 lines Β· 688 tokens per session scan A f528840dc211
node-csfd-api AGENTS.md is an instructions file published in the GitHub repository bartholomej/node-csfd-api (60 stars, last pushed 9d ago), licensed MIT. It adds 688 tokens to every session, about $0.0034 per session on Opus 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 instructions, from other repositories
angular AGENTS.md
Instructions for angular/angular, covering environment, key documentation, testing and pull requests.
fallow
Rust-native codebase analyzer for TypeScript and JavaScript projects.
mastra CLAUDE.md
Claude Code instructions for mastra-ai/mastra, a project described as: Mastra is the modern TypeScript framework for AI-powered applications and agents.
node-sdk AGENTS.md
Instructions for transloadit/node-sdk, covering transloadit repository guide, coding style, general, playwright and typescript.
js2 CLAUDE.md
Instructions for loopdive/js2, covering js2wasm, answering style, running tests, dev scratch and working in worktrees.
frontmcp AGENTS.md
Instructions for agentfront/frontmcp, a project described as: TypeScript-first framework for the Model Context Protocol (MCP). You write clean, typed code; FrontMCP handles the protocol, transport, DI, session/auth, and execution flow.