Skip to content

Commit 590bd7c

Browse files
committed
add agents file for opencode
1 parent 43389e5 commit 590bd7c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

AGENTS.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# DevCycle JS SDKs - Agent Guidelines
2+
3+
## Build/Lint/Test Commands
4+
- **Lint all**: `yarn lint` or `nx run-many --parallel --target lint --all`
5+
- **Test all**: `yarn test` or `nx run-many --parallel --target test --all`
6+
- **Type check**: `yarn check-types` or `nx run-many --parallel --target check-types --all`
7+
- **Single project test**: `nx test <project-name>` (e.g., `nx test nodejs`)
8+
- **Single project lint**: `nx lint <project-name>`
9+
- **Build**: `nx build <project-name>`
10+
- **Format**: `yarn prettier:format`
11+
12+
## Code Style Guidelines
13+
- **Formatting**: Prettier handles all formatting (4 spaces, single quotes, no semicolons, trailing commas)
14+
- **Linting**: ESLint enforces code quality with TypeScript strict rules
15+
- **Naming**: camelCase for files/variables, kebab-case for folders
16+
- **Imports**: Use package names for internal libraries (`@devcycle/bucketing`) not relative paths
17+
- **Types**: Explicit module boundary types required (`@typescript-eslint/explicit-module-boundary-types`)
18+
- **Lodash**: Import specific methods only (`lodash/import-scope: method`)
19+
20+
## Git Conventions
21+
- **Commits**: Follow Conventional Commits: `<type>: <description>` (feat, fix, docs, etc.)
22+
- **Aviator CLI**: Optional but recommended for stacked branches (`av branch`, `av sync --push=yes`, `av pr`)

0 commit comments

Comments
 (0)