Add agent guidance to avoid placing new files at repo root#1735
Merged
nathanjmcdougall merged 4 commits intomainfrom Apr 1, 2026
Merged
Add agent guidance to avoid placing new files at repo root#1735nathanjmcdougall merged 4 commits intomainfrom
nathanjmcdougall merged 4 commits intomainfrom
Conversation
Add a new bullet point to the "Generally Important Instructions" section of AGENTS.md instructing agents to avoid adding new files to the repository root directory. The root is publicly facing and should be kept clean. Agents should prefer appropriate subdirectories such as docs/, hooks/, or .agents/skills/. Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/26a37c89-2c95-4bd0-b8df-6eb151483adb Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update agent config to avoid adding files to root directory
Add agent guidance to avoid placing new files at repo root
Apr 1, 2026
nathanjmcdougall
requested changes
Apr 1, 2026
Contributor
Author
|
@nathanjmcdougall I've opened a new pull request, #1738, to work on those changes. Once the pull request is ready, I'll request review from you. |
…ll (#1738) * Initial plan * Create usethis-file-placement skill and remove AVOID bullet from AGENTS.md Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/448e6c0f-2039-4f7a-ba44-a53fde4696c0 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> * Rename skill usethis-file-placement to usethis-file-create Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/3476d70b-21ed-49ae-b5da-57dd38b67d61 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
nathanjmcdougall
approved these changes
Apr 1, 2026
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.
In #1730, an agent placed a template file at the repository root instead of a more appropriate subdirectory. The root is publicly facing and accumulates clutter quickly.
AGENTS.mddirecting agents to prefer subdirectories (docs/,hooks/,.agents/skills/, etc.) over the root for new files