Skip to content

Initializing a Repository

Run bucky inside a git repo to auto-detect the owner/repo from the origin remote:

Terminal window
bucky

Or pass an explicit repository:

Terminal window
bucky fetch-rewards/my-service

The CLI will:

  1. Detect the project type — checks for package.json (web), go.mod (golang), or falls back to none
  2. Prompt you to confirm a preset — auto-detected preset is suggested, but you can override
  3. Create a branch in the target repo (default: chore/init-buck-bronson)
  4. Add workflow files to .github/workflows/ — thin caller workflows that delegate to reusable workflows in buck-bronson
  5. Create required labelsneeds-review, needs-attention, error
  6. Open a PR with everything configured
bucky [REPO] [OPTIONS]
FlagDefaultDescription
[REPO]Detected from git remoteTarget repository in owner/repo format
--preset <name>Auto-detectDev environment preset: web, golang, none
--workflows <list>bucky-dispatch,bucky-comments,bucky-code-reviewComma-separated workflows to include
--branch <name>chore/init-buck-bronsonBranch name for the PR
--dry-runPreview changes without writing to the remote
Terminal window
# Initialize with web preset
bucky fetch-rewards/my-service --preset web
# Only add code review workflow
bucky fetch-rewards/my-service --workflows bucky-code-review --preset web
# Preview what would happen
bucky --dry-run
# Use a custom branch name
bucky fetch-rewards/my-service --branch feat/add-claude-workflows

When run without a [REPO] argument, the CLI parses the local git origin remote URL (SSH or HTTPS) to resolve owner/repo. Both formats are supported:

  • git@github.com:fetch-rewards/my-service.git
  • https://github.com/fetch-rewards/my-service.git

Project type detection checks the remote repo for marker files:

Marker fileDetected preset
package.jsonweb
go.modgolang
Neithernone