Add API endpoint
Python
Django
#api
#endpoint
#testing
Add a new API endpoint by doing the following:
1. Read api/views.py
and understand how the API views are implemented
2. Add a new endpoint to the API and write it back to api/views.py
3. Add the path for the new endpoint to api/urls.py
4. Write tests for the new endpoint in api/tests/test_api.py
Find the answer to a question about the code
Markdown
#documentation
#search
#response
I have a question about the code base, please answer it in the following way:
- Do a code search to find files relevant to the question
- Read relevant files
- Use that information to answer the question:
Refactor part of the code
Python
#refactoring
#optimization
#maintenance
I want you to refactor part of the code:
- Find and read the files containing the code to refactor and read them
- Change the code to achieve the expected result
- Update the existing files and if required, create new files
Generate a beautiful HTML page
HTML
Bulma
#html
#bulma
#design
- Search the internet for the latest BulmaCSS CDN version
- Generate a self-contained HTML page that combines the given content with BulmaCSS
- Write the HTML page to the given file path
When generating the page, follow these rules:
- Use the latest BulmaCSS version
- Organize the content in a visually appealing way using Bulma components
- Use FA icons and emojis to make the page more engaging
- Make full use of Bulma CSS classes to style the page
Change the Helm Chart
YAML
Helm
#helm
#chart
#update
We want to update the Helm Chart. Do the following:
1. Determine the relevant files in the Helm Chart by listing the helm-chart/templates
directory
2. Read the relevant files and update them accordingly
3. Write the changes back to the Helm Chart
Make a beautiful HTML page
Bulma
#html
#bulma
#design
- Search the internet for the latest BulmaCSS CDN version
- Generate a self-contained HTML page that combines the given content with BulmaCSS
- Write the HTML page to the given file path
When generating the page, follow these rules:
- Use the latest BulmaCSS version
- Organize the content in a visually appealing way using Bulma components
- Use FA icons and emojis to make the page more engaging
- Make full use of Bulma CSS classes to style the page
Investigate latest Sentry error
#sentry
#error
#investigation
Investigate a Sentry error by doing the following:
1. List all open Sentry issues
2. Find the issue that best matches the given description
3. Read the three most recent events for the issue
4. Write a concise description of the error and relevant technical details (e.g. stack trace)
Gather information about project
Python
Django
#project
#information
#organization
We want to know more about this project. The kind of info we are looking for includes:
- Programming languages used
- Usage of specific frameworks or libraries
- Project structure and organization
- Important files in the root dir and their relevance within the project
Gather the information by doing the following:
- List the . directory
- Read files that could provide more information (README, build/config files, etc)
- From the data you collected, deduce the information we are looking for
Report a bug
#bug
#report
#notification
Report a bug by doing the following:
1. Read the relevant files to understand the bug
2. Create a new issue on Github with the following details:
- The given description
- Steps to reproduce the bug
- Observed behavior and expected behavior
- Technical details based on what you found in the files
3. Post a notification in the #qa-team Slack channel with a link to the issue
Find and investigate error on Sentry
#sentry
#error
#investigation
Investigate an error on Sentry by doing the following:
1. List all open Sentry issues
2. Find the issue that best matches the given description
3. Read the three most recent events for the issue and collect technical details (stack trace, etc)
4. Find and read the relevant code files to understand the context of the error
5. Write a concise description of the error and relevant technical details
IMPORTANT: Do NOT attempt to fix or report the error, only gather information and respond.
Initialize the project
#documentation
#overview
#structure
We want to write a file that gives an accurate, detailed overview of the project.
The purpose of this file is to provide an entry point for finding information quickly.
Template:
```markdown
Project is a that solves for by .
Project Structure
Domain model
<3-4 concise bullet points>
...
```
Use the template and write a new knowledge file for the project by doing the following:
- Break down the information into 4-6 sections
- Write each section with a 1-2 word header and 3-4 concise bullet points
- Use ASCII art to represent the project structure
- Write the file into
.pilot-hints.md
in the project root directory
Generate a beautiful README file
#documentation
#readme
#guidelines
I want you to generate a beautiful README file for the project:
- Use the template below to structure the README file
- Fill in the template with the provided information using the guidelines below
Guidelines:
- Highlight important key phrases in bold so I can get the gist when skim-reading
- Use concise, clear language to explain each section
- Add an emoji to the beginning of each header to make it visually appealing
- Throughout the document, use emojis to make it more engaging / easier to read
Template:
```markdown
Project Structure
Tech Stack
Installation
Usage
Contributing
```
IMPORTANT: DO NOT write anything to file.
Update the user documentation
#update
#documentation
#user
We want to update the user documentation. Do the following:
1. Determine the relevant files in the docs/source
directory
2. Read the relevant files and update them accordingly
3. Write the changes back to the user documentation