AGENT SKILL

projects-admin

Use to administer a GitHub Projects (v2) board or its issues: create or configure a board, set fields, add/move/bulk-edit items, fill gaps, or list pending issues and start one. Not for finding untracked TODOs in code (/scan) or cleaning local sessions/disk (/cleanup). Triggers — "qué hay pendiente en el board", "mueve a Done", "add to board", "what's pending on the board", /board.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 3
Forks
3

01 前言 Front Matter

name
projects-admin
description
Use to administer a GitHub Projects (v2) board or its issues: create or configure a board, set fields, add/move/bulk-edit items, fill gaps, or list pending issues and start one. Not for finding untracked TODOs in code (/scan) or cleaning local sessions/disk (/cleanup). Triggers — "qué hay pendiente en el board", "mueve a Done", "add to board", "what's pending on the board", /board.
user-invocable
false

02 资源文件 22

03 SKILL.md 正文

projects-admin — GitHub Projects (v2) Board & Issue Admin

This skill covers the full lifecycle of a GitHub Projects v2 board and its items: creation, field setup, issue management, bulk operations, CI automation, and gap detection/fill via /board fill.

Diagrams in any artifact (plan/epic/issue body, handoff, status update): never hand-draw ASCII art — use the diagram-authoring skill (Mermaid by default, escalate to D2/Graphviz via Kroki). See the diagram-authoring skill.


Step 0 — Identity (always first)

Before every operation in this skill, apply the gh-account skill to load GH_TOKEN for the correct account: your account map's default owner (/board setup), or another account when the user names it or a board returns 403.

$env:GH_TOKEN = (& "${CLAUDE_PLUGIN_ROOT}/scripts/Get-GhAccount.ps1").Token              # default
$env:GH_TOKEN = (& "${CLAUDE_PLUGIN_ROOT}/scripts/Get-GhAccount.ps1" -Account work).Token # another

Every gh project and gh issue command below assumes $env:GH_TOKEN is already set for the correct account. Never run gh auth switch — it mutates global gh state.


Anchoring: one board, one repo

A board must be linked to exactly one origin repo before issue operations begin.

# Resolve the origin repo (run inside the repo's working directory)
$origin = gh repo view --json nameWithOwner -q .nameWithOwner
# e.g. "CSalcedoDataBI/agentic-board"

Link or verify the link:

gh project link <num> --owner <owner> --repo $origin

Hard rule: create issues ONLY in the origin owner/repo resolved above. Never write issues to a random shared board or unrelated repo.

Hard rule — a board only holds items from its own repo. Before item-add, the item's source repo MUST equal the board's anchored repo. A board is about ONE project; never mix in issues from a different (e.g. private) project. Verify and refuse otherwise:

# the URL you are about to add must belong to the board's anchored repo
$anchored = "<owner>/<repo>"                      # the repo this board is linked to
if ($url -notmatch [regex]::Escape("github.com/$anchored/")) {
  throw "Refusing: $url is not from $anchored. Add it to that project's OWN board instead."
}
gh project item-add <num> --owner <owner> --url $url

This keeps a public tool's board free of any private-project content (and vice versa).


Field conventions

All boards in this ecosystem use three single-select fields with these exact names:

Field Purpose Typical options
Status Workflow stage (kanban column) Backlog, In Progress, In Review, Blocked, Done
Priority Urgency / triage P0, P1, P2, P3
Target Milestone / sprint target Sprint labels or date strings

For the exact commands to create these fields and set their values on items, see references/board-ops.md.


The big verbs live in per-verb references (#573)

The full contracts for the heavyweight verbs are NOT in this file — they load on demand so the always-on payload stays small. When a request routes to one of them, READ its reference and follow it exactly:

Verb Full contract
/board work (incl. parallel fleet, locks, session registry, compaction survival) references/verbs-work.md
/board fill (gap detection, drafts→issues, CI mode) references/verbs-fill.md
/board doctor (branch/worktree audit — never git branch --merged here) references/verbs-doctor.md
/board plan references/verbs-plan.md
/board field references/verbs-field.md
/board changelog references/verbs-changelog.md
/board handoff references/verbs-handoff.md
/board close-cycle references/verbs-close-cycle.md
/board telemetry references/verbs-telemetry.md
/board triage references/verbs-triage.md
/board actions-cost (read-only, MEASURED audit of a repo's Actions cost: usage endpoint + workflow rules) references/verbs-actions-cost.md
Machine housekeeping — sessions sweep, transcripts, disk, plugins (NOT board work) the /cleanup command and its cleanup-ops skill (/board plugins and /board close-cycle --all are one-release aliases routed there)

Routing table

Intent Reference file Command family
Get the repo's board (reuse, don't duplicate) references/best-practices.md Resolve-Board.ps1 (use BEFORE create)
Create a new project board (only if none) references/board-ops.md via Resolve-Board.ps1 → gh project create
Delete a board (backup first, always) references/best-practices.md Backup-Board.ps1 → gh project delete
Link board to a repo references/board-ops.md gh project link
Create / list fields (Status, Priority, Target) references/board-ops.md gh project field-create, gh project field-list
Apply a whole field preset (EN/ES, custom values) references/field-presets.md Apply-FieldPreset.ps1 -Lang en|es
Standardize an EXISTING board onto the preset (renames Todo→Backlog in place, keeps assignments) references/field-presets.md Apply-FieldPreset.ps1 — default since #300 (preview with -DryRun, opt out with -NoMigrate)
Board that ALREADY has both Todo and Backlog (moves items, then deletes the legacy option) references/field-presets.md Apply-FieldPreset.ps1 -MergeConflicts (preview with -DryRun)
Set a field value on an item references/board-ops.md gh project item-edit
Bulk-fill a custom field across ALL items (by rule) references/board-ops.md scripts/Set-BoardField.ps1
Detect and fill board gaps references/verbs-fill.md /board fill / --dry-run / --auto
See pending / in-flight work (state of play first, then the pending list) / start an issue references/verbs-work.md Board-Work.ps1 -ListBoards / -ProjectNum / -Start
Manage views / inspect board references/board-ops.md gh project view, gh project item-list
Create an issue with a label references/issue-ops.md gh issue create
Create / ensure a label exists references/issue-ops.md gh label create --force
Add an existing issue/PR to the board references/issue-ops.md gh project item-add
Create a native sub-issue (parent→child) references/issue-ops.md Board-Breakdown.ps1 -Parent <n> -Tasks ... (native addSubIssue)
Place a full GitHub URL link in issue body references/issue-ops.md inline in --body
Move an item's Status field references/issue-ops.md + references/board-ops.md gh project item-edit (single-select set)
Bulk move items to a status references/issue-ops.md + references/board-ops.md loop over item-list → item-edit
Bulk close issues references/issue-ops.md loop over gh issue list → gh issue close
Bulk label issues references/issue-ops.md loop over issues → gh issue edit --add-label
Install CI auto-add workflow references/automation.md drop-in YAML
Install issue forms + PR template Install-RepoTemplates.ps1 copies presets/templates/ into .github/, ensures form labels exist, never overwrites without -Force
Apply the label taxonomy Apply-LabelPreset.ps1 idempotent gh label create --force from presets/labels.json; type labels feed Board-Fill, blocked feeds work; never deletes
Break a big issue into sub-issues Board-Breakdown.ps1 -Parent <n> -Tasks ... native sub-issues via addSubIssue; refuses a CLOSED parent; task-list checkboxes are the fallback for tiny pieces
Post a board status update Post-BoardStatusUpdate.ps1 -ProjectNum <n> createProjectV2StatusUpdate; body auto-generated from live counts + next pending, or -Body/-Status override
Turn a plan into epic + sub-issues Board-Plan.ps1 -Title "plan: X" -Tasks ... ensures plan labels, creates epic, reuses Board-Breakdown (native sub-issues), Resolve-Board (no duplicates), registers all on the board; doc links must be full blob URLs on pushed refs
Audit a repo's GitHub Actions cost (measured minutes + workflow cost rules, read-only) references/verbs-actions-cost.md Get-ActionsCostAudit.ps1 (no fix mode; -Local audits the working tree)
Audit stale / unmerged / ghost branches and worktrees references/verbs-doctor.md Board-Doctor.ps1 (read-only; -Fix confirms per branch)
Verify the board is fully worked (0 pending) — /board complete ${CLAUDE_PLUGIN_ROOT}/commands/board.md Assert-BoardComplete.ps1 -ProjectNum <n> -Owner <o> (exit 0 = PASS/clear, exit 1 lists pending; CI-friendly)
Release a BI artifact (model/report) — the definition of done — /board bi-checklist references/bi-release-checklist.md the M4.1 spec: what the gate enforces (BPA + TMDL-breaking), what stays external to Fabric (deploy/refresh), what a human confirms

Safe operations — MANDATORY (see references/best-practices.md)

These two rules are not optional and must be followed every time:

1. Resolve-or-reuse before creating a board (never duplicate)

Before init, add, or registering a plan, resolve the existing board instead of blindly creating one — duplicate boards are the most common mistake:

$num = & "${CLAUDE_PLUGIN_ROOT}/scripts/Resolve-Board.ps1" -Owner <owner> -Repo <owner>/<repo>
# reuses the repo's board (canonical title "<repo> — Roadmap" or one containing the repo name),
# creating + linking + describing only if none exists. NEVER call `gh project create` directly.

2. Always back up before deleting (unconditional, do NOT ask)

Any gh project delete MUST be preceded by a full backup — automatically, without asking:

& "${CLAUDE_PLUGIN_ROOT}/scripts/Backup-Board.ps1" -Number <num> -Owner <owner>
# writes a JSON snapshot (project+fields+items) AND a restorable live clone, THEN you may delete.

The backup happens unconditionally; the delete itself still needs explicit user confirmation.

Safety — destructive operations require dry-run + confirmation

Before running any operation that mutates more than one item (bulk move, bulk close, bulk label, project delete), you MUST:

  1. Print the plan: list every item that would be affected (title, number, current state).
  2. Pause and ask the user to confirm before proceeding (the backup in rule 2 above already ran).
  3. Only after explicit confirmation, run the mutation.

Example pattern for bulk close:

# Step 1 — dry run: show what would close
$issues = gh issue list --repo $origin --state open --label board --json number,title | ConvertFrom-Json
$issues | ForEach-Object { Write-Host "Would close #$($_.number): $($_.title)" }

# Step 2 — confirm
# Ask user: "Ready to close these N issues? (yes/no)"

# Step 3 — execute only after "yes"
$issues | ForEach-Object { gh issue close $_.number --repo $origin }

The same dry-run pattern applies to gh project delete and any bulk item-edit loop.


Plan → epic

Turning a plan into an epic + sub-issues is /board plan (references/verbs-plan.md, Board-Plan.ps1).


Verification checklist

Before reporting a board operation as complete, confirm:

  • Account pinned and project scope verified? (gh-account step 0 done)
  • Board linked to THIS repo, not to a random or shared board?
  • Any links placed in issue bodies or project descriptions are full https://github.com/<owner>/<repo>/blob/<branch>/... URLs (never relative paths)?
  • Added items are visible on the board after gh project item-add (spot-check with gh project item-list)?
  • Dry-run was shown to the user and confirmed before any destructive op?
  • Resolve-or-reuse was used (no new duplicate board created)?
  • A backup ran (JSON + live clone) BEFORE any gh project delete?

04 同仓库更多 Skills

CSalcedoDataBI
CSalcedoDataBI/agentic-board

tools-catalog

Engine behind /tools: browse the project's referenced external tools (knowledge registry plus toolkit presets) and install one or all missing. Triggers — "instala esta herramienta", "qué herramientas hay para instalar".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

tmdl-review

Use when asked whether a Power BI or Fabric TMDL model change is safe to merge: diffs *.tmdl between a PR or two refs and classifies each change BREAKING, WARNING or INFO. Not for writing or editing TMDL/DAX, or for best-practice (BPA) rule checks. Triggers — "revisa el diff TMDL", "¿este cambio rompe el modelo?", "review the TMDL diff", "is this model change safe to merge".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

skills-organize

Engine behind /skills organize: catalog and health report of the skills in a repo, and a dry-run-first reorganize into .claude/skills/<project>/<skill>/. Triggers — "organiza mis skills", "cataloga las skills".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

skills-create

Engine behind /skills create and improve: build or raise a skill end to end (prior art, author, pressure test, audit gate, trigger eval). Triggers — "crea una skill", "mejora esta skill".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

skills-bootstrap

Engine behind /skills bootstrap: install the missing tools of a profile (quality, or bi = Fabric/Power BI) without duplicating installed ones, keeping each LICENSE. Triggers — "bootstrap skills", "instala el toolkit de BI", "qué me falta del perfil bi".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

skills-audit

Engine behind /skills audit: static health audit of skill descriptions plus an on-demand trigger eval; files a sanitized issue to the repo that owns a failing skill, behind a human gate. Triggers — "audita mis skills", "esta skill no dispara", "por qué no se activó la skill".

★ 3