Logo di 2giosangmitom Create Pr

2giosangmitom Create Pr

Community
2giosangmitom
2giosangmitom-create-pr

Draft a pull request from the branch's commits and the repo's PR template, then publish it only after the user approves. Use only when the user explicitly asks to create a PR.

Panoramica

Pubblicato da2giosangmitom
Repositorydotfiles
Nome della skill2giosangmitom-create-pr
Stelle
51
Fork
4
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da 2giosangmitom su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA 2giosangmitom Create Pr in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/2giosangmitom/dotfiles/tree/master/dot_agents/skills/2giosangmitom-create-pr
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/2giosangmitom/dotfiles.git /tmp/dotfiles
mkdir -p .claude/skills
cp -r /tmp/dotfiles/dot_agents/skills/2giosangmitom-create-pr .claude/skills/2giosangmitom-create-pr
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva 2giosangmitom Create Pr in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente 2giosangmitom Create Pr non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi 2giosangmitom Create Pr non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Create Pull Request

Draft a pull request from the current branch. Never push, create, or publish anything until the user approves.

Follow the user's guidance: $ARGUMENTS

Workflow

1. Verify repository

Run:

bash
git rev-parse --is-inside-work-tree
git status --short --branch
git remote -v

Stop if this is not a Git repository or there is no origin remote. Ask the user to switch to a feature branch if the current branch is the default branch.

Warn about uncommitted changes. They are not part of the PR until committed, and must not be committed unless the user asks.

2. Determine the base branch

Use the branch named in $ARGUMENTS. Otherwise run:

bash
gh repo view --json defaultBranchRef --jq .defaultBranchRef.name

If gh is unavailable, fall back to main, then master, checking each with git rev-parse --verify. Ask the user if neither exists.

3. Read the commit history

bash
git log --no-merges --reverse --format='%h%n%s%n%b%n---' <base>..HEAD

Use these messages as the source for the title and description. If a message is vague, check the touched files with git log --no-merges --name-only --format='%h %s' <base>..HEAD. Do not run git diff.

If there are no commits ahead of <base>, stop and report that there is nothing to open a PR for.

4. Check push status

bash
git rev-parse --abbrev-ref --symbolic-full-name @{u}
git log --oneline @{u}..HEAD

If there is no upstream or the branch is ahead, say that a push is required. Ask before pushing.

5. Find the PR template

Glob for these paths, in order:

  • .github/pull_request_template.md, .github/PULL_REQUEST_TEMPLATE.md
  • .github/pull_request_template/*.md, .github/PULL_REQUEST_TEMPLATE/*.md
  • docs/pull_request_template.md, docs/PULL_REQUEST_TEMPLATE.md
  • pull_request_template.md, PULL_REQUEST_TEMPLATE.md

If one exists, read it fully and keep its headings, order, and checkboxes. Fill in each applicable section, replace instructional comments with real content, and remove comments that do not apply. If several templates match, choose by change type when the names make it clear, otherwise ask.

6. Write the title and description

Title:

  • Aim for 50 characters or fewer. Maximum 72.
  • Imperative mood. Describe the change, not the act of opening a PR.
  • Use a feat: or fix: prefix only if the repository's PRs already use one.
  • No trailing period.

Description: base it on the commit bodies. Keep it short and explain what changed and why.

Without a template, use:

markdown
## Summary

What changed, and why? Add `Closes #<n>` if an issue applies.

## Breaking changes

What must users change when upgrading? Write "None" if nothing changes.

Rules:

  • Verify every issue reference with gh issue view <n>.
  • Never guess issue numbers, links, test results, or breaking changes.
  • Never include secrets, tokens, credentials, or private URLs.
  • Never add AI attribution.

7. Show the draft and ask for approval

Show the title and description in code blocks, then ask:

Publish this PR to <owner/repo> with base <base>? Reply to approve, or send edits.

Do not run gh pr create before approval. If the user asks for changes, revise the draft and show it again.

8. Publish after approval

  1. If the branch is not pushed, ask separately for permission. Only after approval, run git push -u origin HEAD.

  2. Create the PR with the approved title and body:

    bash
    gh pr create --base <base> --title "<title>" --body-file - <<'EOF'
    <description>
    EOF
  3. Add --draft only if the user asks.

Never force-push, amend commits, or create more than one PR per request.

If gh is missing or not authenticated, give the user this compare URL to open:

text
https://github.com/<owner>/<repo>/compare/<base>...<head>?expand=1

9. Report

After publishing, show:

  • PR URL.
  • Title.
  • Base and head branches.
  • Draft or ready-for-review status.
  • Number of commits in the PR.
  • Confirmation that nothing was force-pushed.

If publishing fails, report the error without claiming success.

Examples

Without a template:

text
fix(auth): handle expired refresh tokens

## Summary

Refresh tokens now expire cleanly. Users are sent back to login with their return path preserved. Closes #123.

## Breaking changes

None.

With a template: use the template's headings and order, fill each section from the commit history, and keep its checkboxes. Do not replace it with the structure above.

Domande frequenti

Cosa fa la skill IA 2giosangmitom Create Pr?

Draft a pull request from the branch's commits and the repo's PR template, then publish it only after the user approves. Use only when the user explicitly asks to create a PR.

Perché usare 2giosangmitom Create Pr su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. 2giosangmitom Create Pr è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo 2giosangmitom Create Pr in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/2giosangmitom/dotfiles/tree/master/dot_agents/skills/2giosangmitom-create-pr. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare 2giosangmitom Create Pr?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con 2giosangmitom Create Pr?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con 2giosangmitom Create Pr: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA 2giosangmitom Create Pr è gratuita?

È pubblicata su GitHub da 2giosangmitom. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇