Agents & OrchestrationSûr100100/100
Pre Submit PR (Hugging Face)
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.
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs pre-submit-pr__huggingface-openenv__claude-skills-98942eee82c0Hugging Face
huggingface/openenv
Contenu à copier
---
name: pre-submit-pr
description: 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.
allowed-tools: Read, Grep, Glob, Bash
metadata:
origin: Hugging Face
---
# 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)Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Pre Submit PR (Hugging Face)
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
Comment utiliser Pre Submit PR (Hugging Face)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Pre Submit PR (Hugging Face)
Dis simplement à ton agent quelque chose comme :
Applique le skill pre-submit-pr__huggingface-openenv__claude-skills-98942eee82c0 à cette tâche
Utilise pre-submit-pr__huggingface-openenv__claude-skills-98942eee82c0 pour améliorer cette implémentation
Passe en revue ce sujet avec pre-submit-pr__huggingface-openenv__claude-skills-98942eee82c0
Skills liés à Pre Submit PR (Hugging Face)
Acceleration (Microsoft)
Compare synthetic acceleration options and clearly separate scenario value from forecast commitments.Account Overview (Microsoft)
Create a synthetic Acme account overview and identify evidence that merits seller attention.Acroform Writer (Microsoft)
Use this skill whenever the user wants values written INTO an existing PDF form that lives in the connected SharePoint knowledge source — filling out, completing, populating, or submitting a fillable PDF (application, intake sheet, contract, government form) from data they supply, a spreadsheet row, or the conversation. Triggers include "fill out the job application form", "complete the intake form for [person]", "populate our standard NDA template", and "make this ready to send / non-editable" (flatten). The source form should be found via knowledge search; only ask the user to upload it if knowledge search turns up nothing plausible. different task), and do NOT use it on scanned/image-only PDFs that have no real fillable fields — those need OCR or manual overlay instead, which this skill explicitly detects and reports rather than silently failing.