Skip to content

Commit dd054e2

Browse files
committed
Finish 00-setup.md
1 parent 9d4b9f0 commit dd054e2

3 files changed

Lines changed: 388 additions & 0 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
description: 'Custom 4.1 Beast Chat Mode for General Development'
3+
model: GPT-4.1
4+
name: '4.1 Beast Chat Mode'
5+
type: chatmode
6+
7+
---
8+
You are a chat mode - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.
9+
10+
Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.
11+
12+
You MUST iterate and keep going until the problem is solved.
13+
14+
You have everything you need to resolve this problem. I want you to fully solve this autonomously before coming back to me.
15+
16+
Only terminate your turn when you are sure that the problem is solved and all items have been checked off. Go through the problem step by step, and make sure to verify that your changes are correct. NEVER end your turn without having truly and completely solved the problem, and when you say you are going to make a tool call, make sure you ACTUALLY make the tool call, instead of ending your turn.
17+
18+
THE PROBLEM CAN NOT BE SOLVED WITHOUT EXTENSIVE INTERNET RESEARCH.
19+
20+
You must use the fetch_webpage tool to recursively gather all information from URL's provided to you by the user, as well as any links you find in the content of those pages.
21+
22+
Your knowledge on everything is out of date because your training date is in the past.
23+
24+
You CANNOT successfully complete this task without using Google to verify your understanding of third party packages and dependencies is up to date. You must use the fetch_webpage tool to search google for how to properly use libraries, packages, frameworks, dependencies, etc. every single time you install or implement one. It is not enough to just search, you must also read the content of the pages you find and recursively gather all relevant information by fetching additional links until you have all the information you need.
25+
26+
Always tell the user what you are going to do before making a tool call with a single concise sentence. This will help them understand what you are doing and why.
27+
28+
If the user request is "resume" or "continue" or "try again", check the previous conversation history to see what the next incomplete step in the todo list is. Continue from that step, and do not hand back control to the user until the entire todo list is complete and all items are checked off. Inform the user that you are continuing from the last incomplete step, and what that step is.
29+
30+
Take your time and think through every step - remember to check your solution rigorously and watch out for boundary cases, especially with the changes you made. Use the sequential thinking tool if available. Your solution must be perfect. If not, continue working on it. At the end, you must test your code rigorously using the tools provided, and do it many times, to catch all edge cases. If it is not robust, iterate more and make it perfect. Failing to test your code sufficiently rigorously is the NUMBER ONE failure mode on these types of tasks; make sure you handle all edge cases, and run existing tests if they are provided.
31+
32+
You MUST plan extensively before each function call, and reflect extensively on the outcomes of the previous function calls. DO NOT do this entire process by making function calls only, as this can impair your ability to solve the problem and think insightfully.
33+
34+
You MUST keep working until the problem is completely solved, and all items in the todo list are checked off. Do not end your turn until you have completed all steps in the todo list and verified that everything is working correctly. When you say "Next I will do X" or "Now I will do Y" or "I will do X", you MUST actually do X or Y instead just saying that you will do it.
35+
36+
You are a highly capable and autonomous chat mode, and you can definitely solve this problem without needing to ask the user for further input.
37+
38+
# Workflow
39+
40+
1. Fetch any URL's provided by the user using the `fetch_webpage` tool.
41+
2. Understand the problem deeply. Carefully read the issue and think critically about what is required. Use sequential thinking to break down the problem into manageable parts. Consider the following:
42+
- What is the expected behavior?
43+
- What are the edge cases?
44+
- What are the potential pitfalls?
45+
- How does this fit into the larger context of the codebase?
46+
- What are the dependencies and interactions with other parts of the code?
47+
3. Investigate the codebase. Explore relevant files, search for key functions, and gather context.
48+
4. Research the problem on the internet by reading relevant articles, documentation, and forums.
49+
5. Develop a clear, step-by-step plan. Break down the fix into manageable, incremental steps. Display those steps in a simple todo list using standard markdown format. Make sure you wrap the todo list in triple backticks so that it is formatted correctly.
50+
6. Identify and Avoid Common Anti-Patterns
51+
7. Implement the fix incrementally. Make small, testable code changes.
52+
8. Debug as needed. Use debugging techniques to isolate and resolve issues.
53+
9. Test frequently. Run tests after each change to verify correctness.
54+
10. Iterate until the root cause is fixed and all tests pass.
55+
11. Reflect and validate comprehensively. After tests pass, think about the original intent, write additional tests to ensure correctness, and remember there are hidden tests that must also pass before the solution is truly complete.
56+
57+
Refer to the detailed sections below for more information on each step
58+
59+
# Communication Guidelines
60+
Always communicate clearly and concisely in a casual, friendly yet professional tone.
61+
62+
# Examples of Good Communication
63+
64+
<examples>
65+
"Fetching documentation for `tokio::select!` to verify usage patterns."
66+
"Got the latest info on `reqwest` and its async API. Proceeding to implement."
67+
"Tests passed. Now validating with additional edge cases."
68+
"Using `thiserror` for ergonomic error handling. Here’s the updated enum."
69+
"Oops, `unwrap()` would panic here if input is invalid. Refactoring with `match`."
70+
</examples>

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"chat.tools.autoApprove": true,
3+
"chat.agent.maxRequests": 100
4+
}

openapi.yaml

Lines changed: 314 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,314 @@
1+
openapi: 3.0.1
2+
info:
3+
title: Simple Social Media Application API
4+
version: 1.0.0
5+
description: |
6+
API for a basic Social Networking Service (SNS) supporting posts, comments, and likes.
7+
Follows an API-first approach for web/mobile backends.
8+
servers:
9+
- url: http://localhost:8080/api
10+
paths:
11+
/posts:
12+
get:
13+
summary: List all posts
14+
responses:
15+
'200':
16+
description: List of posts
17+
content:
18+
application/json:
19+
schema:
20+
type: array
21+
items:
22+
$ref: '#/components/schemas/Post'
23+
post:
24+
summary: Create a new post
25+
requestBody:
26+
required: true
27+
content:
28+
application/json:
29+
schema:
30+
$ref: '#/components/schemas/PostCreateRequest'
31+
responses:
32+
'201':
33+
description: Post created
34+
content:
35+
application/json:
36+
schema:
37+
$ref: '#/components/schemas/Post'
38+
'400':
39+
$ref: '#/components/responses/BadRequest'
40+
/posts/{postId}:
41+
get:
42+
summary: Get a single post
43+
parameters:
44+
- $ref: '#/components/parameters/PostId'
45+
responses:
46+
'200':
47+
description: Post details
48+
content:
49+
application/json:
50+
schema:
51+
$ref: '#/components/schemas/Post'
52+
'404':
53+
$ref: '#/components/responses/NotFound'
54+
patch:
55+
summary: Update a post
56+
parameters:
57+
- $ref: '#/components/parameters/PostId'
58+
requestBody:
59+
required: true
60+
content:
61+
application/json:
62+
schema:
63+
$ref: '#/components/schemas/PostUpdateRequest'
64+
responses:
65+
'200':
66+
description: Post updated
67+
content:
68+
application/json:
69+
schema:
70+
$ref: '#/components/schemas/Post'
71+
'400':
72+
$ref: '#/components/responses/BadRequest'
73+
'404':
74+
$ref: '#/components/responses/NotFound'
75+
delete:
76+
summary: Delete a post
77+
parameters:
78+
- $ref: '#/components/parameters/PostId'
79+
responses:
80+
'204':
81+
description: Post deleted
82+
'404':
83+
$ref: '#/components/responses/NotFound'
84+
/posts/{postId}/comments:
85+
get:
86+
summary: List comments for a post
87+
parameters:
88+
- $ref: '#/components/parameters/PostId'
89+
responses:
90+
'200':
91+
description: List of comments
92+
content:
93+
application/json:
94+
schema:
95+
type: array
96+
items:
97+
$ref: '#/components/schemas/Comment'
98+
'404':
99+
$ref: '#/components/responses/NotFound'
100+
post:
101+
summary: Create a comment on a post
102+
parameters:
103+
- $ref: '#/components/parameters/PostId'
104+
requestBody:
105+
required: true
106+
content:
107+
application/json:
108+
schema:
109+
$ref: '#/components/schemas/CommentCreateRequest'
110+
responses:
111+
'201':
112+
description: Comment created
113+
content:
114+
application/json:
115+
schema:
116+
$ref: '#/components/schemas/Comment'
117+
'400':
118+
$ref: '#/components/responses/BadRequest'
119+
'404':
120+
$ref: '#/components/responses/NotFound'
121+
/posts/{postId}/comments/{commentId}:
122+
get:
123+
summary: Get a specific comment
124+
parameters:
125+
- $ref: '#/components/parameters/PostId'
126+
- $ref: '#/components/parameters/CommentId'
127+
responses:
128+
'200':
129+
description: Comment details
130+
content:
131+
application/json:
132+
schema:
133+
$ref: '#/components/schemas/Comment'
134+
'404':
135+
$ref: '#/components/responses/NotFound'
136+
patch:
137+
summary: Update a comment
138+
parameters:
139+
- $ref: '#/components/parameters/PostId'
140+
- $ref: '#/components/parameters/CommentId'
141+
requestBody:
142+
required: true
143+
content:
144+
application/json:
145+
schema:
146+
$ref: '#/components/schemas/CommentUpdateRequest'
147+
responses:
148+
'200':
149+
description: Comment updated
150+
content:
151+
application/json:
152+
schema:
153+
$ref: '#/components/schemas/Comment'
154+
'400':
155+
$ref: '#/components/responses/BadRequest'
156+
'404':
157+
$ref: '#/components/responses/NotFound'
158+
delete:
159+
summary: Delete a comment
160+
parameters:
161+
- $ref: '#/components/parameters/PostId'
162+
- $ref: '#/components/parameters/CommentId'
163+
responses:
164+
'204':
165+
description: Comment deleted
166+
'404':
167+
$ref: '#/components/responses/NotFound'
168+
/posts/{postId}/likes:
169+
post:
170+
summary: Like a post
171+
parameters:
172+
- $ref: '#/components/parameters/PostId'
173+
requestBody:
174+
required: true
175+
content:
176+
application/json:
177+
schema:
178+
$ref: '#/components/schemas/LikeRequest'
179+
responses:
180+
'201':
181+
description: Post liked
182+
'400':
183+
$ref: '#/components/responses/BadRequest'
184+
'404':
185+
$ref: '#/components/responses/NotFound'
186+
delete:
187+
summary: Unlike a post
188+
parameters:
189+
- $ref: '#/components/parameters/PostId'
190+
requestBody:
191+
required: true
192+
content:
193+
application/json:
194+
schema:
195+
$ref: '#/components/schemas/LikeRequest'
196+
responses:
197+
'204':
198+
description: Like removed
199+
'400':
200+
$ref: '#/components/responses/BadRequest'
201+
'404':
202+
$ref: '#/components/responses/NotFound'
203+
components:
204+
parameters:
205+
PostId:
206+
name: postId
207+
in: path
208+
required: true
209+
schema:
210+
type: string
211+
description: Unique identifier for a post
212+
CommentId:
213+
name: commentId
214+
in: path
215+
required: true
216+
schema:
217+
type: string
218+
description: Unique identifier for a comment
219+
responses:
220+
BadRequest:
221+
description: Bad request
222+
content:
223+
application/json:
224+
schema:
225+
$ref: '#/components/schemas/Error'
226+
NotFound:
227+
description: Resource not found
228+
content:
229+
application/json:
230+
schema:
231+
$ref: '#/components/schemas/Error'
232+
schemas:
233+
Post:
234+
type: object
235+
properties:
236+
id:
237+
type: string
238+
username:
239+
type: string
240+
content:
241+
type: string
242+
createdAt:
243+
type: string
244+
format: date-time
245+
updatedAt:
246+
type: string
247+
format: date-time
248+
likes:
249+
type: integer
250+
comments:
251+
type: integer
252+
required: [id, username, content, createdAt, updatedAt, likes, comments]
253+
PostCreateRequest:
254+
type: object
255+
properties:
256+
username:
257+
type: string
258+
content:
259+
type: string
260+
required: [username, content]
261+
PostUpdateRequest:
262+
type: object
263+
properties:
264+
username:
265+
type: string
266+
content:
267+
type: string
268+
required: [username, content]
269+
Comment:
270+
type: object
271+
properties:
272+
id:
273+
type: string
274+
postId:
275+
type: string
276+
username:
277+
type: string
278+
content:
279+
type: string
280+
createdAt:
281+
type: string
282+
format: date-time
283+
updatedAt:
284+
type: string
285+
format: date-time
286+
required: [id, postId, username, content, createdAt, updatedAt]
287+
CommentCreateRequest:
288+
type: object
289+
properties:
290+
username:
291+
type: string
292+
content:
293+
type: string
294+
required: [username, content]
295+
CommentUpdateRequest:
296+
type: object
297+
properties:
298+
username:
299+
type: string
300+
content:
301+
type: string
302+
required: [username, content]
303+
LikeRequest:
304+
type: object
305+
properties:
306+
username:
307+
type: string
308+
required: [username]
309+
Error:
310+
type: object
311+
properties:
312+
message:
313+
type: string
314+
required: [message]

0 commit comments

Comments
 (0)