Closed jacob-ai-bot[bot] closed 5 days ago
Hello human! 👋
This PR was created by JACoB to address the issue Create a Function to Generate a Custom AI System Prompt from Project-Level Research
Please review the PR carefully. Auto-generated code can and will contain subtle bugs and mistakes.
If you identify code that needs to be changed, please reject the PR with a specific reason. Be as detailed as possible in your comments. JACoB will take these comments, make changes to the code and push up changes. Please note that this process will take a few minutes.
Once the code looks good, approve the PR and merge the code.
Summary:
Description
We need to develop a new function that generates a custom system prompt for our AI code generator, tailored to specific use cases based on the project's research data. This function should:
The goal is to transform the existing research into a structured prompt that the AI can use to create code that meets our specific needs.
For clarity, please include an example within the function's documentation to illustrate how the research is converted into the prompt format.
Note: At this stage, the function should be created and adequately documented but not integrated or wired into other parts of the application.
Expected Outcome
A new function that:
The function is standalone and not connected to other application components.
Clear documentation is provided to assist with future integration and usage. @jacob-ai-bot --skip-build
Plan:
Step 1: Edit
/src/server/utils/research.ts
Task: Add function to generate custom AI system prompt from project-level research
Instructions: In the file
/src/server/utils/research.ts
, create a new function namedgenerateCustomAISystemPrompt
. This function should:Research
objects.Additionally, include comprehensive documentation for the function:
Exit Criteria: The
generateCustomAISystemPrompt
function exists in/src/server/utils/research.ts
, accepts project-level research data as input, processes it into a detailed system prompt, and includes documentation with an example demonstrating the prompt structure.