Git PR Core (Internal Infrastructure)

VerifiedCaution

Internal skill providing shared scripts for creating pull requests. Used by git-pr and git-cd-pr, it should not be called directly. Scripts cover scope verification, change analysis, PR creation, milestone and project assignment, and more.

Sby Skills Guide Bot
DevelopmentIntermediate
1006/2/2026
Claude Code
#git#pull-request#internal#scripts#automation

Recommended for

Our review

Internal skill providing shared scripts for automated Pull Request creation, used by git-pr and git-cd-pr.

Strengths

  • Ready-to-use scripts covering the entire PR workflow
  • Built-in checks and validations (scopes, template, QA)
  • Enables automation and standardization of PRs

Limitations

  • Should not be called directly, only through parent skills
  • Requires Claude environment with Bash and Python tools
  • Depends on local GitHub repository configuration
When to use it

When building or extending an automated PR creation skill (git-pr, git-cd-pr).

When not to use it

For direct user interaction or outside a structured PR creation pipeline.

Security analysis

Caution
Quality score85/100

The skill delegates to Bash and Python scripts that perform git operations (push, branch deletion, PR creation) and GitHub API interactions, which are powerful but legitimate for a PR automation tool. No destructive or exfiltration commands are directly present, but the scripts themselves are not inspected, so caution is warranted due to potential impact if misused.

No concerns found

Examples

Créer une PR avec git-pr
Crée une Pull Request pour mes changements sur la branche main.
Lancer la QA intelligente via git-pr
Execute smart QA on the current branch before creating the PR.

name: git-pr-core description: > Skill interne fournissant les scripts communs pour la création de Pull Requests. Ne pas appeler directement - utilisé par git-pr et git-cd-pr. allowed-tools: [Bash, Read, Write, AskUserQuestion] model: sonnet

Git PR Core (Internal)

Instructions à Exécuter

IMPORTANT : Exécute ce workflow étape par étape :

Ce skill fournit les scripts partagés pour la création de PR. Il ne doit pas être appelé directement.

Scripts disponibles

| Script | Description | Usage | |--------|-------------|-------| | check_scopes.sh | Vérifie les scopes GitHub | bash "$CORE_SCRIPTS/check_scopes.sh" | | verify_pr_template.sh | Vérifie le template PR | bash "$CORE_SCRIPTS/verify_pr_template.sh" "$PR_TEMPLATE_PATH" | | smart_qa.sh | Lance la QA intelligente | bash "$CORE_SCRIPTS/smart_qa.sh" | | analyze_changes.sh | Analyse les changements git | bash "$CORE_SCRIPTS/analyze_changes.sh" | | confirm_base_branch.py | Confirme la branche de base | python3 "$CORE_SCRIPTS/confirm_base_branch.py" | | create_pr.sh | Crée la PR (push + gh pr create) | bash "$CORE_SCRIPTS/create_pr.sh" "$BRANCH_BASE" "$PR_TEMPLATE_PATH" | | safe_push_pr.sh | Push sécurisé avec création PR | bash "$CORE_SCRIPTS/safe_push_pr.sh" | | assign_milestone.py | Assigne un milestone | python3 "$CORE_SCRIPTS/assign_milestone.py" <pr_number> --milestone "<milestone_name>" | | assign_project.py | Assigne un projet GitHub | python3 "$CORE_SCRIPTS/assign_project.py" <pr_number> --project "<project_name>" | | auto_review.sh | Lance la code review automatique | bash "$CORE_SCRIPTS/auto_review.sh" <pr_number> | | cleanup_branch.sh | Nettoie la branche locale | bash "$CORE_SCRIPTS/cleanup_branch.sh" [--delete] | | final_report.sh | Génère le rapport final | bash "$CORE_SCRIPTS/final_report.sh" |

Usage par les skills enfants

CORE_SCRIPTS="${CLAUDE_PLUGIN_ROOT}/skills/git-pr-core/scripts"

# Exemples d'utilisation
bash "$CORE_SCRIPTS/check_scopes.sh"
bash "$CORE_SCRIPTS/create_pr.sh" "$BRANCH_BASE" "$PR_TEMPLATE_PATH"

# IMPORTANT : Pour assign_milestone.py et assign_project.py, utiliser --milestone et --project
# ❌ INCORRECT : python3 "$CORE_SCRIPTS/assign_milestone.py" 1234 "Continuous Delivery"
# ✅ CORRECT   : python3 "$CORE_SCRIPTS/assign_milestone.py" 1234 --milestone "Continuous Delivery"

PR_NUMBER=$(gh pr view --json number -q .number)
python3 "$CORE_SCRIPTS/assign_milestone.py" "$PR_NUMBER" --milestone "Continuous Delivery"
python3 "$CORE_SCRIPTS/assign_project.py" "$PR_NUMBER" --project "MyProject"

Workflow standard

  1. check_scopes.sh - Vérifier scopes GitHub
  2. verify_pr_template.sh - Vérifier template PR
  3. smart_qa.sh - Lancer QA
  4. analyze_changes.sh - Analyser changements
  5. confirm_base_branch.py - Confirmer branche base
  6. create_pr.sh - Créer la PR
  7. assign_milestone.py - Assigner milestone
  8. assign_project.py - Assigner projet
  9. auto_review.sh - Code review
  10. cleanup_branch.sh - Nettoyage
Related skills