Add this skill
npx mdskills install PatrickJS/cursor-nextjs-vercel-supabaseProject context guide for building a BA tool, but lacks agent-specific instructions
1# Cursorrules23## Intro45I am building 'BA Copilot', where BA stands for Business Analysts. I will sometimes refer to it as bacp.67## BA Copilot MVP89### Overview1011It is an assistant for business analysts. The MVP will be a an ai chatbot type tool, which will render BPMN diagrams using bpmn-js. The user can then iterate on them either with:1213- additional discussion14- editing the diagram directly (bpmn-js supports this)1516### UI Description1718Here is a hierarchical, indented bullet description of the BA Copilot MVP, focusing on its functionality for creating and iterating on BPMN diagrams:1920BA Copilot Interface2122Question Input Section2324Users can input questions or requests related to business processes. Example: "Based on the doc content what have I missed?"2526Process Section (Optional)2728Allows users to upload or view BPMN diagrams in formats like .png, .vsdx, etc. Users can visualize and edit existing diagrams or create new ones. Example: A BPMN diagram showing a flow of "Register expense report", "Approve", and "Deny" processes.2930Documents Section (Optional)3132Users can upload relevant documents, such as PDFs, that might contain process details. Example: "Shelter - employee handbook.pdf" uploaded to provide context for the BPMN diagram.3334Artifacts Section3536Provides a space for related outputs or references to be displayed. Example: Diagram suggestions based on uploaded content.3738Iterative BPMN Diagram Creation and Modification3940Input Process4142Users can pose questions or requests for modifications to existing processes. Example: Asking for missing steps in the process based on document content.4344AI-Powered Suggestions4546The system suggests additions or modifications to the BPMN diagram based on the content of uploaded documents or user queries. Example: Suggestion to add a task for checking the expense policy, citing specific sections from the uploaded handbook.4748Diagram Editing4950Users can interactively edit the BPMN diagram based on suggestions. Example: Adding a task "Check expense policy" with inputs and outputs like "Expense report" and "Checked expense report".5152Documentation and References5354The system references uploaded documents and highlights relevant sections. Example: Citing "Section 7. Claiming reimbursement for payments made on behalf of the company" from the employee handbook.5556User Workflow5758Start with a Question5960User initiates the process by asking a question or making a request.6162Upload Process Diagrams and Documents6364User uploads existing diagrams and documents for context.6566Receive AI-Generated Suggestions6768System provides suggestions to enhance or correct the process flow.6970Modify BPMN Diagram7172User edits the BPMN diagram based on the received suggestions.7374Iterate Until Satisfied7576User continues to ask follow-up questions and modify the diagram until the desired outcome is achieved.7778This BA Copilot MVP allows users to efficiently create, modify, and iterate on BPMN diagrams with contextual suggestions, leveraging uploaded documents and user queries.7980## BA Copilot Vision8182### Overview8384The vision for this is that it will be the home for business analysts to get assistance relating to their jobs. It will protect itself network effects to increase the value of the product e.g. BA agencies posting their products in the toolkit section, and members discussing BA topics in community section. It will also protect itself via an ever improving model for BA tasks e.g. BPMN generation. Although it will never be trained on user data. It will grow via virality via a dropbox style 'refer a friend and you both get 100 AI credits'. Revenue will be via companies paying for it for their BAs. Revenue will also be via companies paying to list on the job board.8586### UI Description8788This UI for the Business Analyst (BA) Copilot is designed to facilitate various tasks related to business analysis. Here's a description of its features:8990Header Section9192The top navigation bar displays the application name "BA Copilot" and provides options like sharing the prototype and accessing user settings.9394Left Sidebar Navigation9596Home: The main dashboard or landing page of the BA Copilot. Assistant: A section likely dedicated to personalized assistance or guided help. Vault: A storage area for important documents or resources. Library: A collection of resources, templates, or reference materials. History: Access to past interactions, tasks, or saved work. Toolkit: Tools or utilities that support various BA activities. Community: A section for engaging with other users, discussing best practices, or sharing knowledge. Job Board: An area for job-related resources, possibly listing openings or career opportunities. Settings: User-specific settings, located at the bottom, allowing for customization of the BA Copilot experience. User Information: At the bottom, the user's email is displayed (e.g., alex@tesla.com), along with a security note indicating data is secure.9798Main Content Area99100Central Interaction Box101102A prominent text box labeled "Ask anything..." invites users to enter questions, requests, or commands. This is the primary interface for interacting with the BA Copilot.103104Quick Action Buttons105106Below the interaction box, several buttons offer shortcuts to common BA tasks: Create flowchart from requirements: Generates a process flowchart based on a list of requirements. Create requirements from flowchart: Extracts and documents requirements from an existing flowchart. Create documentation from notes: Converts meeting notes or other informal documentation into formal documents. Create tests from documentation: Develops test cases or scripts based on existing documentation. Give me career advice: Provides personalized career guidance or resources. Recommend a toolkit: Suggests tools or software relevant to the user's current tasks or projects.107108Overall Layout109110The interface is clean, minimalist, and user-friendly, with a clear emphasis on functionality and ease of use. It is designed to guide users smoothly through typical BA tasks while providing easy access to tools and resources. This UI embodies the vision of a comprehensive yet streamlined tool tailored to assist business analysts in their day-to-day tasks, making their work more efficient and organized.111112## Technical113114### Overview115116The following elements of the stack are ones I'm confident I'll build with:117118- Next.js using App router, not Pages router always check that you have not made a recommendation that is for Pages router always check that your recommendation is appropriate for App router119- Vercel AI120- Supabase - db, including their type safety121- Supabase - auth122- Tanstack query123- Material UI124- Potentially Orval for API calls (typing, tanstack query, and mock service worker testing)125- Quokka126127I have intermediate experience with React. However, I am new to Next.js. So whenever implementing something with Next.js, teach me as if I don't know about it. Then offer to explain more. If you feel I should replace elements of my stack above, always tell me. For elements of the stack that are missing, make recommendations and explain pros and cons, and then make a recommendation. My app folder is src/app Never create app/Creating app/ will break things128129### Devias Template130131This workspace contains:132133- the repo that I'm building in (ba-copilot-main, or ba-copilot)134- a repo that I'm building from: nextjs-template-typescript135136nextjs-template-typescript is a template made my Devias Kit Pro herein Devias. I will bring elements in from their repo to mine. So be aware of that, and consider recommending bringing elements in from there as well, and following their coding style and structure.137138
Full transparency — inspect the skill content before installing.