-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pilot-skills.yaml
151 lines (122 loc) · 5.55 KB
/
.pilot-skills.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
- title: Generate a beautiful HTML page
args:
content: Content of the page
purpose: What the page does
file_path: Path into which the page will be saved
instructions: |
1. Search the internet for the latest BulmaCSS CDN version
2. Generate a self-contained HTML page that combines the given content with BulmaCSS
3. 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
- title: Gather information about project
args:
directory: Path to the directory
instructions: |
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:
1. List the . directory
2. Read files that could provide more information (README, build/config files, etc)
3. From the data you collected, deduce the information we are looking for
result: |
A concise list of compact bullet points, each containing a piece of information about the project. Examples:
- Project <name> is a <what is it>
- It solves <problem> for <persona> by <how it does it>.
- Stack is Django/Python/Docker/Kubernetes
- Dependencies and scripts in `pyproject.toml`
- `src` directory contains the main project code
- `docs` directory contains user documentation
- Deployments and automation via Github actions
- `tox.ini` for running tests with Pytest
- ...
- title: Initialize the project
args:
tech_stack: Ultra-short description of the tech stack
project_structure: ASCII representation of the project structure with short explanations
build_and_run: How the project is built and run
testing: How the project is tested
additional_info: Anything else that is important
instructions: |
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 name>
Project <name> is a <what is it> that solves <problem> for <persona> by <how it does it>.
## Project Structure
<ASCII representation of the project structure with short explanations>
## Domain model
<concise bullet points about main concepts and how they relate to project structure>
## <section header>
<3-4 concise bullet points>
...
```
Use the template and write a new knowledge file for the project by doing the following:
1. Break down the information into 4-6 sections
2. Write each section with a 1-2 word header and 3-4 concise bullet points
3. Use ASCII art to represent the project structure
4. Write the file into `.pilot-hints.md` in the project root directory
- title: Find the answer to a question about the code
args:
question: A question about the code base
instructions: |
I have a question about the code base, please answer it in the following way:
1. Do a code search to find files relevant to the question
2. Read relevant files
3. Use that information to answer the question:
result: |
A concise, but detailed response to the question. Include Markdown links to files and code snippets as examples.
- title: Refactor part of the code
args:
code_to_refactor: Which files/classes/modules need refactoring
why_refactor: Why does the code need refactoring?
expected_result: What is the expected end result?
instructions: |
I want you to refactor part of the code:
1. Find and read the files containing the code to refactor and read them
2. Change the code to achieve the expected result
3. Update the existing files and if required, create new files
- title: Generate a beautiful README file
args:
project_name: Name of the project
project_description: Description of the project
project_badges: List of badges to include
project_structure: Concise, detailed overview of project structure
project_tech_stack: List of technologies used
project_installation: How to install the project
project_usage: How to use the project
project_contributing: How to contribute to the project
instructions: |
I want you to generate a beautiful README file for the project:
1. Use the template below to structure the README file
2. 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 name>
<badges>
<project description>
## Project Structure
<ASCII representation of the project structure>
## Tech Stack
<tech stack>
## Installation
<installation>
## Usage
<usage>
## Contributing
<contributing>
```
IMPORTANT: DO NOT write anything to file.
result: Return ONLY the Markdown code for the README file