Title: Add `usethis-python-code` skill with duplication guidance by Copilot · Pull Request #1509 · usethis-python/usethis-python · GitHub
Open Graph Title: Add `usethis-python-code` skill with duplication guidance by Copilot · Pull Request #1509 · usethis-python/usethis-python
X Title: Add `usethis-python-code` skill with duplication guidance by Copilot · Pull Request #1509 · usethis-python/usethis-python
Description: PR #1437 revealed agents preemptively duplicate code (e.g. copying a helper into two modules) instead of creating a shared implementation. This adds a new skill to guide that decision.
Changes
New skill .agents/skills/usethis-python-code/SKILL.md: Covers when to share vs. duplicate code — procedure for checking existing code first, criteria for when duplication is acceptable (different purposes, concrete behavioral differences, fragile coupling), and common mistakes (duplicating when replacing a dependency, speculative divergence). References usethis-python-code-modify.
AGENTS.md: Added usethis-python-code to the important skills list so it's loaded alongside usethis-python-code-modify when modifying Python code.
Original prompt
This section details on the original issue you should resolve
Open Graph Description: PR #1437 revealed agents preemptively duplicate code (e.g. copying a helper into two modules) instead of creating a shared implementation. This adds a new skill to guide that decision. Changes New...
X Description: PR #1437 revealed agents preemptively duplicate code (e.g. copying a helper into two modules) instead of creating a shared implementation. This adds a new skill to guide that decision. Changes New...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1509
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d6a7d7c2-3c25-ffbc-0ae6-bad716e0e639 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9E72:9FE98:1210D1B:193DDE4:6A4EA1C9 |
| html-safe-nonce | 8a9ea6dc49e6508ad1684ee78555a21d3a4690f087b3fd68bb7e02d1f7b2da6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTcyOjlGRTk4OjEyMTBEMUI6MTkzRERFNDo2QTRFQTFDOSIsInZpc2l0b3JfaWQiOiI3ODI5MDMzNzY4MTAyODMwNTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5f3f01f1b383c2b406086e2993166f28f1cbedcd49218e65d49fab7c52c81122 |
| hovercard-subject-tag | pull_request:3442465259 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1509/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | PR #1437 revealed agents preemptively duplicate code (e.g. copying a helper into two modules) instead of creating a shared implementation. This adds a new skill to guide that decision. Changes New... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width