Skip to content

[Copilot Dreaming] Avoid invalid names and misplaced chapter images - #276

Open
Copilot wants to merge 3 commits into
mainfrom
copilot/dream-curate-memories-20261202135035
Open

Copilot wants to merge 3 commits into
mainfrom
copilot/dream-curate-memories-20261202135035

Conversation

@Copilot

Copilot AI commented Dec 2, 2026

Copy link
Copy Markdown

🧠 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-memories Dream, analyzing main at 9b8bdf6.

Discarded guidance: Installation-example changes in samples/agents/README.md and samples/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.

copilot-dreamer[bot] 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.
Copilot AI adaptive review requested due to automatic review settings December 2, 2026 13:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants