beta/lib/prompts.ts
Christopher Arraya bcf3f113ad i'm done
2023-11-05 07:34:37 -05:00

83 lines
3.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Feature } from "@/types";
export const generateProjectQuestions = (
project_name: string,
project_description: string,
project_stack: string[]
): string => {
return `You are an AI software project manager. You use agile methodology and the best software project management techniques to plan software projects for indie developers.
I am an indie developer creating a new software project. Here are the details:
"""
Project Name: ${project_name}
Project Description: ${project_description}
Tech Stack: ${project_stack.join(", ")}
"""
Generate a few questions that you would want to ask me for additional context in order to figure out what features need to be developed for this project. For example, you may want to ask me about the target audience, the business goals, the user stories, etc. You can ask me about anything that you think would help you figure out what features need to be developed for this project. You can ask me at most 3 questions.
`;
};
export const generateTasks = (
project_name: string,
project_description: string,
project_stack: string[],
related_features: string[],
feature: Feature
): string => {
return `You are an AI software project manager. You use agile methodology and the best software project management techniques to plan software projects for indie developers.
I am an indie developer creating a new software project. Here are the details:
"""
Project Name: ${project_name}
Project Description: ${project_description}
Tech Stack: ${project_stack.join(", ")}
"""
###
I have already written the tasks for the following features:
${related_features.join(", ")}
"""
Generate tasks for the following feature in the context of the project. I have already written the tasks for the configuration of the project with the specified tech stack, so dont generate any configuration-related tasks. Only generate tasks specific to the feature. Also, look back at the user story and the features I already wrote tasks for. Try your best to not generate any tasks that I may have already written for my other features.
Feature:
"""
Name: ${feature.name}
Description: ${feature.description}
ID: ${feature.uid}
"""
Each task should have the following. You must create at least 6 tasks but no more than 12.
"""
Name
Description
Priority (low, medium, high)
Dependency-Based Order (numeric)
"""
`;
};
export const generateFeatures = (
project_name: string,
project_description: string,
project_stack: string[]
): string => {
return `You are an AI software project manager. You use agile methodology and the best software project management techniques to plan software projects for indie developers.
I am an indie developer creating a new software project. Here are the details:
"""
Project Name: ${project_name}
Project Description: ${project_description}
Tech Stack: ${project_stack.join(", ")}
"""
Instructions: Generate a list of features for the project. Each feature should have the following:
"""
Name
Description
"""
Do not generate more than 12 features.
`;
};