بنقرة واحدة
department-audit
Audit a federal department's grant spending - recipients, concentration, amendments, and risks
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Audit a federal department's grant spending - recipients, concentration, amendments, and risks
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Map the gift-flow network around a charity to find connected organizations and clusters
Side-by-side comparison of multiple charities on financial and circular gifting metrics
Run the circular gifting detection pipeline and interpret the top results
Profile a charity's finances, gift network, circular flows, and accountability metrics
Analyze timing of circular gift flows - same-year symmetric and adjacent-year round-trips
Analyze a federal funding program - recipients, spending patterns, concentration, and risks
| name | department-audit |
| description | Audit a federal department's grant spending - recipients, concentration, amendments, and risks |
| argument-hint | [department name or keyword] |
| disable-model-invocation | true |
Audit the grant spending of department $ARGUMENTS.
node -e "const db=require('./lib/db'); db.query(\`SELECT DISTINCT owner_org_title FROM fed.grants_contributions WHERE owner_org_title ILIKE '%\$ARGUMENTS%' LIMIT 10\`).then(r=>{r.rows.forEach(x=>console.log(x.owner_org_title));db.end();})"
node -e "const db=require('./lib/db'); db.query(\`SELECT COUNT(*) FILTER (WHERE is_amendment=false) AS originals, COUNT(*) FILTER (WHERE is_amendment=true) AS amendments, ROUND(SUM(agreement_value) FILTER (WHERE is_amendment=false)::numeric/1e9,2) AS original_billions, COUNT(DISTINCT recipient_legal_name) AS recipients, COUNT(DISTINCT prog_name_en) AS programs, COUNT(DISTINCT recipient_province) AS provinces FROM fed.grants_contributions WHERE owner_org_title ILIKE '%DEPT_NAME%'\`).then(r=>{console.table(r.rows);db.end();})"
node -e "const db=require('./lib/db'); db.query(\`SELECT recipient_legal_name AS name, recipient_type, recipient_province AS prov, COUNT(*) AS grants, ROUND(SUM(agreement_value)::numeric/1e6,1) AS millions FROM fed.grants_contributions WHERE owner_org_title ILIKE '%DEPT_NAME%' AND is_amendment=false AND agreement_value>0 GROUP BY 1,2,3 ORDER BY SUM(agreement_value) DESC LIMIT 20\`).then(r=>{console.table(r.rows);db.end();})"
node -e "const r=require('./data/reports/recipient-concentration.json'); const dept=r.sections.hhi_by_department.data.find(d=>d.department.toLowerCase().includes('SEARCH')); if(dept)console.log(JSON.stringify(dept,null,2)); else console.log('Not found in HHI report');"
node -e "const r=require('./data/reports/amendment-creep.json'); const dept=r.sections.dept_amendment_rates.data.find(d=>d.department.toLowerCase().includes('SEARCH')); if(dept)console.log(JSON.stringify(dept,null,2));"
node -e "const db=require('./lib/db'); db.query(\`SELECT recipient_province AS prov, COUNT(*) AS grants, ROUND(SUM(agreement_value)::numeric/1e6,1) AS millions FROM fed.grants_contributions WHERE owner_org_title ILIKE '%DEPT_NAME%' AND is_amendment=false AND recipient_province IS NOT NULL AND LENGTH(recipient_province)=2 GROUP BY 1 ORDER BY SUM(agreement_value) DESC\`).then(r=>{console.table(r.rows);db.end();})"