/project-manager:pm-setupfrom project-manager
One-time setup of a project for the project-manager method. Writes the project's settings file (.claude/project-manager.json), checks the repository's issue types, prepares the GitHub Project board (a Deferred status, the close workflow switched off), creates the orphan rulings branch with an empty register, and adds the records worktree. Confirms each write with the user before making it. Use when the user runs /project-manager:pm-setup, or when /project-manager:pm finds no settings file. Run it in a local session whose GitHub CLI is signed in with the project scope.
Ships in project-manager. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Prepare this project for /project-manager:pm. Each step checks what already exists and only
adds what is missing, so running it again is safe. Ask the user before each write, in plain
words, with AskUserQuestion; a step the user declines is listed at the end as not done.
Find, and show the user in one short list:
gh repo view --json nameWithOwner,defaultBranchRef,owner, or the origin
remote) and whether its owner is a user or an organization;gh auth status shows the project scope;.claude/project-manager.json exists (check it with
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/pm_settings.py" --project-dir "$(git rev-parse --show-toplevel)");gh api repos/<owner>/<repo>/issue-types --jq '.[].name'.
When the list is empty, plans use type:task and type:bug labels instead, created in step 4.Ask the user for the values the file needs, with a recommended default for each:
tracker_repo: the repository that holds plans and units, as owner/name, default this one;decider: the name sessions use for the user;project: the GitHub Project for status, an existing one by number or a new one (step 3);notes_dir: an absolute path outside the repository for working files, default
$HOME/pm-notes/<repo> expanded to its full path (the settings check refuses a relative one);barred_paths: folders no session may open or list, written as git pathspec exclusions such
as :(top,exclude)secrets/; none by default. Prefer folders: a pattern with no fixed folder,
such as :(top,exclude,icase)*private*, still guards Bash searches, but the Grep and Glob
tools can't take exclusions, so the guard refuses them only when their root matches it;question_check (refuses a question to the user
that carries ids or file names), plain_language_stop (sends back a reply that does),
tracker_write_notice (reminds a session to tell the PM after a GitHub write),
barred_paths (refuses opening or searching the barred paths; a convenience for honest
sessions with limits listed in its script, not a sandbox: a command inside a script, alias or
function is not seen, and git diff or git log -p over a whole range can still show
barred content);shorthand.id_prefixes: the project's own ticket prefixes, if any, for the plain-language
checks.Write the file from ${CLAUDE_PLUGIN_ROOT}/skills/pm/templates/settings.example.json, check it
with pm_settings.py, and commit it on a branch for the user to merge; never push to the
default branch. Tell the user the hooks take effect in sessions started after the merge.
Needs the project scope; without it, list these steps for the user and move on.
gh project create --owner <owner> --title "<repo>",
then gh project link <number> --owner <owner> --repo <repo>.gh project field-list <number> --owner <owner> --format json. The Status
field should hold Todo, In Progress, Done and Deferred.Deferred is missing: on a board with no items, it may be added through the GraphQL
updateProjectV2Field mutation, which replaces the whole option list, so every existing
option must be sent back with its id. Get the user's yes first, and re-read the field after.
On a board that already has items, don't call it: ask the user to add Deferred in the
board's web page (the Status field's settings, "Add option").Priority field, create it:
gh project field-create <number> --owner <owner> --name Priority --data-type SINGLE_SELECT --single-select-options P0,P1,P2,P3.Create pm:stage, for stage issues (gh label create pm:stage --description "A stage of plans"). Only when the repository has no issue types, also create type:task and type:bug.
Nothing else needs a label.
If origin has no <rulings_branch>, create it as an orphan branch holding only the register,
without touching the user's checkout:
git worktree add --orphan -b <rulings_branch> "<notes_dir>/records"
(Git older than 2.42 has no --orphan for worktrees: create the branch with
git switch --orphan in a temporary clone instead.) Copy
${CLAUDE_PLUGIN_ROOT}/skills/pm/templates/rulings-register.md to <rulings_path> with its
example row removed, commit "Start the rulings register", and push it.
If it exists, add the worktree from it: git worktree add "<notes_dir>/records" <rulings_branch>.
Check whether a branch ruleset or protection rule would refuse a direct push to it
(gh api repos/<owner>/<repo>/rules/branches/<rulings_branch>), and whether the project's CI
runs on every branch push; tell the user about either.
A short plain list: what was set up, what the user still has to do (merge the settings branch,
board steps without the scope, the close workflow), and how to start a PM:
/project-manager:pm in a session titled <pm_title_prefix><topic>.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (eonraider/project-manager) — no native marketplace selected
npx claudepluginhub p/eonraider-project-manager2 skills in this plugin