warp-github-git

Inspect local Git repositories and compose branches using WarpToolkit.WinForms.Github APIs.

1|1|Updated Jun 12, 2022
One-click install
npx skills add https://github.com/KlausLoeffelmann/WinFormsDevTools --skill warp-github-git-klausloeffelmann
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: warp-github-git
Source: https://github.com/KlausLoeffelmann/WinFormsDevTools/tree/main/.github/skills/WARP-Git-and-Github-API
Command: npx skills add https://github.com/KlausLoeffelmann/WinFormsDevTools --skill warp-github-git-klausloeffelmann

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires WarpToolkit.WinForms.Github.

What problem does it solve? Developers building WinForms tools with WARP need a consistent way to authenticate against GitHub, inspect local Git repositories, and combine multiple source branches into integration branches without mutating the user's active checkout. ## Core Features & Use Cases - GitHub Authentication: Create authenticated Octokit clients via Git Credential Manager or device-code login flows. - Local Repository Inspection: Read repository info, remotes, branches, and commit metadata through ILocalGitRepositoryService without modifying the working tree. - Branch Composition: Cherry-pick commits from multiple source branches into a new target branch inside a temporary git worktree, with conflict reporting and --force-with-lease overwrite protection. - Use Case: You need to build a release-test branch combining feature-a and feature-b on top of main. Register the Git services, call ComposeAsync with a BranchCompositionRequest, and receive a pushed target branch plus structured conflict details if any cherry-pick fails. ## Quick Start Register the WARP Git services with dependency injection and compose a new integration branch from my selected feature branches in this repository.

Frequently Asked Questions about warp-github-git

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an authenticated GitHub client in a WinForms app?▼

Use IGitHubClientFactoryService.GetClient() after registering AddGitHubGcmClientServiceFactory, which reads the token from Git Credential Manager. Alternatively, GitHubLoginManager.GetClientAsync() uses a device-code login flow to obtain an Octokit GitHubClient.

How to combine multiple Git branches into one integration branch?▼

Use IGitBranchCompositionService.ComposeAsync with a BranchCompositionRequest specifying the base branch and source branches. It replays commits in a temporary git worktree, so the user's active checkout is never modified, and pushes the resulting target branch.

Does branch composition work without touching my current working tree?▼

Yes, composition runs entirely in a temporary git worktree and does not mutate the user's active checkout. Local Git operations shell out to git, reusing existing SSH keys, GCM, or gh authentication.

What happens when a cherry-pick conflict occurs during branch composition?▼

The service aborts and throws a BranchCompositionException identifying the failed commit and listing conflicted files. Conflicts are not auto-resolved; surface the commit and file list to the user so they can fix the branch selection or repository state.

Can local Git operations work with non-GitHub remotes?▼

Yes, GitRemoteInfo can parse GitHub Enterprise-style hosts, and local Git workflows function without Octokit. The local services shell out to git, so any remote the user's git installation can authenticate against is supported.