agentleFS
Hugging FaceKnown publisherhuggingface/OpenEnv/.claude/skills/pre-submit-pr/SKILL.md

pre-submit-pr

Skill2.6k starsChanged 8 months agoBSD-3-ClauseView on GitHub

Validate changes before submitting a pull request. Run comprehensive checks including lint, tests, alignment review, and RFC analysis. Use before creating a PR, when asked if code is ready for review, or before pushing for PR.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 2 mentionsJul 2026: 2 mentionsAug 2026: 1 mentionSep 2026: 8 mentionsOct 2026: 7 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the huggingface/OpenEnv repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about huggingface/OpenEnv

The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 22

Talked about on GitHub (22 times).

On GitHub · 22

17 more on GitHub

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run git fetch origin main to get latest main

    line 14
  2. Very specific:

    Run git rev-list --count HEAD..origin/main to check commits behind

    line 15
  3. Very specific:

    If > 0 commits behind, merge main before proceeding: git merge origin/main

    line 16
  4. Very specific:

    Read .claude/docs/PRINCIPLES.md and .claude/docs/INVARIANTS.md

    line 25
  5. Very specific:

    If changes touch src/openenv/core/, flag for RFC consideration

    line 30
  6. Distinctive:

    If any public API signatures change, RFC required

    line 31
  7. Very specific:

    Check against existing RFCs in rfcs/ for conflicts

    line 32
  8. Distinctive:

    If the PR adds new directories, moves files, or changes structure significantly:

    line 36
  9. Very specific:

    Update REPO_WALKTHROUGH.md to reflect the changes

    line 37
  10. Very specific:

    Check triggers: new directories in src/, envs/, .claude/, or rfcs/

    line 39
  11. Distinctive:

    Check if any public API signatures changed (function/class renames, new params):

    line 40
  12. Distinctive:

    Search for references in docs/, examples/, README.md, other .py docstrings

    line 41
  13. Very specific:

    If stale references found, recommend running /update-docs before PR

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pre-Submit PR Check

Comprehensive validation before submitting a pull request. Run this before creating or updating a PR.

Instructions

  1. Check branch freshness (BLOCKING):
    • Run git fetch origin main to get latest main
    • Run git rev-list --count HEAD..origin/main to check commits behind
    • If > 0 commits behind, merge main before proceeding: git merge origin/main
    • This prevents "branch out of date" issues on GitHub
  2. Run all automated hooks:
    • bash .claude/hooks/lint.sh - format check (includes ruff format + ruff check)
    • bash .claude/hooks/test.sh - run tests
    • bash .claude/hooks/check-debug.sh - find debug code
  3. Run alignment review:
    • Read .claude/docs/PRINCIPLES.md and .claude/docs/INVARIANTS.md
    • Compare changes against principles and invariants
    • Identify Tier 1 (mechanical) and Tier 2 (alignment) issues
  4. RFC check:
    • If changes touch src/openenv/core/, flag for RFC consideration
    • If any public API signatures change, RFC required
    • Check against existing RFCs in rfcs/ for conflicts
  5. Documentation freshness check:
    • Review .claude/docs/REPO_WALKTHROUGH.md against the current repo structure
    • If the PR adds new directories, moves files, or changes structure significantly:
      • Update REPO_WALKTHROUGH.md to reflect the changes
      • Include these updates in the PR
    • Check triggers: new directories in src/, envs/, .claude/, or rfcs/
    • Check if any public API signatures changed (function/class renames, new params):
      • Search for references in docs/, examples/, README.md, other .py docstrings
      • If stale references found, recommend running /update-docs before PR
  6. Summarize PR readiness:
    • List all blocking issues
    • List all discussion points for reviewers
    • Provide overall verdict
  7. After push/PR creation, run the post-push check:
    • bash .claude/hooks/post-push-pr.sh
    • Verifies: PR is open, no merge conflicts, branch freshness, PR description quality, CI check status

Output Format

## Pre-Submit PR Report

### Branch Freshness
| Check | Status | Details |
|-------|--------|---------|
| Up to date with main | YES/NO | [X commits behind, merged if needed] |

### Automated Checks
| Check | Status | Details |
|-------|--------|---------|
| Lint | PASS/FAIL | [summary] |
| Tests | PASS/FAIL | [X passed, Y failed] |
| Debug code | CLEAN/FOUND | [details] |

### Alignment Review

#### Tier 1: Fixes Required (blocking)
- [ ] path/file.py:123 - [issue description]

#### Tier 2: Discussion Points (flag for reviewers)
[ALIGNMENT FLAGS or "None identified"]

### Invariant Check
[List any invariants at risk, or "All invariants maintained"]

### RFC Status
[NOT REQUIRED / RECOMMENDED / REQUIRED: reason]

### Documentation Freshness
[UP TO DATE / UPDATED: list of changes made to REPO_WALKTHROUGH.md]
[STALE DOCS: run /update-docs — list of stale references found]

### Verdict: READY FOR PR / ISSUES TO ADDRESS

### Summary for PR Description
[2-3 sentences summarizing changes for the PR description]

Blocking Issues

The following issues block PR submission:

  • Branch out of date with main (must merge first)
  • Lint failures
  • Test failures
  • Debugger statements (breakpoint, pdb)
  • Invariant violations
  • RFC required but not written

Non-Blocking (Flag for Reviewers)

These should be noted in PR but don't block:

  • Alignment discussion points (Tier 2)
  • RFC recommended (optional)
  • TODOs in code
  • Print statements (unless in core code)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.