Skip to main content

Shared Claude Code workflow for Quber projects (Jira + GitHub automation)

Project description

Quber Workflow

Shared Claude Code workflow for Quber projects (Jira + GitHub automation).

PyPI Python License

Overview

quber-workflow provides a standardized Claude Code workflow across all Quber projects, including:

  • Jira Workflow Agent - Automated Jira issue management
  • GitHub Workflow Agent - Automated PR and branch workflows
  • Skills - Bash scripts for Jira and GitHub operations
  • GitHub Actions - Automated Jira status transitions
  • Documentation - Workflow specs and PR evidence guidelines

Features

  •  Deny-by-default permissions - Enforces proper agent delegation
  •  Git worktree workflow - Prevents branch pollution
  •  Jira automation - Status transitions on branch/PR events
  •  PR evidence requirements - Embedded quality standards
  •  Context-efficient - 95%+ reduction vs MCP servers

Installation

# Using pip
pip install quber-workflow

# Using uv (recommended)
uv pip install quber-workflow

Usage

Initialize New Project

# Navigate to your project directory
cd my-quber-project

# Initialize workflow
quber-workflow init \
  --project=my-project \
  --package=my_project \
  --repo=username/my-project \
  --jira-key=QUE

This creates:

  • .claude/agents/ - jira-workflow and github-workflow agents
  • .claude/skills/ - jira-operations and github-operations skills
  • .claude/settings.json - deny-based permissions
  • .github/workflows/jira-transition.yml - Jira automation
  • docs/ - workflow specifications and guidelines

Update Existing Project

# Update workflow files to latest version
quber-workflow update

Migrate Existing Project

# Migrate with automatic backup
quber-workflow migrate

Environment Variables

Set these for Jira and GitHub operations:

# GitHub (for gh CLI)
export GH_TOKEN="ghp_..."
# or
export GITHUB_PERSONAL_ACCESS_TOKEN="ghp_..."

# Jira (for REST API)
export ATLASSIAN_SITE_NAME="yoursite.atlassian.net"
export ATLASSIAN_USER_EMAIL="your.email@example.com"
export ATLASSIAN_API_TOKEN="your-api-token"

GitHub Secrets

Configure these secrets for GitHub Actions:

  • JIRA_BASE_URL - Your Jira site URL
  • JIRA_USER_EMAIL - Jira account email
  • JIRA_API_TOKEN - Jira API token

Architecture

Agent-Based Workflow

Main Claude Agent (quber-analyst)
    \x00> jira-workflow agent (via Task tool)
       \x00> jira-operations skill (bash scripts)
           \x00> Jira REST API
    \x00> github-workflow agent (via Task tool)
        \x00> github-operations skill (bash scripts)
            \x00> gh CLI / GitHub API

Why This Approach?

  • Minimal context overhead - ~100 tokens vs 46k with MCP servers
  • On-demand loading - Skills load only when agents are invoked
  • No external dependencies - Just bash, curl, jq, and gh CLI
  • Easy debugging - Scripts are visible and testable
  • Full control - Auditable code in your repository

Documentation

Development

Setup

# Clone repository
git clone https://github.com/xmandeng/quber-workflow.git
cd quber-workflow

# Install dependencies
uv sync

# Run tests
uv run pytest

# Type checking
uv run mypy src/

# Linting
uv run ruff check src/

Build and Publish

# Build package
uv build

# Publish to Test PyPI
uv publish \
  --publish-url https://test.pypi.org/legacy/ \
  --username __token__ \
  --password $TEST_PYPI_TOKEN

# Publish to Production PyPI
uv publish --username __token__ --password $PYPI_TOKEN

Requirements

  • Python >= 3.9
  • gh CLI (for GitHub operations)
  • jq (for JSON parsing)
  • curl (for Jira REST API)

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Related Projects

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quber_workflow-0.1.2.tar.gz (45.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quber_workflow-0.1.2-py3-none-any.whl (64.3 kB view details)

Uploaded Python 3

File details

Details for the file quber_workflow-0.1.2.tar.gz.

File metadata

  • Download URL: quber_workflow-0.1.2.tar.gz
  • Upload date:
  • Size: 45.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for quber_workflow-0.1.2.tar.gz
Algorithm Hash digest
SHA256 55edd526eaeef799494b6072765612b5aed7034c509325fb09afcb4d0d7ce30a
MD5 b3c366834c64178482a4dbe8f21cac06
BLAKE2b-256 ed5b23b09e372b83e358b782b5ef787dc4787805aacfcb7617044d98f5739b59

See more details on using hashes here.

File details

Details for the file quber_workflow-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: quber_workflow-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 64.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for quber_workflow-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68aba64a3c012f93c3ccaeb7cefb73d82a0d49c8cde859f5d9a1b17695b8d132
MD5 b67a7e6a64800f9d1d24cccbceb3b838
BLAKE2b-256 bd1c276395bd7c79e02914f85b6039df6ba9b6ed1a018fc408ebc962d9a283fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page