Skill: Cost Management
SkillDev toolsUsar cuando se gestionan timesheets, presupuestos, facturas o forecasting de costes.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Skill: Cost Management skill
What this skill tells your AI
The instructions your AI receives, as published by gonzalezpazmonica/savia in .claude/skills/cost-management/SKILL.md and read by ahel’s review.
Prerequisito: @docs/rules/domain/billing-model.md, @docs/rules/domain/cost-tracking.md
Orquesta timesheet logging, budget tracking, forecasting y generación de invoices.
Flujo 1 — Log de horas (log)
- Validar entrada:
date,user,task_id,project,hours(todos requeridos)hourses decimal ≥ 0.5usertiene perfilprojectexiste enprojects/{proj}/CLAUDE.md
- Leer rates de
.flow-data/rates.json(o.flow-data/{project}/.rates.local.json) - Calcular cost = hours × rate_for_role
- Crear entrada JSONL en
.flow-data/timesheets/{user}/{YYYY-MM}.jsonl - Actualizar ledger: añadir entrada type "time" a
.flow-data/ledger/{project}.jsonl - Output: confirmación + acumulado del mes
Error handling:
- Horas duplicadas (misma user/task/date): advertir, preguntar si actualizar
- Rate no encontrado: sugerir
/cost-center budget --create-rates - User sin perfil: sugerir
/profile-setup {user}
Flujo 2 — Informe de costes (report)
Parámetros: --period {YYYY-MM}, --team {nombre}, --project {slug}, --client {slug}
- Recopilar timesheet entries según filtros
- Agregar por:
- Proyecto
- Equipo (si
--team) - Cliente (si
--client) - Rol
- Calcular KPIs: cost-per-SP, utilization-rate, burn-rate
- Generar tabla resumen:
Project │ Hours │ Cost (€) │ Team │ Status ────────────┼────────┼──────────┼───────────┼───────── sala-reservas │ 160 │ 13,600 │ Backend │ On-budget api-v3 │ 120 │ 14,400 │ Backend │ 5% over - Guardar en
output/cost-report-{periodo}.md
Flujo 3 — Gestión de presupuestos (budget)
Subcomandos:
--create {project}: crear presupuesto inicial (solicitar total, moneda, fechas)--update {project}: modificar presupuesto (total, alerts)--burn {project}: mostrar burn actual vs. presupuesto--status: comparar todos los proyectos
Output: tabla con budget/actual/remaining/% spent + alertas
Project │ Total │ Spent │ Remaining │ Status
────────────────┼─────────┼────────┼───────────┼──────────
sala-reservas │ €50,000 │ €42,500 │ €7,500 │ 85% ⚠️
api-v3 │ €60,000 │ €48,000 │ €12,000 │ 80% ⚠️
Flujo 4 — Pronóstico (forecast)
- Leer ledger del proyecto
- Calcular:
elapsed_days= hoy - fecha_inicio_presupuestoburn_rate= actual_burn / elapsed_daysremaining_days= fecha_fin_presupuesto - hoyEAC= burn_rate × (elapsed_days + remaining_days)
- Comparar
EACvs.BAC:- Si EAC > BAC: mostrar riesgo y opciones (reducir scope, extender)
- Si EAC < BAC: proyecto bajo presupuesto
Output: gráfico ASCII de proyección + recomendaciones
Forecast: EAC = €55,200 (BAC = €50,000)
Risk: 10.4% over budget
Options:
1. Reduce scope (descope €5,200 worth of features)
2. Extend timeline (add 2 weeks)
3. Increase budget (request €5,200 approval)
Flujo 5 — Generación de invoices (invoice)
Parámetros: --client {slug}, --period {YYYY-MM}, --status draft|final
- Recopilar timesheet entries para cliente + período
- Agrupar por (project, role)
- Generar invoice JSON con schema de @billing-model.md
- Guardar en
output/invoices/{client}-{YYYY-MM}.json - Status = "draft" (editable), cambiar a "final" cuando aprobado
- Output: resumen + ruta del PDF
Errores
| Problema | Solución |
|---|---|
| Horas duplicadas | Advertir, preguntar si mezclar o descartar |
| Rate no definido | Crear rate primero con /cost-center budget --create-rates |
| Proyecto sin presupuesto | Crear presupuesto con /cost-center budget --create {project} |
| Período sin datos | Mostrar período más reciente disponible |
Seguridad
- Rates are git-ignored:
.flow-data/rates.jsonnunca en commit - No PII in invoices: solo @handles, nunca nombres reales
- Ledger is immutable: no editar historial, solo adjustments adelante
- Auditable: cada entrada tiene timestamp y user para trazabilidad
Signals
- GitHub stars
- 50
- Forks
- 12
- Last commit
- Sep 2026
ahel recommends instead
Advanced
- Catalog kind
- skill
- Gateway key
cost-management-gonzalezpazmonica- Source
- github.com/gonzalezpazmonica/savia