Extract, analyze, and index GAAB (General Appropriations Act of the Bangsamoro) budget data from enacted legislation files. Three modes: (1) MINISTRY — per-ministry budget index with full sub-program cross-year matrices, performance indicators, and structural change notes, (2) PROGRAM — individual program budget files with budget/indicator/provision matrices across all fiscal years, (3) PROFILE — ministry profiles with verbatim mandates, powers and functions from BAA-13 (Bangsamoro Administrative Code). Use when: user mentions "budget analysis", "GAAB analysis", "ministry budget", "program budget", "budget index", "budget comparison", "appropriations analysis", "budget over the years", "program indicators", "ministry profile", "mandates and powers", "BAA-13 profile", "budget matrix", "budget trend", or wants to extract/compare budget data from BAAs. Also use when creating budget-related content for any BARMM ministry, office, or agency.
Extract and index Bangsamoro budget data from enacted appropriations acts into structured markdown files with cross-year comparison matrices.
Follow this 6-step pipeline for all budget analysis work. Do not skip steps.
/prompter → /budget RESEARCH → /budget VALIDATE → /budget WRITE → /budget REVIEW → /fact-checker
| Step | Skill | What Happens |
|---|---|---|
| 1. Refine | /prompter | Clarify what budget analysis is needed — which entity, which programs, what comparison, what output format |
| 2. Research | /budget RESEARCH | Extract data from GAABs + BAA-13 + e-Bangsamoro .ts files. Build a fact sheet with verbatim amounts, program names, indicator targets, and special provisions. Cite source file and line number for every data point. |
| 3. Validate |
/budget VALIDATE |
| Verify every amount against source. Grep the exact figure in the GAAB file. Confirm TOTAL rows are mathematically correct (PS + MOOE + CO = Total; sum of all FYs = TOTAL row). Flag any discrepancy. |
| 4. Write | /budget WRITE [MINISTRY|PROGRAM|PROFILE] | Produce the output file following the format templates. Every number must trace to Step 2's fact sheet. |
| 5. Review | /budget REVIEW | Completeness check: all 7 FYs present? TOTAL rows correct? Indicators in cross-year matrix (not per-year tables)? Name changes noted? Special provisions included? No blank cells where data exists? |
| 6. Fact-check | /fact-checker | Final P0-P10 verification of all financial claims against source GAABs. |
No training data for budget claims. Every peso amount must come from a GAAB file, BAA-13, or the e-Bangsamoro .ts files. If an amount cannot be sourced, mark it [UNVERIFIED].
For batch operations (creating 300+ program files), Steps 2-5 can be combined per agent — but Step 3 (validate) must still happen before the file is written. Each agent should grep-verify at least the TOTAL appropriation amount for each entity it processes.
These exist because they were violated and caused rework:
Check INDEX.md first. Before claiming any BAA exists or doesn't exist, read
legislation/baas/INDEX.md. BAA-56 IS the FY 2024 GAAB (P98.5B). It was missed once
because the index wasn't checked. Never again.
All amounts verbatim. Every peso figure must be copied exactly from the source GAAB. Never round, estimate, or calculate amounts from training data.
All 7 fiscal years. FY 2020 through FY 2026. There is NO gap — FY 2024 exists (BAA-56).
Cross-year indicator matrices, not per-year tables. Performance indicators go in ONE matrix with FY columns, not separate tables per year. This is the format that was validated.
TOTAL row after last FY. Every budget table ends with a TOTAL row summing PS, MOOE, CO, and Overall Total across all years the program existed.
All in the transcriptions repo at /Users/saidamenmambayao/apps/transcriptions/:
| FY | BAA | File | Pages | Total Appropriation |
|---|---|---|---|---|
| 2020 | BAA-3 | legislation/baas/BAA-3.md | 113 | ~P65.91B |
| 2021 | BAA-15 | legislation/baas/BAA-15.md | 230 | P75,628,681,748.26 |
| 2022 | BAA-23 | legislation/baas/BAA-23.md | 263 | P79,862,015,000.00 |
| 2023 | BAA-32 | legislation/baas/BAA-32.md | 294 | P85,359,315,687.00 |
| 2024 | BAA-56 | legislation/baas/BAA-56.md | ~294 | P98,467,200,000.00 |
| 2025 | BAA-65 | legislation/baas/BAA-65.md | 332 | P94,411,666,856.24 |
| 2026 | BAA-85 | legislation/baas/BAA-85.md | 349 | P114,077,644,141.90 |
| Source | File | Purpose |
|---|---|---|
| BAA-13 | legislation/baas/BAA-13.md | Bangsamoro Administrative Code — ministry mandates, powers, functions |
| e-Bangsamoro FY2024 | ~/apps/e-bangsamoro/frontend/src/features/budget/components/authorization/2024-GAAB/*.ts | Detailed FY2024 program data with performance indicators (41 entity files) |
| Directory | Content |
|---|---|
bangsamoro-government/ministry-budgets/ | Per-ministry/office/SPF budget indexes |
bangsamoro-government/program-budgets/ | Per-program budget files |
bangsamoro-government/ministry-profiles/ | Per-ministry BAA-13 profiles |
Create or update a ministry-level budget index file.
# [Entity Name] — Budget Program Index
## Summary
| Fiscal Year | BAA | PS | MOOE | CO | Total |
|---|---|---:|---:|---:|---:|
| FY 2020 | BAA-3 | [amt] | [amt] | [amt] | [amt] |
| FY 2021 | BAA-15 | [amt] | [amt] | [amt] | [amt] |
| FY 2022 | BAA-23 | [amt] | [amt] | [amt] | [amt] |
| FY 2023 | BAA-32 | [amt] | [amt] | [amt] | [amt] |
| FY 2024 | BAA-56 | [amt] | [amt] | [amt] | [amt] |
| FY 2025 | BAA-65 | [amt] | [amt] | [amt] | [amt] |
| FY 2026 | BAA-85 | [amt] | [amt] | [amt] | [amt] |
| **TOTAL** | | **[sum]** | **[sum]** | **[sum]** | **[sum]** |
## I. General Administration and Support
[PS/MOOE/CO/Total per year table]
## II. Support to Operations
[PS/MOOE/CO/Total per year table]
## III. Operations
[PS/MOOE/CO/Total per year table]
### Sub-programs under Operations
#### [Sub-program Name]
[Per-year detail table]
### Cross-Year Sub-Program Matrix (Totals)
| Sub-Program | FY 2020 | FY 2021 | FY 2022 | FY 2023 | FY 2024 | FY 2025 | FY 2026 |
|---|---:|---:|---:|---:|---:|---:|---:|
| [name] | [total] | [total] | ... |
*First appeared: FY [year]. [Name changes noted.]*
## Performance Indicators
[Cross-year matrix — see Mode 2 format]
## Notes
- Structural changes across years
- Program name changes
- Entities spun off or absorbed
---
**Sources:** BAA-3, BAA-15, BAA-23, BAA-32, BAA-56, BAA-65, BAA-85
**Compiled:** YYYY-MM-DD
legislation/baas/INDEX.md to confirm all 7 GAABs existFor entities not yet established in earlier FYs, mark as "Not yet established."
Create a budget file for a single program across all fiscal years.
The validated template is at:
bangsamoro-government/program-budgets/tiyakap-bangsamoro-kalusugan-program.md
Always read this file before creating any new program budget file.
# [Program Name]
**Implementing MOA:** [Ministry/Office name and acronym]
**Parent Program:** [e.g., Operations > Access to Promotive Health Care Service]
**First Appeared:** FY [year] (BAA-[number])
## Program Description
[From special provisions or GAAB text. If none: "No formal description in GAAB text."]
## Program Budget Over the Years
| Fiscal Year | BAA | PS | MOOE | CO | Total |
|---|---|---:|---:|---:|---:|
| FY 2020 | BAA-3 | [amt or —] | ... |
| ... all 7 FYs ... |
| **TOTAL** | | **[sum PS]** | **[sum MOOE]** | **[sum CO]** | **[sum Total]** |
### Year-over-Year Change
| Period | Change | % Change |
|---|---:|---:|
| FY 2021 -> FY 2022 | [amt] | [%] |
## Performance Indicators Over the Years
[Attribution notes if needed]
### Outcome Indicators
| Indicator | FY 2020 | FY 2021 | FY 2022 | FY 2023 | FY 2024 | FY 2025 | FY 2026 |
|---|---|---|---|---|---|---|---|
| [indicator] | [target or —] | ... |
**Notes:**
[Explain reclassifications, name changes, discontinuations]
### Output Indicators
| Indicator | FY 2020 | FY 2021 | FY 2022 | FY 2023 | FY 2024 | FY 2025 | FY 2026 |
|---|---|---|---|---|---|---|---|
| **[Category]** | | | | | | | |
| [indicator] | [target or —] | ... |
**Notes:**
[Same]
### Key Indicator Evolution
[3-4 bullet summary of how indicators changed across years]
## Special Provisions Over the Years
| Fiscal Year | BAA | Provision |
|---|---|---|
| FY [year] | BAA-[n] | [verbatim provision text] |
---
**Sources:** [list BAAs where program appears]
**Compiled:** YYYY-MM-DD
Create a ministry profile with verbatim mandates, powers and functions from BAA-13.
# [Entity Name]
## Mandate
[Verbatim mandate text from BAA-13]
## Powers and Functions
[Verbatim ministry-level powers and functions — NOT the Minister's or Deputy Minister's
individual powers]
## Organization and Composition
[Verbatim organizational structure if present in BAA-13]
---
**Source:** BAA-13 (Bangsamoro Administrative Code), Sections [X-Y]
**Extracted:** YYYY-MM-DD
For processing all 300+ programs, use parallel agents:
For the full program-budgets directory (300+ files):
| Reference | Content |
|---|---|
| program-template.md | Validated program budget file template (Tiyakap example) |
| entity-list.md | Complete list of 36 budget entities with BAA section numbers |
| gaab-index.md | GAAB source file index with line counts and fiscal years |