# AGENTS.md — Universal AI Agent Guidance
<!-- Standardized Repository Instructions for OpenAI Codex, Cursor, Sourcegraph Amp, Aider, Jules, Claude Code & RooCode -->
Project: WebCraftKit
Description: High-speed, browser-native suite of developer and AI engineering utilities.
Specification: agents.md v1.0
---
## 1. Environment & Deterministic Commands
- **Runtime Environment:** `Node.js 22 LTS (pnpm)`
- **Framework & Toolchain:** `Astro 5.4 + React 19 + Tailwind CSS v4`
### Critical Execution Commands:
| Action | Exact Terminal Command |
| :--- | :--- |
| **Start Dev Server** | `pnpm dev` |
| **Typecheck / Analysis** | `npx tsc --noEmit` |
| **Run Unit Tests** | `pnpm test` |
| **Run Linter** | `pnpm lint` |
| **Production Build** | `pnpm build` |
---
## 2. Core Architectural Principles & Guardrails
- **Strict Verification Before Completion:** Always execute `npx tsc --noEmit` and verify output before asserting that tasks or bugfixes are complete. Never claim passing tests without physical command evidence.
- **Preserve Documentation Integrity:** Maintain all existing code comments, type docstrings, and explanatory annotations. Never delete or abbreviate code blocks unless explicitly instructed.
- **Strict Type Safety:** Avoid `any` types, loose type assertions, or unchecked type casting. Define explicit interfaces.
- **100% Client-Side Architecture:** Zero server-side API endpoints for user tool payloads. All computations execute in local browser memory.
- **Design System Alignment:** Follow all color tokens, typography scales, and component structures defined in `DESIGN.md`.
---
## 3. Tooling, MCP Servers & Agent Capabilities
### Active MCP (Model Context Protocol) Servers:
- **GitHub MCP (`github`):** Manage PRs, issues, code reviews, and CI status via GitHub MCP tools.
- **Context7 / DevDocs MCP (`context7`):** Query live package documentation, API references, and syntax specs before making assumptions.
### Mandatory Agent Skill Protocols:
- **Systematic Debugging (`systematic-debugging`):** Always trace root cause with logs or test evidence before proposing code modifications.
- **Frontend Precision Design (`frontend-design`):** Create distinctive, accessible, responsive UI adhering strictly to the design token specification.
---
## 4. Repository Directory Structure
```text
src/
├── components/ # React 19 tool islands & UI components
├── pages/ # Astro static route pages & markdown collections
├── layouts/ # BaseLayout and LegalLayout wrappers
├── data/ # Tools registry, categories, and static data
└── styles/ # global.css with Tailwind v4 imports
```
---
## 5. Operational Instructions for AI Agents
1. When asked to fix a bug or implement a feature, inspect the affected files and type definitions first.
2. Make atomic, targeted modifications without refactoring unrelated code.
3. Validate your changes by running `npx tsc --noEmit`.
4. Ensure all user-facing strings are clear, concise, and professional.