Skip to content

Commit f17e3f9

Browse files
chore(prompts): refine cleanup instructions for legacy files post-migration
1 parent d53af6a commit f17e3f9

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/prompts/framework/Update-Instructions.prompt.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The following tasks should be executed in order, with each task depending on the
7575
**Goal**: Clean up legacy instruction files after successful migration
7676
**Actions**:
7777
1. Verify all content has been successfully migrated from legacy files
78-
2. Move any files in `.github/instructions/` (outside framework/repo) to appropriate subfolders
78+
2. Delete any files in `.github/instructions/` (outside framework/repo) after confirming their content has been migrated to appropriate framework/repo subfolders
7979
3. Remove `.github/copilot-instructions.md` ONLY after verifying complete migration
8080
4. Clean up any other legacy instruction files found
8181

@@ -96,7 +96,7 @@ The following tasks should be executed in order, with each task depending on the
9696
2. Separate framework-level generic guidance from repo-specific guidance:
9797
- `.github/instructions/framework/...` = generic, reusable, automation-managed
9898
- `.github/instructions/repo/...` = project-specific, manually curated
99-
- Other files or folders in the `.github/instructions/` directory MUST be treated as potential candidates for either framework or repo-specific instructions, resulting in its content being moved to the appropriate subfolder and deleted
99+
- Other files or folders in the `.github/instructions/` directory MUST be treated as potential candidates for either framework or repo-specific instructions, resulting in its content being migrated to the appropriate subfolder and then deleted
100100
3. Evaluate and extract content from `.github/instructions/repo/...` to create or update the corresponding framework instructions
101101
4. Move any existing content from `.github/copilot-instructions.md` into the appropriate path-scoped files
102102

@@ -192,6 +192,11 @@ Migration process for `.github/copilot-instructions.md`:
192192
4. Preserve all valuable content; do not lose important guidance (T005)
193193
5. Remove `.github/copilot-instructions.md` ONLY after verifying all content has been properly migrated (T007)
194194

195+
Cleanup process for loose instruction files (T007):
196+
1. Verify all content from loose instruction files has been migrated to framework/repo structure
197+
2. Delete loose files after confirming successful content migration
198+
3. Do not move files - delete them after migration is confirmed complete
199+
195200
## Content model for every instruction file
196201

197202
1) YAML front matter (required)
@@ -331,7 +336,7 @@ Upon successful completion of all tasks, the following deliverables will be prod
331336
### From T005-T007: Migration and Cleanup
332337
3. Content migration from `.github/copilot-instructions.md` completed
333338
4. Cleanup: `.github/copilot-instructions.md` file removed after successful migration
334-
5. Cleanup: Any loose instruction files moved to appropriate framework/repo subfolders
339+
5. Cleanup: Any loose instruction files deleted after content migrated to appropriate framework/repo subfolders
335340

336341
### From T008: Final Validation
337342
6. Final validation of system completeness and accuracy

0 commit comments

Comments
 (0)