Title: docs(skill): add step-down rule to usethis-python-code skill by Copilot · Pull Request #1798 · usethis-python/usethis-python · GitHub
Open Graph Title: docs(skill): add step-down rule to usethis-python-code skill by Copilot · Pull Request #1798 · usethis-python/usethis-python
X Title: docs(skill): add step-down rule to usethis-python-code skill by Copilot · Pull Request #1798 · usethis-python/usethis-python
Description: Agents were placing new private helpers at the top of modules — above their callers — because the usethis-python-code skill had no guidance on intra-module function ordering. Changes usethis-python-code SKILL.md (v1.5 → v1.6): adds a "Ordering functions: the step-down rule" section covering: Procedure — locate the caller first, place the helper below it Key principle — readers encounter a function before its helpers, never after Example showing the bad pattern (helper above caller) vs. the correct ordering Common mistakes — specifically the reflex of adding helpers at the top of the file # Bad: helper placed above its caller def _format_version(v: str) -> str: return v.strip() def get_version() -> str: return _format_version(read_version_file()) # Good: caller first, helper below def get_version() -> str: return _format_version(read_version_file()) def _format_version(v: str) -> str: return v.strip()
Open Graph Description: Agents were placing new private helpers at the top of modules — above their callers — because the usethis-python-code skill had no guidance on intra-module function ordering. Changes usethis-pytho...
X Description: Agents were placing new private helpers at the top of modules — above their callers — because the usethis-python-code skill had no guidance on intra-module function ordering. Changes usethis-pytho...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1798
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9a076cde-aee3-f233-e6e9-dea7f2fcc40b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B9BE:1EFEA2:E4BD6F:1431FAF:6A4CAEDF |
| html-safe-nonce | 5336ca79fe78ba8584a536edbaaa738fff9700c2a1f5e06e63c2c6210844ed8a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUJFOjFFRkVBMjpFNEJENkY6MTQzMUZBRjo2QTRDQUVERiIsInZpc2l0b3JfaWQiOiI4Njc3MjA5NDExNTY5ODg4OTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 452bd65167b214f2656d5ac6e258be95288755420e5237fd157302d5fff6001f |
| hovercard-subject-tag | pull_request:3487952344 |
| 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/1798/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 | Agents were placing new private helpers at the top of modules — above their callers — because the usethis-python-code skill had no guidance on intra-module function ordering. Changes usethis-pytho... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width