{"id":49532624,"url":"https://github.com/nianyi778/branch-commit-pr","last_synced_at":"2026-05-02T08:35:19.915Z","repository":{"id":341493386,"uuid":"1170321261","full_name":"nianyi778/branch-commit-pr","owner":"nianyi778","description":"Complete git workflow skill for AI agents: branch → commit → PR","archived":false,"fork":false,"pushed_at":"2026-03-23T06:10:35.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-24T00:52:38.833Z","etag":null,"topics":["ai","ai-agent","automation","coding-agent","developer-tools","git","git-workflow","jira","pull-request","skills"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nianyi778.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-02T01:50:51.000Z","updated_at":"2026-03-23T06:10:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nianyi778/branch-commit-pr","commit_stats":null,"previous_names":["nianyi778/branch-commit-pr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nianyi778/branch-commit-pr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nianyi778%2Fbranch-commit-pr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nianyi778%2Fbranch-commit-pr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nianyi778%2Fbranch-commit-pr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nianyi778%2Fbranch-commit-pr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nianyi778","download_url":"https://codeload.github.com/nianyi778/branch-commit-pr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nianyi778%2Fbranch-commit-pr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32528457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-agent","automation","coding-agent","developer-tools","git","git-workflow","jira","pull-request","skills"],"created_at":"2026-05-02T08:35:18.495Z","updated_at":"2026-05-02T08:35:19.900Z","avatar_url":"https://github.com/nianyi778.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# branch-commit-pr\n\nA complete git development workflow skill for AI coding agents. Handles the entire cycle: **detect default branch → create feature branch → atomic commits → pull request**.\n\n## 10-Second Install\n\n```bash\nnpx skills add nianyi778/branch-commit-pr\n```\n\n## 30-Second Quick Start\n\nAfter installing, say one of these:\n\n- `\"Create a branch for login feature\"`\n- `\"Commit my changes as atomic commits\"`\n- `\"Open a PR for #42\"`\n\n## Features\n\n- **Smart Detection** — Auto-detects default branch, branch naming conventions, and commit style from your repo history\n- **Branch Management** — Creates feature branches from up-to-date default branch with consistent naming\n- **Atomic Commits** — Splits changes into logical, reviewable commits following your repo's conventions\n- **Pull Requests** — Creates PRs via `gh` CLI with auto-generated title, summary, and commit list\n- **GitHub Issues** — Links issues with `Closes #N` when you mention them\n- **Jira Integration** — Optional Jira ticket linking when environment variables are configured\n\n## Install\n\n### Via [skills.sh](https://skills.sh) CLI (recommended)\n\n```bash\n# Install for all detected agents\nnpx skills add nianyi778/branch-commit-pr\n\n# Install for specific agent\nnpx skills add nianyi778/branch-commit-pr -a claude-code\nnpx skills add nianyi778/branch-commit-pr -a opencode\nnpx skills add nianyi778/branch-commit-pr -a cursor\n```\n\n### Manual Installation\n\nCopy the skill to your agent's skills directory:\n\n```bash\n# Claude Code (project-level)\nmkdir -p .claude/skills/branch-commit-pr\ncp skills/branch-commit-pr/SKILL.md .claude/skills/branch-commit-pr/\n\n# Claude Code (global)\nmkdir -p ~/.claude/skills/branch-commit-pr\ncp skills/branch-commit-pr/SKILL.md ~/.claude/skills/branch-commit-pr/\n\n# OpenCode (project-level)\nmkdir -p .opencode/skills/branch-commit-pr\ncp skills/branch-commit-pr/SKILL.md .opencode/skills/branch-commit-pr/\n\n# OpenCode (global)\nmkdir -p ~/.config/opencode/skills/branch-commit-pr\ncp skills/branch-commit-pr/SKILL.md ~/.config/opencode/skills/branch-commit-pr/\n```\n\n## Usage\n\nJust describe what you want in natural language:\n\n| What you say | What happens |\n|---|---|\n| \"Start working on adding dark mode\" | Creates branch → (you work) → commits → PR |\n| \"Create a branch for the login feature\" | Detects conventions, creates \u0026 pushes branch |\n| \"Commit my changes\" | Analyzes changes, creates atomic commits |\n| \"Open a PR\" | Generates title/body from commits, creates PR via `gh` |\n| \"Commit and create PR for #42\" | Commits, creates PR, links GitHub Issue #42 |\n\n## Marketplace Visibility (skills.sh)\n\nThis repository is already in the format that `skills.sh` CLI can install directly.\n\n- Install command users should run:\n  - `npx skills add nianyi778/branch-commit-pr`\n- `skills.sh` visibility/leaderboard is driven by real CLI installs (not a manual submit form).\n- Keep this repo public and keep the install command in your README to maximize discovery.\n\n## Jira Integration (Optional)\n\nTo enable Jira ticket linking, set these environment variables:\n\n```bash\nexport JIRA_URL=\"https://yourteam.atlassian.net\"\nexport JIRA_EMAIL=\"you@company.com\"\nexport JIRA_API_TOKEN=\"your-api-token\"\n```\n\nThen mention the ticket: *\"Create a PR for PROJ-123\"*\n\nThe skill will add a link to the Jira ticket in the PR body. Jira status transitions are only performed when you explicitly ask.\n\n## How It Works\n\n### Phase 0: Context Gathering (automatic)\nDetects your repo's default branch, branch naming style, commit message conventions, and available issue trackers.\n\n### Phase 1: Branch Management\nFetches latest default branch, creates a properly-named feature branch, and sets upstream tracking.\n\n### Phase 2: Smart Commit\nAnalyzes changed files, plans atomic commits by directory/concern, generates messages matching your repo's style.\n\n### Phase 3: Pull Request\nCreates a PR via `gh` CLI with a generated title, summary bullets, commit list, and issue links.\n\n## Requirements\n\n- `git` — Any modern version\n- [`gh`](https://cli.github.com/) — GitHub CLI (for PR creation). Run `gh auth login` to authenticate.\n- Jira integration requires `curl` and the environment variables above.\n\n## Copy-Paste Examples\n\n```text\nStart working on dark mode for settings page\nCreate a branch for PROJ-123 login timeout fix\nCommit all current changes with atomic commits\nCreate a PR for PROJ-123 and move it to In Review\n```\n\n## Supported Agents\n\nWorks with any agent that supports the [Agent Skills](https://agentskills.io) standard:\n\nClaude Code, OpenCode, Cursor, Codex, Cline, GitHub Copilot, Windsurf, Roo Code, Amp, Gemini CLI, and [40+ more](https://skills.sh).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnianyi778%2Fbranch-commit-pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnianyi778%2Fbranch-commit-pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnianyi778%2Fbranch-commit-pr/lists"}