Set up a private career library the first time someone uses Workory - choose the library's language, fill in the owner's name and mentors, create the directory skeleton, remove upstream-only files, and connect to upstream. Use when the user has just created a repository from the Workory template, or asks in any language to initialize, set up or get started.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Bb Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/oluul-bb-setup)
---
name: bb-setup
description: Set up a private career library the first time someone uses Workory - choose the library's language, fill in the owner's name and mentors, create the directory skeleton, remove upstream-only files, and connect to upstream. Use when the user has just created a repository from the Workory template, or asks in any language to initialize, set up or get started.
---
# bb-setup: initialize
Rules: `CLAUDE.md` at the repository root (§3, §9, §16).
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. **Check the environment**:
- If `.bragbook/` exists, stop without changing any files. Explain unsupported migration and the full-library backup in CLAUDE.md §12.
- If personal files already exist, inspect Git status and history, the config baseline and prior push outcome. Never re-copy a skeleton over personal files. If setup has finished, stop. For interrupted setup, verify the intended private origin with `python3 .workory/scripts/career_git.py recover OWNER/REPO`. Review the changed paths with the user, stop on unrelated changes, and resume only the unfinished steps without recreating files. If the setup commit already exists, check it and use the guarded push only if needed. Do not retry a rejected push until its cause is understood.
- Confirm the intended GitHub `OWNER/REPO`, then run `python3 .workory/scripts/career_git.py private OWNER/REPO` and fast-forward only as in CLAUDE.md §12. Stop on any failure. A public, internal, forked or unverified origin blocks setup. Only the user may change visibility. For a fork, suggest creating a separate private repository with “Use this template”.
- Verify this is a fresh template checkout. Stop if existing personal files or local commits need to be preserved. After updating, recheck the setup instructions and whether the library is already initialized.
2. **Confirm the library's language**: suggest a value (`en` or `zh-CN`) based on the language of the conversation and ask the user to confirm, e.g. "Your career library will be written in English, right?". A library uses one language (CLAUDE.md §9) and there is no command to switch after setup, so this step must wait for the user's explicit confirmation.
3. **Ask for personal settings** (one question at a time): name (`owner_name`), English name (`owner_name_en`, may be empty), whether they have mentors and what to call them (`mentors`, may be empty).
Immediately before copying or writing files, rerun the private preflight. If it fails, stop.
4. **Create the skeleton**: for the language confirmed above, copy the files under `.workory/templates/init/` (`en`) or `.workory/templates/init.zh-CN/` (`zh-CN`) to the repository root (`README.md`, `.workory/config.md`, `data/`, `memory/`; do not create `inbox/` or `mentor/` in advance, they are created on first use), and fill in the settings from steps 2 and 3 (`language:` in `.workory/config.md` holds the confirmed language); replace the name placeholder in `README.md` (`<owner_name>`, or its Chinese form in the Chinese skeleton; see `.workory/vocabulary.md`) with the name; set `updated` in each `data/` file to today's date.
5. **Remove upstream-only files**: `README.zh-CN.md`, `examples/`, `.workory/templates/init/` and `.workory/templates/init.zh-CN/` (delete both skeletons; the previous step is done with them), `CHANGELOG.md`, `workory.md`, `workory.zh-CN.md`, `CONTRIBUTING.md`, `TODOs.md`, `INSTALL.md`, `TRY.md`, `TRY.zh-CN.md`, `.workory/upstream`, `.github/PULL_REQUEST_TEMPLATE.md`, `.github/assets/` and the upstream-only `tests/` directory (keep `LICENSE`). Remove only reviewed files from the template. Stop if anything unexpected is in those paths. Keep the `SKILL.zh-CN.md` files under `.claude/skills/`: they are part of the workflow (Chinese translations of the skills, for reading).
6. **Connect to upstream**:
- Verify that the sole upstream fetch URL matches the configured Workory upstream. If missing, add it with `git remote add upstream https://github.com/<upstream from .workory/config.md>.git`. Stop on an unexpected URL, otherwise run `git fetch upstream`.
- Preview with `python3 .workory/scripts/workory.py baseline`. If zero workflow files differ, run `baseline --write` with the same script. Otherwise explain the differences and stop until the user confirms an exact upstream commit, then use `baseline --write <commit>`. Never assume the current upstream tip matches the template.
7. **Generate the README**: run `python3 .workory/scripts/workory.py readme` (it uses `managed.md` or `managed.zh-CN.md` according to `language`) to fill in the maintained part of README (quick start, commands, rules at a glance, for mentors, FAQ).
8. **Check and commit**: run `python3 .workory/scripts/check.py`; once it passes, stage only reviewed setup changes and commit `chore: initialize workory`. Push via CLAUDE.md §12 and report any failure plainly.
9. **Session title**: once you have the name, if the tool lets you set the session title, set it per `CLAUDE.md` §12 (in the library's language: `Workory · <name>'s career library` for an English library; the Chinese form is in `.workory/vocabulary.md`).
10. **Wrap up**: use a ✅ block only when §13 permits it, briefly explain how to start (the quick start in README, and a link to the full guide upstream), say in one sentence that each confirmed record is committed and only pushed after verifying the private repository (they can say "don't push" to keep commits local), and give 👉 You could say next, e.g. "First list all my jobs in order", "I have an old resume, import it".