Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问clear审计通过

bitbucket-workflow位桶工作流程

Agent Skill

bitbucket-workflow 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,985

周安装

297

GitHub Stars

87

下载量

2,447
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bitbucket-workflow(位桶工作流程)
来源仓库:https://github.com/mindrally/skills
仓库路径:skills/bitbucket-workflow
安装命令:
npx skills add https://github.com/mindrally/skills --skill bitbucket-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/mindrally/skills --skill bitbucket-workflow

简介

bitbucket-workflow 提供 Bitbucket 最佳实践指导,涵盖 PR 创建、Pipeline 配置与 Jira 集成。

  • 强调小颗粒度 PR、自动化测试与分支保护策略的重要性。
  • 推荐 Gitflow 分支模型与安全审查机制,提升团队协作效率。
  • 可作为开发规范参考,但不直接执行代码变更或部署操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Bitbucket Workflow Best Practices

You are an expert in Bitbucket workflows, including pull requests, Bitbucket Pipelines, Jira integration, and Atlassian ecosystem best practices.

Core Principles

  • Use pull requests for all code changes with proper review processes
  • Implement CI/CD with Bitbucket Pipelines using bitbucket-pipelines.yml
  • Leverage Jira integration for seamless issue tracking
  • Follow branching models like Gitflow for structured development
  • Maintain security through branch permissions and access controls

Pull Request Best Practices

Creating Effective Pull Requests

  1. Keep PRs focused and reviewable

- One feature or fix per PR - Include context in the description

  1. PR Title Convention

- Reference Jira issue: PROJ-123: Add user authentication - Use conventional format: feat: implement login page

  1. PR Description Template ## Summary Brief description of changes and motivation. ## Jira Issue [PROJ-123](https://your-org.atlassian.net/browse/PROJ-123) ## Changes - List of specific changes made ## Testing - How the changes were tested - Manual testing steps ## Checklist - [] Tests added/updated - [] Documentation updated - [] Pipeline passes

Code Review in Bitbucket

  1. Add reviewers - Select appropriate team members
  2. Use tasks - Create tasks for actionable feedback
  3. Approve or request changes - Clear approval workflow
  4. Resolve discussions - Address all feedback before merge

Merge Strategies

  • Merge commit: Preserves full branch history
  • Squash: Combines commits into single commit
  • Fast-forward: Linear history when possible

Bitbucket Pipelines

Basic Pipeline Configuration

image: node:20

definitions:
  caches:
    npm: ~/.npm

  steps:
    - step: &build-step
        name: Build
        caches:
          - npm
        script:
          - npm ci
          - npm run build
        artifacts:
          - dist/**

    - step: &test-step
        name: Test
        caches:
          - npm
        script:
          - npm ci
          - npm test

pipelines:
  default:
    - step: *build-step
    - step: *test-step

  branches:
    main:
      - step: *build-step
      - step: *test-step
      - step:
          name: Deploy to Production
          deployment: production
          trigger: manual
          script:
            - pipe: atlassian/aws-s3-deploy:1.1.0
              variables:
                AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
                AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
                AWS_DEFAULT_REGION: 'us-east-1'
                S3_BUCKET: 'my-bucket'
                LOCAL_PATH: 'dist'

    develop:
      - step: *build-step
      - step: *test-step
      - step:
          name: Deploy to Staging
          deployment: staging
          script:
            - ./deploy.sh staging

Pipeline Features

Parallel Steps

pipelines:
  default:
    - parallel:
        - step:
            name: Unit Tests
            script:
              - npm test:unit
        - step:
            name: Integration Tests
            script:
              - npm test:integration
        - step:
            name: Lint
            script:
              - npm run lint

Conditional Steps

pipelines:
  pull-requests:
    '**':
      - step:
          name: Build and Test
          script:
            - npm ci
            - npm test
          condition:
            changesets:
              includePaths:
                - "src/**"
                - "package.json"

Custom Pipes

pipelines:
  default:
    - step:
        name: Deploy
        script:
          - pipe: atlassian/aws-ecs-deploy:1.6.0
            variables:
              AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
              AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
              AWS_DEFAULT_REGION: 'us-east-1'
              CLUSTER_NAME: 'my-cluster'
              SERVICE_NAME: 'my-service'
              TASK_DEFINITION: 'task-definition.json'

Services for Testing

definitions:
  services:
    postgres:
      image: postgres:15
      variables:
        POSTGRES_DB: test_db
        POSTGRES_USER: test_user
        POSTGRES_PASSWORD: test_pass
    redis:
      image: redis:7

pipelines:
  default:
    - step:
        name: Integration Tests
        services:
          - postgres
          - redis
        script:
          - npm ci
          - npm run test:integration

Caching

definitions:
  caches:
    npm: ~/.npm
    pip: ~/.cache/pip
    gradle: ~/.gradle/caches

pipelines:
  default:
    - step:
        caches:
          - npm
        script:
          - npm ci
          - npm run build

Jira Integration

Smart Commits

Enable smart commits to update Jira issues from commit messages:

PROJ-123 #comment Fixed the login redirect issue
PROJ-123 #time 2h 30m
PROJ-123 #done

Branch Naming

Include Jira issue key in branch names:

  • feature/PROJ-123-user-authentication
  • bugfix/PROJ-456-fix-login-redirect

This automatically links branches to issues.

Automation Rules

Set up Jira automation:

  • Move issue to "In Progress" when branch created
  • Move issue to "In Review" when PR opened
  • Move issue to "Done" when PR merged

Branching Models

Gitflow in Bitbucket

pipelines:
  branches:
    main:
      - step:
          name: Deploy Production
          deployment: production
          script:
            - ./deploy.sh production

    develop:
      - step:
          name: Deploy Staging
          deployment: staging
          script:
            - ./deploy.sh staging

    'release/*':
      - step:
          name: Release Build
          script:
            - npm run build:release

    'feature/*':
      - step:
          name: Feature Build and Test
          script:
            - npm ci
            - npm test

    'hotfix/*':
      - step:
          name: Hotfix Build
          script:
            - npm ci
            - npm test

Branch Permissions

Configure in Repository settings > Branch permissions:

Main branch:

  • No direct pushes
  • Require pull request
  • Minimum 1 approval
  • Require passing builds
  • Require all tasks resolved

Develop branch:

  • Require pull request
  • Minimum 1 approval
  • Require passing builds

Repository Management

Default Reviewers

Set up default reviewers for consistent code review:

  • Add team leads as default reviewers
  • Use CODEOWNERS-like patterns

Merge Checks

Enable merge checks:

  • Minimum approvals
  • No unresolved tasks
  • Passing builds
  • No changes requested

Access Levels

  • Admin: Full control
  • Write: Push and merge
  • Read: Clone and view

Security Best Practices

Repository Variables

Configure secure variables in Repository settings > Pipelines > Variables:

# Reference in pipeline
script:
  - echo "Deploying with token"
  - ./deploy.sh --token=$DEPLOY_TOKEN

Variable options:

  • Secured: Masked in logs
  • Required for deployment

IP Allowlisting

Restrict pipeline access to specific IP ranges for deployment environments.

Access Tokens

Use repository or project access tokens instead of personal tokens:

  • Scoped to specific repositories
  • Easier to rotate
  • Better audit trail

Deployment Environments

Environment Configuration

pipelines:
  branches:
    main:
      - step:
          name: Deploy to Production
          deployment: production
          script:
            - ./deploy.sh

Configure environments in Repository settings > Deployments:

  • Set environment variables per environment
  • Configure deployment permissions
  • View deployment history

Deployment Permissions

  • Require specific user approval for production
  • Set up deployment windows
  • Enable deployment freeze periods

Atlassian Ecosystem Integration

Confluence Integration

  • Link repositories to Confluence spaces
  • Embed code snippets
  • Auto-update documentation from commits

Trello Integration

  • Connect cards to commits
  • Automatic card movement on PR events

Opsgenie Integration

  • Trigger alerts from pipeline failures
  • On-call notifications for deployment issues

Best Practices Summary

  1. Use descriptive branch names with Jira keys
  2. Configure branch permissions for main branches
  3. Implement comprehensive pipelines with proper stages
  4. Use pipes for common tasks (AWS, Docker, etc.)
  5. Enable smart commits for Jira updates
  6. Set up deployment environments with proper permissions
  7. Use repository variables for secrets
  8. Configure merge checks for quality gates
  9. Leverage Atlassian integrations for seamless workflow

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

29.19%
按下载量换算714

Claude Code

23.05%
按下载量换算564

Antigravity

19.53%
按下载量换算478

Codex

12.76%
按下载量换算312

Gemini CLI

7.52%
按下载量换算184

github-copilot

3.55%
按下载量换算87

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills