This document provides instructions for AI agents operating in the packages/cli directory of the monoblok repository.
- Project Structure:
- This is a monorepo workspace.
- CLI source code is in
src/. - Distributable output goes to
dist/.
| Action | Command | Notes |
|---|---|---|
| Lint Fix | pnpm lint:fix |
Auto-fixes linting issues. |
| Type Check | pnpm test:types |
Checks types. |
| Test (CI) | pnpm test:ci |
Runs tests in non-watch mode. |
- Files: kebab-case (e.g.,
custom-fields-parser.ts). - Classes: PascalCase.
- Functions/Variables: camelCase.
- Interfaces/Types: PascalCase.
- Place tests alongside source files (e.g.,
program.ts->program.test.ts). - Rely on the
qa-engineer-integrationorqa-engineer-unitskills for further testing instructions.
- Use the
qa-engineer-manualskill when it comes to testing the DX of a feature and validating end-to-end functionality.
- Step 1: Create/Modify Test (see
qa-engineer-integrationorqa-engineer-unitskills). - Step 2: Verify Test Fails (
pnpm test:ci <filename>). - Step 3: Write Implementation.
- Step 4: Verify Test Passes (
pnpm test:ci <filename>). - Step 5: Run Fix & Check (
pnpm test:types && pnpm lint:fix) before finishing.