From 5c48b17a908f94037d1feadd25c37ef72c9fc27e Mon Sep 17 00:00:00 2001 From: Harshita-Kanal Date: Thu, 26 Feb 2026 00:27:47 +0530 Subject: [PATCH] docs: add agents.md and agents.yaml for AI agent development setup --- .agents/agents.md | 29 +++++++++++++++++++++++++++++ .agents/agents.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .agents/agents.md create mode 100644 .agents/agents.yaml diff --git a/.agents/agents.md b/.agents/agents.md new file mode 100644 index 00000000..e8096c0b --- /dev/null +++ b/.agents/agents.md @@ -0,0 +1,29 @@ +# react-codemod - Agent Guide + +This is the agent-facing guide for working in this repository. + +## Project Context +- React codemod scripts + +## Setup +See [`agents.yaml`](./agents.yaml) for prerequisites, commands, and ports. + +### Setup Hints +- `nvm` may not be loaded in your shell. If `nvm: command not found`, source it first. + +## Running the App +- Clone the repo +- Install: `npm install` +- This is a codemod library - no dev server available + +## Architecture +- React codemod scripts using jscodeshift +- Entry point: `transforms/index.js` + +## Working Agreement +- Write modular code +- Keep testable +- Incremental validation +- Commit meaningful checkpoints +- Write tests +- Validate before handoff diff --git a/.agents/agents.yaml b/.agents/agents.yaml new file mode 100644 index 00000000..91b3c369 --- /dev/null +++ b/.agents/agents.yaml @@ -0,0 +1,26 @@ +repo: + name: react-codemod + description: React codemod scripts + owner: reactjs + +prerequisites: + - name: GitHub CLI + - name: npm + - name: node + version: '>=12.0.0' + +setup: + - npm install + +dev: + command: npm test + port: null + +build: + command: npm run prepublish + +test: + command: npm test + +lint: + command: npm run lint