Logo vun Create Pr

Create Pr

Communautéit
kdy1
create-pr

Publish intended changes as a GitHub pull request with verified Closes references for fully resolved issues and Refs for partial or related work, then link the result to the thread. Use when an authorized task includes PR creation or another skill delegates its PR publishing step.

Iwwersiicht

Editeurkdy1
Repositorykdy1-scripts
Skill-Nummcreate-pr
Stären
33
Forks
0
Matgeliwwert Fichieren
5
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum kdy1 op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Create Pr an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/kdy1/kdy1-scripts/tree/main/skills/create-pr
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kdy1/kdy1-scripts.git /tmp/kdy1-scripts
mkdir -p .claude/skills
cp -r /tmp/kdy1-scripts/skills/create-pr .claude/skills/create-pr
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Create Pr an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Create Pr automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Create Pr net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Create PR

Own the shared PR publishing workflow in T3 Chat. Other skills that create PRs must invoke this skill for publication instead of copying its steps or creating PRs directly.

Start for a human request to create a PR, or a publishing handoff within an already human-authorized task. Automatic selection does not authorize publishing from ordinary code changes. Loading, editing, or planning this skill does not start publication. A handoff carries the original human request, delegation context, and intended scope; it does not expand that scope.

Publish the intended changes only. Do not implement additional work or modify source to fix failed checks. End after publication and verification; do not merge, enable auto-merge, or start PR maintenance.

Required Writing Skill

Read $write-ste and resolve its installed SKILL.md to an absolute path. Use it for PR titles and bodies. If unavailable, report the missing dependency and stop before publishing instead of skipping it.

Invocation and Handoff

Reuse reliable information from the current task. A calling skill supplies the following when known:

  • GitHub host and repository, absolute checkout/worktree path, intended change set, head repository/remote/branch, and base branch.
  • Exact issue URLs or qualified numbers, distinguishing fully resolved issues from partial or related work.
  • Validation commands, actual results, and the revision or changes they covered.
  • Existing actual screenshots relevant to the changes, with absolute file paths or verified GitHub attachment URLs, descriptions, and known captured states and revisions.
  • Required body content and any disclosure section, requested draft state, and constraints such as preserving human-reviewed source.
  • An existing PR URL for the intended publication, separately from historical or prerequisite PR URLs, and the original human authorization and delegation context when applicable.

Resolve missing facts through the checkout and authenticated GitHub reads. Ask only when the intended changes, target, issue identity, or another material decision remains ambiguous. Honor the user's instructions and the calling workflow's applicable constraints. Default to non-draft unless the user or caller requests draft.

Scripted Operations

Read references/scripts.md for the manifest schema, commands, output states, and recovery procedure. Use scripts/create-pr.mjs for deterministic collection, content checks, publication, reconciliation, and verification. Resolve the script to an absolute path before invocation.

Keep authorization, intended scope, repository guidance, issue completion, prose/language, validation coverage, and screenshot selection in this skill. Scripts do not establish these facts. Commit and push only the agent-selected changes before setting the manifest's exact headSha. In T3 Chat, register PRs with link_pull_request and verify their thread links with list_thread_pull_requests; do not use or require attach_artifact. GitHub body image handling is unchanged.

Prepare the Publication

  1. Run the helper's inspect command with the resolved target and checkout. Resolve any incomplete observations before relying on them. Confirm authenticated gh access for the resolved GitHub host. Read applicable repository instructions, contribution guidance, and PR templates. Resolve the target from explicit task context, otherwise the checkout's remote. Inspect the intended diff and preserve unrelated changes.
  2. Use the requested head and base when provided; otherwise use the current branch and its configured PR base, falling back to the repository's default branch. If a feature branch is needed, follow repository conventions, using t3/ by default. Confirm the exact head repository, push remote, branch, and base. Do not silently fork or retarget the PR. If there is no intended change against the base, report that and stop.
  3. Check an explicitly supplied or recorded PR and search for an open PR with the exact head repository and branch before publishing. Reuse a matching PR. In T3 Chat, call link_pull_request with its full URL when starting work on it. If multiple candidates exist or its base differs from the intended base, clarify rather than duplicating or silently retargeting it. If the PR recorded for this publication is merged or closed, verify its thread link as described below, report its state, and end this publication invocation without reopening it or automatically creating a replacement. Return control to the calling workflow to assess any remaining authorized work; this result does not establish that the issue or whole stack is complete. Historical or prerequisite PRs do not block a distinct publication for remaining work. Do not pass their URLs as the current publication's recorded PR.
  4. Use only validation results already available from the current task or handoff. Do not run or rerun local tests, builds, linters, or other code validation for PR publication. Existing failures, missing results, or results from an earlier revision do not block publication. Preserve each result's actual status and covered revision; do not report earlier results as validation of changes they do not cover. If no results cover the intended changes, report local validation of those changes as not performed.
  5. Commit intended uncommitted changes in coherent units, following repository instructions, and push any required head commits to the confirmed remote. Stage only the intended files. Skip already completed commits or pushes; do not create empty commits or publish unrelated changes.

Existing Screenshots

  • Include relevant actual screenshots already available from the current task or handoff in the PR body. If the handoff omits them, check the task record and known artifact locations. Do not capture new screenshots, launch the app, or run validation solely for PR publication. If no relevant screenshots are available, continue without a screenshot section.
  • Inspect available screenshots before selecting them. Generated design previews and mockups are not actual screenshots. Describe the captured state and revision only when known; do not present an earlier or failing state as evidence of the final result. Write descriptions and alt text in the selected PR language.
  • Reuse verified GitHub attachment URLs and preserve images already in an existing PR body. Add only missing screenshots; do not upload or embed the same image again. Keep local file paths out of published text. Do not commit screenshots to the repository or publish them to separate hosting just to attach them.
  • Confirm that the relevant gh pr create --help or gh pr edit --help exposes --attach. When supported, combine --body-file with --attach '<absolute-file-path>#<descriptive-alt-text>', repeating the flag for each missing screenshot. Let the CLI append the uploaded images instead of placing local-file placeholders in the body. If unsupported, use an available authenticated browser's native GitHub attachment flow for the same PR and include its returned Markdown in the body. Do not silently upgrade the CLI or use unofficial upload endpoints. See GitHub's attachment documentation.
  • Missing files or unavailable or failed attachment uploads do not block PR publication. Preserve successful attachments and report each omitted screenshot and reason. Follow the write-outcome checks below before retrying; retry only missing attachments when the actual state and failure cause establish a safe next action.

Write the Title, Body, and Issue References

Use the language explicitly requested by the user for the PR title and body. If the user has not specified a language, follow an explicit repository language requirement; otherwise, use English. Do not infer a language request from the conversation language, existing PR language, or other repository prose.

Explicitly invoke [$write-ste](<absolute-write-ste-skill-path>) when drafting or revising the PR title and body. Pass the selected PR language as an explicit instruction to $write-ste. Apply it only to the intended PR prose. Preserve the selected language, repository template, required disclosures, exact Closes and Refs lines, technical literals, factual meaning, uncertainty, and actual validation status.

Write new and revised PR titles in Conventional Commits 1.0.0 header format: type(scope)!: description. The scope is optional. Include ! immediately before the colon only for a compatibility-breaking change. Choose the type from the primary purpose of the full PR: feat for a new feature, fix for a bug fix, or an appropriate type such as docs, refactor, or chore for other changes. Follow the repository's allowed types and scope conventions.

Summarize the full intended change set against the PR base in the title. Use existing commit subjects as supporting context; select wording that covers the PR as a whole, including when it contains multiple commits. Keep the description concise and in the selected language. When applying $write-ste, preserve the type, optional scope, breaking-change marker, and colon-space separator.

Follow the repository's template and preserve its required fixed text. Write new or revised body prose in the selected language. Lead with the concrete problem and resulting behavior. Report existing validation results and their coverage, or state that local validation was not performed when no results cover the intended changes. Incorporate the caller's required body content. For an existing PR, preserve unrelated content and update equivalent sections rather than duplicating them. Preserve supplied disclosures and known execution details without inventing missing facts.

Determine issue identity and completion from the human request, authorized handoff, task history, issue requirements, and intended changes. Verify the referenced GitHub issues and their repositories; do not guess an issue number from a branch name or invent an issue for unrelated work. If the task fixes or relates to an issue but its identity cannot be determined, resolve it before publishing.

For every fully resolved issue, put a standalone closing line in the PR body, outside code fences:

markdown
Closes #123
Closes #456
Closes owner/other-repo#789

Use the caller's required reference format. By default, use Closes #123 for an issue in the PR's repository and Closes owner/repo#123 for another repository. A standalone full issue URL, such as Closes https://github.com/owner/repo/issues/123, is also supported for the selected GitHub host. Repeat the syntax on a separate line for each issue. A title reference, plain link, comment, commit message, Refs, Fixes, or Resolves is not a substitute for the required Closes line. Do not duplicate an existing correct line, including the same issue written in another supported format.

For every issue partially addressed or otherwise related to the changes, use a standalone non-closing reference in the PR body instead:

markdown
Refs #234
Refs owner/other-repo#567

Use the same repository qualification and full-URL rules as for Closes, with a separate line for each issue. Choose Closes when fully resolved and Refs otherwise; do not retain both standalone kinds for the same issue. A PR may contain both kinds for different issues. Do not add references when no associated issue exists.

Preserve existing issue references in body edits and avoid duplicate lines. When an issue's verified completion changes, replace its existing standalone line with the appropriate Closes or Refs line, preserving other references and unrelated content. Correct a confirmed closing reference that would incorrectly close a partially resolved issue; if its scope or completion is unclear, resolve that ambiguity before publishing.

Closing keywords are interpreted by GitHub only when the PR targets the repository's default branch; Refs does not close issues. Honor an explicitly requested base and report that automatic closure will not occur for a different base; do not silently change it. See GitHub's closing-reference documentation.

Publish, Verify, and Return

  1. Prepare the manifest and exact body file outside the target repository as described in references/scripts.md. Include explicit language/draft, the pushed headSha, verified issue classifications, required fixed text, and only missing screenshots. Preserve unrelated existing body content and attachments. Run check-content and resolve its errors before publication. These checks validate publication content, not source code; do not run local code validation.
  2. Run publish with a new journal path. The helper rechecks the exact PR identity and pushed revision, uses --body-file with explicit CLI targets, creates or edits the matching PR, and changes draft state when necessary. It verifies issue existence but relies on the agent's completion classifications. In T3 Chat, immediately call link_pull_request with the full URL of each created PR. A stopped result for a recorded closed/merged PR means verify its thread link as described below, report its state, and return control to the caller under the scope rule in Prepare the Publication step 3. A follow-up requires the caller to reassess the remaining work before another publication handoff.
  3. After any exception, failed command, partial upload, or uncertain result, run reconcile against the original journal before another write. Never blindly retry creation. Preserve successful attachment URLs and unrelated content. If the actual state and failure cause establish a safe correction or retry, follow the documented recovery procedure with a new journal and only missing attachments. Otherwise report uncertainty and stop. For unsupported CLI uploads, use the native authenticated browser flow described above; failed or omitted screenshots do not block text publication.
  4. Run reconcile to account for each selected screenshot and verify after any subsequent body or browser attachment edits. Resolve mismatches introduced by this invocation and verify again. Inspect the selected language, factual meaning, unrelated-content preservation, screenshot descriptions/states/revisions, and validation coverage manually. For human-reviewed publication, confirm the reviewer mention and disclosure details as well. The helper checks exact required text and standalone issue lines; it cannot establish issue completion or language correctness. Honor a non-default base and report when automatic issue closure will not occur.
  5. In T3 Chat, use link_pull_request for every created or updated PR, including every layer of a stack and any explicitly recorded closed/merged PR. Before finishing, call list_thread_pull_requests, link any missing PR from this work, and query again to verify it. Report an unavailable or failed link or incomplete list separately from the verified GitHub result; do not claim linking succeeded or create another PR to compensate.
  6. Return the PR URL and verified state, issue references, checkout path and head branch, and any material limitations, including omitted screenshots and their reasons. Report existing local validation results and their coverage, or state that local validation was not performed. Distinguish local validation from pending or unperformed CI and review. Leave the checkout available for review and return control to the calling skill.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Create Pr?

Publish intended changes as a GitHub pull request with verified Closes references for fully resolved issues and Refs for partial or related work, then link the result to the thread. Use when an authorized task includes PR creation or another skill delegates its PR publishing step.

Firwat Create Pr op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Create Pr besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Create Pr an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/kdy1/kdy1-scripts/tree/main/skills/create-pr an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Create Pr benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Create Pr benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Create Pr domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Create Pr gratis?

De Skill gëtt vum kdy1 op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇