This document defines the specialized instructions for the Gemini CLI agent working on the SmartRanking API.
- Stability First: Always run
yarn buildbefore considering any task complete. - Verification Mandate: For bug fixes, Empirically Reproduce the issue with a test or reproduction script before applying a fix.
- Doc Integrity: After adding/updating routes, ensure Swagger decorators in controllers and the
requests.httpfile are synchronized. - Zero-Any: Never introduce
anytypes. Useunknown,Partial, or custom types.
- Research: Use
grep_searchandread_fileto map the target module's flow. - Strategy: Propose changes based on existing project patterns (see
PROJECT_RULES.md). - Action:
- Create/Update Schemas & Interfaces.
- Implement/Update Service logic (with logging).
- Create/Update DTOs.
- Expose via Controller (with Swagger).
- Validate: Run existing tests and
yarn build.
- Analyze: Locate the source using Grep.
- Reproduce: Create a minimal test case or
requests.httpscenario. - Fix: Surgical code correction.
- Verify: Confirm the fix with the reproduction case and ensure no regressions.
- Tool: Always use
yarn. - Conflicts: Check for peer dependency warnings during
yarn install. - Audits: Run
npm audit(via yarn if needed) periodically to check for security flaws.
- Provide a technical summary of files changed and the rationale behind architectural decisions.
- Do not repeat file contents unless specifically asked.