Skip to content

feat: add Has README over 2KB rule#13

Merged
packet-mover merged 1 commit intomainfrom
feat/has-readme-over-2kb
Apr 5, 2026
Merged

feat: add Has README over 2KB rule#13
packet-mover merged 1 commit intomainfrom
feat/has-readme-over-2kb

Conversation

@packet-mover
Copy link
Copy Markdown
Contributor

@packet-mover packet-mover commented Apr 5, 2026

Summary

  • Add FileEntry struct with Name+Size to capture file metadata from ListFiles
  • Add HasSubstantialReadme rule - checks README.md exists and is >2048 bytes
  • Update rule 3 spec from "100 lines" to "2KB" in README.md and AGENTS.md
  • No extra API calls needed - size comes from the existing ListFiles response

Test plan

  • go test ./... passes (3 new tests: pass, too small, missing)
  • go vet ./... clean

- Add FileEntry struct with Name+Size, ListFiles now returns size metadata
- Add HasSubstantialReadme rule (checks README.md > 2048 bytes)
- Add findFile helper for looking up files with metadata
- Update rule 3 spec from "100 lines" to "2KB" in README and AGENTS.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@packet-mover packet-mover merged commit 8cb1b26 into main Apr 5, 2026
2 checks passed
@packet-mover packet-mover deleted the feat/has-readme-over-2kb branch April 5, 2026 21:05
packet-mover added a commit that referenced this pull request Apr 6, 2026
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.

1 participant