Skip to content
Back to skills

Bb Contribute

ASecurity

Contribute a general improvement to this library's workflow back to upstream Workory as a pull request. Decides whether the change is general or personal, exports only workflow files, runs a privacy scan, drafts the PR text and submits it after the user confirms. Runs only when the user explicitly types /bb-contribute; user mode only.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentspythongogit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add oluul/Workory --skill bb-contribute --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bb Contribute?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bb Contribute
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oluul-bb-contribute/badge)](https://www.skillsdirectory.com/skills/oluul-bb-contribute)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bb-contribute
description: Contribute a general improvement to this library's workflow back to upstream Workory as a pull request. Decides whether the change is general or personal, exports only workflow files, runs a privacy scan, drafts the PR text and submits it after the user confirms. Runs only when the user explicitly types /bb-contribute; user mode only.
disable-model-invocation: true
---

# bb-contribute: contribute upstream

Rules: `CLAUDE.md` at the repository root (§15, §16). **Run only when the user explicitly types `/bb-contribute`** (§14 item 7); **user mode only.** If any step turns up personal information, stop at once.

Fixed strings are shown in English; write them into files in the library's language and reply in the language the person is speaking (CLAUDE.md §9, §13; `.workory/vocabulary.md`).

## Steps

1. **Pick the change to contribute**: usually the `bb-workflow` commits just made. Confirm the commit range (`<BASE>..<HEAD>`) with the user.

2. **Decide whether it is general or personal** (the assistant decides, the user confirms; **lean towards general**):
   - **General**: useful to every user, e.g. fixing a gap in the rules, a new skill, a stronger check, better templates and explanations.
   - **Personal**: only about the owner's own wording style, personal defaults and the like, of no help to others → explain why, do not contribute, stop. Anything that fixes a problem for others, fills a gap or makes the process more robust is not personal.
   - **Mixed** (also when unsure): say which parts are general and which are personal; offer to contribute only the general part (removing the personal part by hand on the upstream branch if needed).
   Tell the user your decision and reasons; continue after they confirm.

3. **Preview the scope**: `python3 .workory/scripts/workory.py export <BASE> <HEAD>` shows which workflow files would be contributed; it also points out personal files it leaves out.

4. **Prepare a branch on the latest upstream** (in a temporary directory outside the repository, so this library is not touched):
   - Use a fresh disposable clone of the verified upstream URL, then create `contrib/<short English description>` from the fetched upstream main. Verify the clone, branch, remote, clean tree and absence of an unfinished Git operation before applying changes.
   - In **this library**, run `python3 .workory/scripts/workory.py apply-to <upstream clone> <BASE> <HEAD>`: it three-way merges by file content and stages the result, skipping changes already upstream; exit code 2 means conflicts: explain each one to the user and resolve it in the upstream clone.
   - Add an English entry under `## [Unreleased]` in `CHANGELOG.md`, grouped as Added / Changed / Fixed; a breaking change must carry a **Migration:** note.
   - If the change touches a skill, update its `SKILL.zh-CN.md` (the Chinese translation in the same folder) to match; upstream's `check.py` compares their structure.
   - Run `python3 .workory/scripts/check.py` in the upstream clone; it must pass.

5. **Privacy scan**: Stage only the reviewed paths with `git -C <upstream clone> add -- <paths>`, then run `git -C <upstream clone> diff --cached HEAD | python3 .workory/scripts/workory.py privacy -` (`--cached` is required, otherwise new files are not scanned) (run it in this library, so the word list comes from this library's config and records). On any hit, stop and show the user what matched (if it is a false positive, such as a generic word that happens to match personal information, add the word to `privacy_allow` in `.workory/config.md`); go back to this library, make the workflow files generic (through `bb-workflow`), and start again from step 3. Once it passes, commit in the upstream clone: English Conventional Commits (§10), with no personal information in the commit message.

6. **Draft the PR text** (following upstream `.github/PULL_REQUEST_TEMPLATE.md`): motivation (the problem you hit, without personal material) / changes / impact on existing users (breaking or not, how to migrate) / verification (checks passed, how it was tested) / privacy confirmation. 📝 Show the title and body to the user and revise as they ask.

7. **Push and open the PR** (after the user confirms): in the disposable clone, recheck the branch, clean tree, operation state and the exact push URL. Push only the reviewed contribution branch explicitly. If rejected, stop and inspect before proposing a retry. Never force-push.
   - With write access to upstream: push the branch to upstream and open a PR against `main`.
   - Without write access: fork upstream Workory on GitHub (a public fork holds only the workflow, no personal data), push to the fork, and open a PR to upstream.
   - Open the PR with whatever tool is available: `gh pr create`, or the GitHub integration in the assistant's environment; if neither is available, give the compare link and the full text and ask the user to create it on the web.

8. **Wrap up**: close with a ✅ block including the PR link; explain that once upstream merges and releases it, `bb-sync` brings it back.

Files in this skill

  • SKILL.md5 KB
  • SKILL.zh-CN.md4.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.