Title: Add prek hook to enforce 500-line limit on AGENTS.md and SKILL.md files by Copilot · Pull Request #1849 · usethis-python/usethis-python · GitHub
Open Graph Title: Add prek hook to enforce 500-line limit on AGENTS.md and SKILL.md files by Copilot · Pull Request #1849 · usethis-python/usethis-python
X Title: Add prek hook to enforce 500-line limit on AGENTS.md and SKILL.md files by Copilot · Pull Request #1849 · usethis-python/usethis-python
Description: Agent skill files and AGENTS.md can grow unbounded, making them harder to maintain and reason about. This adds a pre-commit hook that enforces a 500-line ceiling and tells contributors exactly how to fix violations. Changes hooks/check-agent-file-sizes.py — new bespoke hook; scans AGENTS.md and all */SKILL.md files under a given skills directory, reports files over the limit with actionable remediation advice: SKILL.md violations → split into sub-skills AGENTS.md violations → move general instructions into separate referenced files .pre-commit-config.yaml — wires the hook at priority: 0 alongside check-skills-documented; all limits and paths are passed as args so the script is project-agnostic ERROR: The following agent files exceed the 500-line limit: .agents/skills/some-big-skill/SKILL.md: 512 lines (limit: 500) To fix these violations: - For SKILL.md files: split the skill into sub-skills, each in its own subdirectory under .agents/skills/. - For AGENTS.md: move general instructions into separate files referenced from AGENTS.md.
Open Graph Description: Agent skill files and AGENTS.md can grow unbounded, making them harder to maintain and reason about. This adds a pre-commit hook that enforces a 500-line ceiling and tells contributors exactly how ...
X Description: Agent skill files and AGENTS.md can grow unbounded, making them harder to maintain and reason about. This adds a pre-commit hook that enforces a 500-line ceiling and tells contributors exactly how ...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1849
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:88fe6395-bd4d-a65f-df82-d2173bc5b72f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CE06:1EDC91:54872E:71A1F2:6A4D3330 |
| html-safe-nonce | f8607db6539dfe4772f7c8a4648a6a4188b761dc882e9dfc6e48acaba83c148f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTA2OjFFREM5MTo1NDg3MkU6NzFBMUYyOjZBNEQzMzMwIiwidmlzaXRvcl9pZCI6IjY3NTk2NDM5MjcwODk1OTEwODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 58ab901720ce042d2c565c76539b57afee1e05dfcc221cbb4275998533cb82b8 |
| hovercard-subject-tag | pull_request:3496583109 |
| 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/1849/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 | Agent skill files and AGENTS.md can grow unbounded, making them harder to maintain and reason about. This adds a pre-commit hook that enforces a 500-line ceiling and tells contributors exactly how ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width