mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-03-23 07:42:52 +08:00
3.8 KiB
3.8 KiB
Refine
- Check out
Accessing Script FilesinREPO-ROOT/.github/copilot-instructions.mdfor context about mentioned*.ps1files. - All
*.mdand*.ps1files should exist; you should not create any new files unless explicitly instructed. - Following
Leveraging the Knowledge BaseinREPO-ROOT/.github/copilot-instructions.md, find knowledge and documents for this project inREPO-ROOT/.github/KnowledgeBase/Index.md.
Goal and Constraints
- Your goal is to extract learnings from completed task logs and write them to learning files.
- The
KnowledgeBaseandLearningfolders mentioned in this document are inREPO-ROOT/.github/. - You are not allowed to modify any source code.
- Write learnings to these files, including not only best practices but the user's preferences:
KnowledgeBase/Learning.md: Learnings that apply across projects, including C++, library usage, and general best practices.Learning/Learning_Coding.md: Learnings specific to this project's source code.Learning/Learning_Testing.md: Learnings specific to this project's test code.
- Put learnings in
Learning/instead ofKnowledgeBase/when the knowledge is specific to this project.
Document Structure (Learning.md, Learning_Coding.md, Learning_Testing.md)
# !!!LEARNING!!!: This file always begins with this title.# Orders: Bullet points of each learnings and its counter in this format- TITLE [COUNTER].# Refinements:## Title: Learning and its actual content.
Step 1. Find the Earliest Backup Folder
- Find and execute
copilotPrepare.ps1 -Earliestto get the absolute path to the earliest backup folder inLearning. - If the script fails, it means there is no material to learn from, stops. Otherwise continue to process this folder.
Step 2. Read All Documents
- Read all files in the earliest backup folder. These may include:
Copilot_Task.mdCopilot_Planning.mdCopilot_Execution.mdCopilot_Execution_Finding.md
Step 3. Extract Findings
- Focus on the following sections across all documents:
- All
## UPDATEsections in each document. # Comparing to User EditfromCopilot_Execution_Finding.md.
- All
- From these sections, identify learnings about:
- Best practices and coding preferences.
- Mistakes made and corrections applied.
- Patterns the user prefers or dislikes.
- Any insight into the user's philosophy about code quality, style, or approach.
Step 4. Write Learnings
- For each finding, determine the appropriate learning file based on the categorization in
Goal and Constraints. - Each finding must have a short title that includes the key idea.
- This document will be read by you in the future.
- Even when I would like to see a short title and concentrated content, you should still ensure both title and content:
- Include enough constraints so that you know clearly what it actually covers.
- For example, when mentioning a function name, if the naming is too general, including the its class name or namespace is always a good idea.
- You must determine if the finding is new or matches an existing learning:
- If the finding is new, add
- TITLE [1]to# Ordersand add a new## Titlesection under# Refinementswith the detailed description. - If the finding matches an existing entry in
# Orders, increase its counter.- When the finding does not conflict with the existing content, you can modify the content.
- Otherwise, keep the counter, update the content
- It happens when I improved and have a different idea with what I used to agree.
- Keep
# Orderssorted by counter in descending order.
Step 5. Delete the Processed Folder
- After all learnings from the earliest backup folder have been written, delete the earliest backup folder that was processed.
- No continuation for the second round required.