/pm-workspace:capacity-planningfrom pm-workspace
Calculates team capacity for sprints: available hours, focus factor, overload alerts. Queries Azure DevOps iterations API and outputs capacity table per person with alerts.
Ships in pm-workspace. 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.
Gestión completa de capacidades del equipo: consulta, cálculo y alertas de sobre-asignación.
Prerequisito: Leer primero .opencode/skills/azure-devops-queries/SKILL.md
TEAM_HOURS_PER_DAY=8 # horas de trabajo por día
TEAM_FOCUS_FACTOR=0.75 # 75% del tiempo es productivo
OVERLOAD_THRESHOLD=1.0 # > 100% = sobre-cargado
WARNING_THRESHOLD=0.85 # > 85% = al límite
ITERATIONS_API="$ORG_URL/$PROJECT/$TEAM/_apis/work/teamsettings/iterations"
PAT=$(cat $AZURE_DEVOPS_PAT_FILE)
AUTH="Authorization: Basic $(echo -n ":$PAT" | base64)"
ITER_RESPONSE=$(curl -s "$ITERATIONS_API?\$timeframe=current&api-version=7.1" \
-H "$AUTH" -H "Content-Type: application/json")
ITER_ID=$(echo $ITER_RESPONSE | jq -r '.value[0].id')
ITER_NAME=$(echo $ITER_RESPONSE | jq -r '.value[0].name')
CAPACITIES=$(curl -s "$ITERATIONS_API/$ITER_ID/capacities?api-version=7.1" -H "$AUTH")
echo $CAPACITIES | jq '.value[] | {persona: .teamMember.displayName, capacidadDia: .activities[0].capacityPerDay}'
Formato esperado: {displayName, uniqueName, activities[], daysOff[]}
TEAM_DAYS_OFF=$(curl -s "$ITERATIONS_API/$ITER_ID/teamdaysoff?api-version=7.1" -H "$AUTH")
echo $TEAM_DAYS_OFF | jq '.daysOff[] | {start, end}'
Detalle: @references/capacity-formula.md
Algoritmo:
Fórmula: horas_disponibles = (dias_habiles - dias_off) * horas_dia * factor_foco
Obtener RemainingWork y CompletedWork por persona desde WIQL y cruzar con la capacidad del sprint completo:
Utilización = sum(RemainingWork + CompletedWork por persona) / horas_disponibles_por_persona
Las horas disponibles cubren el sprint entero, así que el numerador incluye también lo ya completado.
Umbrales:
Sin asignar no recibe capacidad ni alertasscripts/capacity-calculator.py./scripts/azdevops-queries.sh items > items.json # stream de objetos: se acepta
./scripts/azdevops-queries.sh capacities > caps.json
python3 scripts/capacity-calculator.py --items items.json --capacities caps.json \
[--team-days-off teamdaysoff.json] --sprint-start 2026-09-07 --sprint-end 2026-09-18 \
[--team-hours-per-day 8] [--focus-factor 0,75] [--output-json]
--capacities: salida de azdevops-queries.sh capacities, API cruda (value[].teamMember/activities/daysOff) o mapa {persona: {horas_disponibles}}. horas_dia = suma de capacityPerDay de las actividades.--team-days-off; solo restan si caen en día hábil.[WARN]): pasar --team-days-off.--capacities salen aunque no tengan items (carga 0): útil en sprint planning.azdevops-queries.sh capacities e items leen la iteración actual; para otra iteración, obtener sus capacidades por API (Flujo 2 con su ITER_ID).4,5). Exit: 0 ok · 1 entrada inválida · 2 argumento inválido (fechas invertidas, una sola fecha, foco fuera de (0,1]).curl -s -X PATCH "$ITERATIONS_API/$ITER_ID/capacities/$TEAM_MEMBER_ID?api-version=7.1" \
-H "$AUTH" -H "Content-Type: application/json" \
-d '{"activities": [{"name": "Development", "capacityPerDay": 6}], "daysOff": []}'
⚠️ Confirmar con usuario antes de ejecutar.
| Error | Solución |
|---|---|
404 en capacities | Usar team ID en lugar de nombre |
| Capacidades vacías | Activar sprint en Team Settings |
| Festivos ignorados | Añadir manualmente via API o UI |
references/capacity-formula.md — Fórmulas de cálculoreferences/capacity-api.md — Estructura respuesta API../sprint-management/SKILL.md/report-capacityWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
139 skills in this plugin
/adversarial-securityUsar cuando se necesita auditar la seguridad de un proyecto con pipeline Red Team / Blue Team./agent-code-mapUsar cuando un agente necesita conocer la arquitectura del proyecto sin leer ficheros completos./agent-file-mapUsar cuando se trabaja con ficheros externos al workspace que los agentes deben localizar./agent-messagingUsar cuando un agente debe enviar un mensaje a otro agente con roles y receipts, sin pasar por el usuario. Triggers: mensaje a otro agente, agent-message, notify agent, inbox.Claude Code refuses to install this plugin
.claude-plugin/plugin.json: dependencies: Invalid input: expected array, received object, author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job