René's URL Explorer Experiment


Title: Enforce step-down rule for hook scripts by Copilot · Pull Request #1750 · usethis-python/usethis-python · GitHub

Open Graph Title: Enforce step-down rule for hook scripts by Copilot · Pull Request #1750 · usethis-python/usethis-python

X Title: Enforce step-down rule for hook scripts by Copilot · Pull Request #1750 · usethis-python/usethis-python

Description: Hook scripts defined helpers above main(), making readers wade through implementation details before seeing the high-level logic. Changes Skill update (usethis-prek-hook-bespoke-create v1.0 → v1.1): Added step-down rule as first bullet in "Script structure" — main() first, helpers below. Refactored 6 hooks to move main() above all helper functions: check-list-referenced.py export-functions.py export-module-tree.py export-skills-directory.py fix-doc-sync.py fix-readme.py Pure reordering — no logic changes.

Open Graph Description: Hook scripts defined helpers above main(), making readers wade through implementation details before seeing the high-level logic. Changes Skill update (usethis-prek-hook-bespoke-create v1.0 → v1.1...

X Description: Hook scripts defined helpers above main(), making readers wade through implementation details before seeing the high-level logic. Changes Skill update (usethis-prek-hook-bespoke-create v1.0 → v1.1...

Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1750

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b8669cef-f610-9460-5782-13439919d3c3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEC02:2E1914:24934A:30FAC0:6A4D33AE
html-safe-nonce24894be4fb08c397750a5339ee9fc685b8f88ab9b4ea7ade42e571b339bf9b58
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzAyOjJFMTkxNDoyNDkzNEE6MzBGQUMwOjZBNEQzM0FFIiwidmlzaXRvcl9pZCI6IjczMTgzNTc1NzM4NzgyMzE5ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccd066d867abdad04de7cf8c0c1f07b6693a4428782be422fcb2364441780002f
hovercard-subject-tagpull_request:3479305043
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1750/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:altHook scripts defined helpers above main(), making readers wade through implementation details before seeing the high-level logic. Changes Skill update (usethis-prek-hook-bespoke-create v1.0 → v1.1...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git
octolytics-dimension-user_id216362695
octolytics-dimension-user_loginusethis-python
octolytics-dimension-repository_id842189705
octolytics-dimension-repository_nwousethis-python/usethis-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id842189705
octolytics-dimension-repository_network_root_nwousethis-python/usethis-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fc8347865a14e2ec811533d68f929cf4e0ec19
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/usethis-python/usethis-python/pull/1750/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1750%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1750%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=usethis-python%2Fusethis-python
Reloadhttps://github.com/usethis-python/usethis-python/pull/1750/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1750/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1750/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1750/files
usethis-python https://github.com/usethis-python
usethis-pythonhttps://github.com/usethis-python/usethis-python
Notifications https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Fork 5 https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Star 19 https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Code https://github.com/usethis-python/usethis-python
Issues 163 https://github.com/usethis-python/usethis-python/issues
Pull requests 4 https://github.com/usethis-python/usethis-python/pulls
Actions https://github.com/usethis-python/usethis-python/actions
Security and quality 0 https://github.com/usethis-python/usethis-python/security
Insights https://github.com/usethis-python/usethis-python/pulse
Code https://github.com/usethis-python/usethis-python
Issues https://github.com/usethis-python/usethis-python/issues
Pull requests https://github.com/usethis-python/usethis-python/pulls
Actions https://github.com/usethis-python/usethis-python/actions
Security and quality https://github.com/usethis-python/usethis-python/security
Insights https://github.com/usethis-python/usethis-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
nathanjmcdougallhttps://github.com/nathanjmcdougall
mainhttps://github.com/usethis-python/usethis-python/tree/main
copilot/refactor-hook-scripts-stepdown-rulehttps://github.com/usethis-python/usethis-python/tree/copilot/refactor-hook-scripts-stepdown-rule
Conversation 2 https://github.com/usethis-python/usethis-python/pull/1750
Commits 2 https://github.com/usethis-python/usethis-python/pull/1750/commits
Checks 10 https://github.com/usethis-python/usethis-python/pull/1750/checks
Files changed https://github.com/usethis-python/usethis-python/pull/1750/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1750/files
Enforce step-down rule for hook scripts https://github.com/usethis-python/usethis-python/pull/1750/files#top
Show all changes 2 commits https://github.com/usethis-python/usethis-python/pull/1750/files
18e9280 Initial plan Copilot Apr 1, 2026 https://github.com/usethis-python/usethis-python/pull/1750/commits/18e9280efd3c7d06e16f2960358ec9e52eff7290
983ae53 refactor: apply step-down rule to hook scripts and add guidance to skill Copilot Apr 1, 2026 https://github.com/usethis-python/usethis-python/pull/1750/commits/983ae537f149539c3f47c911b605b5392d31cb39
Clear filters https://github.com/usethis-python/usethis-python/pull/1750/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1750/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1750/files
SKILL.md https://github.com/usethis-python/usethis-python/pull/1750/files#diff-c7bc9a29a39c9f92c3612ae578facc43d3d3a69e938ff5f60182e709959ba18f
check-list-referenced.py https://github.com/usethis-python/usethis-python/pull/1750/files#diff-68c977e072d8efdcbb7942e67d421c9e4326ee7f7d852ed86b8235b2db4f56e4
export-functions.py https://github.com/usethis-python/usethis-python/pull/1750/files#diff-0bdedd2d7510014541b47ce0fc7a3f3baa41b2fa342de0c16a0e3831f5ee742d
export-module-tree.py https://github.com/usethis-python/usethis-python/pull/1750/files#diff-75bd7b5f1a43505e7cad82ae7d166d1a3dbd31ddc44ac4a2958f00129a6fee3d
export-skills-directory.py https://github.com/usethis-python/usethis-python/pull/1750/files#diff-83b63835430fb4f92862850647ee21b534a9c50ae8afcdb3a5443def270cd988
fix-doc-sync.py https://github.com/usethis-python/usethis-python/pull/1750/files#diff-e49f353ca5afc6327c17cbb71de746a5d20881ad2632aee695c66e1bedddb758
fix-readme.py https://github.com/usethis-python/usethis-python/pull/1750/files#diff-8d54b33615ecca7d88669c44a5641392254d078e74c9d8c9d16e8910d0f21382
.agents/skills/usethis-prek-hook-bespoke-create/SKILL.mdhttps://github.com/usethis-python/usethis-python/pull/1750/files#diff-c7bc9a29a39c9f92c3612ae578facc43d3d3a69e938ff5f60182e709959ba18f
View file https://github.com/usethis-python/usethis-python/blob/983ae537f149539c3f47c911b605b5392d31cb39/.agents/skills/usethis-prek-hook-bespoke-create/SKILL.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1750/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-c7bc9a29a39c9f92c3612ae578facc43d3d3a69e938ff5f60182e709959ba18f
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-c7bc9a29a39c9f92c3612ae578facc43d3d3a69e938ff5f60182e709959ba18f
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-c7bc9a29a39c9f92c3612ae578facc43d3d3a69e938ff5f60182e709959ba18f
hooks/check-list-referenced.pyhttps://github.com/usethis-python/usethis-python/pull/1750/files#diff-68c977e072d8efdcbb7942e67d421c9e4326ee7f7d852ed86b8235b2db4f56e4
View file https://github.com/usethis-python/usethis-python/blob/983ae537f149539c3f47c911b605b5392d31cb39/hooks/check-list-referenced.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1750/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-68c977e072d8efdcbb7942e67d421c9e4326ee7f7d852ed86b8235b2db4f56e4
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-68c977e072d8efdcbb7942e67d421c9e4326ee7f7d852ed86b8235b2db4f56e4
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-68c977e072d8efdcbb7942e67d421c9e4326ee7f7d852ed86b8235b2db4f56e4
hooks/export-functions.pyhttps://github.com/usethis-python/usethis-python/pull/1750/files#diff-0bdedd2d7510014541b47ce0fc7a3f3baa41b2fa342de0c16a0e3831f5ee742d
View file https://github.com/usethis-python/usethis-python/blob/983ae537f149539c3f47c911b605b5392d31cb39/hooks/export-functions.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1750/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-0bdedd2d7510014541b47ce0fc7a3f3baa41b2fa342de0c16a0e3831f5ee742d
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-0bdedd2d7510014541b47ce0fc7a3f3baa41b2fa342de0c16a0e3831f5ee742d
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-0bdedd2d7510014541b47ce0fc7a3f3baa41b2fa342de0c16a0e3831f5ee742d
hooks/export-module-tree.pyhttps://github.com/usethis-python/usethis-python/pull/1750/files#diff-75bd7b5f1a43505e7cad82ae7d166d1a3dbd31ddc44ac4a2958f00129a6fee3d
View file https://github.com/usethis-python/usethis-python/blob/983ae537f149539c3f47c911b605b5392d31cb39/hooks/export-module-tree.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1750/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-75bd7b5f1a43505e7cad82ae7d166d1a3dbd31ddc44ac4a2958f00129a6fee3d
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-75bd7b5f1a43505e7cad82ae7d166d1a3dbd31ddc44ac4a2958f00129a6fee3d
https://github.com/usethis-python/usethis-python/pull/1750/files#diff-75bd7b5f1a43505e7cad82ae7d166d1a3dbd31ddc44ac4a2958f00129a6fee3d
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1750/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1750/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.