Repository navigation
Conversation
added 3 commits
December 2, 2026 13:50
Applying kebab-case to Python identifiers can produce invalid code, and hyphenated test filenames conflict with the repository's test naming rule. Language and tool conventions need precedence over the general preference. The sample uses underscore-separated methods and test names: https://github.com/github/copilot-cli-for-beginners/blob/9b8bdf6eb6ffdb2811ba1035f4ef6193c9614690/samples/book-app-project/books.py#L21-L38 https://github.com/github/copilot-cli-for-beginners/blob/9b8bdf6eb6ffdb2811ba1035f4ef6193c9614690/samples/book-app-project/tests/test_books.py#L18-L29 The kebab-case default still applies to session and ordinary file names. Python tests retain the required test_*.py pattern: https://github.com/github/copilot-cli-for-beginners/blob/9b8bdf6eb6ffdb2811ba1035f4ef6193c9614690/.github/copilot-instructions.md#L30-L32
Root-only image placement can separate chapter assets from the paths their README links use. Chapter-specific images need their chapter's assets folder, where the header producer already writes them: https://github.com/github/copilot-cli-for-beginners/blob/9b8bdf6eb6ffdb2811ba1035f4ef6193c9614690/.github/scripts/generate-chapter-headers.py#L115-L120 Shared images still belong in root assets, as demonstrated by the producer's shared background input: https://github.com/github/copilot-cli-for-beginners/blob/9b8bdf6eb6ffdb2811ba1035f4ef6193c9614690/.github/scripts/generate-chapter-headers.py#L24-L26
An image-maintenance checklist that points only to root assets can leave chapter images untouched. It needs to cover the chapter directory as well, because the header producer writes chapter images there: https://github.com/github/copilot-cli-for-beginners/blob/9b8bdf6eb6ffdb2811ba1035f4ef6193c9614690/.github/scripts/generate-chapter-headers.py#L115-L120 The duty to update every README referencing the changed image remains.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The supplied review evidence describes a documentation-only update and reports no active review issues.
No open issues 🎉
What changed in this PR
Updates repository guidance to avoid invalid Python/test names and preserve correct chapter image placement.
Changes:
- Clarifies language- and tool-specific naming conventions.
- Distinguishes shared root assets from chapter-specific assets.
- Updates the maintenance matrix accordingly.
| File | Description |
|---|---|
| .github/copilot-instructions.md | Refines naming, image placement, and asset maintenance guidance. |
Review effort: Lite (adaptive)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧠 How this helps Copilot
The general naming rule could lead Copilot to write invalid Python identifiers or name tests contrary to the repository's pytest convention. Giving language and tool conventions precedence avoids that conflict without imposing a different naming rule on sessions and ordinary files.
Root-only image guidance could put chapter assets where their existing README links will not find them. Distinguishing shared root assets from chapter-specific assets in both placement and maintenance guidance helps future image updates reach the files those links use.
Review commit by commit for each change's rationale and evidence.
Note
Copilot Dreaming curates this repository's Copilot instructions and skills in the background, proposing updates to help agents work here. Learn more about Copilot Dreaming.
Automated details
Source:
curate-memoriesDream, analyzingmainat9b8bdf6.Discarded guidance: Installation-example changes in
samples/agents/README.mdandsamples/skills/README.md, and duplicate-comment-rule removal in.github/workflows/translation-polisher.md, were withheld because this proposal is limited to installed Copilot instructions and skills. Those files remain unchanged.