-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.cursorrules
More file actions
32 lines (23 loc) · 1.17 KB
/
.cursorrules
File metadata and controls
32 lines (23 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Cursor Rules for node-csfd-api
This file configures Cursor (and similar AI editors) to understand the project context immediately.
# AI Context Sources
Please read the following files to understand the project architecture and rules:
1. **Main Context**: `AGENTS.md` (Read this first!)
2. **Scraping Logic**: `.ai/SCRAPING.md` (Critical for selectors/parsing issues)
3. **MCP Guidelines**: `.ai/MCP_ARCH.md` (For adding new AI tools)
# Quick Reference
* **Tech Stack**: Node.js, TypeScript, `node-html-parser`, Zod.
* **Key Directories**:
* `src/services`: Business logic & Orchestration.
* `src/helpers`: Pure parsing logic (CSS selectors live here).
* `mcp-server`: AI Interface layer.
* **Build**: `npm run build` (builds server + mcp + api).
* **Testing**: `vitest` or `npm run demo`.
# Style Guide
* Use `async/await`.
* Prefer `const` over `let`.
* Use specific types, avoid `any`.
* Follow the existing specific import style (e.g., usually explicit extensions in builds).
# Workflow Specifics
* **When modifying parsers**: Always check `.ai/SCRAPING.md`.
* **When adding features**: Ensure it is exposed via MCP tools in `mcp-server/index.ts`.