{"id":50969412,"url":"https://github.com/cess15/claude-bitbucket-automation","last_synced_at":"2026-06-19T00:30:50.940Z","repository":{"id":355943317,"uuid":"1230340108","full_name":"cess15/claude-bitbucket-automation","owner":"cess15","description":"Claude Code plugin — automates Bitbucket PR creation from staged changes via MCP. No credentials exposed.","archived":false,"fork":false,"pushed_at":"2026-05-05T23:05:43.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-06T01:13:16.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/cess15.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-05-05T22:47:47.000Z","updated_at":"2026-05-05T23:05:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cess15/claude-bitbucket-automation","commit_stats":null,"previous_names":["cess15/claude-bitbucket-automation"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cess15/claude-bitbucket-automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cess15%2Fclaude-bitbucket-automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cess15%2Fclaude-bitbucket-automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cess15%2Fclaude-bitbucket-automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cess15%2Fclaude-bitbucket-automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cess15","download_url":"https://codeload.github.com/cess15/claude-bitbucket-automation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cess15%2Fclaude-bitbucket-automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34513020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"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":[],"created_at":"2026-06-19T00:30:50.112Z","updated_at":"2026-06-19T00:30:50.922Z","avatar_url":"https://github.com/cess15.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitbucket-automation\n\nClaude Code plugin — commit staged changes and create Bitbucket pull requests via MCP without exposing credentials.\n\n## What it does\n\n- Detects staged changes, generates a conventional commit message, and commits\n- Pushes the branch (with `-u` if new on remote)\n- Fetches default reviewers and checks for duplicate open PRs via MCP\n- Creates the PR on Bitbucket, or provides a copy-paste fallback if MCP is unavailable\n- Two modes: **auto** (no confirmations) and **safe** (confirm each step)\n\n## Prerequisites\n\n| Requirement | Notes |\n|-------------|-------|\n| [Claude Code](https://claude.ai/code) | CLI or desktop app |\n| [`@aashari/mcp-server-atlassian-bitbucket`](https://github.com/aashari/mcp-server-atlassian-bitbucket) | MCP server — handles Bitbucket auth. Plugin works without it but PR creation falls back to copy-paste. |\n| [caveman plugin](https://github.com/JuliusBrussee/caveman) *(optional)* | Provides `caveman-commit` skill for consistent conventional commit generation. Without it, commit messages are generated inline by the model. |\n| Node.js ≥ 16 | Required for the `check-deps.js` SessionStart hook |\n\n## Installation\n\n```bash\nclaude plugin marketplace add cess15/claude-bitbucket-automation \u0026\u0026 claude plugin install bitbucket-automation@bitbucket-automation\n```\n\n## Usage\n\n```\n/bitbucket-workflow              # asks for mode first\n/bitbucket-workflow auto         # execute all steps immediately\n/bitbucket-workflow safe         # confirm each step\n/bitbucket-workflow auto staging # PR to staging instead of develop\n```\n\n**Default target branch: `develop`.** Never `master` unless you specify it.\n\nYou can also trigger it naturally:\n\n\u003e \"create a PR\", \"open a pull request\", \"PR to develop\", \"commit and PR\"\n\n### Modes\n\n| Mode | Behaviour |\n|------|-----------|\n| `auto` | Commit → push → create PR with no further prompts |\n| `safe` | Shows full plan, then confirms commit / push / PR one at a time |\n\n## MCP configuration\n\nA SessionStart hook runs `hooks/check-deps.js` to detect whether the Bitbucket MCP server is configured. It scans these files in order:\n\n| File | Platform |\n|------|----------|\n| `~/.claude/settings.json` | All platforms (Claude Code default) |\n| `~/.claude.json` | Linux / macOS |\n| `%USERPROFILE%/.claude.json` | Windows / WSL (reads `USERPROFILE` env var) |\n\nA server entry is recognised as Bitbucket if its key contains `\"bitbucket\"` **or** its `command`/`args` contain `\"atlassian-bitbucket\"`.\n\n**`~/.claude/settings.json`** (recommended — Claude Code default):\n\n```json\n{\n  \"mcpServers\": {\n    \"bitbucket\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@aashari/mcp-server-atlassian-bitbucket\"]\n    }\n  }\n}\n```\n\n**`~/.claude.json`** (alternative, Linux/macOS):\n\n```json\n{\n  \"mcpServers\": {\n    \"bitbucket\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@aashari/mcp-server-atlassian-bitbucket\"]\n    }\n  }\n}\n```\n\nThe hook emits two flags into the session context:\n\n- `BITBUCKET_AUTOMATION_MCP=available|unavailable`\n- `BITBUCKET_AUTOMATION_CAVEMAN_COMMIT=available|missing`\n\nThese flags control fallback behaviour — no extra configuration needed beyond having the MCP server entry present.\n\n## Hard rules\n\n- Never adds `Co-Authored-By: Claude` or any AI attribution to commits or PRs\n- Never runs MCP tool names as shell commands\n- Never uses `curl` with tokens — MCP handles all auth\n- Never reads or writes `master` as default target branch\n\n## Limitations\n\n- Bitbucket only (no GitHub / GitLab)\n- Requires at least one `git remote` named `origin`\n- Branch names containing jq-special characters (`\"`, `\\`) are escaped automatically; other exotic characters may still cause issues in edge cases\n\n## License\n\nMIT © [Cesar Lata](https://github.com/cess15)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcess15%2Fclaude-bitbucket-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcess15%2Fclaude-bitbucket-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcess15%2Fclaude-bitbucket-automation/lists"}