Skip to content

docs: add standardized Homebrew documentation template and checklist#281

Merged
paxcalpt merged 1 commit intomainfrom
docs/homebrew-template
Feb 2, 2026
Merged

docs: add standardized Homebrew documentation template and checklist#281
paxcalpt merged 1 commit intomainfrom
docs/homebrew-template

Conversation

@paxcalpt
Copy link
Contributor

@paxcalpt paxcalpt commented Feb 2, 2026

Summary

This PR adds reusable templates and checklists for Homebrew formula documentation to ensure consistency across all HenriquesLab repositories.

Related to:

New Documentation

1. ✅ HOMEBREW_FORMULA_TEMPLATE.md

Comprehensive template for Homebrew documentation:

Contents:

  • CONTRIBUTING.md template: Standard section with automated/manual workflows
  • CLAUDE.md template: Automation documentation for AI assistants
  • Customization guide: How to adapt template for new packages
  • Examples: rxiv-maker, TaskRepo, folder2md4llms configurations
  • Consistency checklist: 8-point verification checklist

Template features:

  • Automated just release workflow (recommended)
  • Manual workflow (alternative)
  • Placeholder variables (PACKAGE_NAME, COMMAND_NAME, VERSION)
  • Relative paths (../homebrew-formulas)
  • Links to automation utilities

2. ✅ HOMEBREW_DOCS_CHECKLIST.md

Quick reference checklist for reviews:

Contents:

  • Quick review checklist: CONTRIBUTING.md and CLAUDE.md verification
  • Common issues: Detection patterns for hardcoded versions, absolute paths, etc.
  • Repository-specific checks: Package name mappings, verification commands
  • Automated review patterns: Grep patterns for common issues
  • Related PRs: Reference to established patterns

Issue detection examples:

# Automated detection patterns
grep -n "VERSION=[0-9]" CONTRIBUTING.md       # Hardcoded version
grep -n "~/GitHub/homebrew" CONTRIBUTING.md   # Absolute path
grep -n "^### 1\." CONTRIBUTING.md            # Manual-first approach

Use Cases

For New Packages

  1. Copy template sections from HOMEBREW_FORMULA_TEMPLATE.md
  2. Replace PACKAGE_NAME and COMMAND_NAME variables
  3. Add to CONTRIBUTING.md and CLAUDE.md (if present)
  4. Verify with HOMEBREW_DOCS_CHECKLIST.md

For Documentation Reviews

  1. Use HOMEBREW_DOCS_CHECKLIST.md to verify consistency
  2. Check for common anti-patterns
  3. Ensure alignment with automated workflow preference

For AI Assistants

  • CLAUDE.md sections enable automated documentation improvements
  • Templates provide clear patterns to follow
  • Checklists enable automated review feedback

Benefits

  • Consistency: Standardized documentation across all repos
  • Maintainability: Single source of truth for patterns
  • Scalability: Easy to apply to new packages
  • Quality: Systematic review process
  • Automation: Enables automated documentation checks

Testing

Repository Coverage

Templates can be applied to all HenriquesLab packages with Homebrew formulas:

References

Create reusable templates for Homebrew formula documentation:

1. HOMEBREW_FORMULA_TEMPLATE.md:
   - Standard template for CONTRIBUTING.md sections
   - Standard template for CLAUDE.md sections
   - Customization guide with package name replacements
   - Examples for rxiv-maker, TaskRepo, folder2md4llms
   - Consistency checklist

2. HOMEBREW_DOCS_CHECKLIST.md:
   - Quick review checklist for CONTRIBUTING.md and CLAUDE.md
   - Common issues detection (hardcoded versions, absolute paths)
   - Repository-specific checks
   - Automated review patterns
   - Reference to related PRs

Benefits:
- Ensures consistency across HenriquesLab ecosystem
- Provides clear guidance for new package additions
- Facilitates automated review detection
- Documents established patterns from PR #280, #37, #12

Template can be used for future packages and for reviewing existing
documentation across the organization.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 2, 2026 10:43
@github-actions
Copy link

github-actions bot commented Feb 2, 2026

PR Review: Homebrew Documentation Template and Checklist

✅ Overall Assessment: Excellent Work

This PR adds valuable standardized documentation templates that will significantly improve consistency across the HenriquesLab ecosystem. The templates are well-structured, comprehensive, and address real pain points identified in related PRs.


🎯 Strengths

1. Clear Structure and Organization

  • Both documents are well-organized with logical sections
  • Clear distinction between template content and usage instructions
  • Good use of visual indicators (✅/❌) in the checklist

2. Practical and Actionable

  • Templates include concrete examples (rxiv-maker, TaskRepo, folder2md4llms)
  • Checklist provides automated grep patterns for common issues
  • Customization guide clearly explains required replacements

3. Addresses Real Issues

4. Consistency Focus

  • Standardizes documentation approach across repositories
  • Ensures CONTRIBUTING.md and CLAUDE.md alignment
  • Provides verification checklists before committing

🔍 Code Quality Observations

Documentation Quality: ✅ Excellent

  • Clear, concise language throughout
  • Good use of code blocks and formatting
  • Proper markdown structure with headers and lists

Template Design: ✅ Well-Designed

  • Placeholder variables (PACKAGE_NAME, COMMAND_NAME) are intuitive
  • Escaped backticks in nested code blocks handled correctly
  • Templates are copy-paste ready

Maintainability: ✅ Good

  • "Last updated" timestamps included
  • References to related PRs for context
  • Clear maintenance guidelines

💡 Suggestions for Improvement

1. Consider Adding Version Number to Checklist

In HOMEBREW_DOCS_CHECKLIST.md, the automated review patterns could include:

# Additional pattern to detect version references in documentation
grep -n "v[0-9]\+\.[0-9]\+\.[0-9]\+" CONTRIBUTING.md | grep -v "X.Y.Z"

This would catch any missed hardcoded version numbers.

2. Link Between Documents

Consider adding a cross-reference at the top of each document:

In HOMEBREW_DOCS_CHECKLIST.md:

> 📋 **Template**: See [HOMEBREW_FORMULA_TEMPLATE.md](./HOMEBREW_FORMULA_TEMPLATE.md) for the standard template

In HOMEBREW_FORMULA_TEMPLATE.md:

> **Checklist**: Use [HOMEBREW_DOCS_CHECKLIST.md](./HOMEBREW_DOCS_CHECKLIST.md) to verify your documentation

3. Testing Automation Suggestion

The grep patterns in the checklist could be packaged into a simple validation script:

#!/bin/bash
# scripts/validate-homebrew-docs.sh
# Run automated checks from HOMEBREW_DOCS_CHECKLIST.md

This is optional but would make the checklist even more actionable.

4. Minor: TaskRepo Package Name Inconsistency

In the template (line 141 and 161), you reference taskrepo (lowercase, no hyphen) as the PyPI package name. Verify this is correct - it might be task-repo or TaskRepo. Check the actual PyPI listing to ensure accuracy.


🔒 Security Considerations

✅ No Security Concerns

  • Documentation-only changes
  • No executable code introduced
  • Shell commands shown are standard Homebrew/git operations
  • No credentials or sensitive data

🧪 Test Coverage

✅ Appropriate for Documentation

  • Documentation-only PR, no code tests required
  • Templates verified against existing repositories mentioned in PR description
  • Pre-commit hooks passed (formatting/linting)

Recommendation: After merge, manually test the template with one new repository to validate the workflow end-to-end.


⚡ Performance Considerations

✅ Not Applicable

  • Static documentation files
  • No runtime performance impact

📋 Alignment with CLAUDE.md

✅ Excellent Alignment

This PR directly supports the automation goals outlined in CLAUDE.md:

  • Promotes just release automation (preferred method)
  • Uses relative paths (../homebrew-formulas)
  • Standardizes documentation format
  • Supports AI-assisted documentation maintenance

The templates align perfectly with the "Homebrew Formula Management" section in CLAUDE.md and will help Claude proactively maintain formula updates.


🎯 Recommendation: APPROVE ✅

This PR is ready to merge with only minor optional improvements suggested above. The templates are well-crafted, practical, and will provide significant value across the HenriquesLab ecosystem.

Before Merging:

  1. ✅ Pre-commit checks passed
  2. ✅ Documentation reviewed
  3. ⚠️ Consider: Verify TaskRepo package name (taskrepo vs alternatives)
  4. ⚠️ Optional: Add cross-references between documents
  5. ⚠️ Optional: Add version pattern to automated checks

After Merging:

  1. Apply template to any remaining repositories that need updates
  2. Update PR docs: align Homebrew formula workflow with CLAUDE.md automation #280 status if this provides the foundation for it
  3. Consider creating the validation script for automated checks

Great work on improving documentation consistency across the ecosystem! 🎉


Review generated with reference to CLAUDE.md coding standards and best practices.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds standardized, reusable documentation templates and a review checklist for Homebrew formula update docs to keep Homebrew-related guidance consistent across HenriquesLab repositories.

Changes:

  • Introduces a full Homebrew formula update documentation template for CONTRIBUTING.md and CLAUDE.md.
  • Adds a review checklist with common pitfalls and grep-based indicators for automated review.
  • Provides customization guidance and examples for known packages.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
docs/HOMEBREW_FORMULA_TEMPLATE.md Adds a standardized template for documenting automated/manual Homebrew formula update workflows.
docs/HOMEBREW_DOCS_CHECKLIST.md Adds a checklist and common-issue detection patterns to review Homebrew documentation consistency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +88 to +94
- **TaskRepo** → CLI: `tsk`
- **folder2md4llms** → CLI: `folder2md`

### Verification Commands
Check if package-specific verification is included where applicable:
- rxiv-maker: `rxiv check-installation` (optional)
- TaskRepo: `tsk --version`
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the “Package Names” section, TaskRepo is a repository name, but elsewhere (including the template examples) the placeholder refers to the PyPI/formula name (taskrepo). Using “TaskRepo” here makes the mapping ambiguous; consider listing the actual package/formula name (taskrepo) to match Homebrew/PyPI usage and the template’s replacement guidance.

Suggested change
- **TaskRepo** → CLI: `tsk`
- **folder2md4llms** → CLI: `folder2md`
### Verification Commands
Check if package-specific verification is included where applicable:
- rxiv-maker: `rxiv check-installation` (optional)
- TaskRepo: `tsk --version`
- **taskrepo** → CLI: `tsk`
- **folder2md4llms** → CLI: `folder2md`
### Verification Commands
Check if package-specific verification is included where applicable:
- rxiv-maker: `rxiv check-installation` (optional)
- taskrepo: `tsk --version`

Copilot uses AI. Check for mistakes.
# Pattern detection for automated reviews
grep -n "VERSION=[0-9]" CONTRIBUTING.md # Hardcoded version
grep -n "~/GitHub/homebrew" CONTRIBUTING.md # Absolute path
grep -n "^### 1\." CONTRIBUTING.md # Manual-first approach (missing automated section)
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The automated review indicator grep -n "^### 1\." CONTRIBUTING.md is not specific to Homebrew sections and may flag unrelated headings, creating false positives. Consider matching a more specific pattern (e.g., the Homebrew section header plus a manual step heading, or searching for the absence of an “Automated Workflow” heading).

Suggested change
grep -n "^### 1\." CONTRIBUTING.md # Manual-first approach (missing automated section)
grep -n "^### 1\. Get Package Information from PyPI" CONTRIBUTING.md # Manual-first Homebrew section (missing automated section)

Copilot uses AI. Check for mistakes.
Comment on lines +121 to +127
## Related PRs

Template established and applied in:
- **rxiv-maker**: PR #280
- **folder2md4llms**: PR #37
- **TaskRepo**: PR #12

Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file references “folder2md4llms PR #37” as the source of the established Homebrew template patterns, but the referenced PR summary in this PR’s metadata appears unrelated to Homebrew documentation. To avoid confusion, consider either linking to the specific Homebrew-docs PR/commit in that repository or removing the PR number reference here.

Copilot uses AI. Check for mistakes.
- New utility commands are added to homebrew-formulas
- Common issues or best practices are identified

**Last updated:** 2026-02-02 (aligned with rxiv-maker PR #280, folder2md4llms PR #37, TaskRepo PR #12)
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The “Last updated” note claims alignment with “folder2md4llms PR #37”, but the referenced PR summary in this PR’s metadata appears unrelated to Homebrew documentation. Consider updating this reference to the correct PR/commit (or removing the PR number) so readers can trace the relevant change history accurately.

Copilot uses AI. Check for mistakes.
@paxcalpt
Copy link
Contributor Author

paxcalpt commented Feb 2, 2026

Code review

No issues found. Checked for bugs and template completeness.

This PR adds excellent standardization resources:

HOMEBREW_FORMULA_TEMPLATE.md:

  • Complete templates for CONTRIBUTING.md and CLAUDE.md sections
  • Customization guide with clear variable placeholders
  • Examples for all three repositories
  • 8-point consistency checklist

HOMEBREW_DOCS_CHECKLIST.md:

Both documents are well-structured, comprehensive, and will ensure consistency across the HenriquesLab ecosystem for future packages. The templates accurately reflect the patterns established in the three related PRs.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

@paxcalpt paxcalpt merged commit 4baaa8c into main Feb 2, 2026
8 checks passed
@paxcalpt paxcalpt deleted the docs/homebrew-template branch February 2, 2026 11:22
paxcalpt added a commit that referenced this pull request Feb 2, 2026
This patch release focuses on documentation improvements and security compliance:

Documentation:
- Align Homebrew formula workflow with CLAUDE.md automation (#280)
- Add standardized Homebrew documentation templates (#281)
- Prioritize just-based automation across ecosystem

Security:
- Remove private repository references from public docs (#282)
- Comply with CLAUDE.md security guidelines

Affects: CONTRIBUTING.md, README.md, CHANGELOG.md, docs/ECOSYSTEM.md

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@paxcalpt paxcalpt mentioned this pull request Feb 2, 2026
paxcalpt added a commit that referenced this pull request Feb 2, 2026
This patch release focuses on documentation improvements and security compliance:

Documentation:
- Align Homebrew formula workflow with CLAUDE.md automation (#280)
- Add standardized Homebrew documentation templates (#281)
- Prioritize just-based automation across ecosystem

Security:
- Remove private repository references from public docs (#282)
- Comply with CLAUDE.md security guidelines

Affects: CONTRIBUTING.md, README.md, CHANGELOG.md, docs/ECOSYSTEM.md

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
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