From bc68f3bb0f75dd756f15d4358ba0c8229e287c8d Mon Sep 17 00:00:00 2001 From: C-Valen Date: Fri, 19 Sep 2025 15:22:13 +0200 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=94=A7=20AI=20assist=20guidelines=20s?= =?UTF-8?q?etup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cursor/rules | 20 +++++++ AI_GUIDELINES.md | 153 +++++++++++++++++++++++++++++++++++++++++++++++ CLAUDE.md | 26 ++++++++ 3 files changed, 199 insertions(+) create mode 100644 .cursor/rules create mode 100644 AI_GUIDELINES.md create mode 100644 CLAUDE.md diff --git a/.cursor/rules b/.cursor/rules new file mode 100644 index 000000000..1fd5dc457 --- /dev/null +++ b/.cursor/rules @@ -0,0 +1,20 @@ +# OSIM Project - Cursor AI Configuration + +This project uses unified AI assistant guidelines. Please refer to the comprehensive guidelines in: + +**[AI_GUIDELINES.md](./AI_GUIDELINES.md)** + +The AI_GUIDELINES.md file contains all the detailed information about: +- Project overview and tech stack +- Code style and standards +- Vue.js specific guidelines +- File organization patterns +- API and data handling approaches +- Testing guidelines +- Development workflow +- Security considerations +- Common patterns and best practices +- Available commands and tools +- AI assistant preferences and specific notes + +Please follow all guidelines specified in that file when assisting with this project. diff --git a/AI_GUIDELINES.md b/AI_GUIDELINES.md new file mode 100644 index 000000000..1632e4093 --- /dev/null +++ b/AI_GUIDELINES.md @@ -0,0 +1,153 @@ +# OSIM Project - AI Assistant Guidelines + +## Project Overview +This is OSIM (Open Security Issue Management), a Vue.js 3 + TypeScript incident response web application. The project uses modern development tools including Vite, Pinia for state management, Vue Router, and comprehensive testing with Vitest. + +## Tech Stack Context +- **Frontend**: Vue 3 with Composition API, TypeScript, Vite +- **State Management**: Pinia +- **Routing**: Vue Router 4 +- **Styling**: Bootstrap 5, SCSS, PostCSS with Stylelint +- **Testing**: Vitest (unit), Vue Test Utils, MSW for API mocking, Behave (E2E) +- **Linting**: ESLint with extensive configuration and multiple plugins, Stylelint +- **Build**: Vite with custom configuration for proxies and SSL +- **Authentication**: JWT token-based authentication +- **API Integration**: OpenAPI client generation for type-safe API calls +- **Development Server**: HTTPS-enabled with hot reload and proxy support + +## Code Style & Standards +- Follow the existing ESLint configuration (eslint.config.mjs) with comprehensive plugin setup +- Use TypeScript strict mode enabled throughout the project +- Prefer Composition API over Options API for Vue components +- Use single quotes for strings, trailing commas +- 2-space indentation, 120 character line limit +- Import organization: builtin → external → internal → Vue-specific +- Vue component structure: `