Project Manager
Use this skill for repo-local project management.
Automation Preference
- Prefer Node scripts for repo-local automation.
- If a script needs dependencies, add them as repo
devDependencies and invoke them through pnpm or node.
- Avoid Python for repo-local skill automation unless a Python-native library is clearly worth the extra runtime dependency.
Canonical Locations
- Treat GitHub Issues and PRs as the public source of truth.
- Treat
.local/work-items.yaml as a derived repo-local cross-reference map that can be regenerated from the project board.
- Put temporary issue writeups only in
.local/issue-drafts/.
- Do not create parallel scratch directories or alternate tracker files for the same purpose.
- Read repo-specific values from
.agents/project-manager.config.json before taking action.
Expected config shape:
{
"repo": "owner/repo",
"projectOwner": "owner",
"projectNumber": 7,
"projectUrl": "https://github.com/orgs/owner/projects/7",
"trackerPath": ".local/work-items.yaml",
"issueDraftDir": ".local/issue-drafts",
"localIdPrefix": "item-"
}
Refresh the derived tracker with:
pnpm project:sync
Workflow
- Explore before filing.
- Read local code, tests, docs, and upstream references before creating or expanding an issue.
- Prefer issue bodies with concrete findings, source pointers, and proposed scope over vague placeholders.
- Draft locally when the issue is non-trivial.
- Write or refresh the issue body in
.local/issue-drafts/<nn>-<slug>.md.
- Reuse that file for edits; do not fork the same issue into multiple local scratch notes.
- Create or update the GitHub issue.
- Use
gh issue create, gh issue edit, and gh issue comment.
- Keep titles short and imperative, usually starting with
Plugin:.
- Add the issue or PR to the configured project board.
- Read the configured project number and owner from
.agents/project-manager.config.json.
- Use
gh project item-add <project-number> --owner <project-owner> --url <issue-or-pr-url>.
- For issues, set
Status, Priority, Size, and Workflow.
- For PRs, usually set
Status and Workflow; Priority and Size are issue-planning fields unless there is a specific reason to set them on the PR item.
- Sync
.local/work-items.yaml.
- Treat the tracker as derived state, not a hand-edited source of truth.
- Regenerate it with
pnpm project:sync after issue/project changes.
- Prefer pushing durable notes into GitHub issues or
.local/issue-drafts/; the tracker should stay compact.
- Reconcile if anything drifted.
- Use
gh issue list, gh project item-list, and gh project field-list to confirm GitHub matches the local tracker.
Field Conventions
Status: Inbox, Ready, In Progress, In Review, Done
Workflow: Plan, Review, Threads, Worktrees, Branches
Triage heuristic for this repo:
P0: quick wins that shrink the board fast, plus high-visibility completeness or pizazz work
P1: larger user-visible completeness work
P2: infrastructure, refactors, planning spikes, and corner-case cleanup unless they are very quick
Size heuristic:
XS or S: obvious quick wins
M: bounded feature or bug fix with a few moving parts
L: visible feature touching multiple flows
XL: large architectural or cross-cutting work
Command Pattern
Start by discovering current project field ids instead of assuming they never change:
gh repo view --json nameWithOwner,url
gh project view <project-number> --owner <project-owner> --format json
gh project field-list <project-number> --owner <project-owner> --format json
Typical flow:
gh issue create --repo <owner/repo> --title "<title>" --body-file .local/issue-drafts/<file>.md
gh project item-add <project-number> --owner <project-owner> --url <issue-or-pr-url> --format json
gh project item-edit --project-id <project-id> --id <item-id> --field-id <field-id> --single-select-option-id <option-id>
gh project item-list <project-number> --owner <project-owner> --format json
Refresh the local tracker:
pnpm project:sync
Gotchas
- Verify the repo slug before issue commands. Treat
.agents/project-manager.config.json as canonical when it is present.
gh project item-edit needs opaque ids for the project, item, field, and single-select option. Always discover them with gh project view ... and gh project field-list ... instead of assuming cached ids still match.
- GitHub Projects custom views are not well-supported by
gh or GraphQL mutations. Reading views works, but creating/editing/copying views is still better done in the web UI or browser automation. gh project copy does not carry over custom views.
.local/work-items.yaml is currently issue-only. Add PRs to the project board, but do not expect pnpm project:sync to mirror PR items into the local tracker.
.local/issue-drafts/<nn>-<slug>.md filenames are local scratch ids, not GitHub issue numbers. Keep them stable enough to reuse, but do not try to force them to match the eventual GitHub issue number.
Tracker Shape
Each .local/work-items.yaml item should keep:
local_id
title
repo
source_note
github.issue_number
github.issue_url
github.project_number
github.project_url
github.project_item_id
state.issue_state
state.project_status
state.workflow
state.priority
state.size
- optional branch / PR fields
- concise
notes
Keep notes factual and short. Store raw findings and writeups in the issue draft file or GitHub issue, not as sprawling tracker prose.
1---2name: project-manager3description: Manage GitHub issues and the GitHub Project board for the current repository, while keeping the local tracker in sync. Use when the user wants to capture freeform requirements as issues, flesh out issue descriptions from repo or upstream research, triage Priority/Size/Workflow/Status, add issues or PRs to the repo's configured project board, or reconcile GitHub state with `.local/work-items.yaml`.4---56# Project Manager78Use this skill for repo-local project management.910## Automation Preference1112- Prefer Node scripts for repo-local automation.13- If a script needs dependencies, add them as repo `devDependencies` and invoke them through `pnpm` or `node`.14- Avoid Python for repo-local skill automation unless a Python-native library is clearly worth the extra runtime dependency.1516## Canonical Locations1718- Treat GitHub Issues and PRs as the public source of truth.19- Treat `.local/work-items.yaml` as a derived repo-local cross-reference map that can be regenerated from the project board.20- Put temporary issue writeups only in `.local/issue-drafts/`.21- Do not create parallel scratch directories or alternate tracker files for the same purpose.22- Read repo-specific values from `.agents/project-manager.config.json` before taking action.2324Expected config shape:2526```json27{28 "repo": "owner/repo",29 "projectOwner": "owner",30 "projectNumber": 7,31 "projectUrl": "https://github.com/orgs/owner/projects/7",32 "trackerPath": ".local/work-items.yaml",33 "issueDraftDir": ".local/issue-drafts",34 "localIdPrefix": "item-"35}36```3738Refresh the derived tracker with:3940```bash41pnpm project:sync42```4344## Workflow45461. Explore before filing.4748- Read local code, tests, docs, and upstream references before creating or expanding an issue.49- Prefer issue bodies with concrete findings, source pointers, and proposed scope over vague placeholders.50512. Draft locally when the issue is non-trivial.5253- Write or refresh the issue body in `.local/issue-drafts/<nn>-<slug>.md`.54- Reuse that file for edits; do not fork the same issue into multiple local scratch notes.55563. Create or update the GitHub issue.5758- Use `gh issue create`, `gh issue edit`, and `gh issue comment`.59- Keep titles short and imperative, usually starting with `Plugin:`.60614. Add the issue or PR to the configured project board.6263- Read the configured project number and owner from `.agents/project-manager.config.json`.64- Use `gh project item-add <project-number> --owner <project-owner> --url <issue-or-pr-url>`.65- For issues, set `Status`, `Priority`, `Size`, and `Workflow`.66- For PRs, usually set `Status` and `Workflow`; `Priority` and `Size` are issue-planning fields unless there is a specific reason to set them on the PR item.67685. Sync `.local/work-items.yaml`.6970- Treat the tracker as derived state, not a hand-edited source of truth.71- Regenerate it with `pnpm project:sync` after issue/project changes.72- Prefer pushing durable notes into GitHub issues or `.local/issue-drafts/`; the tracker should stay compact.73746. Reconcile if anything drifted.7576- Use `gh issue list`, `gh project item-list`, and `gh project field-list` to confirm GitHub matches the local tracker.7778## Field Conventions7980- `Status`: `Inbox`, `Ready`, `In Progress`, `In Review`, `Done`81- `Workflow`: `Plan`, `Review`, `Threads`, `Worktrees`, `Branches`8283Triage heuristic for this repo:8485- `P0`: quick wins that shrink the board fast, plus high-visibility completeness or pizazz work86- `P1`: larger user-visible completeness work87- `P2`: infrastructure, refactors, planning spikes, and corner-case cleanup unless they are very quick8889Size heuristic:9091- `XS` or `S`: obvious quick wins92- `M`: bounded feature or bug fix with a few moving parts93- `L`: visible feature touching multiple flows94- `XL`: large architectural or cross-cutting work9596## Command Pattern9798Start by discovering current project field ids instead of assuming they never change:99100```bash101gh repo view --json nameWithOwner,url102gh project view <project-number> --owner <project-owner> --format json103gh project field-list <project-number> --owner <project-owner> --format json104```105106Typical flow:107108```bash109gh issue create --repo <owner/repo> --title "<title>" --body-file .local/issue-drafts/<file>.md110gh project item-add <project-number> --owner <project-owner> --url <issue-or-pr-url> --format json111gh project item-edit --project-id <project-id> --id <item-id> --field-id <field-id> --single-select-option-id <option-id>112gh project item-list <project-number> --owner <project-owner> --format json113```114115Refresh the local tracker:116117```bash118pnpm project:sync119```120121## Gotchas122123- Verify the repo slug before issue commands. Treat `.agents/project-manager.config.json` as canonical when it is present.124- `gh project item-edit` needs opaque ids for the project, item, field, and single-select option. Always discover them with `gh project view ...` and `gh project field-list ...` instead of assuming cached ids still match.125- GitHub Projects custom views are not well-supported by `gh` or GraphQL mutations. Reading views works, but creating/editing/copying views is still better done in the web UI or browser automation. `gh project copy` does not carry over custom views.126- `.local/work-items.yaml` is currently issue-only. Add PRs to the project board, but do not expect `pnpm project:sync` to mirror PR items into the local tracker.127- `.local/issue-drafts/<nn>-<slug>.md` filenames are local scratch ids, not GitHub issue numbers. Keep them stable enough to reuse, but do not try to force them to match the eventual GitHub issue number.128129## Tracker Shape130131Each `.local/work-items.yaml` item should keep:132133- `local_id`134- `title`135- `repo`136- `source_note`137- `github.issue_number`138- `github.issue_url`139- `github.project_number`140- `github.project_url`141- `github.project_item_id`142- `state.issue_state`143- `state.project_status`144- `state.workflow`145- `state.priority`146- `state.size`147- optional branch / PR fields148- concise `notes`149150Keep notes factual and short. Store raw findings and writeups in the issue draft file or GitHub issue, not as sprawling tracker prose.