Skip to content

Move file-creation guidance from AGENTS.md into a dedicated agent skill#1738

Merged
nathanjmcdougall merged 3 commits intocopilot/avoid-adding-to-root-dirfrom
copilot/sub-pr-1735
Apr 1, 2026
Merged

Move file-creation guidance from AGENTS.md into a dedicated agent skill#1738
nathanjmcdougall merged 3 commits intocopilot/avoid-adding-to-root-dirfrom
copilot/sub-pr-1735

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

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

  • New skill.agents/skills/usethis-file-create/SKILL.md: encapsulates guidance on where to place new files when creating them (avoiding root, using docs/, hooks/, .agents/skills/ as appropriate)
  • AGENTS.md — removes the inline AVOID bullet; registers usethis-file-create in the skills registry sync block
  • docs/skills-directory.txt — updated via export-skills-directory.py to include the new skill

…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
Copilot AI requested a review from nathanjmcdougall April 1, 2026 13:15
Comment thread .agents/skills/usethis-file-placement/SKILL.md Outdated
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
Copilot AI requested a review from nathanjmcdougall April 1, 2026 18:39
@nathanjmcdougall nathanjmcdougall merged commit 8d4fe1c into copilot/avoid-adding-to-root-dir Apr 1, 2026
1 check passed
@nathanjmcdougall nathanjmcdougall deleted the copilot/sub-pr-1735 branch April 1, 2026 19:02
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>
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