Move file-creation guidance from AGENTS.md into a dedicated agent skill#1738
Merged
nathanjmcdougall merged 3 commits intocopilot/avoid-adding-to-root-dirfrom Apr 1, 2026
Merged
Conversation
…TS.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>
Copilot
AI
changed the title
[WIP] [WIP] Address feedback on agent guidance placement in repo root PR
Move file-placement guidance from AGENTS.md into a dedicated agent skill
Apr 1, 2026
nathanjmcdougall
requested changes
Apr 1, 2026
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>
Copilot
AI
changed the title
Move file-placement guidance from AGENTS.md into a dedicated agent skill
Move file-creation guidance from AGENTS.md into a dedicated agent skill
Apr 1, 2026
nathanjmcdougall
approved these changes
Apr 1, 2026
8d4fe1c
into
copilot/avoid-adding-to-root-dir
1 check passed
nathanjmcdougall
added a commit
that referenced
this pull request
Apr 1, 2026
* Initial plan * Add agent guidance to avoid placing new files at the repository root 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> * Move file-creation guidance from AGENTS.md into a dedicated agent skill (#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> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> Co-authored-by: Nathan McDougall <nathan.j.mcdougall@gmail.com>
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.
Guidance about avoiding new files at the repo root was added inline to AGENTS.md's "Generally Important Instructions". Per review feedback, this belongs in a dedicated skill rather than the top-level agent config.
Changes
.agents/skills/usethis-file-create/SKILL.md: encapsulates guidance on where to place new files when creating them (avoiding root, usingdocs/,hooks/,.agents/skills/as appropriate)usethis-file-createin the skills registry sync blockdocs/skills-directory.txt— updated viaexport-skills-directory.pyto include the new skill