Skip to content

Commit d316309

Browse files
Added documentation
1 parent 1c1fe53 commit d316309

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

.github/prompts/plan-create.prompt.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ mode: 'agent'
33
description: 'Plan feature implementation or bug fix and store it in a markdown file in the .ai folder'
44
tools: ['codebase', 'search', 'searchResults', 'changes', 'findTestFiles', 'terminalSelection', 'terminalLastCommand', 'editFiles', 'fetch', 'runCommands']
55
---
6+
7+
<!-- Create action plan prompt is a part of Onboard, Plan and Execute method applicable for software engineering tasks using AI Agent.
8+
9+
* Its goal is to generate action plan document based on a feature/requirement description. In result, plan will contain elaboration on purpose, list of self reflecting and open questions (open questions should be answered using `plan-update` prompt). Plan should be reviewed and refined, also via `plan-update` prompt).
10+
11+
* Recommended models: Claude Sonnet 4+
12+
13+
* How to use it: use agent mode, choose one of the recommended models, launch prompt via `/plan-create <requirement specification>`. Pass brief requirement spefication as a parameter to the prompt.
14+
15+
DISCLAIMER: this prompt is derived from 10xdevs training (https://www.10xdevs.pl/)
16+
-->
17+
618
You are an experienced software developer tasked with creating an action plan to address an issue. Your goal is to produce a comprehensive, step-by-step plan that will guide the resolution of this issue.
719

820
First, review the following information:
@@ -25,6 +37,7 @@ Your task is to create an action plan document in Markdown format. Follow these
2537

2638
</action_plan_development>
2739

40+
2841
After completing your analysis, create a Markdown document with the following structure:
2942
```markdown
3043
# Action Plan for [Issue Name]

.github/prompts/plan-exec.prompt.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ mode: 'agent'
33
description: 'Execute step or multiple steps from an attached action plan md file.'
44
tools: ['codebase', 'search', 'searchResults', 'changes', 'editFiles', 'runCommands', 'runTests', 'findTestFiles', 'testFailure', 'fetch']
55
---
6+
7+
<!-- Execute prompt is a part of Onboard, Plan and Execute method applicable for software engineering tasks using AI Agent.
8+
9+
* Its goal is to execute one or more steps of the action plan, as generated by `plan-create.prompt.md` and subsequently updated with `plan-update.prompt.md`.
10+
11+
* Recommended models: Claude Sonnet 4+, Claude Haiku 4+, Grok Code Fast 1, o4-mini
12+
13+
* When to use: each time you want to execute one or more steps from action plan.
14+
15+
* How to use it: use agent mode, choose one of the recommended models, launch prompt via `/plan-exec <steps>`, specify steps to execute as parameters i.e. `/plan-exec Step 1, 2`.
16+
-->
17+
618
You are an experienced software developer tasked with executing an attached action plan md file to implemented an issue.
719

820
You should focus only on executing following steps, identified by their numbers, as specified in the action plan:

.github/prompts/plan-onboard.prompt.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,45 @@ description: 'Generate project onboarding document from provided codebase, GIT h
44
tools: ['codebase', 'search', 'searchResults', 'changes', 'editFiles', 'runCommands', 'runTests', 'findTestFiles', 'testFailure', 'fetch']
55
---
66

7+
<!-- Onboarding prompt is a part of Onboard, Plan and Execute method applicable for software engineering tasks using AI Agent.
8+
9+
* Its goal is to generate onboarding document that describes project purpose, history, and relevant parts.
10+
11+
* Recommended models: Claude Sonnet 4+
12+
13+
* When to use: this prompt should be used at least once, initially, to create `onboarding.md` file to be stored in GIT repo. After first generation, onboarding document should be mentioned in `copilot-instructions.md` via reference: `.ai/onboarding.md` to help the agent to understand the project better.
14+
15+
* How to use it: use agent mode, choose one of the recommended models, launch prompt via `/plan-onboard`. No additional parameters needed.
16+
17+
* Frequency of document regeneration: depending on project dynamics, one time per quarter is resonable baseline, to be adjusted subsequently.
18+
19+
DISCLAIMER: this prompt is derived from 10xdevs training (https://www.10xdevs.pl/)
20+
-->
21+
22+
<!-- Top level prompt with role playing and general task definition. -->
723
You are an AI assistant tasked with onboarding a new developer to a big project. Your goal is to analyze the provided git history and top modules/components to create a comprehensive onboarding summary. This summary should help the new developer quickly understand the project structure, recent developments, and key areas of focus, regardless of the underlying technology stack.
824

925
First, review the following information:
1026

27+
<!-- Sets up a scope for onboarding, in this case we use GIT history to build a "heat map" of frequently modified modules. These will be analyzed first. Play with CLI parameters (like -First <n> to change the limit). You can also replace GIT CLI with static references, if you don't want to use heat map.-->
1128
<top_modules>
1229
{{top-modules}} - use GIT to get the most frequently edited modules/packages/directories in the project; example:
1330
`git log --format=format: --name-only | Where-Object { $_ -ne "" } | ForEach-Object { Split-Path -Path $_ -Parent | Where-Object { $_ -ne "" } } | Group-Object | Sort-Object -Property Count -Descending | Select-Object -First 10 | Format-Table -Property Name, Count -AutoSize`
1431
</top_modules>
1532

33+
<!-- Sets up a scope for onboarding, in this case we use GIT history to build a "heat map" of frequently modified files. These will be analyzed first. Play with CLI parameters (like -First <n> to change the limit). You can also replace GIT CLI with static references, if you don't want to use heat map.-->
1634
<top_files>
1735
{{top-files}} - use GIT to get the most frequently edited files in the project; example:
1836
`git log --since="1 year ago" --format=format: --name-only | Where-Object { $_ -ne "" } | Group-Object | Sort-Object -Property Count -Descending | Select-Object -First 20 | Format-Table -Property Name, Count -AutoSize`
1937
</top_files>
2038

39+
<!-- Gathers information for most active GIT contributors. Play with CLI parameters (like -First <n> to change the limit). You can also replace GIT CLI with static references, if you don't want to use heat map. -->
2140
<top_contributors>
2241
{{top-contributors}} - use GIT to get the most active contributors in the project; example:
2342
`git log --format='%an' | Group-Object | Sort-Object -Property Count -Descending | Select-Object -First 10 | Format-Table -Property Name, Count -AutoSize`
2443
</top_contributors>
2544

45+
<!-- Specify how to use gathered historical information. This excercise enables reasoning on purpose of recent changes, stage of the project, direction of the changes and so on. -->
2646
Analyze the git history and top modules/files to identify:
2747
1. The main areas of development focus in the past year.
2848
2. Frequently updated modules, directories, or core files.
@@ -56,6 +76,7 @@ Generate a list of 5-7 questions that the new developer should dig into via anal
5676

5777
Suggest 3-5 next steps for the new developer to get a deeper understanding of the project via codebase, git history and project repository. These steps should be practical and actionable, based on the information you've analyzed.
5878

79+
<!-- Below we use one-shot to precisely specify the content of generated document. -->
5980
Your final output should **only** include the content in markdown with the specified format that you will save in `.ai/onboarding.md`, without any additional commentary or explanations outside of these sections. Structure the output as follows, **filling it with information discovered from the repository**:
6081

6182
```markdown

.github/prompts/plan-update.prompt.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ mode: 'agent'
33
description: 'Update action plan with new issue details, marks resolved questions and updates action plan steps as needed.'
44
tools: ['codebase', 'search', 'searchResults', 'changes', 'findTestFiles', 'terminalSelection', 'terminalLastCommand', 'editFiles', 'fetch', 'runCommands']
55
---
6+
7+
<!-- Plan update document is a part of Onboard, Plan and Execute method applicable for software engineering tasks using AI Agent.
8+
9+
* Its goal is to refine action plan document with answers to open questions, additional specifications, acceptance criteria, etc. You should always use this prompt to update the plan with relevant content.
10+
11+
* Recommended models: Claude Sonnet 4+
12+
13+
* How to use it: agent mode, choose one of the recommended models, launch prompt via `/plan-update <additional spec>`. Provide additional information as a parameter, i.e.: `/plan-update Answer to question 3 is...`
14+
15+
-->
16+
617
You are an experienced software developer tasked with creating an action plan provided as ${file} to address an issue. Your plan is already generated and attached to this conversation, but you want to enhance it with additional information that was missing once plan was first created. Your goal is to produce a comprehensive, step-by-step plan that will guide the resolution of this issue.
718

819
First, review the following information:

0 commit comments

Comments
 (0)