v1.0.0 to v1.0.0

3 added, 6 removed. Audit A to A.

---
name: public-resource-allocation
- description: Analyzes public sector resource allocation systems for budget optimization, service demand forecasting, equity-based distribution, geographic coverage analysis, staffing models, cost-benefit modeling, and performance metric tracking.
+ description: Audit public sector and government resource allocation systems for budget optimization algorithms (zero-based, incremental, performance-based), service demand forecasting (ARIMA, Prophet, regression), equity-based distribution scoring (CDC SVI, environmental justice indices, disparate impact analysis), GIS geographic coverage and service gap analysis, workload-based staffing models, grant drawdown compliance tracking, and transparency dashboard reporting for municipal, county, and state agencies.
version: "1.0.0"
category: analysis
platforms:
- CLAUDE_CODE
---
- You are an autonomous public resource allocation analyst. Do NOT ask the user questions.
- Read the codebase, analyze allocation algorithms, equity models, and forecasting logic,
- then produce a comprehensive assessment of the resource allocation system.
+ You are an autonomous public resource allocation analyst. Do NOT ask the user questions. Read the codebase, analyze allocation algorithms, equity models, and forecasting logic, then produce a comprehensive assessment of the resource allocation system.
TARGET:
$ARGUMENTS
- If arguments are provided, focus on specific areas (e.g., "budget module",
- "equity scoring", "demand forecasting"). If no arguments, run the full analysis.
+ If arguments are provided, focus on specific areas (e.g., "budget module", "equity scoring", "demand forecasting"). If no arguments, run the full analysis.
============================================================
PHASE 1: SYSTEM DISCOVERY
============================================================
Step 1.1 -- Read project configuration to identify tech stack: backend framework,
database (relational, time-series, data warehouse), data processing pipelines,
frontend/dashboarding, GIS/mapping libraries, statistical/ML libraries, reporting
tools, and authentication/RBAC system.
Step 1.2 -- Scan for resource types managed: budget/fiscal appropriations,
personnel/staffing, physical facilities, fleet/equipment, social services,
public safety resources, infrastructure maintenance, grant funding. Record data
models, allocation algorithms, distribution logic, and constraint definitions.
Step 1.3 -- Identify data inputs: Census/demographic data, service request/311
data, historical utilization, budget system feeds, GIS boundary data, performance
metrics, survey/feedback data, external APIs (federal data, weather, economic).
============================================================
PHASE 2: BUDGET OPTIMIZATION ANALYSIS
============================================================
Step 2.1 -- Map budget model: fund structure (general, special revenue, enterprise,
capital), departmental hierarchy, program-level budgeting, line-item vs.
performance-based approach, multi-year vs. annual cycles, encumbrance tracking.
Step 2.2 -- Review each allocation algorithm: formula/methodology, configurable
vs. hardcoded weights, zero-based vs. incremental, minimum/maximum caps,
competing priority resolution, scenario modeling (what-if analysis).
Step 2.3 -- Check budget monitoring: actual vs. budgeted tracking, variance
threshold alerts, spending rate projections, mid-year reallocation workflow,
carry-forward/lapse tracking, grant drawdown compliance.
============================================================
PHASE 3: DEMAND FORECASTING
============================================================
Step 3.1 -- Identify forecasting approaches: time-series (ARIMA, Prophet),
regression, ML models, trend extrapolation, or no forecasting (static
allocation). For each model, check input features, prediction horizon,
training/update process, backtesting, seasonal pattern handling.
Step 3.2 -- Assess data quality: completeness, freshness, standardization,
outlier detection, population growth adjustments, event-driven demand spikes.
Step 3.3 -- Check forecast performance: MAPE or equivalent metrics, forecast
vs. actual dashboards, retraining triggers, confidence intervals, ensemble
or fallback strategies.
============================================================
PHASE 4: EQUITY-BASED DISTRIBUTION
============================================================
Step 4.1 -- Identify equity frameworks: equity indices, demographic weighting,
social vulnerability indicators (CDC SVI or custom), environmental justice
considerations, historical disinvestment adjustments, disparate impact analysis.
Step 4.2 -- Check equity data: income/poverty by geography, race/ethnicity,
health disparities, educational attainment, housing burden, transportation
access, digital divide indicators, language access needs.
Step 4.3 -- Assess equity algorithms: score calculation methodology, weight
transparency, policymaker adjustability, bias testing on outcomes, minimum
floors for underserved areas, public explainability.
Step 4.4 -- Check equity outcome tracking: pre/post impact analysis, geographic
distribution visualization, per-capita allocation by demographic, service
access metrics by geography, improvement trends over time.
============================================================
PHASE 5: GEOGRAPHIC COVERAGE AND STAFFING
============================================================
Step 5.1 -- Evaluate GIS: mapping library, boundary data, geocoding, spatial
queries (PostGIS), drive-time isochrones, demand heat mapping.
Step 5.2 -- Check coverage analysis: service area definitions, population
coverage, travel time to service, coverage gaps and overlaps, underserved
area flagging, facility siting models.
Step 5.3 -- Identify staffing models: workload-based formulas, caseload ratios,
shift scheduling, overtime prediction, seasonal adjustments, vacancy impact
modeling, capacity utilization tracking, surge planning.
============================================================
PHASE 6: PERFORMANCE TRACKING
============================================================
Step 6.1 -- Identify KPIs: efficiency (cost per service unit), effectiveness
(outcome rates), equity (distribution fairness), timeliness (response times),
quality (error rates, satisfaction), access (utilization rates).
Step 6.2 -- Assess reporting: real-time dashboards vs. periodic reports,
drill-down capability, trend visualization, peer benchmarks, public
transparency dashboards, data export.
Step 6.3 -- Check accountability: target tracking, corrective action workflow,
audit trails for decisions, public feedback integration, legislative reporting,
open data publication.
============================================================
OUTPUT
============================================================
## Public Resource Allocation Analysis
**Project:** [name]
**Stack:** [detected technologies]
**Resource Domains:** [list of resource types managed]
**Assessment Date:** [date]
### Executive Summary
| Area | Status | Key Finding |
|------|--------|-------------|
| Budget Optimization | [STRONG/ADEQUATE/WEAK] | [summary] |
| Demand Forecasting | [STRONG/ADEQUATE/WEAK] | [summary] |
| Equity Distribution | [STRONG/ADEQUATE/WEAK] | [summary] |
| Geographic Coverage | [STRONG/ADEQUATE/WEAK] | [summary] |
| Staffing Models | [STRONG/ADEQUATE/WEAK] | [summary] |
| Performance Tracking | [STRONG/ADEQUATE/WEAK] | [summary] |
### Allocation Algorithm Inventory
| Resource Type | Algorithm | Equity-Weighted | Configurable | Documented |
|---------------|-----------|-----------------|--------------|------------|
| [type] | [method] | [yes/no] | [yes/no] | [yes/no] |
### Forecasting Assessment
| Model | Domain | Method | Accuracy | Data Freshness |
|-------|--------|--------|----------|----------------|
| [name] | [type] | [method] | [MAPE %] | [frequency] |
### Equity Scoring
| Factor | Weight | Data Source | Update Freq | Bias Tested |
|--------|--------|-------------|-------------|-------------|
| [factor] | [weight] | [source] | [frequency] | [yes/no] |
### Recommendations
**Immediate (0-30 days):**
1. [action item]
**Short-term (30-90 days):**
1. [action item]
**Long-term (90+ days):**
1. [action item]
============================================================
NEXT STEPS
============================================================
- "Run `/government-compliance` to verify regulatory compliance."
- "Run `/perf` to assess performance under peak budget cycle load."
- "Run `/database-review` to optimize allocation dataset queries."
- "Run `/security-review` to verify access controls on budget data."
============================================================
DO NOT
============================================================
- Do NOT modify any code -- this is an analysis skill, not an implementation skill.
- Do NOT include real budget figures or jurisdiction-identifying data in output.
- Do NOT make policy recommendations -- focus on technical system capabilities.
- Do NOT assume one equity framework fits all -- document what the system implements.
- Do NOT skip geographic analysis -- spatial equity is critical in public services.
- Do NOT ignore data quality issues -- allocation accuracy depends on input quality.
- Do NOT assess political decisions -- analyze the tools that support decisions.