Skip to content

Commit ea1c417

Browse files
authored
Plugin: add project manager skill gotchas (#23)
1 parent 4589fc8 commit ea1c417

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.agents/skills/project-manager/SKILL.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Use this skill for repo-specific project management on [OpenClaw Codex App Serve
2222

2323
Current repo-specific locations:
2424

25+
- Canonical repo: `pwrdrvr/openclaw-codex-app-server`
2526
- Project board: `https://github.com/orgs/pwrdrvr/projects/7`
2627
- Local tracker: `.local/work-items.yaml`
2728
- Issue drafts: `.local/issue-drafts/`
@@ -53,12 +54,13 @@ pnpm project:sync
5354
4. Add the issue or PR to project `7`.
5455

5556
- Use `gh project item-add 7 --owner pwrdrvr --url <issue-or-pr-url>`.
56-
- Set `Status`, `Priority`, `Size`, and `Workflow`.
57+
- For issues, set `Status`, `Priority`, `Size`, and `Workflow`.
58+
- 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.
5759

5860
5. Sync `.local/work-items.yaml`.
5961

60-
- Add or update the item entry with issue number, URLs, project item id, workflow, status, priority, size, and concise notes.
61-
- Update `last_synced_at` whenever the tracker changes.
62+
- Treat the tracker as derived state, not a hand-edited source of truth.
63+
- Regenerate it with `pnpm project:sync` after issue/project changes.
6264
- Prefer pushing durable notes into GitHub issues or `.local/issue-drafts/`; the tracker should stay compact.
6365

6466
6. Reconcile if anything drifted.
@@ -88,6 +90,8 @@ Size heuristic:
8890
Start by discovering current project field ids instead of assuming they never change:
8991

9092
```bash
93+
gh repo view --json nameWithOwner,url
94+
gh project view 7 --owner pwrdrvr --format json
9195
gh project field-list 7 --owner pwrdrvr --format json
9296
```
9397

@@ -106,6 +110,14 @@ Refresh the local tracker:
106110
pnpm project:sync
107111
```
108112

113+
## Gotchas
114+
115+
- Verify the repo slug before issue commands. The canonical repo is `pwrdrvr/openclaw-codex-app-server`; older shorthand like `pwrdrvr/openclaw-app-server` is wrong and will make `gh issue ...` fail.
116+
- `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.
117+
- 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.
118+
- `.local/work-items.yaml` is currently issue-only. Add PRs to project `7`, but do not expect `pnpm project:sync` to mirror PR items into the local tracker.
119+
- `.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.
120+
109121
## Tracker Shape
110122

111123
Each `.local/work-items.yaml` item should keep:

0 commit comments

Comments
 (0)