Skill 16: Corporate Publication Compliance Checker — pre-submission validation for forward-looking language, disclaimers, citations, style guide adherence, and template conformance across weekly/flash/quarterly report types. Skill 17: Email Thread Intelligence — extracts real intent, requirements evolution, action items, unanswered questions, and conflicts from long multi-participant email threads and inaccurate meeting notes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3821 lines
204 KiB
Text
3821 lines
204 KiB
Text
Simulated Interaction: VS Code Copilot + agent-skill-creator
|
||
=============================================================
|
||
|
||
---
|
||
|
||
Setup (one time, already done)
|
||
|
||
git clone https://github.com/FrancyJGLisboa/agent-skill-creator.git ~/.claude/skills/agent-skill-creator
|
||
|
||
VS Code Copilot finds it at ~/.claude/skills/ automatically.
|
||
|
||
---
|
||
|
||
The Interaction
|
||
|
||
The user opens VS Code, opens Copilot Chat (Agent mode), and types:
|
||
|
||
User: /agent-skill-creator Every month I pull customer churn data from our Stripe API and Mixpanel, segment customers by plan tier and usage drop-off, calculate churn risk scores, and generate a PDF report for the leadership team. Here's our current script: scripts/churn_analysis.py
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
I'll build a complete agent skill from your churn analysis workflow. Let me start by reading your existing script and understanding the full picture.
|
||
|
||
Reading scripts/churn_analysis.py...
|
||
|
||
I can see this pulls from Stripe's subscription API and Mixpanel's engagement endpoint, segments by 3 plan tiers, and uses a weighted scoring model. Let me uncover the implicit requirements before building.
|
||
|
||
Implicit requirements I've identified:
|
||
- Error handling when Stripe/Mixpanel APIs are unreachable
|
||
- Date range defaults (last 30 days) vs custom ranges
|
||
- The PDF needs the Acme Corp header and formatting your leadership team expects
|
||
- Churn risk thresholds (>0.7 = high, >0.4 = medium) are hardcoded — should be configurable
|
||
- No handling for new customers with insufficient data
|
||
|
||
Building the skill now...
|
||
|
||
(Copilot creates the full skill directory)
|
||
|
||
customer-churn-skill/
|
||
├── SKILL.md # Activation: /customer-churn-skill
|
||
├── scripts/
|
||
│ ├── churn_analysis.py # Core analysis (refactored from your script)
|
||
│ ├── stripe_connector.py # Stripe API integration
|
||
│ ├── mixpanel_connector.py # Mixpanel API integration
|
||
│ └── pdf_report.py # PDF generation with formatting
|
||
├── references/
|
||
│ ├── scoring-model.md # Churn risk scoring methodology
|
||
│ ├── api-endpoints.md # Stripe + Mixpanel endpoint docs
|
||
│ └── report-format.md # PDF layout specification
|
||
├── assets/
|
||
│ └── report_template.html # PDF template
|
||
├── install.sh # Cross-platform installer (14 tools)
|
||
└── README.md # Installation instructions
|
||
|
||
Validation results:
|
||
- Spec compliance: PASSED (frontmatter, naming, structure, references)
|
||
- Security scan: PASSED (no hardcoded API keys, credentials use environment variables)
|
||
|
||
Installed at: ~/.claude/skills/customer-churn-skill
|
||
|
||
To use it, start a new chat and type:
|
||
/customer-churn-skill Generate the monthly churn report for March
|
||
|
||
Or with custom parameters:
|
||
/customer-churn-skill Analyze churn for Enterprise tier only, last 90 days
|
||
|
||
Want to share this skill with your team so they can install it too?
|
||
|
||
---
|
||
|
||
User: Yes, we use GitHub
|
||
|
||
Copilot:
|
||
|
||
Setting up sharing...
|
||
|
||
cd customer-churn-skill
|
||
git init
|
||
git add -A
|
||
git commit -m "feat: Initial skill — customer-churn-skill"
|
||
gh repo create customer-churn-skill --private --source=. --push
|
||
|
||
Done! Share this with your team:
|
||
|
||
# For VS Code Copilot / Claude Code:
|
||
git clone https://github.com/your-org/customer-churn-skill.git ~/.claude/skills/customer-churn-skill
|
||
|
||
# For Codex CLI / Gemini CLI / Kiro:
|
||
git clone https://github.com/your-org/customer-churn-skill.git ~/.agents/skills/customer-churn-skill
|
||
|
||
# For Cursor (per-project):
|
||
git clone https://github.com/your-org/customer-churn-skill.git .cursor/rules/customer-churn-skill
|
||
|
||
# Or install everywhere at once:
|
||
npx skills add your-org/customer-churn-skill
|
||
|
||
Your colleagues paste one line, and they can type /customer-churn-skill in their agent.
|
||
|
||
---
|
||
|
||
Later that week — a colleague uses it
|
||
|
||
The colleague cloned it. They open VS Code Copilot and type:
|
||
|
||
Colleague: /customer-churn-skill Which Enterprise customers are highest churn risk this month? Include a breakdown by usage drop-off category.
|
||
|
||
Copilot (loading customer-churn-skill):
|
||
|
||
Running churn analysis for Enterprise tier, March 2026...
|
||
|
||
Connecting to Stripe API... (uses STRIPE_API_KEY from env)
|
||
Connecting to Mixpanel... (uses MIXPANEL_TOKEN from env)
|
||
|
||
Enterprise Churn Risk Report — March 2026
|
||
|
||
| Customer | Plan | Risk Score | Drop-off Category | MRR |
|
||
|---------------|-----------------|------------|---------------------|---------|
|
||
| Acme Corp | Enterprise Plus | 0.89 | Feature abandonment | $12,400 |
|
||
| DataFlow Inc | Enterprise | 0.76 | Login frequency | $8,200 |
|
||
| NorthStar Ltd | Enterprise | 0.72 | Support escalation | $6,800 |
|
||
| ... | | | | |
|
||
|
||
7 Enterprise accounts flagged as high-risk ($94,200 combined MRR at risk).
|
||
|
||
PDF report generated at ./reports/churn-enterprise-2026-03.pdf.
|
||
Want me to email this to the leadership distribution list?
|
||
|
||
---
|
||
|
||
Key difference from raw Copilot
|
||
|
||
Without the skill, the colleague would have had to explain: which APIs, which endpoints, what scoring model, what PDF format, what "churn risk" means in their org. With the skill installed, they just say what they want and it already knows all of that.
|
||
|
||
|
||
=============================================================
|
||
AGRICULTURE COMMODITY RESEARCH TEAM — FULL SCENARIO
|
||
=============================================================
|
||
|
||
Context: A 6-person ag commodity research team at a trading firm. They cover soybeans, corn, wheat, and coffee. Every analyst repeats the same data-pulling, report-building, and market-monitoring workflows daily. The team lead decides to turn these into shared skills.
|
||
|
||
|
||
=============================================================
|
||
SKILL 1: WASDE Report Analyzer
|
||
=============================================================
|
||
|
||
The senior grain analyst opens VS Code Copilot:
|
||
|
||
User: /agent-skill-creator Every month when USDA releases the WASDE report, I download the PDF from usda.gov, extract the supply and demand tables for corn, soybeans, and wheat, compare the new estimates against last month and against the market consensus (which I pull from a Bloomberg terminal CSV export), flag any revisions greater than 2%, and write a 2-page brief for the trading desk with a "surprise score" for each commodity. Here's last month's brief as an example: references/wasde-brief-feb-2026.pdf
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
I'll build a skill from your WASDE analysis workflow. Let me read your example brief first.
|
||
|
||
Reading references/wasde-brief-feb-2026.pdf...
|
||
|
||
I can see the structure: header with release date and report number, a table per commodity showing Old USDA / New USDA / Consensus / Surprise, then a narrative section interpreting the numbers for the trading desk. Let me identify implicit requirements.
|
||
|
||
Implicit requirements I've identified:
|
||
- WASDE PDF table extraction needs to handle USDA's inconsistent formatting across years
|
||
- "Consensus" comes from a Bloomberg CSV export — need to define the expected column format
|
||
- Surprise score formula: |(New USDA - Consensus)| / Consensus * 100, flagged if > 2%
|
||
- The brief must separate US domestic vs world balance sheets
|
||
- Ending stocks and stocks-to-use ratio are the key numbers the desk cares about
|
||
- Historical comparison should include the 5-year average, not just last month
|
||
- Wheat needs to be split: all wheat, HRW, SRW, HRS separately
|
||
- The desk wants this within 30 minutes of USDA release — speed matters
|
||
|
||
Building the skill now...
|
||
|
||
wasde-analyzer-skill/
|
||
├── SKILL.md # Activation: /wasde-analyzer-skill
|
||
├── scripts/
|
||
│ ├── wasde_parser.py # USDA PDF table extraction
|
||
│ ├── consensus_loader.py # Bloomberg CSV import + validation
|
||
│ ├── surprise_calculator.py # Surprise score engine
|
||
│ ├── brief_generator.py # 2-page PDF brief builder
|
||
│ └── historical_compare.py # 5-year avg + month-over-month
|
||
├── references/
|
||
│ ├── wasde-table-format.md # USDA table layout documentation
|
||
│ ├── commodity-codes.md # USDA commodity ID mappings
|
||
│ ├── surprise-methodology.md # Surprise score formula + thresholds
|
||
│ └── brief-template.md # Trading desk brief structure
|
||
├── assets/
|
||
│ ├── brief_template.html # PDF template with firm header
|
||
│ └── sample_consensus.csv # Expected Bloomberg export format
|
||
├── install.sh # Cross-platform installer (14 tools)
|
||
└── README.md
|
||
|
||
Validation: PASSED | Security: PASSED
|
||
Installed at: ~/.claude/skills/wasde-analyzer-skill
|
||
|
||
To use it:
|
||
/wasde-analyzer-skill Analyze the March 2026 WASDE, consensus file at data/bloomberg-consensus-mar26.csv
|
||
|
||
Want to share this with your team?
|
||
|
||
User: Yes
|
||
|
||
Copilot:
|
||
|
||
gh repo create acme-trading/wasde-analyzer-skill --private --source=. --push
|
||
|
||
Share with your team:
|
||
git clone https://github.com/acme-trading/wasde-analyzer-skill.git ~/.claude/skills/wasde-analyzer-skill
|
||
|
||
|
||
--- On WASDE release day, a junior analyst uses it ---
|
||
|
||
Junior Analyst: /wasde-analyzer-skill WASDE just dropped. Consensus file is at data/bloomberg-mar26.csv. Run the full analysis for corn, soybeans, and wheat.
|
||
|
||
Copilot (loading wasde-analyzer-skill):
|
||
|
||
Downloading March 2026 WASDE from USDA...
|
||
Extracting supply/demand tables...
|
||
Loading consensus from data/bloomberg-mar26.csv...
|
||
Calculating surprise scores...
|
||
|
||
WASDE SURPRISE BRIEF — March 11, 2026
|
||
|
||
CORN (US)
|
||
| Metric | Feb USDA | Mar USDA | Consensus | Surprise |
|
||
|---------------------|----------|----------|-----------|----------|
|
||
| Production (mil bu) | 15,143 | 15,143 | 15,143 | 0.0% |
|
||
| Ending Stocks | 1,540 | 1,490 | 1,525 | -2.3% * |
|
||
| Stocks/Use | 10.4% | 10.1% | 10.3% | |
|
||
|
||
* BULLISH SURPRISE: USDA cut corn ending stocks 50 mil bu below consensus.
|
||
Driven by higher ethanol demand estimate (+25 mil bu) and feed/residual
|
||
revision. This is the tightest S/U ratio since 2023/24.
|
||
|
||
SOYBEANS (US)
|
||
| Metric | Feb USDA | Mar USDA | Consensus | Surprise |
|
||
|---------------------|----------|----------|-----------|----------|
|
||
| Production (mil bu) | 4,366 | 4,366 | 4,366 | 0.0% |
|
||
| Ending Stocks | 380 | 370 | 385 | -3.9% * |
|
||
| Stocks/Use | 8.6% | 8.4% | 8.7% | |
|
||
|
||
* BULLISH SURPRISE: Crush raised 15 mil bu, exports raised 10 mil bu.
|
||
Brazil's crop estimate unchanged at 169 MMT — market expected a cut.
|
||
|
||
WHEAT (ALL — US)
|
||
| Metric | Feb USDA | Mar USDA | Consensus | Surprise |
|
||
|---------------------|----------|----------|-----------|----------|
|
||
| Ending Stocks | 794 | 798 | 790 | +1.0% |
|
||
|
||
No surprise. Wheat largely unchanged. HRW stocks marginally higher on
|
||
lower food use estimate.
|
||
|
||
OVERALL SURPRISE SCORE: 6.2 / 10 (Moderately bullish grains)
|
||
|
||
PDF brief generated: reports/wasde-brief-2026-03-11.pdf
|
||
|
||
Key takeaway for the desk: Corn and beans both tighter than expected.
|
||
The corn stocks cut is the headline — first sub-1,500 ending stocks
|
||
estimate this marketing year. Watch the May corn contract for a gap
|
||
higher on the open.
|
||
|
||
Want me to email this to the trading desk distribution list?
|
||
|
||
|
||
=============================================================
|
||
SKILL 2: Crop Condition & Weather Monitor
|
||
=============================================================
|
||
|
||
The weather/crop analyst on the team creates another skill:
|
||
|
||
User: /agent-skill-creator Every Monday during growing season (April-October) I check the USDA Crop Progress report for corn and soybean condition ratings, compare good/excellent percentages against the 5-year average and last year, pull 7-day and 14-day weather forecasts from NOAA for the Corn Belt states (Iowa, Illinois, Indiana, Minnesota, Nebraska, Ohio), check soil moisture from the US Drought Monitor, and write a "Crop & Weather Weekly" for our research clients. I also maintain a chart tracking the condition index through the season. Here are my notes on how I calculate the crop condition index: references/condition-index-formula.txt
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/condition-index-formula.txt...
|
||
|
||
I see — you use the Brugler weighted index: (Very Poor * 1 + Poor * 2 + Fair * 3 + Good * 4 + Excellent * 5) / 5. This gives a single score out of 100. Let me build this.
|
||
|
||
Implicit requirements I've identified:
|
||
- Crop Progress data comes from USDA NASS Quick Stats API
|
||
- NOAA forecast needs to cover precipitation AND temperature (GDD accumulation)
|
||
- Drought Monitor categories: D0-D4 mapped to severity scores
|
||
- Growing Degree Days (GDD) tracking: base 50F for corn, base 50F for soybeans
|
||
- Client report needs both narrative + embedded charts (condition index trend, precip map)
|
||
- State-level breakdown matters — an Iowa drought doesn't offset Illinois rain
|
||
- The weekly cadence means the skill should know what "week" of the growing season it is
|
||
- Planting progress in April-May, then shifts to condition ratings June-October
|
||
|
||
Building...
|
||
|
||
crop-weather-weekly-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── crop_progress.py # USDA NASS API — condition ratings + planting progress
|
||
│ ├── weather_forecast.py # NOAA 7/14-day forecast by state
|
||
│ ├── drought_monitor.py # US Drought Monitor data pull
|
||
│ ├── condition_index.py # Brugler weighted index calculator
|
||
│ ├── gdd_tracker.py # Growing degree day accumulation
|
||
│ ├── charts.py # Condition trend + precip charts
|
||
│ └── weekly_report.py # PDF/HTML report builder
|
||
├── references/
|
||
│ ├── corn-belt-states.md # State FIPS codes, county groupings
|
||
│ ├── condition-methodology.md # Index formula, historical baselines
|
||
│ ├── gdd-requirements.md # GDD targets by growth stage
|
||
│ └── client-report-format.md # Report layout spec
|
||
├── assets/
|
||
│ └── report_template.html
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED | Security: PASSED
|
||
Installed at: ~/.claude/skills/crop-weather-weekly-skill
|
||
|
||
Share with your team?
|
||
|
||
User: Yes, same GitHub org
|
||
|
||
Copilot:
|
||
|
||
gh repo create acme-trading/crop-weather-weekly-skill --private --source=. --push
|
||
|
||
Done! Your team:
|
||
git clone https://github.com/acme-trading/crop-weather-weekly-skill.git ~/.claude/skills/crop-weather-weekly-skill
|
||
|
||
|
||
--- Monday morning during growing season ---
|
||
|
||
Analyst: /crop-weather-weekly-skill Generate the Crop & Weather Weekly for the week of July 14, 2026. Focus on the drought situation in western Iowa and Nebraska.
|
||
|
||
Copilot (loading crop-weather-weekly-skill):
|
||
|
||
Pulling USDA Crop Progress (released 4:00pm ET yesterday)...
|
||
Pulling NOAA 7-day and 14-day forecasts for Corn Belt...
|
||
Pulling US Drought Monitor (updated Thursday)...
|
||
Calculating condition indices...
|
||
|
||
CROP & WEATHER WEEKLY — July 14, 2026
|
||
|
||
CORN CONDITION
|
||
| State | G/E This Week | G/E Last Week | G/E 5yr Avg | Condition Index |
|
||
|-----------|---------------|---------------|-------------|-----------------|
|
||
| Iowa | 54% | 61% | 68% | 322 (below avg) |
|
||
| Illinois | 71% | 70% | 66% | 361 (above avg) |
|
||
| Indiana | 68% | 67% | 63% | 355 (above avg) |
|
||
| Minnesota | 63% | 64% | 65% | 345 (at avg) |
|
||
| Nebraska | 48% | 55% | 62% | 308 (well below)|
|
||
| Ohio | 72% | 71% | 64% | 362 (above avg) |
|
||
| NATIONAL | 62% | 64% | 65% | 344 |
|
||
|
||
Week-over-week: National corn conditions slipped 2 points. The decline is
|
||
concentrated in the western Corn Belt — Iowa dropped 7 points and Nebraska
|
||
dropped 7 points. Eastern Belt is steady to improving.
|
||
|
||
DROUGHT SITUATION
|
||
Western Iowa: 43% of the state now in D2 (severe drought), up from 31%
|
||
last week. The I-80 corridor west of Des Moines through Council Bluffs is
|
||
the epicenter. Subsoil moisture rated 62% short/very short.
|
||
|
||
Nebraska: 51% in D1 or worse. The Platte River valley from Grand Island
|
||
to North Platte hasn't received meaningful rain in 23 days. Center-pivot
|
||
irrigation is running but aquifer draw-down is being reported.
|
||
|
||
WEATHER OUTLOOK
|
||
7-day: A ridge holds over the western Plains through Thursday. Temps
|
||
100-105F in western Iowa/Nebraska. No significant precip until a cold
|
||
front arrives Saturday with scattered storms (0.25-0.75 inches, not
|
||
drought-breaking).
|
||
|
||
14-day: GFS and Euro diverge after day 8. Euro shows the ridge breaking
|
||
down with a pattern change toward more active weather. GFS keeps the
|
||
ridge. If the Euro verifies, meaningful relief arrives July 25-28.
|
||
|
||
GDD ACCUMULATION (corn, base 50F, since April 15)
|
||
| State | Actual GDD | Normal GDD | Deviation |
|
||
|-----------|------------|------------|-----------|
|
||
| Iowa | 1,842 | 1,710 | +132 (ahead — heat stress risk) |
|
||
| Illinois | 1,920 | 1,805 | +115 |
|
||
| Nebraska | 1,780 | 1,690 | +90 |
|
||
|
||
KEY TAKEAWAY: Western Corn Belt stress is accelerating during pollination
|
||
week for early-planted corn in Iowa and Nebraska. If the Euro's pattern
|
||
change doesn't verify, we could see another 3-5 point condition drop
|
||
next week. The east is fine. This is a "tale of two Corn Belts" story.
|
||
|
||
National corn condition index at 344 is the lowest for this week since
|
||
2022 (338) but well above 2012 drought (278).
|
||
|
||
[Condition Index Trend Chart embedded — shows 2026 line dipping below
|
||
5yr avg band, with 2012 and 2022 comparison lines]
|
||
|
||
PDF report generated: reports/crop-weather-weekly-2026-07-14.pdf
|
||
|
||
Want me to email this to the client distribution list?
|
||
|
||
|
||
=============================================================
|
||
SKILL 3: Basis Tracker & Export Monitor
|
||
=============================================================
|
||
|
||
The logistics/basis analyst creates a third skill:
|
||
|
||
User: /agent-skill-creator I track soybean and corn basis at 12 river elevators along the Mississippi and Illinois rivers. Every day I pull bids from DTN/Progressive Farmer, calculate basis vs the nearby CBOT futures contract, compare to the 3-year seasonal average, and flag any locations where basis moved more than 5 cents in a day. I also pull weekly USDA Export Inspections and Export Sales data to see if physical demand explains the basis moves. On Fridays I write a "Basis & Exports Weekly" for the team. Here's my spreadsheet with the 12 elevator locations and their historical basis patterns: data/elevator-basis-history.xlsx
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading data/elevator-basis-history.xlsx...
|
||
|
||
I see 12 elevators: Davenport IA, Muscatine IA, Burlington IA, Quincy IL, Beardstown IL, Havana IL, Peoria IL, Henry IL, Peru IL, St. Louis MO, Memphis TN, New Orleans LA (CIF Gulf). Each has daily basis history back to 2023. Let me build this.
|
||
|
||
Implicit requirements:
|
||
- "Nearby futures" rolls on first notice day — need a roll calendar
|
||
- Gulf basis (CIF NOLA) is the anchor — interior basis derives from it
|
||
- Barge freight rates affect interior basis — need to track St. Louis-Gulf freight
|
||
- Export Inspections = actual loadings (weekly, lagged). Export Sales = commitments (weekly, Thursday release)
|
||
- China/unknown destinations buying pattern is the key signal in export data
|
||
- Basis inversions between elevator locations signal logistical bottlenecks
|
||
- Harvest basis (Sep-Nov) behaves completely differently than non-harvest — seasonal model must account for this
|
||
|
||
Building...
|
||
|
||
basis-export-tracker-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── basis_scraper.py # DTN bid scraping for 12 elevators
|
||
│ ├── futures_reference.py # CBOT nearby contract + roll calendar
|
||
│ ├── basis_calculator.py # Basis computation + 3yr seasonal avg
|
||
│ ├── alert_engine.py # 5-cent daily move alerts
|
||
│ ├── export_inspections.py # USDA weekly export inspections
|
||
│ ├── export_sales.py # USDA weekly export sales
|
||
│ ├── barge_freight.py # St. Louis-Gulf freight rates
|
||
│ └── weekly_report.py # Friday summary builder
|
||
├── references/
|
||
│ ├── elevator-locations.md # 12 locations, river mile markers, capacity
|
||
│ ├── roll-calendar.md # CBOT futures roll schedule
|
||
│ ├── seasonal-patterns.md # Basis seasonality by location
|
||
│ └── export-data-sources.md # USDA FAS endpoints
|
||
├── assets/
|
||
│ └── elevator_locations.json # Lat/long + DTN bid codes
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED | Security: PASSED
|
||
Installed at: ~/.claude/skills/basis-export-tracker-skill
|
||
|
||
Shared to: github.com/acme-trading/basis-export-tracker-skill
|
||
|
||
|
||
--- Daily use by the team ---
|
||
|
||
Trader: /basis-export-tracker-skill What happened to corn basis at the river yesterday? I saw Gulf bids jumped.
|
||
|
||
Copilot (loading basis-export-tracker-skill):
|
||
|
||
Pulling yesterday's bids (March 3, 2026)...
|
||
|
||
CORN BASIS DAILY SNAPSHOT — March 3, 2026 (vs May 2026 CBOT)
|
||
|
||
| Location | Bid | Basis | Prev | Change | 3yr Avg | vs Avg |
|
||
|----------------|---------|--------|--------|--------|---------|---------|
|
||
| CIF NOLA | $4.82 | +38 | +30 | +8 * | +22 | +16 |
|
||
| Memphis | $4.58 | +14 | +10 | +4 | +5 | +9 |
|
||
| St. Louis | $4.49 | +5 | +2 | +3 | -8 | +13 |
|
||
| Peoria IL | $4.34 | -10 | -13 | +3 | -18 | +8 |
|
||
| Davenport IA | $4.27 | -17 | -19 | +2 | -25 | +8 |
|
||
| ... | | | | | | |
|
||
|
||
* ALERT: CIF Gulf corn jumped 8 cents. Largest single-day move since Jan 14.
|
||
|
||
WHAT'S DRIVING IT:
|
||
- USDA Export Sales (released Thursday): Net new corn sales of 1.82 MMT,
|
||
highest weekly total this marketing year. Unknown destinations (likely China)
|
||
booked 680,000 MT.
|
||
- Export Inspections (Monday): 1.24 MMT inspected for export, above the
|
||
pace needed to hit the USDA full-year estimate.
|
||
- Barge freight: St. Louis-Gulf up $0.45/ton this week. Low water on the
|
||
lower Mississippi near Greenville MS is creating delays — 48hr average
|
||
transit time now vs 36hr normal.
|
||
|
||
INTERPRETATION: Physical demand is pulling basis higher from the Gulf
|
||
upriver. The strength is real (export-driven) not just logistical. If
|
||
China continues buying at this pace, Gulf basis could push to +45/+50
|
||
which would pull interior basis another 5-8 cents higher.
|
||
|
||
|
||
--- Friday weekly report ---
|
||
|
||
Analyst: /basis-export-tracker-skill Generate the Basis & Exports Weekly.
|
||
|
||
Copilot:
|
||
|
||
Compiling week of Feb 28 - Mar 4, 2026...
|
||
|
||
BASIS & EXPORTS WEEKLY — March 4, 2026
|
||
|
||
HEADLINE: Gulf corn basis rallied 12 cents this week on Chinese buying.
|
||
Interior locations followed, with the entire river system firming 3-8 cents.
|
||
Soybean basis was quiet — Gulf steady at +58, interior unchanged.
|
||
|
||
CORN BASIS — WEEK OVER WEEK
|
||
[Table showing all 12 locations, weekly change, distance from seasonal avg]
|
||
|
||
The entire Mississippi River corn basis curve steepened this week.
|
||
Gulf-to-Davenport spread widened to 55 cents (vs 47 cents 3yr avg for
|
||
this week). This signals strong export pull but also tight barge
|
||
logistics. Barge freight at $14.20/ton is 18% above seasonal average.
|
||
|
||
EXPORT SCOREBOARD
|
||
| Commodity | Sales This Week | Cumulative | USDA Target | Pace |
|
||
|-----------|-----------------|------------|-------------|--------|
|
||
| Corn | 1.82 MMT | 42.1 MMT | 58.4 MMT | 104% |
|
||
| Soybeans | 0.44 MMT | 39.8 MMT | 49.7 MMT | 98% |
|
||
|
||
Corn export pace is now 4% ahead of the USDA projection. If this
|
||
continues, the April WASDE will likely raise the export estimate by
|
||
50-75 mil bu, tightening ending stocks further.
|
||
|
||
TOP BUYERS THIS WEEK (CORN)
|
||
| Destination | Volume | Notes |
|
||
|--------------------|-----------|---------------------------|
|
||
| Unknown (China) | 680,000 MT| 3rd consecutive large week |
|
||
| Mexico | 412,000 MT| Steady, as expected |
|
||
| Japan | 289,000 MT| Normal pace |
|
||
| Colombia | 145,000 MT| Above average |
|
||
|
||
PDF report generated: reports/basis-exports-weekly-2026-03-04.pdf
|
||
|
||
|
||
=============================================================
|
||
SKILL 4: Coffee Fundamental Monitor
|
||
=============================================================
|
||
|
||
The soft commodities analyst covers coffee:
|
||
|
||
User: /agent-skill-creator I monitor the global coffee market — arabica and robusta. Every week I check Brazil's CEPEA daily prices, pull ICE certified stock reports for arabica (from ICE exchange data), check Vietnam and Brazil export data from their customs agencies, track the CFTC Commitment of Traders for managed money positioning in KC coffee futures, and monitor weather in Minas Gerais (Brazil), Espirito Santo (Brazil), and the Central Highlands (Vietnam). I also watch the arabica/robusta spread because it signals substitution pressure. When frost risk hits Brazil's coffee belt in June-August, I need to be able to quickly assess the threat. Here's my methodology doc: references/coffee-research-methodology.pdf
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/coffee-research-methodology.pdf (12 pages)...
|
||
|
||
Comprehensive framework. I see your frost risk model uses elevation bands in Minas Gerais (areas above 900m are safe, below 700m are high risk), historical frost dates, and ECMWF ensemble forecasts for minimum temperatures. Let me build this.
|
||
|
||
Implicit requirements:
|
||
- CEPEA prices are in BRL/bag — need USD conversion using BCB exchange rate API
|
||
- ICE certified stocks distinguish between pending grading, passed, and failed
|
||
- Brazil export data from CECAFE (monthly), Vietnam from customs (lagged 2-3 weeks)
|
||
- COT data: managed money net long/short as % of open interest is the key metric, not raw contracts
|
||
- Arabica/robusta spread: KC minus RC (converted to common units), watch for narrowing below historical range
|
||
- Frost: only matters June 15 - August 15, south of 22°S latitude, below 800m elevation
|
||
- The coffee marketing year is different (Jul-Jun for Brazil arabica, Oct-Sep for Vietnam robusta)
|
||
- Flowering season (Sep-Nov in Brazil) is the other critical weather window
|
||
|
||
Building...
|
||
|
||
coffee-fundamental-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── cepea_prices.py # Brazil domestic price scraper
|
||
│ ├── ice_certified_stocks.py # ICE arabica warehouse stocks
|
||
│ ├── brazil_exports.py # CECAFE monthly export data
|
||
│ ├── vietnam_exports.py # Vietnam customs export data
|
||
│ ├── cot_positioning.py # CFTC COT managed money parser
|
||
│ ├── arb_rob_spread.py # Arabica/robusta spread tracker
|
||
│ ├── frost_monitor.py # ECMWF frost risk model
|
||
│ ├── brazil_weather.py # Minas Gerais + Espirito Santo weather
|
||
│ ├── vietnam_weather.py # Central Highlands weather
|
||
│ └── weekly_report.py # Coffee Weekly builder
|
||
├── references/
|
||
│ ├── frost-risk-model.md # Elevation bands, historical frost events
|
||
│ ├── coffee-calendar.md # Marketing years, flowering/harvest windows
|
||
│ ├── brazil-regions.md # Minas Gerais sub-regions, elevation data
|
||
│ ├── data-sources.md # All API endpoints and data lags
|
||
│ └── spread-methodology.md # Arb/rob spread interpretation
|
||
├── assets/
|
||
│ └── minas-gerais-elevations.geojson
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED | Security: PASSED
|
||
Installed at: ~/.claude/skills/coffee-fundamental-skill
|
||
|
||
Shared to: github.com/acme-trading/coffee-fundamental-skill
|
||
|
||
|
||
--- Frost scare in July ---
|
||
|
||
Coffee Analyst: /coffee-fundamental-skill Frost risk alert — GFS is showing a polar air mass pushing into Parana and southern Minas Gerais this weekend. Assess the threat to coffee.
|
||
|
||
Copilot (loading coffee-fundamental-skill):
|
||
|
||
Pulling ECMWF and GFS ensemble forecasts for coffee belt...
|
||
Loading elevation data for Minas Gerais sub-regions...
|
||
|
||
FROST RISK ASSESSMENT — July 18, 2026
|
||
|
||
MODEL GUIDANCE (minimum temperature forecasts, Saturday morning July 20)
|
||
|
||
| Sub-region | Elevation | GFS Min | ECMWF Min | Frost Risk |
|
||
|---------------------|-----------|---------|-----------|------------|
|
||
| Sul de Minas (<700m)| 650-700m | -1°C | +1°C | HIGH |
|
||
| Sul de Minas (>800m)| 800-1100m | +2°C | +3°C | LOW |
|
||
| Cerrado Mineiro | 800-1000m | +3°C | +4°C | MINIMAL |
|
||
| Triângulo Mineiro | 700-900m | +1°C | +3°C | MODERATE |
|
||
| Parana (north) | 400-600m | -3°C | -1°C | SEVERE |
|
||
| Espirito Santo | 500-700m | +5°C | +6°C | NONE |
|
||
|
||
THREAT ASSESSMENT:
|
||
|
||
Parana: SEVERE risk. But Parana is only ~5% of Brazil arabica production
|
||
(down from 25% in the 1990s — production shifted north after the 1994
|
||
frost). Impact would be limited to ~2-3 million bags maximum exposure.
|
||
|
||
Sul de Minas (low elevation): HIGH risk on GFS, moderate on ECMWF. This
|
||
is the critical area — Sul de Minas produces ~30% of Brazil's arabica.
|
||
However, the sub-700m low-elevation areas are a minority of production.
|
||
Most major farms are at 800-1100m where frost risk is low.
|
||
|
||
GFS vs ECMWF divergence: GFS is 2-3°C colder than ECMWF across all
|
||
regions. This matters. In the last 5 comparable events, ECMWF verified
|
||
closer to observed temps 4 out of 5 times.
|
||
|
||
HISTORICAL COMPARISON:
|
||
- July 2021 frost: Much more severe (widespread -3°C to -5°C across
|
||
Minas Gerais at all elevations). KC rallied 30% in 2 weeks.
|
||
- This event: More limited geographic scope. Closer to July 2023
|
||
scare that produced a 5% rally that fully reversed in 10 days.
|
||
|
||
MARKET POSITIONING:
|
||
Managed money is currently net long 42,300 contracts (68th percentile).
|
||
Not extreme — room for speculative buying on a frost headline.
|
||
|
||
ICE certified stocks: 812,000 bags, near 20-year lows. Low buffer =
|
||
larger price reaction to any supply shock.
|
||
|
||
BOTTOM LINE: This is a "watch closely but don't panic" event. The
|
||
probable impact is limited to low-elevation Parana and small pockets
|
||
of southern Minas Gerais. If ECMWF is right (+1°C in Sul de Minas),
|
||
this is a non-event. If GFS is right (-1°C), we're looking at
|
||
localized damage to 3-5% of the Brazil arabica crop.
|
||
|
||
Expect KC coffee to rally 3-5% on the headlines Friday/Monday regardless
|
||
of actual damage, given low certified stocks and the market's sensitivity
|
||
to anything frost-related after 2021.
|
||
|
||
Next update: I recommend re-running this Saturday when the 24-hour
|
||
forecast models converge.
|
||
|
||
|
||
=============================================================
|
||
THE TEAM'S SKILL LIBRARY — 3 MONTHS LATER
|
||
=============================================================
|
||
|
||
After 3 months, the 6-person team has built and shared these skills:
|
||
|
||
git clone .../wasde-analyzer-skill.git # Senior grain analyst
|
||
git clone .../crop-weather-weekly-skill.git # Weather/crop analyst
|
||
git clone .../basis-export-tracker-skill.git # Logistics/basis analyst
|
||
git clone .../coffee-fundamental-skill.git # Soft commodities analyst
|
||
git clone .../seasonal-spread-skill.git # Quantitative analyst
|
||
git clone .../client-briefing-skill.git # Research director
|
||
|
||
Every analyst has all 6 skills installed. The new hire who joined last
|
||
week cloned all 6 in 10 minutes and can now run any workflow the team
|
||
does — with institutional knowledge embedded in the skills.
|
||
|
||
The research director's /client-briefing-skill actually calls the other
|
||
skills internally to compile the firm's weekly flagship report. Skills
|
||
compose.
|
||
|
||
What used to take each analyst 2-3 hours of manual data pulling and
|
||
formatting now takes a single prompt. The team's output doubled. Their
|
||
research clients can't tell the difference — the reports look the same,
|
||
the analysis is the same. It's just faster, and the junior analyst can
|
||
produce the same quality as the senior.
|
||
|
||
That's the point: skills capture institutional knowledge so it doesn't
|
||
walk out the door when someone leaves, and it doesn't take 6 months
|
||
to transfer when someone new joins.
|
||
|
||
|
||
=============================================================
|
||
INSTALLING ALL TEAM SKILLS AT ONCE
|
||
=============================================================
|
||
|
||
New team member joins. The team lead sends them one message on Slack:
|
||
|
||
"Welcome! Run these to get all our research skills:"
|
||
|
||
curl -fsSL https://raw.githubusercontent.com/FrancyJGLisboa/agent-skill-creator/main/scripts/bootstrap.sh | sh
|
||
|
||
./scripts/install-skill.sh https://github.com/acme-trading/wasde-analyzer-skill.git
|
||
./scripts/install-skill.sh https://github.com/acme-trading/crop-weather-weekly-skill.git
|
||
./scripts/install-skill.sh https://github.com/acme-trading/basis-export-tracker-skill.git
|
||
./scripts/install-skill.sh https://github.com/acme-trading/coffee-fundamental-skill.git
|
||
./scripts/install-skill.sh https://github.com/acme-trading/seasonal-spread-skill.git
|
||
./scripts/install-skill.sh https://github.com/acme-trading/client-briefing-skill.git
|
||
|
||
7 commands. 5 minutes. The new hire has the entire team's research
|
||
infrastructure on their machine, across every AI tool they use.
|
||
|
||
|
||
=============================================================
|
||
EXPANDED: PSD DATABASE + GLOBAL TRADE TRACKER (GTT) SKILLS
|
||
=============================================================
|
||
|
||
The team has API credentials for two critical data platforms:
|
||
|
||
PSD_API_KEY — USDA Foreign Agricultural Service Production,
|
||
Supply and Distribution database. Global supply/demand
|
||
balances for every commodity by country and marketing year.
|
||
Endpoint: apps.fas.usda.gov/opendatawebv2/
|
||
|
||
GTT_USER_ID — Global Trade Tracker login. 133 countries, HS 8-digit
|
||
GTT_PASSWORD trade flow data, monthly updates. REST API at
|
||
globaltradetracker.com/api/rest/
|
||
|
||
These credentials are set as environment variables. The skills never
|
||
hardcode them — they read from env at runtime.
|
||
|
||
|
||
=============================================================
|
||
SKILL 5: Global S&D Balance Sheet Builder (PSD)
|
||
=============================================================
|
||
|
||
The senior analyst who covers global grains:
|
||
|
||
User: /agent-skill-creator I use the USDA PSD database to build global supply and demand balance sheets for soybeans, corn, and wheat. For each commodity I pull production, beginning stocks, imports, domestic consumption, exports, and ending stocks — broken down by the top 10 producing and consuming countries plus a "rest of world" aggregate. I compare the current marketing year estimates to the previous 5 years to identify trends. I also calculate stocks-to-use ratios and flag any country where ending stocks changed more than 10% month-over-month — that usually signals a USDA revision worth investigating. The PSD API key is in my env as PSD_API_KEY. Here's my current Python notebook that does this manually: notebooks/psd-balance-sheets.ipynb
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading notebooks/psd-balance-sheets.ipynb...
|
||
|
||
I see your workflow: you call the PSD API for each commodity/country
|
||
combination, pivot the data into balance sheet format, compute derived
|
||
metrics, and render tables in a Jupyter notebook. Let me formalize this.
|
||
|
||
Implicit requirements I've identified:
|
||
- PSD API authentication: API key passed as header (X-Api-Key) to
|
||
apps.fas.usda.gov/opendatawebv2/ endpoints
|
||
- Commodity codes: 0440000 (soybeans), 0440000 (soybean meal/oil are
|
||
separate), 0410000 (corn), 0410000 (wheat has multiple codes by class)
|
||
- Marketing years differ by commodity and country: US corn is Sep-Aug,
|
||
Brazil soy is Feb-Jan, Argentina wheat is Dec-Nov
|
||
- "Top 10" countries shift over time — should be dynamic based on latest
|
||
production rankings, not hardcoded
|
||
- PSD data updates monthly (around the WASDE release) — need to track
|
||
the revision date to know if data is current
|
||
- Some PSD attributes are in 1000 MT, others in MT — unit normalization
|
||
- World totals in PSD double-count intra-EU trade — need EU-27 aggregate
|
||
handling
|
||
- The 10% month-over-month change alert needs to compare the same
|
||
attribute for the same country between the current and previous PSD
|
||
update, not between marketing years
|
||
|
||
Building...
|
||
|
||
psd-balance-sheet-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── psd_client.py # PSD API wrapper (auth, pagination, rate limits)
|
||
│ ├── balance_sheet.py # S&D balance sheet builder (country × commodity)
|
||
│ ├── country_rankings.py # Dynamic top-N producer/consumer rankings
|
||
│ ├── stocks_to_use.py # Stocks-to-use ratio calculator + historical
|
||
│ ├── revision_detector.py # Month-over-month revision alerts (>10% change)
|
||
│ ├── marketing_years.py # Country-specific marketing year calendar
|
||
│ └── report_builder.py # PDF/HTML balance sheet report
|
||
├── references/
|
||
│ ├── psd-commodity-codes.md # USDA commodity code mappings
|
||
│ ├── psd-attribute-codes.md # Production, consumption, trade attribute IDs
|
||
│ ├── marketing-year-cal.md # By country and commodity
|
||
│ ├── eu-aggregation.md # EU-27 handling rules
|
||
│ └── methodology.md # S&D balance sheet conventions
|
||
├── assets/
|
||
│ └── country_mappings.json # PSD country codes → ISO 3166 + display names
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (PSD_API_KEY read from env, not hardcoded)
|
||
Installed at: ~/.claude/skills/psd-balance-sheet-skill
|
||
|
||
|
||
--- Monthly use right after WASDE release ---
|
||
|
||
Analyst: /psd-balance-sheet-skill USDA just updated PSD. Pull the full global soybean balance sheet for 2025/26 and compare to last month. Flag any revisions.
|
||
|
||
Copilot (loading psd-balance-sheet-skill):
|
||
|
||
Authenticating with PSD API... (using PSD_API_KEY from env)
|
||
Pulling soybean data for marketing year 2025/26...
|
||
Pulling previous month snapshot for revision comparison...
|
||
Building balance sheet...
|
||
|
||
GLOBAL SOYBEAN BALANCE SHEET — 2025/26 (March 2026 USDA update)
|
||
Units: Million Metric Tons
|
||
|
||
PRODUCTION
|
||
| Country | Mar Est | Feb Est | Revision | 5yr Avg | vs Avg |
|
||
|---------------|---------|---------|----------|---------|---------|
|
||
| Brazil | 169.0 | 169.0 | — | 148.2 | +14.0% |
|
||
| United States | 118.8 | 118.8 | — | 116.4 | +2.1% |
|
||
| Argentina | 50.0 | 52.0 | -2.0 * | 46.8 | +6.8% |
|
||
| China | 20.7 | 20.7 | — | 19.1 | +8.4% |
|
||
| India | 13.2 | 12.4 | +0.8 * | 11.8 | +11.9% |
|
||
| Paraguay | 10.8 | 10.8 | — | 9.9 | +9.1% |
|
||
| Canada | 7.1 | 7.1 | — | 6.6 | +7.6% |
|
||
| Russia | 6.8 | 6.8 | — | 5.9 | +15.3% |
|
||
| Ukraine | 5.4 | 5.4 | — | 4.2 | +28.6% |
|
||
| Bolivia | 3.3 | 3.4 | -0.1 | 3.1 | +6.5% |
|
||
| Rest of World | 22.4 | 22.5 | -0.1 | 21.0 | +6.7% |
|
||
| WORLD TOTAL | 427.5 | 428.9 | -1.4 | 393.0 | +8.8% |
|
||
|
||
REVISION ALERTS:
|
||
* Argentina production: -2.0 MMT (-3.8%). Drought in Cordoba and
|
||
Santa Fe provinces during January pod-fill stage. This is the first
|
||
cut — market expected -1.0 MMT. Further downside risk if February
|
||
rains don't materialize in southern Buenos Aires province.
|
||
|
||
* India production: +0.8 MMT (+6.5%). Late monsoon rains benefited
|
||
kharif soybean crop in Madhya Pradesh. This is unusual — USDA rarely
|
||
revises India this late in the season.
|
||
|
||
ENDING STOCKS
|
||
| Country | Mar Est | Feb Est | Stocks/Use | 5yr Avg S/U |
|
||
|---------------|---------|---------|------------|-------------|
|
||
| United States | 10.1 | 10.3 | 8.4% | 7.2% |
|
||
| Brazil | 37.2 | 37.5 | 23.1% | 21.8% |
|
||
| Argentina | 24.8 | 26.2 | 42.3% | 38.1% |
|
||
| China | 33.4 | 33.4 | 29.5% | 28.0% |
|
||
| WORLD TOTAL | 124.3 | 126.5 | 31.2% | 29.6% |
|
||
|
||
WORLD STOCKS/USE at 31.2% is slightly above the 5-year average but
|
||
tightening on the Argentina cut. Another 2 MMT cut to Argentina in April
|
||
would bring world S/U to 30.7%, which would be the tightest since 2023/24.
|
||
|
||
KEY NARRATIVE: World soy balance is comfortable but deteriorating at the
|
||
margin. The Argentina story is the swing variable. Brazil's record crop
|
||
is the cushion. Watch the April WASDE for a potential follow-through
|
||
Argentina cut if March rains disappoint.
|
||
|
||
PDF report: reports/psd-soybeans-global-2025-26-march.pdf
|
||
|
||
|
||
--- Deeper drill-down ---
|
||
|
||
Analyst: /psd-balance-sheet-skill Show me China's soybean import history from PSD — last 10 marketing years. I want to see the trajectory.
|
||
|
||
Copilot:
|
||
|
||
Pulling PSD data for China soybean imports, MY 2016/17 through 2025/26...
|
||
|
||
CHINA SOYBEAN IMPORTS — 10-Year Trajectory (Million MT)
|
||
|
||
| Marketing Year | Imports | YoY Change | Share of World Trade |
|
||
|----------------|---------|------------|----------------------|
|
||
| 2016/17 | 93.5 | | 62.1% |
|
||
| 2017/18 | 94.1 | +0.6% | 60.8% |
|
||
| 2018/19 | 82.5 | -12.3% | 55.2% ← trade war |
|
||
| 2019/20 | 98.5 | +19.4% | 60.1% |
|
||
| 2020/21 | 99.8 | +1.3% | 59.6% |
|
||
| 2021/22 | 91.6 | -8.2% | 57.4% ← hog herd |
|
||
| 2022/23 | 100.3 | +9.5% | 60.2% |
|
||
| 2023/24 | 105.5 | +5.2% | 61.0% |
|
||
| 2024/25 | 109.0 | +3.3% | 61.5% |
|
||
| 2025/26 (est) | 106.0 | -2.8% | 59.8% |
|
||
|
||
OBSERVATIONS:
|
||
- The 2018/19 dip was the US-China trade war. China diverted to Brazil.
|
||
- 2021/22 dip was the Chinese hog herd contraction (ASF recovery stall).
|
||
- The current 2025/26 estimate of 106 MMT is a -2.8% decline — first cut
|
||
in two years. USDA attributes this to slowing crush margins in China
|
||
and elevated domestic soybean stocks from the prior year's over-buying.
|
||
- China's share of world trade peaked at 62% and has been gradually
|
||
declining as SE Asian crushers (Vietnam, Bangladesh) grow.
|
||
|
||
Want me to overlay this against Brazil vs US origin splits from GATS?
|
||
|
||
|
||
=============================================================
|
||
SKILL 6: Trade Flow Intelligence (GTT)
|
||
=============================================================
|
||
|
||
The trade flow analyst creates a skill using Global Trade Tracker:
|
||
|
||
User: /agent-skill-creator I use Global Trade Tracker to monitor real-time commodity trade flows. My main workflow: I pull monthly import/export data by HS code for soybeans (1201), soybean meal (2304), corn (1005), and wheat (1001) — tracking who's buying from whom, how volumes compare to the same month last year, and whether trade is shifting between origins. For example, if China starts buying more Brazilian soybeans and fewer US soybeans, I need to catch that shift early. I also track minor but growing trade corridors (like Russian wheat to Africa, or Ukrainian corn to Southeast Asia) that could signal structural market changes. GTT credentials are in my env as GTT_USER_ID and GTT_PASSWORD. The GTT REST API is at globaltradetracker.com/api/rest/ — you get a token from /gettoken then use /getreport and /tradedetails. Here's my methodology: references/trade-flow-methodology.pdf
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/trade-flow-methodology.pdf...
|
||
|
||
Your methodology: origin-destination matrices by commodity, year-over-year
|
||
volume changes, market share shifts by origin country, and an "emerging
|
||
corridor" detector that flags any bilateral trade route where volume
|
||
doubled or tripled in 12 months. Let me build this.
|
||
|
||
Implicit requirements:
|
||
- GTT auth: POST to /api/rest/gettoken with GTT_USER_ID + GTT_PASSWORD,
|
||
token valid 14 days, cache and refresh as needed
|
||
- /api/rest/getreport requires: reporter, hscode, impexp, and a time
|
||
parameter (from/to in YYYY-MM or latestavailablemonths)
|
||
- HS codes at 4-digit level: 1201 (soybeans), 2304 (soybean meal),
|
||
1005 (corn), 1001 (wheat). Can drill to 6-digit for specifics
|
||
- GTT data arrives with ~2-3 month lag for some countries — need to
|
||
handle uneven reporting periods across reporters
|
||
- "Mirror data" fallback: when a country hasn't reported yet, use the
|
||
partner country's mirror data (GTT supports fallbacktomirrordata=true)
|
||
- Currency: all volumes in MT (not value) for commodity flow analysis
|
||
- Need to distinguish re-exports from domestic exports (impexp parameter)
|
||
- EU-27 can be treated as a single entity or individual members — the
|
||
skill should support both views
|
||
- The "emerging corridor" detector needs a minimum volume threshold to
|
||
avoid flagging noise (e.g., 10,000 MT/month minimum)
|
||
|
||
Building...
|
||
|
||
trade-flow-intel-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── gtt_client.py # GTT REST API wrapper (auth, token caching,
|
||
│ │ # getreport, tradedetails, error handling)
|
||
│ ├── origin_dest_matrix.py # Origin × destination trade matrices
|
||
│ ├── market_share.py # Origin market share by importer
|
||
│ ├── yoy_comparison.py # Year-over-year volume changes
|
||
│ ├── corridor_detector.py # Emerging trade corridor alerts
|
||
│ ├── mirror_data.py # Mirror data fallback handler
|
||
│ ├── seasonal_pattern.py # Monthly trade seasonality by route
|
||
│ └── report_builder.py # Trade flow report (PDF + charts)
|
||
├── references/
|
||
│ ├── hs-codes.md # 1201, 2304, 1005, 1001 + sub-codes
|
||
│ ├── gtt-api-reference.md # Endpoint docs, params, response format
|
||
│ ├── country-codes.md # GTT country codes + ISO mappings
|
||
│ ├── data-lag-calendar.md # Expected reporting lag by country
|
||
│ └── methodology.md # Market share, corridor detection logic
|
||
├── assets/
|
||
│ ├── top_importers.json # Key importing countries by commodity
|
||
│ └── top_exporters.json # Key exporting countries by commodity
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (GTT_USER_ID and GTT_PASSWORD read from env, not hardcoded)
|
||
Installed at: ~/.claude/skills/trade-flow-intel-skill
|
||
|
||
Shared to: github.com/acme-trading/trade-flow-intel-skill
|
||
|
||
|
||
--- China's soybean sourcing shift ---
|
||
|
||
Analyst: /trade-flow-intel-skill Pull the latest soybean (1201) import data for China. Show me the origin breakdown — US vs Brazil vs Argentina vs others — monthly for the last 12 months. I want to see if the sourcing pattern is shifting.
|
||
|
||
Copilot (loading trade-flow-intel-skill):
|
||
|
||
Authenticating with GTT... (using GTT_USER_ID, GTT_PASSWORD from env)
|
||
Token obtained (valid 14 days, cached).
|
||
Pulling HS 1201 imports, reporter: China, last 12 available months...
|
||
Note: China's latest available data is January 2026 (2-month lag).
|
||
|
||
CHINA SOYBEAN IMPORTS BY ORIGIN — Feb 2025 to Jan 2026
|
||
Units: Thousand Metric Tons
|
||
|
||
| Month | Brazil | USA | Argentina | Uruguay | Canada | Other | TOTAL |
|
||
|----------|---------|---------|-----------|---------|--------|-------|---------|
|
||
| Feb 2025 | 4,120 | 3,890 | 210 | 85 | 120 | 195 | 8,620 |
|
||
| Mar 2025 | 5,680 | 2,410 | 340 | 140 | 80 | 210 | 8,860 |
|
||
| Apr 2025 | 7,230 | 980 | 520 | 190 | 45 | 175 | 9,140 |
|
||
| May 2025 | 8,410 | 420 | 680 | 210 | 30 | 160 | 9,910 |
|
||
| Jun 2025 | 9,100 | 310 | 750 | 180 | 25 | 190 | 10,555 |
|
||
| Jul 2025 | 8,870 | 280 | 610 | 150 | 20 | 170 | 10,100 |
|
||
| Aug 2025 | 7,640 | 350 | 480 | 120 | 15 | 155 | 8,760 |
|
||
| Sep 2025 | 5,210 | 1,870 | 320 | 80 | 45 | 140 | 7,665 |
|
||
| Oct 2025 | 3,180 | 4,560 | 180 | 50 | 190 | 160 | 8,320 |
|
||
| Nov 2025 | 2,440 | 5,890 | 120 | 40 | 280 | 175 | 8,945 |
|
||
| Dec 2025 | 2,890 | 5,420 | 150 | 55 | 250 | 190 | 8,955 |
|
||
| Jan 2026 | 3,540 | 4,680 | 200 | 70 | 210 | 180 | 8,880 |
|
||
|----------|---------|---------|-----------|---------|--------|-------|---------|
|
||
| 12M TOTAL| 68,310 | 31,060 | 4,560 | 1,370 | 1,310 | 2,100 | 108,710 |
|
||
| Share | 62.8% | 28.6% | 4.2% | 1.3% | 1.2% | 1.9% | 100% |
|
||
|
||
MARKET SHARE vs SAME 12-MONTH PERIOD LAST YEAR:
|
||
| Origin | This Year | Last Year | Shift |
|
||
|-----------|-----------|-----------|-----------|
|
||
| Brazil | 62.8% | 60.1% | +2.7 pp |
|
||
| USA | 28.6% | 31.4% | -2.8 pp |
|
||
| Argentina | 4.2% | 4.8% | -0.6 pp |
|
||
| Canada | 1.2% | 0.8% | +0.4 pp |
|
||
|
||
ANALYSIS:
|
||
Brazil gained 2.7 percentage points of China's soybean import market at
|
||
the expense of the US (-2.8 pp). This is the second consecutive year of
|
||
share shift toward Brazil.
|
||
|
||
Key drivers:
|
||
1. Brazil's record 169 MMT crop created export price competitiveness —
|
||
CFR China spread was $8-12/MT cheaper than US Gulf for most of Q2 2025
|
||
2. US Oct-Jan shipping season saw logistical delays on the Mississippi
|
||
(low water Sep-Oct) that pushed buyers to book Brazil forward
|
||
3. Canada is quietly growing — from 0.8% to 1.2% share. Canadian
|
||
soybeans move through Pacific ports (Vancouver) which is a shorter
|
||
transit to northern China
|
||
|
||
The seasonal pattern is intact (Brazil dominates Apr-Aug, US dominates
|
||
Oct-Jan) but the crossover points are shifting earlier — Brazil's share
|
||
started growing in March this year vs April last year, suggesting China
|
||
is booking Brazilian soybeans further forward.
|
||
|
||
RISK FOR US EXPORTERS: If Brazil's 2026/27 crop (planting starts Sep 2026)
|
||
achieves even 5% growth, the US share of Chinese soybean imports could
|
||
drop below 27% for the first time since the trade war year.
|
||
|
||
Want me to drill into the monthly FOB/CFR price differentials to quantify
|
||
the price competitiveness driver?
|
||
|
||
|
||
--- Emerging corridor detection ---
|
||
|
||
Analyst: /trade-flow-intel-skill Run the emerging corridor scan for wheat (1001) — which bilateral trade routes have grown the fastest in the last 12 months vs prior year?
|
||
|
||
Copilot:
|
||
|
||
Pulling HS 1001 global trade flows, latest 12 months vs prior 12...
|
||
Filtering: minimum 10,000 MT/month, growth > 100%...
|
||
|
||
EMERGING WHEAT TRADE CORRIDORS — Fastest Growing Routes
|
||
|
||
| Exporter | Importer | This 12M (KMT) | Prior 12M (KMT) | Growth |
|
||
|--------------|----------------|-----------------|-----------------|---------|
|
||
| Russia | Algeria | 4,820 | 2,140 | +125% |
|
||
| Russia | Bangladesh | 1,560 | 620 | +152% |
|
||
| Russia | Nigeria | 890 | 280 | +218% |
|
||
| Ukraine | Indonesia | 2,340 | 1,080 | +117% |
|
||
| Ukraine | Philippines | 780 | 340 | +129% |
|
||
| Australia | Vietnam | 1,120 | 480 | +133% |
|
||
| Argentina | Brazil | 5,410 | 2,890 | +87% |
|
||
| Kazakhstan | Uzbekistan | 1,890 | 780 | +142% |
|
||
|
||
TOP STRUCTURAL SHIFTS:
|
||
|
||
1. RUSSIA → AFRICA (Algeria, Nigeria): Russian wheat is aggressively
|
||
displacing French wheat in North and West Africa. Algeria historically
|
||
bought French milling wheat but Russia now offers 12-15% protein hard
|
||
wheat at $30-40/MT discount. Nigeria's growth is from near zero — this
|
||
is a new corridor. Russia now supplies 68% of Algeria's wheat imports,
|
||
up from 41% two years ago.
|
||
|
||
2. RUSSIA → BANGLADESH: Bangladesh was a traditional Australian wheat
|
||
buyer. Russian wheat is now competitive into Chittagong port at $15/MT
|
||
below Australian APW. This corridor barely existed 3 years ago.
|
||
|
||
3. UKRAINE → SOUTHEAST ASIA (Indonesia, Philippines): Ukraine rebuilt
|
||
Black Sea export logistics post-corridor agreement. Indonesian flour
|
||
mills are diversifying away from 100% Australian dependence. Ukrainian
|
||
wheat offers good protein at lower cost via Odessa-Singapore-Jakarta
|
||
route.
|
||
|
||
4. ARGENTINA → BRAZIL: Brazil's wheat self-sufficiency is only ~55%.
|
||
Argentine wheat fills the gap. The +87% growth is driven by the weak
|
||
Argentine peso making exports competitive and a below-average Brazilian
|
||
wheat crop in Rio Grande do Sul.
|
||
|
||
LOSERS (corridors that shrank):
|
||
| Exporter | Importer | This 12M (KMT) | Prior 12M (KMT) | Change |
|
||
|--------------|----------------|-----------------|-----------------|---------|
|
||
| France | Algeria | 1,240 | 3,100 | -60% |
|
||
| Australia | Bangladesh | 420 | 890 | -53% |
|
||
| USA | Nigeria | 310 | 680 | -54% |
|
||
|
||
TAKEAWAY: Russian wheat is structurally reshaping global trade flows.
|
||
The Black Sea export machine (deep water ports, low production costs,
|
||
weak ruble) is pushing traditional exporters (France, US, Australia) out
|
||
of price-sensitive emerging markets. This isn't temporary — it's
|
||
infrastructure-driven and accelerating.
|
||
|
||
|
||
=============================================================
|
||
SKILL 7: PSD + GTT Combined — Supply Chain Risk Monitor
|
||
=============================================================
|
||
|
||
The research director combines both data sources into a single skill:
|
||
|
||
User: /agent-skill-creator I need a skill that combines PSD balance sheet data with GTT trade flow data to monitor supply chain risk for our four commodities. The idea: PSD tells us the global supply picture (who's producing, who's short). GTT tells us the trade reality (who's actually shipping to whom). When those two diverge — like when a country's PSD ending stocks are falling but GTT shows they're still exporting at last year's pace — that's an early warning of a future export restriction or price spike. I also want to cross-reference GTT flows against USDA Export Sales (from the FAS Open Data API, same PSD_API_KEY) to see if announced sales are actually being shipped. API credentials: PSD_API_KEY and GTT_USER_ID/GTT_PASSWORD are in my env. See my framework doc: references/supply-chain-risk-framework.pdf
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/supply-chain-risk-framework.pdf...
|
||
|
||
This is a sophisticated early-warning system. Your framework defines three
|
||
risk signals: (1) stock depletion + continued exports, (2) export sale
|
||
commitments that aren't converting to shipments, (3) sudden origin
|
||
diversification by major importers. Let me build this.
|
||
|
||
Implicit requirements:
|
||
- Must call both PSD API and GTT API, correlate by commodity and country
|
||
- PSD data is marketing-year based, GTT is calendar-month — need alignment
|
||
- USDA Export Sales (FAS API, same key) provides weekly US commitments vs
|
||
shipments — the "commitment-to-shipment" conversion rate is a key metric
|
||
- Export restriction history: need a reference table of past export bans
|
||
(Russia 2010, Argentina 2022, India rice 2023) to calibrate risk levels
|
||
- The divergence detector compares: PSD ending stocks trajectory (shrinking?)
|
||
vs GTT export volumes (still high?) — when stocks fall below 15% S/U
|
||
while exports maintain pace, flag as "restriction risk"
|
||
- Alert hierarchy: GREEN (normal), YELLOW (watch), ORANGE (elevated),
|
||
RED (imminent restriction risk)
|
||
- Country-specific export policy knowledge: Russia uses floating export
|
||
tax, Argentina uses DEX + ROE system, India uses ad-hoc bans
|
||
|
||
Building...
|
||
|
||
supply-chain-risk-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── psd_client.py # PSD API wrapper
|
||
│ ├── gtt_client.py # GTT API wrapper
|
||
│ ├── fas_export_sales.py # USDA FAS Export Sales API
|
||
│ ├── stock_export_divergence.py # PSD stocks vs GTT flows comparison
|
||
│ ├── commitment_tracker.py # Export sales vs actual shipments
|
||
│ ├── origin_shift_detector.py # Sudden sourcing changes by importers
|
||
│ ├── restriction_risk.py # Export ban/tax probability model
|
||
│ ├── risk_dashboard.py # Alert dashboard builder (HTML)
|
||
│ └── weekly_report.py # Supply chain risk weekly PDF
|
||
├── references/
|
||
│ ├── restriction-history.md # Past export bans with triggers/duration
|
||
│ ├── policy-mechanisms.md # How each country restricts exports
|
||
│ ├── risk-thresholds.md # S/U ratios that historically trigger bans
|
||
│ ├── psd-gtt-alignment.md # Marketing year to calendar month mapping
|
||
│ └── methodology.md # Full risk framework
|
||
├── assets/
|
||
│ └── restriction_database.json # Historical export restrictions
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (all 3 credentials read from env)
|
||
Installed at: ~/.claude/skills/supply-chain-risk-skill
|
||
|
||
Shared to: github.com/acme-trading/supply-chain-risk-skill
|
||
|
||
|
||
--- Weekly risk scan ---
|
||
|
||
Research Director: /supply-chain-risk-skill Run the weekly supply chain risk scan across all four commodities. Flag anything orange or red.
|
||
|
||
Copilot (loading supply-chain-risk-skill):
|
||
|
||
Authenticating with PSD API... OK
|
||
Authenticating with GTT... token cached, valid 12 more days
|
||
Pulling FAS Export Sales... OK
|
||
|
||
Scanning: soybeans, corn, wheat, coffee across 40+ countries...
|
||
|
||
SUPPLY CHAIN RISK DASHBOARD — Week of March 2, 2026
|
||
|
||
=============================================
|
||
RED ALERTS (0)
|
||
=============================================
|
||
None.
|
||
|
||
=============================================
|
||
ORANGE ALERTS (2)
|
||
=============================================
|
||
|
||
1. ARGENTINA — SOYBEAN MEAL EXPORTS
|
||
Risk level: ORANGE (elevated)
|
||
|
||
PSD signal: Argentina 2025/26 soybean production just cut 2 MMT to
|
||
50 MMT. Soybean crush projected at 37 MMT. Domestic soybean stocks
|
||
falling — ending stocks/use at 15.2%, approaching the 14% threshold
|
||
that historically triggers DEX tax increases.
|
||
|
||
GTT signal: Argentine soybean meal exports (HS 2304) in Nov-Jan
|
||
averaged 2.1 MMT/month — ABOVE last year's pace of 1.9 MMT/month.
|
||
Exporters appear to be front-running a potential tax hike.
|
||
|
||
DIVERGENCE: Stocks tightening + exports accelerating = classic
|
||
pre-restriction pattern. Argentina raised the soybean export tax
|
||
(DEX) from 31% to 33% in 2022 under similar conditions.
|
||
|
||
Watch for: Argentine government budget statements, central bank
|
||
reserve levels (low reserves = higher probability of tax increase
|
||
to generate USD revenue).
|
||
|
||
2. INDIA — WHEAT
|
||
Risk level: ORANGE (elevated)
|
||
|
||
PSD signal: India 2025/26 wheat ending stocks estimated at 7.8 MMT,
|
||
the lowest since 2017/18. Government procurement was below target
|
||
for the second consecutive year. S/U ratio at 7.1%.
|
||
|
||
GTT signal: India wheat exports (HS 1001) have been near zero since
|
||
the May 2022 ban, which remains in place. However, GTT shows India
|
||
IMPORTED 1.2 MMT of wheat in the last 6 months (from Russia and
|
||
Australia) — unusual for a country that is typically self-sufficient.
|
||
|
||
DIVERGENCE: India is quietly switching from net exporter to net
|
||
importer. The import volumes suggest domestic availability is tighter
|
||
than official PSD estimates reflect. If procurement fails again in
|
||
the April-May 2026 rabi harvest, India could become a structural
|
||
wheat importer for the first time in a decade.
|
||
|
||
Implication: Bullish for global wheat if India enters the import
|
||
market at scale (1.4 billion people, even small per-capita import
|
||
= large absolute volume).
|
||
|
||
=============================================
|
||
YELLOW ALERTS (3)
|
||
=============================================
|
||
|
||
3. RUSSIA — WHEAT EXPORT TAX
|
||
Status: YELLOW (watch)
|
||
The floating export tax mechanism automatically adjusts. Current tax
|
||
is $22/MT on wheat. If FOB Black Sea prices rise above $280/MT (now
|
||
at $265), tax increases to $28/MT. Not a ban risk, but a margin
|
||
squeeze for importers locked into forward purchases at current prices.
|
||
|
||
4. BRAZIL — CORN EXPORTS
|
||
Status: YELLOW (watch)
|
||
Safrinha corn (second crop) planting is 2 weeks behind average due
|
||
to late soybean harvest. If safrinha yields disappoint, Brazil's
|
||
corn S&D tightens and Jul-Oct corn exports could fall below GTT's
|
||
current pace projection. Not urgent yet — safrinha crop doesn't
|
||
ship until July.
|
||
|
||
5. US — SOYBEAN EXPORT SALES CONVERSION
|
||
Status: YELLOW (watch)
|
||
FAS Export Sales show 4.2 MMT of outstanding (unshipped) soybean
|
||
commitments to China. GTT actual shipments in Jan were 4.68 MMT.
|
||
The commitment-to-shipment conversion rate is 78%, below the 5-year
|
||
average of 85% for this point in the marketing year. Could indicate
|
||
some Chinese cancellations incoming, or just logistical delays.
|
||
Monitor next 2-3 weeks of inspection data.
|
||
|
||
=============================================
|
||
GREEN (all clear)
|
||
=============================================
|
||
Soybeans (Brazil, US, Paraguay): normal flows
|
||
Corn (US, Ukraine): normal flows
|
||
Wheat (Russia export volumes, Canada, Australia, EU): normal flows
|
||
Coffee (Brazil, Vietnam, Colombia): normal flows
|
||
|
||
PDF dashboard: reports/supply-chain-risk-2026-03-02.pdf
|
||
HTML interactive: reports/supply-chain-risk-2026-03-02.html
|
||
|
||
Next scan: March 9, 2026 (auto-scheduled).
|
||
|
||
|
||
=============================================================
|
||
COMPLETE TEAM SKILL LIBRARY — WITH PSD & GTT
|
||
=============================================================
|
||
|
||
Updated skill library after adding the data-platform skills:
|
||
|
||
SKILL CREATED BY DATA SOURCES
|
||
─────────────────────────────────────────────────────────────────
|
||
wasde-analyzer-skill Senior grain analyst USDA WASDE PDF, Bloomberg
|
||
crop-weather-weekly-skill Weather/crop analyst USDA NASS, NOAA, Drought Monitor
|
||
basis-export-tracker-skill Logistics analyst DTN bids, USDA FAS, barge freight
|
||
coffee-fundamental-skill Softs analyst CEPEA, ICE, CFTC COT, ECMWF
|
||
psd-balance-sheet-skill Senior grain analyst USDA PSD API (PSD_API_KEY)
|
||
trade-flow-intel-skill Trade flow analyst GTT REST API (GTT_USER_ID/PASSWORD)
|
||
supply-chain-risk-skill Research director PSD + GTT + FAS combined
|
||
seasonal-spread-skill Quant analyst CBOT historical, seasonal models
|
||
client-briefing-skill Research director Calls other skills internally
|
||
|
||
Environment variables required for new team members:
|
||
|
||
export PSD_API_KEY="your-usda-fas-api-key"
|
||
export GTT_USER_ID="your-gtt-username"
|
||
export GTT_PASSWORD="your-gtt-password"
|
||
export STRIPE_API_KEY="..." # only for non-ag skills
|
||
export MIXPANEL_TOKEN="..." # only for non-ag skills
|
||
|
||
The team lead adds these to the onboarding doc. Credentials are never
|
||
stored in skill code — they're always read from environment variables
|
||
at runtime. The security scanner catches any accidental hardcoding
|
||
before the skill is published.
|
||
|
||
New hire onboarding is now:
|
||
|
||
1. Get API credentials from team lead (PSD_API_KEY, GTT creds)
|
||
2. Add to ~/.zshrc or ~/.bashrc
|
||
3. Run the 7 install commands
|
||
4. Start using skills immediately
|
||
|
||
Total setup time: 15 minutes. Knowledge transfer time: zero.
|
||
Everything the team knows is in the skills.
|
||
|
||
|
||
=============================================================
|
||
EXPANDED: OPEN-METEO PROFESSIONAL API SKILLS
|
||
=============================================================
|
||
|
||
The team also has an Open-Meteo professional plan:
|
||
|
||
OPEN_METEO_API_KEY — Open-Meteo professional subscription. Unlocked:
|
||
commercial use, higher rate limits, 80+ years of
|
||
historical data, ensemble models (ECMWF 51-member,
|
||
GFS 31-member), climate projections to 2050, soil
|
||
moisture at 5 depths, soil temperature at 4 depths,
|
||
ET0 evapotranspiration, GDD, and leaf wetness.
|
||
Endpoints: api.open-meteo.com/v1/forecast,
|
||
archive.open-meteo.com/v1/archive,
|
||
ensemble-api.open-meteo.com/v1/ensemble,
|
||
climate-api.open-meteo.com/v1/climate
|
||
|
||
Open-Meteo is the weather backbone. It replaces the patchwork of NOAA,
|
||
ECMWF direct, and national weather services the team was stitching
|
||
together manually. One API, every variable, 80 years of history.
|
||
|
||
|
||
=============================================================
|
||
SKILL 8: Yield Predictor — Weather-Based Crop Yield Model
|
||
=============================================================
|
||
|
||
The quant analyst builds a yield regression model powered by weather:
|
||
|
||
User: /agent-skill-creator I want to build a crop yield prediction model that uses weather data to estimate corn and soybean yields in the US Corn Belt BEFORE the USDA publishes their official estimate. The idea: USDA doesn't release their first survey-based yield estimate until August. But weather during the growing season is the #1 driver of yield — if I can quantify the weather impact, I can have a yield estimate weeks before USDA. My approach: pull 40 years of historical daily weather from Open-Meteo (temperature, precipitation, soil moisture, evapotranspiration) for the top 8 corn-producing states, calculate growing-season metrics (cumulative GDD, total precipitation, drought stress days, excess heat days above 95F during pollination), and run a regression against USDA's final yield for each year. Then apply the model to the current season's weather to get a real-time yield estimate that updates daily. Open-Meteo API key is in my env as OPEN_METEO_API_KEY. Here's my research paper on weather-yield relationships: references/weather-yield-regression.pdf
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/weather-yield-regression.pdf...
|
||
|
||
Your paper identifies six weather variables that explain 78% of US corn
|
||
yield variance: (1) cumulative GDD May-Sep, (2) July precipitation, (3)
|
||
July max temp during pollination, (4) August soil moisture 0-10cm, (5)
|
||
VPD during silking, and (6) June precipitation for root establishment.
|
||
Soybeans have a similar but shifted model — critical period is Aug-Sep
|
||
instead of Jul-Aug. Let me build this.
|
||
|
||
Implicit requirements:
|
||
- Open-Meteo Historical API (archive.open-meteo.com/v1/archive):
|
||
daily data from 1984-present, variables: temperature_2m_max,
|
||
temperature_2m_min, precipitation_sum, et0_fao_evapotranspiration,
|
||
soil_moisture_0_to_1cm through 9_to_27cm, vapour_pressure_deficit
|
||
- Open-Meteo Forecast API (api.open-meteo.com/v1/forecast): same
|
||
variables, 16-day forecast, for projecting the current season forward
|
||
- API key passed as &apikey= parameter (professional plan)
|
||
- Need lat/long centroids for each state's ag district — not state
|
||
capitals, but production-weighted centroids (e.g., central Iowa
|
||
cropland at ~42.0°N, 93.5°W, not Des Moines)
|
||
- GDD calculation: base 50°F (10°C), cap at 86°F (30°C) — the standard
|
||
corn GDD formula, not simple average
|
||
- "Drought stress days": soil_moisture_0_to_1cm < 0.15 m³/m³ during
|
||
Jun-Aug. Consecutive drought days matter more than scattered ones
|
||
- "Excess heat days": temperature_2m_max > 35°C during Jul 5-25
|
||
(pollination window for corn). Each excess heat day costs ~1-2 bu/ac
|
||
- USDA final yield data (NASS QuickStats) for training the regression
|
||
- Yield trend detrending: raw yields increase ~2 bu/ac/year due to
|
||
technology. Must detrend before regression to isolate weather effect
|
||
- The model should output: point estimate, confidence interval, and
|
||
comparison to USDA's latest estimate (when available)
|
||
|
||
Building...
|
||
|
||
yield-predictor-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── openmeteo_client.py # Open-Meteo API wrapper (auth, batch queries,
|
||
│ │ # historical + forecast + archive endpoints)
|
||
│ ├── weather_metrics.py # GDD, precip, drought days, excess heat, VPD,
|
||
│ │ # soil moisture — all derived metrics
|
||
│ ├── yield_regression.py # Multi-variate regression (40yr training set)
|
||
│ ├── trend_detrend.py # Technology trend removal + re-trending
|
||
│ ├── state_centroids.py # Production-weighted lat/long by state
|
||
│ ├── realtime_estimator.py # Current season: actuals + 16-day forecast
|
||
│ │ # extension + climatology for remainder
|
||
│ ├── confidence_interval.py # Bootstrap CI from regression residuals
|
||
│ ├── usda_comparison.py # Compare model vs USDA when available
|
||
│ └── report_builder.py # Yield estimate report (PDF + charts)
|
||
├── references/
|
||
│ ├── gdd-formula.md # Corn/soy GDD calculation (base/cap)
|
||
│ ├── critical-periods.md # Pollination, pod-fill, grain-fill windows
|
||
│ ├── yield-weather-lit.md # Academic literature on weather-yield models
|
||
│ ├── state-centroids.md # 8 states, ag district centroids
|
||
│ └── methodology.md # Full regression methodology
|
||
├── assets/
|
||
│ ├── centroids.json # {state: {lat, lon, weight}}
|
||
│ ├── usda_historical_yields.csv # 1984-2025 state yields from NASS
|
||
│ └── trained_model.json # Serialized regression coefficients
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (OPEN_METEO_API_KEY read from env)
|
||
Installed at: ~/.claude/skills/yield-predictor-skill
|
||
|
||
Shared to: github.com/acme-trading/yield-predictor-skill
|
||
|
||
|
||
--- Mid-July, the model starts getting interesting ---
|
||
|
||
Quant Analyst: /yield-predictor-skill Run the yield model for US corn. Where are we at for 2026?
|
||
|
||
Copilot (loading yield-predictor-skill):
|
||
|
||
Pulling Open-Meteo historical data for 2026 growing season (Apr 1 - today)...
|
||
Pulling 16-day forecast (Jul 15 - Jul 31)...
|
||
Filling Aug-Sep with 30-year climatology (weighted by current soil state)...
|
||
Running regression...
|
||
|
||
US CORN YIELD MODEL — July 15, 2026
|
||
|
||
WEATHER METRICS TO DATE (weighted across 8 states):
|
||
|
||
| Metric | 2026 Actual | 30yr Avg | Deviation |
|
||
|-------------------------------|-------------|----------|---------------|
|
||
| Cumulative GDD (Apr 15-Jul 14)| 1,580 | 1,490 | +6.0% (warm) |
|
||
| June precipitation (inches) | 4.8 | 4.3 | +11.6% (wet) |
|
||
| July precip to date (inches) | 1.1 | 2.2 | -50.0% (dry!) |
|
||
| Drought stress days (Jun-Jul) | 8 | 4 | +4 days |
|
||
| Excess heat days >95F | 3 | 1.5 | +1.5 days |
|
||
| Soil moisture 0-10cm (m³/m³) | 0.18 | 0.24 | -25.0% (low) |
|
||
| VPD avg Jul 1-14 (kPa) | 1.82 | 1.35 | +34.8% (high) |
|
||
|
||
STATE-BY-STATE BREAKDOWN:
|
||
|
||
| State | Model Yield | USDA Trend | Deviation | Key Driver |
|
||
|-----------|-------------|------------|-----------|----------------------|
|
||
| Iowa | 178 bu/ac | 198 bu/ac | -10.1% | Jul drought + heat |
|
||
| Illinois | 196 bu/ac | 202 bu/ac | -3.0% | Adequate Jun rain |
|
||
| Indiana | 189 bu/ac | 194 bu/ac | -2.6% | Moderate stress |
|
||
| Minnesota | 184 bu/ac | 192 bu/ac | -4.2% | VPD stress, ok rain |
|
||
| Nebraska | 172 bu/ac | 196 bu/ac | -12.2% | Severe Jul drought |
|
||
| Ohio | 192 bu/ac | 190 bu/ac | +1.1% | Good conditions |
|
||
| S. Dakota | 152 bu/ac | 168 bu/ac | -9.5% | Drought + thin soils |
|
||
| Wisconsin | 176 bu/ac | 182 bu/ac | -3.3% | Moderate |
|
||
|
||
NATIONAL WEIGHTED ESTIMATE:
|
||
|
||
Model yield: 181.4 bu/ac
|
||
USDA trend yield: 194.0 bu/ac (technology trend)
|
||
Model vs trend: -12.6 bu/ac (-6.5%)
|
||
|
||
90% confidence interval: 175 — 188 bu/ac
|
||
|
||
SCENARIO ANALYSIS (remainder of season):
|
||
|
||
| Scenario | Yield Est | Probability |
|
||
|----------------------------------|------------|-------------|
|
||
| Drought breaks by Jul 25 (rain) | 188 bu/ac | 35% |
|
||
| Current pattern continues | 181 bu/ac | 45% |
|
||
| Drought intensifies through Aug | 172 bu/ac | 20% |
|
||
|
||
The 16-day forecast shows ECMWF bringing a cold front through the
|
||
western Corn Belt around Jul 24-26 with 0.5-1.0 inches. If verified,
|
||
the "drought breaks" scenario becomes more likely, but the damage
|
||
during pollination week (Jul 10-20) in Iowa and Nebraska is already
|
||
locked in. Those bushels aren't coming back.
|
||
|
||
CONTEXT: USDA's July WASDE used a trend yield of 181 bu/ac (their first
|
||
estimate). Our model agrees with USDA's number this month, but for
|
||
different reasons — USDA hasn't incorporated the July heat/drought yet
|
||
(their July report uses trend, not weather). When USDA releases their
|
||
August survey-based estimate, expect them to cut to 177-183 range.
|
||
|
||
MARKET IMPLICATION: If our model is right at 181 and USDA's August
|
||
estimate comes in at 179 (a 2 bu/ac cut from trend), that removes
|
||
~280 million bushels from US production. At current demand, that would
|
||
cut ending stocks from 2.1 billion to 1.82 billion bushels and push
|
||
the stocks/use ratio from 14.5% to 12.5%. Dec corn futures should
|
||
reprice $0.25-$0.40 higher.
|
||
|
||
PDF report: reports/yield-model-corn-2026-07-15.pdf
|
||
|
||
Want me to run soybeans too? Soybean critical period (pod fill) hasn't
|
||
started yet — the model has less signal this early.
|
||
|
||
|
||
=============================================================
|
||
SKILL 9: Parana River Drought & Logistics Risk
|
||
=============================================================
|
||
|
||
The logistics analyst builds something no one else on the street has:
|
||
|
||
User: /agent-skill-creator Here's a unique edge I want to build: the Parana River system in Argentina/Brazil handles 80% of Argentine grain exports from the Rosario-Santa Fe port complex. When the Parana runs low, draft restrictions limit barge loading, which increases freight costs and delays shipments. The river level at Rosario is the single most important logistics variable for Argentine soy/corn exports. I want to track this using weather. My idea: pull historical and forecast precipitation for the Parana River watershed — the Upper Parana in Brazil (Minas Gerais, Sao Paulo, Parana, Mato Grosso do Sul) feeds the river. If rainfall in the watershed is below normal for 60+ days, river levels at Rosario drop 2-3 months later (the lag from upstream rain to downstream flow). I can use Open-Meteo's 80 years of precipitation history to build a rainfall-to-river-level lag model, then use the 16-day forecast plus seasonal climate projections to predict river levels 1-3 months ahead. Nobody on Wall Street models this — they react to draft restrictions AFTER they're announced. We'd see them coming weeks ahead. Open-Meteo key in env as OPEN_METEO_API_KEY. Also I have a spreadsheet with historical Rosario river gauge readings from Argentina's naval hydrography service: data/rosario-river-levels-1990-2026.xlsx
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading data/rosario-river-levels-1990-2026.xlsx...
|
||
|
||
35 years of daily river gauge readings at Rosario (km 416 of the Parana).
|
||
I can see the 2021-2022 historic drought clearly — river dropped to 0.08m
|
||
(normal is ~3.5m), which caused $2.4 billion in extra freight costs for
|
||
Argentine exporters. Let me build this.
|
||
|
||
Implicit requirements:
|
||
- Open-Meteo Historical API: daily precipitation_sum for 12 sub-basins
|
||
across the Upper Parana watershed in Brazil (lat/long grid covering
|
||
~800,000 km² of catchment area)
|
||
- Open-Meteo Forecast API: 16-day precipitation forecast for same grid
|
||
- Open-Meteo Climate API: seasonal precipitation projections (CMIP6
|
||
models) for 1-3 month outlook
|
||
- Ensemble API (ensemble-api.open-meteo.com): ECMWF 51-member and GFS
|
||
31-member ensembles for probabilistic rainfall forecasts — critical
|
||
for the "will it rain enough?" question
|
||
- The rainfall-to-river-level lag varies by sub-basin: Upper Parana
|
||
(Mato Grosso do Sul) has a 30-45 day lag to Rosario, Tietê tributary
|
||
(São Paulo) has 45-60 day lag, Paranaíba (Minas Gerais/Goiás) has
|
||
60-90 day lag
|
||
- Itaipu Dam releases affect downstream flow — need to account for
|
||
regulated vs natural flow
|
||
- Draft restriction thresholds: below 2.0m at Rosario = Panamax vessels
|
||
can't fully load. Below 1.0m = barges limited to 60% capacity.
|
||
Below 0.5m = effective port shutdown for ocean vessels
|
||
- Export calendar: Argentine soy harvest is Mar-May, corn harvest is
|
||
Mar-Jun. Peak export season is Apr-Aug. River problems during this
|
||
window are catastrophic for basis and FOB premiums
|
||
- The skill should output: current river level, 30/60/90-day predicted
|
||
level, probability of draft restrictions, and estimated freight cost
|
||
impact
|
||
|
||
Building...
|
||
|
||
parana-river-risk-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── openmeteo_client.py # Open-Meteo API wrapper (all 4 endpoints)
|
||
│ ├── watershed_rainfall.py # 12 sub-basin precipitation aggregation
|
||
│ ├── lag_model.py # Rainfall-to-river-level lag regression
|
||
│ │ # (30/45/60/90 day lags by sub-basin)
|
||
│ ├── river_level_predictor.py # Combines: actuals + forecast + climate +
|
||
│ │ # ensemble probabilities → predicted level
|
||
│ ├── ensemble_probabilities.py # ECMWF 51-member rainfall probability
|
||
│ │ # distribution for watershed
|
||
│ ├── draft_restriction.py # Threshold model: level → loading capacity
|
||
│ ├── freight_impact.py # Estimated $/MT cost increase by level
|
||
│ ├── export_window_risk.py # Overlay predictions on export calendar
|
||
│ └── report_builder.py # Parana River Risk Report (PDF + charts)
|
||
├── references/
|
||
│ ├── parana-watershed.md # 12 sub-basins, areas, lag times
|
||
│ ├── rosario-gauge.md # Gauge location, datum, thresholds
|
||
│ ├── draft-restrictions.md # Historical restrictions + impacts
|
||
│ ├── itaipu-releases.md # Dam regulation effects
|
||
│ └── methodology.md # Lag model, ensemble approach
|
||
├── assets/
|
||
│ ├── sub_basins.geojson # 12 watershed polygons with centroids
|
||
│ ├── rosario_historical.csv # River gauge 1990-2026
|
||
│ └── trained_lag_model.json # Serialized lag coefficients
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (OPEN_METEO_API_KEY read from env)
|
||
Installed at: ~/.claude/skills/parana-river-risk-skill
|
||
|
||
Shared to: github.com/acme-trading/parana-river-risk-skill
|
||
|
||
|
||
--- February, heading into Argentine export season ---
|
||
|
||
Logistics Analyst: /parana-river-risk-skill What's the river outlook for the April-August export window? I need to know if we should be hedging freight.
|
||
|
||
Copilot (loading parana-river-risk-skill):
|
||
|
||
Pulling Open-Meteo historical precip for Parana watershed (last 180 days)...
|
||
Pulling 16-day forecast (ECMWF + GFS)...
|
||
Pulling ECMWF 51-member ensemble for next 15 days...
|
||
Pulling Climate API seasonal projection (Mar-Aug 2026)...
|
||
Running lag model...
|
||
|
||
PARANA RIVER RISK REPORT — February 28, 2026
|
||
|
||
CURRENT STATUS:
|
||
River level at Rosario: 2.85m (normal for late Feb: 3.8m)
|
||
Status: BELOW NORMAL but above restriction threshold (2.0m)
|
||
|
||
WATERSHED RAINFALL — LAST 90 DAYS (Nov-Feb):
|
||
|
||
| Sub-basin | Actual (mm) | Normal (mm) | Deficit |
|
||
|---------------------|-------------|-------------|----------|
|
||
| Upper Parana (MS) | 680 | 820 | -17.1% |
|
||
| Tietê (SP) | 590 | 780 | -24.4% |
|
||
| Paranaíba (MG/GO) | 710 | 850 | -16.5% |
|
||
| Iguaçu (PR) | 820 | 790 | +3.8% |
|
||
| Paraguay River | 440 | 620 | -29.0% |
|
||
| TOTAL WATERSHED | 3,240 | 3,860 | -16.1% |
|
||
|
||
The Tietê (São Paulo) and Paraguay River sub-basins are significantly
|
||
below normal. The Iguaçu (Paraná state) is the only sub-basin at or
|
||
above normal.
|
||
|
||
16-DAY FORECAST:
|
||
|
||
| Period | Forecast Precip | Normal | Outlook |
|
||
|-----------------|-----------------|---------|-------------|
|
||
| Mar 1-7 | 35mm | 45mm | Below normal|
|
||
| Mar 8-15 | 50mm | 42mm | Above normal|
|
||
|
||
A frontal system around Mar 10-12 brings the best rain chance in weeks,
|
||
but it's concentrated over the Iguaçu sub-basin (southern watershed),
|
||
which has the shortest lag to Rosario. Upper Parana stays drier.
|
||
|
||
ENSEMBLE PROBABILITY (ECMWF 51-member, next 15 days):
|
||
- Probability of total watershed rainfall > normal: 22%
|
||
- Probability of total watershed rainfall < 75% of normal: 41%
|
||
- Probability of total watershed rainfall < 50% of normal: 12%
|
||
|
||
PREDICTED RIVER LEVELS AT ROSARIO:
|
||
|
||
| Period | Predicted Level | Normal | Restriction Risk |
|
||
|-------------|-----------------|---------|------------------|
|
||
| March | 2.6m ± 0.4m | 3.5m | LOW (>2.0m) |
|
||
| April | 2.1m ± 0.5m | 3.0m | MODERATE (near threshold) |
|
||
| May | 1.6m ± 0.6m | 2.5m | HIGH (<2.0m likely) |
|
||
| June | 1.3m ± 0.7m | 2.2m | HIGH |
|
||
| July | 1.5m ± 0.8m | 2.0m | MODERATE-HIGH |
|
||
| August | 1.8m ± 0.7m | 2.1m | MODERATE |
|
||
|
||
PROBABILITY OF DRAFT RESTRICTIONS (level < 2.0m) BY MONTH:
|
||
| April | May | June | July | August |
|
||
|-------|------|------|------|--------|
|
||
| 38% | 72% | 81% | 65% | 52% |
|
||
|
||
FREIGHT IMPACT ESTIMATE:
|
||
|
||
Current Up-River freight (Rosario-to-vessel): $18/MT
|
||
If level drops to 1.5m (May estimate): $28-32/MT (+$10-14/MT)
|
||
If level drops to 1.0m (worst case): $38-45/MT (+$20-27/MT)
|
||
|
||
For context: Argentine FOB soybean premium is currently +$8/MT over
|
||
CBOT. A $14/MT freight increase would push FOB premiums to +$22/MT,
|
||
which is close to the $25/MT peak during the 2021-22 Parana drought.
|
||
|
||
CLIMATE MODEL SEASONAL OUTLOOK (Mar-Aug 2026):
|
||
5 of 7 CMIP6 models show below-normal precipitation for the Upper
|
||
Parana watershed through May, with a return to normal by July. This
|
||
is consistent with the current weak La Niña signal, which historically
|
||
reduces rainfall in southern Brazil and the Parana basin.
|
||
|
||
RECOMMENDATION:
|
||
High probability (72%) of draft restrictions in May, coinciding with
|
||
peak Argentine soybean export shipments. This is a tradeable event:
|
||
- Argentine FOB soy basis will widen
|
||
- Brazilian soy basis (Paranaguá, Santos) will strengthen as buyers
|
||
divert from Rosario
|
||
- Barge freight futures (if available) should be bought
|
||
- CBOT May-July soybean spread could steepen on logistics premium
|
||
|
||
If you want to hedge, do it now — by the time restrictions are
|
||
announced (typically 2-3 weeks before they bite), the freight market
|
||
will have already moved.
|
||
|
||
PDF: reports/parana-river-risk-2026-02-28.pdf
|
||
|
||
|
||
=============================================================
|
||
SKILL 10: Global Crop Calendar & Anomaly Scanner
|
||
=============================================================
|
||
|
||
The weather analyst builds a skill that scans every major growing region
|
||
on Earth simultaneously — the "Bloomberg terminal for crop weather":
|
||
|
||
User: /agent-skill-creator I want a skill that monitors weather anomalies across every major crop-producing region globally — all at once. The commodity markets move when weather deviates from normal in a key region at a critical growth stage. The problem: there are 30+ regions that matter and each has a different crop calendar. I can't manually check weather for Brazil, Argentina, US, EU, Black Sea, India, China, SE Asia, and Australia every day. I want the skill to: (1) know the crop calendar for each commodity in each region (planting, vegetative, reproductive, harvest), (2) pull the current weather from Open-Meteo for each region daily, (3) compare against the 30-year climatology, (4) flag any region where a critical weather metric (precip, temp, soil moisture) deviates beyond 1.5 standard deviations from normal during a critical growth phase, and (5) rank the anomalies by market impact (a drought during US corn pollination matters more than excess rain during Ukrainian wheat dormancy). Use Open-Meteo's historical archive for the 30-year baselines and the forecast API for the forward-looking 16-day window. OPEN_METEO_API_KEY is in my env. Here's my spreadsheet with all the regions and crop calendars: data/global-crop-calendar.xlsx
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading data/global-crop-calendar.xlsx...
|
||
|
||
32 region-commodity combinations across 14 countries. Each with planting,
|
||
vegetative, reproductive, and harvest date ranges. This is a proper global
|
||
surveillance system. Let me build this.
|
||
|
||
Implicit requirements:
|
||
- Open-Meteo Historical API: 30-year daily climatology (1994-2023)
|
||
for 32 regions. Variables: temperature_2m_max, temperature_2m_min,
|
||
precipitation_sum, soil_moisture_0_to_7cm, et0_fao_evapotranspiration,
|
||
vapour_pressure_deficit
|
||
- Open-Meteo Forecast API: current + 16-day for all 32 regions
|
||
- Each region needs multiple grid points (not just one centroid) to
|
||
capture spatial variability — a 3x3 grid (~100km spacing) per region
|
||
- The 30-year climatology must be pre-computed and cached (not pulled
|
||
daily — 32 regions × 30 years = too many API calls in real-time)
|
||
- Standard deviation calculation: for each variable, each day-of-year,
|
||
each region → mean and stddev from 30-year history
|
||
- "Market impact weight": reproductive stage anomalies weighted 3x,
|
||
vegetative 2x, planting/harvest 1x. Production volume of the region
|
||
also weights the score (Iowa corn matters more than Ohio corn)
|
||
- Output: a ranked "heat map" — red/orange/yellow/green for each
|
||
region-commodity pair, sorted by composite impact score
|
||
- The scanner should run in < 30 seconds despite querying 32 regions
|
||
(batch and parallelize Open-Meteo calls, 3x3 grid = 288 locations)
|
||
- Ensemble API for the 16-day window adds probabilistic dimension —
|
||
"65% chance this anomaly persists through next week"
|
||
|
||
Building...
|
||
|
||
crop-anomaly-scanner-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── openmeteo_client.py # Open-Meteo API wrapper (batch, parallel)
|
||
│ ├── climatology_builder.py # Pre-compute 30yr normals + stddev
|
||
│ │ # (run once, cache to assets/)
|
||
│ ├── anomaly_detector.py # Current weather vs climatology,
|
||
│ │ # z-score by variable by region
|
||
│ ├── growth_stage_tracker.py # What stage is each crop in today?
|
||
│ ├── impact_scorer.py # Anomaly × growth stage × production
|
||
│ │ # volume = composite impact score
|
||
│ ├── ensemble_persistence.py # Will the anomaly continue? (ECMWF ensemble)
|
||
│ ├── region_grid.py # 3x3 grid generator per region
|
||
│ ├── dashboard_builder.py # Global heat map (HTML interactive)
|
||
│ └── daily_briefing.py # "Top 5 anomalies today" PDF
|
||
├── references/
|
||
│ ├── crop-calendar.md # 32 region-commodity growth phases
|
||
│ ├── region-definitions.md # Lat/long bounds, production weights
|
||
│ ├── anomaly-thresholds.md # z-score levels, impact weighting
|
||
│ ├── historical-analogues.md # Past anomaly events + market outcomes
|
||
│ └── methodology.md # Full scoring methodology
|
||
├── assets/
|
||
│ ├── regions.json # 32 regions with grids + weights
|
||
│ ├── crop_calendar.json # Growth phase dates by region-commodity
|
||
│ ├── climatology_cache/ # Pre-computed 30yr normals (per region)
|
||
│ │ ├── us-corn-belt.json
|
||
│ │ ├── brazil-center-west.json
|
||
│ │ ├── argentina-pampas.json
|
||
│ │ └── ... (29 more)
|
||
│ └── production_weights.json # Regional share of global production
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (OPEN_METEO_API_KEY read from env)
|
||
Installed at: ~/.claude/skills/crop-anomaly-scanner-skill
|
||
|
||
Shared to: github.com/acme-trading/crop-anomaly-scanner-skill
|
||
|
||
|
||
--- Daily morning scan ---
|
||
|
||
Research Director: /crop-anomaly-scanner-skill Morning scan. What's flashing?
|
||
|
||
Copilot (loading crop-anomaly-scanner-skill):
|
||
|
||
Pulling current weather for 32 regions (288 grid points)...
|
||
Comparing against 30-year climatology...
|
||
Scoring by growth stage and production weight...
|
||
|
||
GLOBAL CROP ANOMALY SCANNER — March 4, 2026, 07:15 ET
|
||
|
||
TOP 5 ANOMALIES BY MARKET IMPACT:
|
||
|
||
#1 ARGENTINA PAMPAS — Soybeans (pod fill) SCORE: 9.2
|
||
┌──────────────────────────────────────────────────────────────────┐
|
||
│ Precipitation last 30 days: 42mm (normal: 98mm) z = -2.31 │
|
||
│ Soil moisture 0-7cm: 0.12 m³/m³ (normal: 0.22) z = -2.05 │
|
||
│ Max temperature avg: 34.2°C (normal: 30.8°C) z = +1.72 │
|
||
│ VPD avg: 2.14 kPa (normal: 1.48 kPa) z = +1.89 │
|
||
│ Growth stage: REPRODUCTIVE (R5 pod fill) — CRITICAL │
|
||
│ Ensemble: 78% chance below-normal precip continues 15 days │
|
||
│ │
|
||
│ ANALOGUE: Feb 2018 (similar z-scores) → Argentina lost 20 MMT │
|
||
│ of soybeans, CBOT rallied $2.50/bu over 6 weeks. │
|
||
│ Current deviation isn't as severe yet but accelerating. │
|
||
└──────────────────────────────────────────────────────────────────┘
|
||
|
||
#2 US SOUTHERN PLAINS — Winter wheat (jointing) SCORE: 6.8
|
||
┌──────────────────────────────────────────────────────────────────┐
|
||
│ Precipitation last 60 days: 28mm (normal: 72mm) z = -2.08 │
|
||
│ Soil moisture 0-7cm: 0.14 m³/m³ (normal: 0.21) z = -1.78 │
|
||
│ Growth stage: VEGETATIVE (jointing, approaching boot) │
|
||
│ Region: Kansas, Oklahoma, Texas panhandle │
|
||
│ Ensemble: 55% below-normal precip continues, 30% near-normal │
|
||
│ │
|
||
│ HRW wheat entering its most water-sensitive phase. If drought │
|
||
│ persists through March, expect USDA to lower winter wheat │
|
||
│ condition ratings and KC wheat to firm. │
|
||
└──────────────────────────────────────────────────────────────────┘
|
||
|
||
#3 VIETNAM CENTRAL HIGHLANDS — Robusta coffee (cherry dev) SCORE: 5.4
|
||
┌──────────────────────────────────────────────────────────────────┐
|
||
│ Precipitation last 30 days: 8mm (normal: 22mm) z = -1.62 │
|
||
│ Temperature avg: 26.8°C (normal: 24.1°C) z = +1.87 │
|
||
│ Growth stage: REPRODUCTIVE (cherry development) │
|
||
│ Region: Dak Lak, Lam Dong, Gia Lai provinces │
|
||
│ Ensemble: 60% chance dry pattern continues through mid-March │
|
||
│ │
|
||
│ Vietnam = 40% of global robusta. Dry + warm during cherry dev │
|
||
│ reduces bean size and weight. Could shave 1-2 MMT off the │
|
||
│ 2026/27 harvest estimate. RC robusta may firm on this. │
|
||
└──────────────────────────────────────────────────────────────────┘
|
||
|
||
#4 INDIA — Rabi wheat (grain fill) SCORE: 4.9
|
||
┌──────────────────────────────────────────────────────────────────┐
|
||
│ Max temperature: 33.5°C (normal: 28.9°C) z = +2.12 │
|
||
│ Growth stage: REPRODUCTIVE (grain fill, 3-4 weeks to harvest) │
|
||
│ Region: Punjab, Haryana, Uttar Pradesh, Madhya Pradesh │
|
||
│ │
|
||
│ Terminal heat stress. March heat during grain fill is the #1 │
|
||
│ yield risk for Indian wheat. The 2022 heatwave cost India 5 MMT │
|
||
│ and triggered the export ban. Current temps not yet at 2022 │
|
||
│ levels but approaching. Watch closely this week. │
|
||
└──────────────────────────────────────────────────────────────────┘
|
||
|
||
#5 BRAZIL CENTER-WEST — Safrinha corn (vegetative) SCORE: 4.1
|
||
┌──────────────────────────────────────────────────────────────────┐
|
||
│ Precipitation last 14 days: 18mm (normal: 55mm) z = -1.68 │
|
||
│ Growth stage: VEGETATIVE (V6-V8, recently planted) │
|
||
│ Region: Mato Grosso, Goiás, Mato Grosso do Sul │
|
||
│ │
|
||
│ Safrinha corn was planted late (soy harvest delay) and now │
|
||
│ hitting a dry spell during early vegetative growth. Not critical │
|
||
│ yet — safrinha corn is drought-tolerant in early stages. But if │
|
||
│ dryness persists into April (tasseling), this moves to #1. │
|
||
└──────────────────────────────────────────────────────────────────┘
|
||
|
||
REGIONS ALL CLEAR (no anomalies >1.5 stddev in critical phases):
|
||
EU (France wheat, Germany rapeseed), Black Sea (Ukraine corn/wheat,
|
||
Russia wheat), Australia (canola, wheat — dormant/off-season), China
|
||
(winter wheat — adequate snow cover), US Corn Belt (pre-planting,
|
||
soil moisture recharging), Brazil South (soybean harvest on pace),
|
||
SE Asia (palm oil — normal monsoon), Canada (off-season).
|
||
|
||
Full dashboard: reports/anomaly-dashboard-2026-03-04.html
|
||
PDF briefing: reports/crop-anomalies-2026-03-04.pdf
|
||
|
||
Want me to drill deeper into any of these, or pull up the historical
|
||
analogue analysis for the Argentina situation?
|
||
|
||
|
||
--- Drilling into a specific alert ---
|
||
|
||
Analyst: /crop-anomaly-scanner-skill Pull up the full historical analogue for Argentina #1. How bad could this get?
|
||
|
||
Copilot:
|
||
|
||
Searching 30 years for matching patterns: Pampas soybeans, February
|
||
precip z < -2.0, soil moisture z < -1.5, during reproductive phase...
|
||
|
||
ARGENTINA SOYBEAN DROUGHT — HISTORICAL ANALOGUES
|
||
|
||
5 matching events found:
|
||
|
||
| Year | Feb Precip z | Soil z | Outcome | CBOT Impact |
|
||
|---------|--------------|--------|---------------------|----------------|
|
||
| 2017/18 | -2.45 | -2.20 | 20 MMT production loss | +$2.50/bu (6wk) |
|
||
| 2008/09 | -2.62 | -2.41 | 16 MMT production loss | +$1.80/bu (4wk) |
|
||
| 2011/12 | -1.95 | -1.70 | 12 MMT production loss | +$3.20/bu (8wk) |
|
||
| 2003/04 | -1.88 | -1.55 | 7 MMT production loss | +$0.90/bu (3wk) |
|
||
| 2022/23 | -3.10 | -2.80 | 25 MMT production loss | +$1.40/bu (4wk) |
|
||
|
||
CURRENT 2025/26 vs ANALOGUES:
|
||
Feb precip z: -2.31 (between 2017/18 and 2008/09 severity)
|
||
Soil moisture z: -2.05
|
||
|
||
PRODUCTION IMPACT ESTIMATE:
|
||
Based on analogues, the current deviation pattern suggests a production
|
||
loss of 8-18 MMT from USDA's current 50 MMT estimate.
|
||
|
||
| Scenario | Production | Loss from USDA | Probability |
|
||
|------------------|------------|----------------|-------------|
|
||
| Rain arrives Mar 10-15 | 45 MMT | -5 MMT | 22% |
|
||
| Continued dry Mar | 40 MMT | -10 MMT | 48% |
|
||
| Drought deepens | 35 MMT | -15 MMT | 30% |
|
||
|
||
Note: USDA already cut 2 MMT in March (to 50 from 52). The market has
|
||
priced in ~3-4 MMT of further downside. If the "continued dry" scenario
|
||
plays out (10 MMT total cut), there's 6-7 MMT of production loss NOT
|
||
yet in the price.
|
||
|
||
SOYBEAN MEAL IMPACT: Argentina = 45% of global soybean meal exports.
|
||
A 10 MMT soy production loss = ~7.5 MMT less crush = ~5.5 MMT less
|
||
meal exports. Meal importers (EU, SE Asia) would need to source from
|
||
US or Brazil. CBOT soybean meal could rally $30-50/short ton.
|
||
|
||
16-DAY ENSEMBLE OUTLOOK (ECMWF 51-member):
|
||
Probability of meaningful rain (>25mm) in Pampas next 15 days: 28%
|
||
Probability of continued dry (<10mm) next 15 days: 52%
|
||
Probability of drought-breaking event (>50mm): 8%
|
||
|
||
RECOMMENDATION: The analogues and ensemble data both point toward the
|
||
"continued dry" scenario as most likely. USDA will likely cut another
|
||
3-5 MMT in the April WASDE. The market is under-pricing this risk.
|
||
|
||
|
||
=============================================================
|
||
SKILL 11: Planting Window Advisor
|
||
=============================================================
|
||
|
||
A completely different use case — this one faces the production side,
|
||
not the trading desk. An analyst who also advises farmer clients:
|
||
|
||
User: /agent-skill-creator Our brokerage has farmer clients across the Midwest who ask us every spring: "When should I plant?" I want a skill that answers this using weather data. The decision depends on: (1) soil temperature at 2-inch depth — corn needs >50F sustained for 3 days, soybeans need >55F, (2) soil moisture — too wet and you get compaction, too dry and you need irrigation, the sweet spot is 0.20-0.30 m³/m³, (3) the 7-day forecast — no point planting if a freeze or heavy rain is coming, (4) accumulated GDD so the crop reaches maturity before the first fall frost. Open-Meteo has soil temperature at 0cm and 6cm depth, soil moisture at multiple levels, and the 16-day forecast. For any lat/long a farmer gives me, I want the skill to say "GO — plant corn now" or "WAIT — soil temp at 48F, need 2 more warm days" or "RISK — planting window closing, frost date approaching". OPEN_METEO_API_KEY is in my env.
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
This is a decision-support tool for planting timing. Let me formalize
|
||
the agronomic rules and build it.
|
||
|
||
Implicit requirements:
|
||
- Open-Meteo Forecast API: soil_temperature_6cm (closest to 2-inch
|
||
depth), soil_moisture_0_to_1cm, temperature_2m_min (freeze risk),
|
||
precipitation_sum, for any user-provided lat/long
|
||
- Open-Meteo Historical API: need average first fall frost date
|
||
(temperature_2m_min < 0°C) from 30-year history at the location
|
||
to calculate "days to maturity available"
|
||
- Corn maturity: needs 2,500-2,800 GDD (base 50F) depending on
|
||
hybrid maturity class. Soybean: 2,200-2,600 GDD
|
||
- The skill must accept a location (lat/long, county, zip code, or
|
||
city name) and hybrid maturity (short/medium/full season)
|
||
- "GO/WAIT/RISK" traffic light must consider ALL factors simultaneously
|
||
— soil temp alone isn't enough if rain is forecast
|
||
- Workability factor: if precipitation > 15mm in last 48 hours, soil
|
||
is too wet for heavy equipment regardless of other factors
|
||
- Farmers want a 5-day window recommendation, not just "today" —
|
||
"Best planting day this week: Thursday"
|
||
|
||
Building...
|
||
|
||
planting-window-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── openmeteo_client.py # Open-Meteo API wrapper
|
||
│ ├── soil_readiness.py # Soil temp + moisture check
|
||
│ ├── freeze_risk.py # 16-day freeze probability
|
||
│ ├── workability.py # Field trafficability from recent precip
|
||
│ ├── gdd_projection.py # GDD remaining vs maturity requirement
|
||
│ │ # vs average first frost date
|
||
│ ├── window_optimizer.py # Score each day in the next 14 days,
|
||
│ │ # recommend best planting window
|
||
│ ├── frost_date_calculator.py # 30-year avg first fall frost by location
|
||
│ └── advisor_output.py # GO/WAIT/RISK with plain-English reasoning
|
||
├── references/
|
||
│ ├── planting-rules.md # Agronomic decision rules
|
||
│ ├── gdd-maturity-table.md # GDD requirements by hybrid class
|
||
│ ├── soil-thresholds.md # Temperature and moisture thresholds
|
||
│ └── methodology.md
|
||
├── assets/
|
||
│ └── maturity_zones.json # Hybrid maturity GDD by latitude band
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED
|
||
Installed at: ~/.claude/skills/planting-window-skill
|
||
|
||
Shared to: github.com/acme-trading/planting-window-skill
|
||
|
||
|
||
--- A farmer client calls in April ---
|
||
|
||
Broker: /planting-window-skill One of my clients near Ames, Iowa (42.03°N, 93.47°W) wants to plant corn this week. Full-season hybrid (2,700 GDD). Is he good to go?
|
||
|
||
Copilot (loading planting-window-skill):
|
||
|
||
Pulling Open-Meteo data for 42.03°N, 93.47°W...
|
||
Forecast: 16 days | Soil data: current + forecast
|
||
Historical: calculating average first fall frost date...
|
||
|
||
PLANTING WINDOW ADVISOR — Ames, Iowa (42.03°N, 93.47°W)
|
||
Crop: Corn | Hybrid: Full season (2,700 GDD required)
|
||
Date: April 14, 2026
|
||
|
||
CURRENT CONDITIONS:
|
||
┌────────────────────────────────────────────────────────────────┐
|
||
│ Soil temp (6cm depth): 52.1°F (need: >50°F for 3 days) │
|
||
│ Consecutive days >50°F: 4 days ✓ PASS │
|
||
│ Soil moisture (0-7cm): 0.27 m³/m³ (ideal: 0.20-0.30) ✓ │
|
||
│ Last significant rain: 3 days ago (12mm) ✓ WORKABLE │
|
||
│ Avg first fall frost: October 12 (30yr avg) │
|
||
│ Days from today to frost: 181 days │
|
||
│ GDD available (Apr14-Oct12): ~2,850 (based on 30yr avg) │
|
||
│ GDD required (full season): 2,700 │
|
||
│ GDD margin: 150 GDD (5.6% buffer) ✓ OK │
|
||
└────────────────────────────────────────────────────────────────┘
|
||
|
||
7-DAY FORECAST:
|
||
| Day | High | Low | Precip | Soil Temp | Verdict |
|
||
|-----------|-------|-------|--------|-----------|--------------|
|
||
| Mon 4/14 | 68°F | 45°F | 0mm | 52°F | PLANTABLE |
|
||
| Tue 4/15 | 72°F | 48°F | 0mm | 53°F | PLANTABLE * |
|
||
| Wed 4/16 | 70°F | 50°F | 0mm | 54°F | PLANTABLE * |
|
||
| Thu 4/17 | 64°F | 46°F | 8mm | 53°F | MARGINAL |
|
||
| Fri 4/18 | 58°F | 40°F | 22mm | 50°F | TOO WET |
|
||
| Sat 4/19 | 55°F | 38°F | 5mm | 48°F | TOO COOL/WET |
|
||
| Sun 4/20 | 62°F | 42°F | 0mm | 49°F | RECOVERING |
|
||
|
||
════════════════════════════════════════════════════════════════
|
||
RECOMMENDATION: GO — PLANT TUESDAY OR WEDNESDAY
|
||
════════════════════════════════════════════════════════════════
|
||
|
||
Best window: Tuesday April 15 and Wednesday April 16. Soil is warm,
|
||
moisture is ideal, and 48 hours of dry weather ahead gives excellent
|
||
field conditions. Thursday is marginal (light rain incoming). Friday
|
||
onward is too wet — a 22mm rain event will make fields unworkable
|
||
for 2-3 days.
|
||
|
||
If your client misses the Tue-Wed window, next opportunity is likely
|
||
Monday April 21 after the weekend system clears and fields dry out
|
||
(soil needs ~48hr of dry weather after 22mm of rain to be trafficable).
|
||
|
||
GDD margin is tight at 5.6% for a full-season hybrid. If planting
|
||
slips past April 25, I'd recommend switching to a medium-season hybrid
|
||
(2,500 GDD) to guarantee maturity before frost. Every day of planting
|
||
delay after April 20 costs roughly 1-1.5 bu/ac in yield potential.
|
||
|
||
|
||
=============================================================
|
||
COMPLETE TEAM SKILL LIBRARY — WITH OPEN-METEO
|
||
=============================================================
|
||
|
||
Updated library with the weather-powered skills:
|
||
|
||
SKILL DATA SOURCES USE CASE
|
||
──────────────────────────────────────────────────────────────────────────────
|
||
wasde-analyzer-skill USDA WASDE, Bloomberg Monthly S&D analysis
|
||
crop-weather-weekly-skill USDA NASS, NOAA, Drought Mon. Weekly crop report
|
||
basis-export-tracker-skill DTN, USDA FAS, barge freight Daily basis + exports
|
||
coffee-fundamental-skill CEPEA, ICE, CFTC, ECMWF Coffee market monitor
|
||
psd-balance-sheet-skill USDA PSD API Global balance sheets
|
||
trade-flow-intel-skill GTT REST API Trade flow shifts
|
||
supply-chain-risk-skill PSD + GTT + FAS Export restriction risk
|
||
yield-predictor-skill Open-Meteo + NASS historical Pre-USDA yield estimates
|
||
parana-river-risk-skill Open-Meteo (4 endpoints) River logistics risk
|
||
crop-anomaly-scanner-skill Open-Meteo (all 32 regions) Global weather alerts
|
||
planting-window-skill Open-Meteo forecast + archive Farmer planting advice
|
||
seasonal-spread-skill CBOT historical Seasonal spread models
|
||
client-briefing-skill Calls other skills internally Weekly flagship report
|
||
|
||
Environment variables required:
|
||
|
||
export OPEN_METEO_API_KEY="your-professional-api-key"
|
||
export PSD_API_KEY="your-usda-fas-api-key"
|
||
export GTT_USER_ID="your-gtt-username"
|
||
export GTT_PASSWORD="your-gtt-password"
|
||
|
||
The Open-Meteo skills are the ones that give the team a genuine
|
||
informational edge. Every bank and fund has PSD data and GTT access.
|
||
But almost nobody is systematically converting granular weather data
|
||
into crop yield estimates, river level predictions, and global anomaly
|
||
scores in real-time. The data is public (Open-Meteo). The edge isn't
|
||
the data — it's the skill that knows what to do with it.
|
||
|
||
|
||
=============================================================
|
||
EXPANDED: DATA INGESTION PIPELINE SKILLS
|
||
=============================================================
|
||
|
||
Beyond API wrappers, the team now builds skills that create automated
|
||
data ingestion pipelines — pulling, parsing, normalizing, and storing
|
||
data from sources that don't have clean APIs. Raw satellite rasters,
|
||
government FTP dumps, vessel tracking feeds, and fire detection data.
|
||
These are the plumbing skills that feed the analytical skills above.
|
||
|
||
|
||
=============================================================
|
||
SKILL 12: NOAA Satellite Crop Monitor (NDVI / VHI Pipeline)
|
||
=============================================================
|
||
|
||
The remote sensing analyst on the team:
|
||
|
||
User: /agent-skill-creator I need to build a data pipeline that ingests NOAA STAR's weekly Vegetation Health Products — specifically the Smoothed NDVI (SMN), Vegetation Condition Index (VCI), Temperature Condition Index (TCI), and Vegetation Health Index (VHI). These are satellite-derived datasets at 4km resolution covering the entire globe, updated weekly. The data lives at star.nesdis.noaa.gov/data/pub0018/VHPdata4users/data/Blended_VH_4km/ — GeoTIFF files organized by year and week number. There's no API — you have to wget the files, parse the GeoTIFF rasters, and extract values for the regions you care about. I want the skill to: (1) automatically download the latest weekly GeoTIFF files for VHI, VCI, SMN, and TCI, (2) clip the rasters to our 32 crop regions (same regions as the anomaly scanner), (3) compute area-weighted average VHI/VCI/NDVI for each region, (4) compare to the same-week historical average (NOAA has data from 1981), (5) flag any region where VHI drops below 40 (drought stress) or VCI drops below 35 (vegetation deterioration), and (6) produce a weekly "Satellite Crop Monitor" report. This is the same data that USDA FAS uses in their Crop Explorer tool, but we'd have it parsed and actionable in our own pipeline instead of waiting for their interpretation. I have no special credentials — this data is public. Here's the NOAA documentation I saved: references/noaa-vh-products-guide.pdf
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/noaa-vh-products-guide.pdf...
|
||
|
||
This is a GeoTIFF raster ingestion problem. NOAA publishes global 4km
|
||
vegetation health products weekly as individual .tif files. The skill
|
||
needs to handle: file discovery (new files appear weekly by week number),
|
||
HTTP download (wget-style, no authentication), raster parsing (GeoTIFF
|
||
→ numpy arrays), spatial clipping (global raster → regional means),
|
||
and time-series comparison (current week vs 40+ year baseline). Let me
|
||
build this.
|
||
|
||
Implicit requirements:
|
||
- Data URL pattern:
|
||
https://www.star.nesdis.noaa.gov/data/pub0018/VHPdata4users/
|
||
data/Blended_VH_4km/geo_TIFF/VHI/VHI_YYYY_WW.tif
|
||
(similarly for VCI, SMN, TCI — separate directories)
|
||
- Files are global 4km GeoTIFF rasters: 10000 × 3616 pixels, WGS84
|
||
- Week numbering follows NOAA convention (ISO week), published with
|
||
~5-7 day lag
|
||
- Need rasterio or GDAL to parse GeoTIFF (standard geospatial Python)
|
||
- Region clipping: define bounding boxes or polygon masks for each of
|
||
the 32 crop regions, extract pixel values within each polygon
|
||
- Area weighting: pixels at different latitudes cover different areas
|
||
(cos(lat) correction)
|
||
- VHI interpretation thresholds from NOAA:
|
||
<10 = extreme drought, 10-20 = severe drought, 20-30 = moderate
|
||
drought, 30-40 = mild drought, 40-60 = normal, >60 = favorable
|
||
- Historical baseline: download archived annual .gz files from 1981-2023
|
||
for same-week comparison (one-time setup, then incremental weekly)
|
||
- Storage: cache downloaded GeoTIFFs locally in data/noaa-vh/ to avoid
|
||
re-downloading. Only fetch the latest week's files each run.
|
||
- NDVI (SMN) absolute values matter for crop identification; VHI and
|
||
VCI are relative indices that already account for the local baseline
|
||
- Dependencies: rasterio, numpy, shapely (for polygon clipping).
|
||
These are common geospatial packages — not exotic
|
||
|
||
Building...
|
||
|
||
noaa-crop-monitor-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── noaa_downloader.py # wget-style fetcher for weekly GeoTIFFs
|
||
│ │ # (VHI, VCI, SMN, TCI directories)
|
||
│ │ # handles retries, caching, new file detection
|
||
│ ├── raster_parser.py # GeoTIFF → numpy array using rasterio
|
||
│ │ # handles projection, nodata values, masking
|
||
│ ├── region_clipper.py # Clip global raster to 32 crop regions
|
||
│ │ # using polygon masks, area-weighted mean
|
||
│ ├── baseline_builder.py # One-time: download 1981-2023 archives,
|
||
│ │ # compute per-week per-region mean and stddev
|
||
│ │ # for VHI, VCI, SMN, TCI (cached to assets/)
|
||
│ ├── anomaly_detector.py # Current week vs baseline: z-scores and
|
||
│ │ # threshold alerts (VHI<40, VCI<35)
|
||
│ ├── trend_tracker.py # Rolling 4-week, 8-week, 12-week VHI trends
|
||
│ │ # (is stress building or recovering?)
|
||
│ ├── ndvi_crop_stage.py # NDVI curve analysis: is greenup on time?
|
||
│ │ # early/late planting detection from SMN
|
||
│ └── report_builder.py # Weekly Satellite Crop Monitor (PDF + maps)
|
||
├── references/
|
||
│ ├── noaa-vh-products.md # Product definitions, thresholds, caveats
|
||
│ ├── geotiff-format.md # Raster specs, projection, resolution
|
||
│ ├── region-polygons.md # 32 region definitions (bounding boxes)
|
||
│ ├── vhi-interpretation.md # What VHI values mean for crop yields
|
||
│ └── methodology.md
|
||
├── assets/
|
||
│ ├── region_polygons.geojson # 32 crop region masks
|
||
│ ├── baselines/ # Pre-computed weekly baselines (1981-2023)
|
||
│ │ ├── us-corn-belt.json # mean + stddev by week for VHI/VCI/SMN
|
||
│ │ ├── brazil-center-west.json
|
||
│ │ └── ... (30 more)
|
||
│ └── noaa_week_calendar.json # ISO week → date mapping
|
||
├── data/ # Local cache for downloaded GeoTIFFs
|
||
│ └── noaa-vh/ # (gitignored, created on first run)
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (no credentials needed — public data)
|
||
Installed at: ~/.claude/skills/noaa-crop-monitor-skill
|
||
|
||
Shared to: github.com/acme-trading/noaa-crop-monitor-skill
|
||
|
||
|
||
--- First run: building the historical baseline ---
|
||
|
||
Analyst: /noaa-crop-monitor-skill Initialize the pipeline. Download the historical baseline and run the first weekly scan.
|
||
|
||
Copilot (loading noaa-crop-monitor-skill):
|
||
|
||
STEP 1: Building historical baseline (one-time setup)
|
||
|
||
Downloading NOAA VH archives for 1981-2023...
|
||
This will take 15-20 minutes (downloading 43 annual .gz archives).
|
||
|
||
Downloading: VHI_1981.gz... done (34 MB)
|
||
Downloading: VHI_1982.gz... done (34 MB)
|
||
...
|
||
Downloading: VHI_2023.gz... done (42 MB)
|
||
|
||
Extracting and computing per-week per-region baselines...
|
||
Processing 2,236 weekly rasters × 32 regions = 71,552 data points...
|
||
|
||
Baseline computed and cached to assets/baselines/
|
||
Each region now has a 42-year mean and standard deviation for every
|
||
week of the year, for each of VHI, VCI, SMN, and TCI.
|
||
|
||
STEP 2: Downloading current week's data
|
||
|
||
Fetching Week 09 (Feb 24 - Mar 2, 2026):
|
||
- VHI_2026_09.tif... done (18 MB)
|
||
- VCI_2026_09.tif... done (18 MB)
|
||
- SMN_2026_09.tif... done (18 MB)
|
||
- TCI_2026_09.tif... done (18 MB)
|
||
|
||
STEP 3: Clipping to 32 crop regions and computing anomalies...
|
||
|
||
SATELLITE CROP MONITOR — Week 09 (Feb 24 - Mar 2, 2026)
|
||
|
||
ALERTS (VHI < 40 or VCI < 35):
|
||
|
||
| Region | VHI | VCI | TCI | NDVI | Status |
|
||
|-----------------------|------|------|------|-------|-----------------|
|
||
| Argentina Pampas | 28 | 24 | 32 | 0.41 | SEVERE STRESS |
|
||
| Argentina Chaco | 34 | 30 | 38 | 0.38 | MODERATE STRESS |
|
||
| US Southern Plains | 36 | 31 | 41 | 0.29 | MODERATE STRESS |
|
||
| India Central (MP) | 38 | 36 | 40 | 0.34 | MILD STRESS |
|
||
| Vietnam Highlands | 39 | 37 | 42 | 0.52 | MILD STRESS |
|
||
|
||
CROSS-VALIDATION WITH ANOMALY SCANNER:
|
||
All 5 satellite stress regions match the top 5 weather anomalies
|
||
from the crop-anomaly-scanner-skill. The satellite data CONFIRMS the
|
||
weather-based signals — this isn't a false alarm from one data source.
|
||
|
||
REGIONAL DETAIL — ARGENTINA PAMPAS:
|
||
|
||
VHI at 28 is the lowest for Week 9 since 2023 (when VHI hit 18 during
|
||
the historic drought) and well below the 42-year average of 55 for this
|
||
week. The VHI has been declining for 6 consecutive weeks:
|
||
|
||
| Week | VHI | Trend |
|
||
|------|------|----------|
|
||
| W03 | 52 | Normal |
|
||
| W04 | 48 | Slipping |
|
||
| W05 | 44 | Slipping |
|
||
| W06 | 40 | Threshold|
|
||
| W07 | 35 | Stress |
|
||
| W08 | 31 | Stress |
|
||
| W09 | 28 | Severe |
|
||
|
||
The trajectory is accelerating downward. In the 2018 drought analogue,
|
||
VHI bottomed at 22 in Week 11 before rain brought partial recovery.
|
||
If the current trajectory holds, we could see VHI in the low 20s by
|
||
mid-March — which historically correlates with 15-25% soybean yield
|
||
reduction in the affected area.
|
||
|
||
NDVI CROP STAGE ANALYSIS:
|
||
The SMN (smoothed NDVI) at 0.41 for Argentina Pampas is concerning
|
||
because soybeans at pod-fill stage should have peak NDVI of 0.65-0.75.
|
||
An NDVI of 0.41 during reproductive stage means canopy is already
|
||
deteriorating — leaves are senescing prematurely due to drought stress.
|
||
This damage is irreversible even if rain arrives now.
|
||
|
||
REGIONS ALL FAVORABLE (VHI > 55):
|
||
|
||
| Region | VHI | Status | Notes |
|
||
|-----------------------|------|------------|--------------------------|
|
||
| Brazil Center-West | 62 | Favorable | Soy harvest underway |
|
||
| Brazil South | 58 | Normal | Soy harvest 60% complete |
|
||
| US Corn Belt | N/A | Dormant | Pre-season, snow cover |
|
||
| EU France | 64 | Favorable | Winter wheat looks good |
|
||
| EU Germany | 61 | Favorable | Rapeseed on track |
|
||
| Black Sea Ukraine | 56 | Normal | Winter wheat emerging |
|
||
| Black Sea Russia | 59 | Normal | Winter wheat dormant |
|
||
| Australia East | 68 | Favorable | Canola finished harvest |
|
||
| China NE | N/A | Dormant | Winter, snow cover |
|
||
|
||
PDF report: reports/satellite-crop-monitor-wk09-2026.pdf
|
||
Maps: reports/vhi-global-map-wk09-2026.png
|
||
|
||
Pipeline is now configured. It will check for new NOAA data every
|
||
Monday and generate the weekly report automatically.
|
||
|
||
|
||
--- A few weeks later, the analyst cross-references ---
|
||
|
||
Analyst: /noaa-crop-monitor-skill Overlay the Argentina VHI trend against the 2018 and 2023 drought tracks. How close are we to those events?
|
||
|
||
Copilot:
|
||
|
||
Pulling VHI time series for Argentina Pampas: 2018, 2023, and 2026...
|
||
|
||
ARGENTINA PAMPAS — VHI TRAJECTORY COMPARISON
|
||
|
||
Week 2018 (severe) 2023 (historic) 2026 (current)
|
||
────────────────────────────────────────────────────────────
|
||
W01 58 52 60
|
||
W02 56 48 58
|
||
W03 54 42 52
|
||
W04 50 36 48
|
||
W05 46 30 44
|
||
W06 41 24 40
|
||
W07 36 20 35
|
||
W08 30 18 31
|
||
W09 26 16 28 ← current
|
||
W10 23 15 ?
|
||
W11 22 (bottom) 14 (bottom) ?
|
||
W12 25 15 ?
|
||
W13 32 20 ?
|
||
W14 40 28 ?
|
||
|
||
ASSESSMENT:
|
||
The 2026 track is running almost exactly on the 2018 path — 1-2 VHI
|
||
points higher at each week. The 2023 event was significantly worse
|
||
(VHI bottomed at 14 vs 2018's 22).
|
||
|
||
If 2026 follows the 2018 pattern:
|
||
- VHI bottoms around 22-24 in weeks 10-11 (mid-March)
|
||
- Recovery begins week 12 if autumn rains arrive
|
||
- Total soybean production loss: 15-20 MMT (2018 outcome)
|
||
|
||
If 2026 follows the 2023 pattern (worse case):
|
||
- VHI drops to 14-16, no recovery until week 14
|
||
- Total soybean production loss: 22-28 MMT (2023 outcome)
|
||
|
||
Current trajectory: closer to 2018 than 2023. The 2023 event had
|
||
exceptional heat on top of drought (TCI at 12), while 2026's TCI
|
||
is at 32 — hot but not extreme.
|
||
|
||
The satellite data and the weather data are telling the same story:
|
||
this is a significant but not historic event. USDA is probably 5-8 MMT
|
||
behind reality right now (their March estimate was 50 MMT; satellite
|
||
data suggests 42-45 MMT is more likely).
|
||
|
||
|
||
=============================================================
|
||
SKILL 13: NASA FIRMS Fire Monitor — Crop Residue & Deforestation
|
||
=============================================================
|
||
|
||
A creative use of fire data for commodity research:
|
||
|
||
User: /agent-skill-creator NASA FIRMS provides near-real-time satellite fire detection globally — every thermal anomaly picked up by MODIS and VIIRS satellites, available within 3 hours via REST API at firms.modaps.eosdis.nasa.gov. Most people use this for wildfire tracking, but I've realized it has two powerful applications for commodity research: (1) Crop residue burning in Brazil's Cerrado signals land clearing for new soybean planting — if I see a spike in fire detections in Mato Grosso in August-September, it means farmers are clearing more land for the next season, which predicts INCREASED soybean acreage. (2) In India and Southeast Asia, post-harvest rice straw burning (October-November) intensity correlates with the size of the kharif rice harvest — more burning = bigger harvest, which is bearish for rice prices. I want a skill that ingests FIRMS data via their API (free, need a MAP_KEY from earthdata.nasa.gov), clips fire detections to our crop regions, counts fire pixels by week, compares to historical patterns, and generates alerts when fire activity deviates significantly. My MAP_KEY is in env as NASA_FIRMS_KEY. Here's my analysis showing the fire-acreage correlation in Brazil: references/firms-acreage-correlation.pdf
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/firms-acreage-correlation.pdf...
|
||
|
||
Fascinating — your analysis shows a 0.82 R² between Aug-Sep FIRMS fire
|
||
counts in Mato Grosso and the following season's soybean planted area
|
||
(CONAB data). That's a strong signal hidden in plain sight. And the India
|
||
rice burning correlation is 0.74 R² — not as clean but still tradeable.
|
||
Let me build this.
|
||
|
||
Implicit requirements:
|
||
- NASA FIRMS REST API: https://firms.modaps.eosdis.nasa.gov/api/area/
|
||
Parameters: source (VIIRS_SNPP, MODIS_NRT), coordinates (bounding box
|
||
or country), day_range (1-10), date, format (json, csv)
|
||
- API key: NASA_FIRMS_KEY passed as MAP_KEY parameter
|
||
- VIIRS is higher resolution (375m) than MODIS (1km) — prefer VIIRS
|
||
for fire pixel counts, use MODIS for longer historical record
|
||
- Fire pixels need to be filtered: confidence > 75% to exclude
|
||
false positives (gas flares, industrial heat, volcanoes)
|
||
- For Brazil land clearing: focus on Cerrado biome (Mato Grosso,
|
||
Goiás, Tocantins, Bahia western, Maranhão southern). The Amazon
|
||
biome fires are deforestation — politically different but also
|
||
signals acreage expansion into new areas
|
||
- Seasonal patterns: Brazil burning peaks Aug-Sep (dry season), then
|
||
drops sharply when rains arrive in October. Early start to burning
|
||
season (July) or late end (October) is itself a signal
|
||
- For India/SE Asia: focus on Punjab, Haryana (wheat stubble, Oct-Nov),
|
||
and Thailand/Myanmar (rice straw, Feb-Apr)
|
||
- Historical fire data: FIRMS has archives back to 2001 (MODIS) and
|
||
2012 (VIIRS). Need to build year-by-year fire pixel counts for
|
||
each region for the correlation model
|
||
- CONAB soybean area data for Brazil, USDA PSD for India rice
|
||
production — these are the training targets for the regression
|
||
- Output: weekly fire pixel count by region, deviation from
|
||
historical, and implied acreage/production signal
|
||
|
||
Building...
|
||
|
||
fire-crop-monitor-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── firms_client.py # NASA FIRMS REST API wrapper
|
||
│ │ # (auth, bounding box queries, pagination)
|
||
│ ├── fire_counter.py # Filter by confidence, clip to regions,
|
||
│ │ # aggregate fire pixel counts by week
|
||
│ ├── brazil_clearing.py # Cerrado + Amazon fire → acreage signal
|
||
│ │ # correlation with CONAB planting data
|
||
│ ├── asia_burning.py # India/SE Asia post-harvest burn intensity
|
||
│ │ # → production signal
|
||
│ ├── historical_baselines.py # 2001-2025 fire pixel baselines by region
|
||
│ ├── season_detector.py # Burning season start/end date tracking
|
||
│ │ # (early start = more clearing than expected)
|
||
│ ├── deforestation_tracker.py # Amazon-specific: frontier expansion monitor
|
||
│ └── report_builder.py # Fire Monitor report (PDF + heat maps)
|
||
├── references/
|
||
│ ├── firms-api-reference.md # API endpoints, params, rate limits
|
||
│ ├── fire-acreage-model.md # R² coefficients, regression methodology
|
||
│ ├── biome-boundaries.md # Cerrado vs Amazon vs Atlantic Forest
|
||
│ ├── burning-calendar.md # Expected seasonal patterns by region
|
||
│ └── methodology.md
|
||
├── assets/
|
||
│ ├── region_bboxes.json # Bounding boxes for FIRMS queries
|
||
│ ├── biome_masks.geojson # Cerrado/Amazon/Pantanal boundaries
|
||
│ ├── fire_baselines.json # 2001-2025 weekly fire counts by region
|
||
│ └── conab_soy_area.csv # Brazil soybean planted area 2001-2026
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (NASA_FIRMS_KEY read from env)
|
||
Installed at: ~/.claude/skills/fire-crop-monitor-skill
|
||
|
||
Shared to: github.com/acme-trading/fire-crop-monitor-skill
|
||
|
||
|
||
--- Late August, burning season in Brazil ---
|
||
|
||
Analyst: /fire-crop-monitor-skill How's the burning season in Mato Grosso tracking? What does it imply for 2026/27 soy acreage?
|
||
|
||
Copilot (loading fire-crop-monitor-skill):
|
||
|
||
Pulling FIRMS VIIRS data for Cerrado region, last 90 days...
|
||
Comparing against 2001-2025 historical baselines...
|
||
|
||
BRAZIL CERRADO FIRE MONITOR — August 25, 2026
|
||
|
||
FIRE PIXEL COUNTS (VIIRS, confidence > 75%)
|
||
|
||
| Month | 2026 | 2025 | 5yr Avg | vs Avg |
|
||
|----------|--------|--------|---------|---------|
|
||
| June | 8,420 | 6,890 | 7,100 | +18.6% |
|
||
| July | 24,300 | 18,900 | 19,200 | +26.6% |
|
||
| Aug 1-25 | 52,800 | 38,400 | 41,500 | +27.2% |
|
||
|
||
TOTAL JUN-AUG: 85,520 (highest since 2020)
|
||
|
||
BY SUB-REGION:
|
||
| Sub-region | 2026 Fire px | vs 5yr Avg | Signal |
|
||
|------------------------|-------------|------------|---------------------|
|
||
| Mato Grosso (Cerrado) | 38,200 | +31% | Strong expansion |
|
||
| Goiás | 14,800 | +22% | Moderate expansion |
|
||
| Tocantins | 9,400 | +18% | Moderate |
|
||
| Bahia West (MATOPIBA) | 12,600 | +42% | RAPID expansion |
|
||
| Maranhão South | 10,520 | +28% | Strong expansion |
|
||
|
||
MATOPIBA ALERT: The Bahia West / MATOPIBA frontier shows fire pixel
|
||
counts 42% above the 5-year average. This is the most active clearing
|
||
frontier in Brazil — new soybean acreage expanding into former
|
||
Cerrado grassland. This sub-region has shown the highest fire growth
|
||
rate for three consecutive years.
|
||
|
||
ACREAGE SIGNAL (regression model, R² = 0.82):
|
||
|
||
Based on the historical fire-to-acreage correlation, current burning
|
||
levels project:
|
||
|
||
| Metric | 2025/26 Actual | 2026/27 Projected |
|
||
|----------------------------|----------------|-------------------|
|
||
| Brazil soy planted area | 46.2M hectares | 48.1M hectares |
|
||
| Year-over-year change | | +1.9M ha (+4.1%) |
|
||
| Implied production (trend) | | 175-180 MMT |
|
||
|
||
This +4.1% acreage expansion, combined with trend yields, suggests
|
||
Brazil's 2026/27 soybean crop could reach 175-180 MMT — a new record
|
||
and 6-11 MMT above the current 2025/26 crop of 169 MMT.
|
||
|
||
MARKET IMPLICATION: This is bearish for CBOT soybeans on a 6-12 month
|
||
horizon. More Brazilian supply = more competition for US exports in
|
||
the 2026/27 marketing year. However, this is already partially
|
||
expected — the market consensus is for ~2% acreage growth. The fire
|
||
data suggests 4%+ is more likely.
|
||
|
||
AMAZON BIOME NOTE: Amazon fire detections are also elevated (+35%
|
||
vs 5yr avg), but this is a separate dynamic — Amazon deforestation
|
||
is a reputational/regulatory risk for Brazilian exports (EU
|
||
deforestation regulation), not an acreage expansion signal. Some
|
||
European buyers may reduce Brazilian soy purchases if Amazon fires
|
||
make headlines again.
|
||
|
||
BURNING SEASON TIMING: The season started 2 weeks early this year
|
||
(first sustained fires in mid-June vs typical early July). Early start
|
||
is itself a signal — it indicates farmers had drier conditions and
|
||
were more aggressive about clearing. This correlates with the upper
|
||
end of the acreage projection.
|
||
|
||
|
||
=============================================================
|
||
SKILL 14: Vessel Tracking — Grain Shipment Intelligence
|
||
=============================================================
|
||
|
||
The logistics analyst builds a pipeline from AIS vessel data:
|
||
|
||
User: /agent-skill-creator I want to track grain vessel movements to verify and predict export shipment volumes in real-time. The traditional data sources (USDA Export Inspections, GTT) have 1-4 week lags. But by tracking bulk carrier vessels via AIS (Automatic Identification System), I can see shipments BEFORE they show up in official data. My idea: use a vessel tracking API to monitor Panamax and Capesize bulk carriers departing key grain export ports (Santos, Paranaguá, and São Francisco do Sul in Brazil; Rosario/San Lorenzo in Argentina; US Gulf ports; Odessa/Mykolaiv in Ukraine; Novorossiysk in Russia). When a bulk carrier departs a grain port with a draft indicating full cargo, I can estimate tonnage from the vessel's DWT and draft. By aggregating departures weekly, I can build a near-real-time export volume tracker that leads official data by 2-3 weeks. I have an AIS data subscription — credentials in my env as AIS_API_KEY. The API gives me vessel positions, port calls, vessel particulars (DWT, draft), and ETA. Here's my methodology: references/vessel-export-methodology.pdf
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/vessel-export-methodology.pdf...
|
||
|
||
Your approach: filter vessels by type (bulk carrier), DWT range (Panamax
|
||
40-80K DWT, Capesize 80-200K DWT), monitor departures from grain ports,
|
||
estimate cargo weight from loaded draft vs ballast draft × DWT ratio,
|
||
classify probable commodity based on port (Santos = soy, Rosario = soy
|
||
meal, US Gulf = corn/soy), and aggregate into weekly volume estimates.
|
||
This is essentially building a private export inspection tracker. Let me
|
||
build it.
|
||
|
||
Implicit requirements:
|
||
- AIS API: vessel positions, port call history, vessel particulars
|
||
(DWT, current draft, flag, destination). Auth via AIS_API_KEY
|
||
- Port definitions: specific berth/terminal polygons, not just city
|
||
coordinates. Santos has grain terminals (Cargill, Bunge, Cofco) and
|
||
container terminals — need to distinguish
|
||
- Draft-to-cargo estimation: a Panamax at 14.5m draft (loaded) vs 7m
|
||
(ballast) carrying 65,000 DWT = approximately 58,000 MT of cargo.
|
||
The formula: cargo_MT ≈ DWT × (current_draft - ballast_draft) /
|
||
(loaded_draft - ballast_draft). Accuracy: ±8%
|
||
- Destination inference: when a vessel departs Santos for "Singapore"
|
||
or "CNSHA" (Shanghai), the destination tells us the buyer. Vessels
|
||
to China = soybean. Vessels to EU = soybean meal. Vessels to
|
||
Egypt/Algeria = wheat
|
||
- "Line-up" tracking: vessels at anchor or waiting to load = pending
|
||
exports. Count of vessels in the line-up × average cargo = pipeline
|
||
volume indicator
|
||
- Need to separate grain vessels from iron ore, coal, and other bulk
|
||
commodities at the same ports. Use vessel history: if a Panamax
|
||
was last at a grain terminal, its current cargo is probably grain
|
||
- Historical vessel departure data for backtesting: compare estimated
|
||
vs actual export inspections to calibrate the model
|
||
|
||
Building...
|
||
|
||
vessel-grain-tracker-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── ais_client.py # AIS API wrapper (positions, port calls,
|
||
│ │ # vessel particulars, rate limiting)
|
||
│ ├── port_monitor.py # Define grain ports, terminal polygons,
|
||
│ │ # monitor arrivals and departures
|
||
│ ├── cargo_estimator.py # Draft-to-cargo tonnage estimation
|
||
│ ├── commodity_classifier.py # Port + destination + history → probable
|
||
│ │ # commodity (soy, corn, wheat, meal)
|
||
│ ├── lineup_counter.py # Vessels at anchor / waiting to load
|
||
│ ├── weekly_aggregator.py # Sum departures by port, commodity, dest
|
||
│ ├── official_comparison.py # Compare vs USDA Export Inspections when
|
||
│ │ # available (calibration + lead time)
|
||
│ └── report_builder.py # Vessel Intelligence Weekly (PDF + maps)
|
||
├── references/
|
||
│ ├── grain-ports.md # Port locations, terminal IDs, berth polygons
|
||
│ ├── vessel-types.md # Panamax/Capesize specs, draft ranges
|
||
│ ├── cargo-estimation.md # Draft-to-tonnage formula + accuracy
|
||
│ ├── destination-mapping.md # Port codes → country → probable commodity
|
||
│ └── methodology.md
|
||
├── assets/
|
||
│ ├── port_polygons.geojson # Grain terminal berth boundaries
|
||
│ ├── vessel_type_specs.json # DWT ranges, draft ranges by class
|
||
│ └── port_commodity_map.json # Port → most likely commodity
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (AIS_API_KEY read from env)
|
||
Installed at: ~/.claude/skills/vessel-grain-tracker-skill
|
||
|
||
Shared to: github.com/acme-trading/vessel-grain-tracker-skill
|
||
|
||
|
||
--- Real-time export tracking ---
|
||
|
||
Logistics Analyst: /vessel-grain-tracker-skill What's the Brazilian soybean export pace looking like this week? I want to compare to the GTT data we'll get in 2 months.
|
||
|
||
Copilot (loading vessel-grain-tracker-skill):
|
||
|
||
Pulling AIS data for Santos, Paranaguá, São Francisco do Sul...
|
||
Identifying grain-loaded departures (Panamax/Capesize, draft > 12m)...
|
||
Estimating cargo tonnage...
|
||
|
||
BRAZIL SOYBEAN VESSEL TRACKER — Week of Mar 2-8, 2026
|
||
|
||
DEPARTURES FROM GRAIN PORTS (estimated soybean cargo):
|
||
|
||
| Port | Vessels | Est. Cargo (KMT) | Destinations |
|
||
|-----------------------|---------|-------------------|------------------------|
|
||
| Santos | 14 | 812 | China 9, EU 3, Egypt 2 |
|
||
| Paranaguá | 8 | 456 | China 6, Japan 1, TW 1 |
|
||
| São Francisco do Sul | 4 | 228 | China 3, Bangladesh 1 |
|
||
| WEEKLY TOTAL | 26 | 1,496 | |
|
||
|
||
COMPARISON TO PACE:
|
||
| Metric | This Week | Same Week 2025 | YoY Change |
|
||
|---------------------------|-----------|----------------|------------|
|
||
| Vessel departures | 26 | 22 | +18% |
|
||
| Estimated tonnage | 1,496 KMT | 1,280 KMT | +16.9% |
|
||
| 4-week rolling avg | 1,380 KMT | 1,190 KMT | +16.0% |
|
||
|
||
DESTINATION BREAKDOWN (all 3 ports combined):
|
||
| Destination | Vessels | Tonnage (KMT) | Share |
|
||
|----------------|---------|---------------|--------|
|
||
| China | 18 | 1,044 | 69.7% |
|
||
| EU | 3 | 174 | 11.6% |
|
||
| Egypt | 2 | 116 | 7.8% |
|
||
| Japan | 1 | 58 | 3.9% |
|
||
| Taiwan | 1 | 58 | 3.9% |
|
||
| Bangladesh | 1 | 46 | 3.1% |
|
||
|
||
LINE-UP (vessels waiting to load as of today):
|
||
| Port | Vessels Waiting | Est. Days to Clear |
|
||
|-----------------------|-----------------|--------------------|
|
||
| Santos | 42 | 18 days (normal) |
|
||
| Paranaguá | 28 | 14 days (normal) |
|
||
| São Francisco do Sul | 11 | 8 days (light) |
|
||
| TOTAL | 81 | |
|
||
|
||
The line-up at 81 vessels is consistent with peak export season. This
|
||
time last year it was 74 vessels — the 9.5% increase aligns with the
|
||
record 169 MMT crop moving through the pipeline.
|
||
|
||
LEAD INDICATOR: Our vessel-based estimate of 1,496 KMT this week will
|
||
show up in official Brazilian customs (SECEX) data in 3-4 weeks, and
|
||
in GTT in 6-8 weeks. We're seeing the exports NOW.
|
||
|
||
MONTHLY PACE PROJECTION (March 2026):
|
||
At current weekly pace, Brazil is on track to export ~6.0 MMT of
|
||
soybeans in March. This would be the highest March on record,
|
||
surpassing March 2023's 5.5 MMT. The early harvest (90% complete in
|
||
Mato Grosso) is pushing shipments forward.
|
||
|
||
IMPLICATION: When this volume shows up in official SECEX data in late
|
||
March and GTT data in May, it will confirm that Brazil is front-loading
|
||
exports. China-bound vessel share at 70% is above the 5-year average
|
||
of 64%, reinforcing the market share shift we saw in the GTT trade
|
||
flow analysis.
|
||
|
||
|
||
=============================================================
|
||
SKILL 15: Copernicus Sentinel-2 Field-Level NDVI
|
||
=============================================================
|
||
|
||
For analysts who need to zoom in from country-level to individual
|
||
fields — something NOAA's 4km resolution can't do:
|
||
|
||
User: /agent-skill-creator Our firm is getting into precision agriculture consulting alongside commodity research. I need a skill that pulls Sentinel-2 satellite imagery from the Copernicus Data Space Ecosystem and computes NDVI at 10-meter resolution for specific farm fields. A farmer or agronomist gives us a field boundary (as a GeoJSON polygon or just a lat/long point with radius), and we compute: (1) current NDVI for that field, (2) NDVI time-series for the current growing season (every cloud-free overpass, roughly every 5 days), (3) comparison to the same field's NDVI in previous years, (4) within-field variability (are parts of the field stressed while others are fine?). The Copernicus Data Space has free API access — I registered at dataspace.copernicus.eu and have OAuth2 credentials. COPERNICUS_CLIENT_ID and COPERNICUS_CLIENT_SECRET are in my env. The Sentinel Hub Process API can compute NDVI server-side using evalscripts (no need to download raw bands). Here's the API docs I saved: references/sentinel-hub-process-api.pdf
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/sentinel-hub-process-api.pdf...
|
||
|
||
The Sentinel Hub Process API takes a bounding box, an evalscript
|
||
(JavaScript that computes NDVI from B04 and B08 bands), and returns
|
||
a processed GeoTIFF or JSON. Cloud masking is done via the SCL
|
||
(Scene Classification Layer). This means we don't download raw imagery
|
||
— the heavy lifting happens server-side. Let me build this.
|
||
|
||
Implicit requirements:
|
||
- Copernicus Data Space OAuth2: POST to identity.dataspace.copernicus.eu
|
||
with client_id + client_secret to get bearer token
|
||
- Sentinel Hub Process API: POST to sh.dataspace.copernicus.eu/api/v1/process
|
||
with evalscript, bounding box, time range, output format
|
||
- NDVI evalscript: (B08 - B04) / (B08 + B04) — standard formula
|
||
- Cloud masking: use SCL band, exclude pixels classified as cloud,
|
||
cloud shadow, snow/ice, or no data
|
||
- 10m resolution means a 100-hectare field = 100,000 pixels. That's
|
||
enough resolution to see within-field variability (waterlogged low
|
||
spots, compacted headlands, variable soil types)
|
||
- Time-series: query all available scenes for the field in the current
|
||
growing season. Sentinel-2 revisits every 5 days. After cloud
|
||
filtering, expect ~3-4 usable scenes per month
|
||
- Inter-year comparison: pull the same dates from 2023, 2024, 2025
|
||
for the same field polygon. Normalize by day-of-year
|
||
- Within-field variability: compute per-pixel NDVI, then generate
|
||
a coefficient of variation (CV) map. High CV = stressed patches.
|
||
Also compute zonal stats: mean, P10, P25, P50, P75, P90
|
||
- Output options: NDVI value (JSON), NDVI map (GeoTIFF colorized),
|
||
time-series chart (PNG), variability map (PNG)
|
||
- Rate limits: Copernicus free tier allows 300 requests/minute
|
||
and 40,000 Processing Units/month. A single field NDVI request
|
||
uses ~1 PU. We have headroom
|
||
|
||
Building...
|
||
|
||
sentinel-field-ndvi-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── copernicus_auth.py # OAuth2 token management (auto-refresh)
|
||
│ ├── sentinel_client.py # Sentinel Hub Process API wrapper
|
||
│ ├── ndvi_calculator.py # Evalscript builder, NDVI request, cloud mask
|
||
│ ├── field_timeseries.py # Growing season NDVI curve for a field
|
||
│ ├── interyear_compare.py # Same field, same dates, previous years
|
||
│ ├── variability_map.py # Within-field CV map + zonal statistics
|
||
│ ├── field_health_report.py # Field Health Report builder (PDF + maps)
|
||
│ └── batch_processor.py # Process multiple fields in one run
|
||
├── references/
|
||
│ ├── sentinel-hub-api.md # Process API endpoints, evalscripts
|
||
│ ├── ndvi-interpretation.md # What NDVI values mean by crop and stage
|
||
│ ├── cloud-masking.md # SCL classes, filtering strategy
|
||
│ ├── sentinel2-bands.md # Band specifications (B04, B08, etc.)
|
||
│ └── methodology.md
|
||
├── assets/
|
||
│ ├── evalscripts/
|
||
│ │ ├── ndvi.js # Standard NDVI evalscript
|
||
│ │ ├── ndvi_masked.js # NDVI with cloud masking
|
||
│ │ └── enhanced_vegetation.js # EVI for dense canopies
|
||
│ └── ndvi_colormap.json # Color ramp for NDVI visualization
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (COPERNICUS_CLIENT_ID/SECRET read from env)
|
||
Installed at: ~/.claude/skills/sentinel-field-ndvi-skill
|
||
|
||
Shared to: github.com/acme-trading/sentinel-field-ndvi-skill
|
||
|
||
|
||
--- An agronomist client asks about their field ---
|
||
|
||
Agronomist: /sentinel-field-ndvi-skill Check the corn field for the Petersen farm. Here's the boundary: data/petersen-north-field.geojson. How does it look compared to last year?
|
||
|
||
Copilot (loading sentinel-field-ndvi-skill):
|
||
|
||
Authenticating with Copernicus Data Space... token obtained.
|
||
Reading field boundary: 156 hectares, Boone County, Iowa
|
||
Querying Sentinel-2 scenes for Jul 1 - Jul 15, 2026...
|
||
3 cloud-free scenes found: Jul 2, Jul 7, Jul 12.
|
||
Computing NDVI...
|
||
|
||
FIELD HEALTH REPORT — Petersen Farm, North Field (156 ha)
|
||
Boone County, Iowa | Corn | July 15, 2026
|
||
|
||
CURRENT NDVI (July 12 scene):
|
||
|
||
| Metric | Value | Interpretation |
|
||
|-----------------|-------|-----------------------------------|
|
||
| Mean NDVI | 0.72 | Good (expected: 0.75-0.85) |
|
||
| P10 (worst 10%) | 0.48 | Stress in parts of the field |
|
||
| P25 | 0.64 | Below expected |
|
||
| P50 (median) | 0.74 | Normal |
|
||
| P90 (best 10%) | 0.84 | Excellent |
|
||
| Coef. Variation | 0.16 | Moderate variability (>0.12 = flag)|
|
||
|
||
WITHIN-FIELD VARIABILITY MAP:
|
||
[Generated: reports/petersen-north-variability-2026-07-12.tif]
|
||
|
||
The northwest corner (approx. 22 hectares) shows NDVI of 0.45-0.55,
|
||
significantly below the field average. This area corresponds to the
|
||
lower-elevation zone that was waterlogged during the June 18 heavy
|
||
rain event (38mm in 2 hours per Open-Meteo data). The saturated
|
||
soil likely damaged root development during V4-V6 stage. The rest
|
||
of the field looks healthy.
|
||
|
||
YEAR-OVER-YEAR COMPARISON (same dates ±3 days):
|
||
|
||
| Year | Mean NDVI (early Jul) | Notes |
|
||
|------|-----------------------|---------------------------------|
|
||
| 2024 | 0.81 | Excellent year, above-trend yield|
|
||
| 2025 | 0.78 | Good, trend yield |
|
||
| 2026 | 0.72 | Below recent years |
|
||
|
||
The field is tracking 8-12% below the previous two years. Most of
|
||
the deficit is concentrated in that NW low spot. If we exclude the
|
||
damaged 22 hectares, the remaining 134 hectares have a mean NDVI
|
||
of 0.77 — close to normal.
|
||
|
||
GROWING SEASON NDVI CURVE:
|
||
[Generated: reports/petersen-north-timeseries-2026.png]
|
||
|
||
The NDVI curve shows a normal green-up trajectory until late June,
|
||
then a plateau at 0.72 instead of the expected peak of 0.82-0.85.
|
||
This plateau coincides with the waterlogging event. The NW corner
|
||
is pulling the whole-field average down.
|
||
|
||
RECOMMENDATION FOR THE AGRONOMIST:
|
||
- The NW 22 hectares will likely yield 140-150 bu/ac vs the field
|
||
average of 185-195 bu/ac. That's a 30-40 bu/ac loss on 14% of
|
||
the field = roughly 4-6 bu/ac whole-field yield reduction.
|
||
- Consider variable-rate nitrogen application for the stressed zone
|
||
if there's still time (doubtful at V12+ stage)
|
||
- For next year: tile drainage in the NW low spot would prevent
|
||
recurrence. The field's yield history likely shows this same zone
|
||
underperforming in every wet year
|
||
|
||
|
||
=============================================================
|
||
FINAL TEAM SKILL LIBRARY — FULL DATA PIPELINE STACK
|
||
=============================================================
|
||
|
||
SKILL DATA SOURCES PIPELINE TYPE
|
||
────────────────────────────────────────────────────────────────────────────────
|
||
ANALYSIS SKILLS (interpret data):
|
||
wasde-analyzer-skill USDA WASDE PDF, Bloomberg PDF parsing
|
||
crop-weather-weekly-skill USDA NASS, NOAA, Drought Mon. Multi-source aggregation
|
||
basis-export-tracker-skill DTN, USDA FAS, barge freight Web scraping + API
|
||
coffee-fundamental-skill CEPEA, ICE, CFTC, ECMWF Multi-source aggregation
|
||
yield-predictor-skill Open-Meteo + NASS historical Weather → yield regression
|
||
crop-anomaly-scanner-skill Open-Meteo (32 regions) Real-time anomaly detection
|
||
planting-window-skill Open-Meteo forecast + archive Decision support
|
||
|
||
DATA PLATFORM SKILLS (query structured APIs):
|
||
psd-balance-sheet-skill USDA PSD API REST API → balance sheets
|
||
trade-flow-intel-skill GTT REST API REST API → trade matrices
|
||
supply-chain-risk-skill PSD + GTT + FAS combined Multi-API correlation
|
||
|
||
DATA INGESTION SKILLS (raw data → actionable intelligence):
|
||
noaa-crop-monitor-skill NOAA STAR GeoTIFF (wget) Raster ingestion pipeline
|
||
fire-crop-monitor-skill NASA FIRMS REST API Fire → acreage signal
|
||
vessel-grain-tracker-skill AIS vessel tracking API Shipping → export estimates
|
||
sentinel-field-ndvi-skill Copernicus Sentinel-2 API Satellite → field health
|
||
parana-river-risk-skill Open-Meteo watershed model Weather → river level prediction
|
||
|
||
ORCHESTRATION SKILLS:
|
||
seasonal-spread-skill CBOT historical Quantitative models
|
||
client-briefing-skill Calls other skills internally Report compilation
|
||
|
||
Environment variables for the full stack:
|
||
|
||
# Weather
|
||
export OPEN_METEO_API_KEY="your-professional-api-key"
|
||
|
||
# Government data
|
||
export PSD_API_KEY="your-usda-fas-api-key"
|
||
|
||
# Trade data
|
||
export GTT_USER_ID="your-gtt-username"
|
||
export GTT_PASSWORD="your-gtt-password"
|
||
|
||
# Satellite
|
||
export NASA_FIRMS_KEY="your-earthdata-map-key"
|
||
export COPERNICUS_CLIENT_ID="your-copernicus-client-id"
|
||
export COPERNICUS_CLIENT_SECRET="your-copernicus-client-secret"
|
||
|
||
# Vessel tracking
|
||
export AIS_API_KEY="your-ais-subscription-key"
|
||
|
||
WORKFLOW SKILLS (process automation):
|
||
publication-compliance-skill Internal style/legal/citation rules Pre-submission compliance check
|
||
email-thread-intel-skill Email threads (.eml/.msg/raw text) Intent extraction & action items
|
||
|
||
18 skills. 8 data sources. One team.
|
||
|
||
The junior analyst who joined last month can type:
|
||
/noaa-crop-monitor-skill Morning scan
|
||
/vessel-grain-tracker-skill Brazil soy exports this week
|
||
/fire-crop-monitor-skill Cerrado burning season update
|
||
|
||
And get the same output that took the senior team 6 months to learn
|
||
how to produce manually. The institutional knowledge isn't in people's
|
||
heads anymore — it's in the skills. If someone leaves, the skills stay.
|
||
If someone joins, they're productive on day one.
|
||
|
||
That's what a skill library looks like when a team takes it seriously.
|
||
|
||
|
||
=============================================================
|
||
SKILL 16: Corporate Publication Compliance Checker
|
||
=============================================================
|
||
|
||
An agriculture commodity research analyst at a large bank or trading
|
||
house doesn't just write analysis — they publish it. Every client-facing
|
||
report must conform to corporate style guidelines, regulatory
|
||
disclosures, data citation standards, and compliance language. Getting
|
||
flagged by the compliance department delays publication by 2-3 days
|
||
and embarrasses the analyst. This skill catches problems before
|
||
submission.
|
||
|
||
User: /agent-skill-creator I'm a senior ag commodity analyst at a global bank. Every research note, weekly report, and market commentary I publish has to pass through our compliance and editorial review. The problem is I keep getting sent back for the same issues: missing disclaimers, inconsistent date formats, using "will" instead of "may" (forward-looking language compliance), citing data without proper attribution, inconsistent units (switching between bushels and metric tonnes without converting), and not following our house style guide. I waste 2-3 hours per report fixing these things AFTER compliance flags them. I want a skill that acts as a pre-submission compliance checker. I give it my draft and it tells me every issue before I send it to compliance. Here are our internal documents: references/house-style-guide.pdf (our editorial standards), references/compliance-language-rules.pdf (regulated language requirements from Legal), references/data-citation-policy.md (how to cite USDA, Bloomberg, exchange data), and references/report-templates/ (approved report templates for different publication types). This has to work for: weekly crop reports, flash market commentaries, quarterly outlook pieces, and client presentation decks.
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/house-style-guide.pdf...
|
||
Reading references/compliance-language-rules.pdf...
|
||
Reading references/data-citation-policy.md...
|
||
Scanning references/report-templates/ (4 templates found)...
|
||
|
||
This is a rule-based document validation skill. The challenge isn't
|
||
AI creativity — it's codifying dozens of specific, non-negotiable
|
||
rules from your internal documents and checking them exhaustively.
|
||
Every rule needs to be traceable back to a source document so the
|
||
analyst trusts the feedback. Let me build this.
|
||
|
||
Implicit requirements from your documents:
|
||
|
||
COMPLIANCE LANGUAGE RULES (from Legal):
|
||
- Forward-looking statements must use hedging language: "may",
|
||
"could", "we expect", "is likely to" — NEVER "will", "shall",
|
||
"is going to" when discussing future prices or production
|
||
- Every report must include the standard disclaimer block (provided
|
||
in compliance-language-rules.pdf, 3 variants: short/medium/full)
|
||
- Short disclaimer for flash commentaries (< 500 words)
|
||
- Medium disclaimer for weekly reports
|
||
- Full disclaimer for quarterly outlooks and client presentations
|
||
- Conflict of interest disclosure: if the bank has a trading position
|
||
in the commodity discussed, a specific sentence must appear
|
||
- "Not investment advice" language required in all external-facing
|
||
publications
|
||
- No price targets without the qualifier "our estimate" or "our model
|
||
suggests" — regulatory requirement for non-broker-dealer entities
|
||
- Analyst certification statement ("I, [name], certify that the views
|
||
expressed in this report accurately reflect my personal views...")
|
||
required for all quarterly publications
|
||
|
||
HOUSE STYLE GUIDE:
|
||
- Date format: "March 4, 2026" in body text. Never "3/4/2026" or
|
||
"04/03/2026" (ambiguous US/EU). Tables may use "Mar-26" shorthand
|
||
- Numbers: spell out one through nine, use numerals for 10+. Exception:
|
||
all numbers in data tables, all units ("5 MMT" not "five MMT")
|
||
- Units: metric tonnes (MT) is the house standard. If bushels are used
|
||
(for US-centric analysis), must include MT conversion in parentheses.
|
||
E.g., "52 bu/ac (3.5 MT/ha)" — never bushels without conversion
|
||
- Abbreviations: define on first use. "The U.S. Department of
|
||
Agriculture (USDA) released..." then "USDA" thereafter
|
||
- Report title format: "[COMMODITY] [TYPE] — [Date]"
|
||
E.g., "SOYBEANS WEEKLY — March 4, 2026"
|
||
- Section headers: ALL CAPS, no period. ("SUPPLY AND DEMAND" not
|
||
"Supply and demand.")
|
||
- Data freshness: every data point must include its reference date.
|
||
"Soybean exports reached 5.2 MMT (USDA, as of Feb 28)" — never
|
||
cite data without indicating when it was current
|
||
- Bloomberg data: cite as "Source: Bloomberg" with the ticker in
|
||
parentheses. E.g., "CBOT soybeans closed at $11.42/bu (S 1, Source:
|
||
Bloomberg)"
|
||
- USDA data: cite the specific report. "Source: USDA WASDE, February
|
||
2026" not just "Source: USDA"
|
||
- Exchange data: cite exchange name. "ICE Arabica (KC 1)" not just
|
||
"coffee futures"
|
||
- Rounding: prices to 2 decimal places, volumes to 1 decimal (MMT)
|
||
or whole numbers (MT), yields to 1 decimal (bu/ac or MT/ha)
|
||
- "Bearish" and "bullish" must be qualified: "bearish for nearby
|
||
futures" or "bullish for the 2026/27 outlook" — never standalone
|
||
"this is bullish"
|
||
|
||
DATA CITATION POLICY:
|
||
- Every chart, table, and key data point needs a source line
|
||
- Proprietary model outputs must be labeled: "Source: [Bank Name]
|
||
Estimates" or "Source: [Bank Name] Model"
|
||
- Third-party data cannot be republished in full — only excerpts with
|
||
proper attribution (Bloomberg redistribution terms)
|
||
- CFTC COT data: "Source: CFTC Commitments of Traders, as of [date]"
|
||
- Client-shared data: if a client provided proprietary data, it must
|
||
NOT appear in any published report without explicit permission
|
||
|
||
TEMPLATE CONFORMANCE:
|
||
- Each report type has an approved structure (section order, required
|
||
sections, optional sections)
|
||
- Weekly crop report template: Title → Executive Summary → Price
|
||
Action → Weather → Crop Conditions → Supply & Demand → Trade →
|
||
Outlook → Disclaimer
|
||
- Flash commentary template: Title → Key Point (1-2 sentences) →
|
||
Analysis (3-5 paragraphs) → Implication → Short Disclaimer
|
||
- Quarterly outlook: Title → Executive Summary → Macro Context →
|
||
Detailed S&D → Regional Breakdown → Price Forecast → Risk Factors
|
||
→ Analyst Certification → Full Disclaimer
|
||
- Missing a required section = compliance rejection
|
||
|
||
Building...
|
||
|
||
publication-compliance-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── compliance_checker.py # Main orchestrator: load draft,
|
||
│ │ # run all rule engines, output report
|
||
│ ├── language_rules.py # Forward-looking language scanner,
|
||
│ │ # prohibited phrases, hedging checker
|
||
│ ├── disclaimer_checker.py # Verify correct disclaimer variant
|
||
│ │ # is present and matches report type
|
||
│ ├── style_checker.py # Date formats, number formatting,
|
||
│ │ # abbreviation first-use, unit rules
|
||
│ ├── citation_checker.py # Data source attribution validation,
|
||
│ │ # date freshness, Bloomberg/USDA/CFTC
|
||
│ ├── template_checker.py # Section order/presence vs template,
|
||
│ │ # title format, header style
|
||
│ ├── unit_converter.py # Detect bare bushel/MT values, suggest
|
||
│ │ # dual-unit format
|
||
│ └── report_builder.py # Compliance Pre-Check Report (PDF)
|
||
├── references/
|
||
│ ├── house-style-rules.md # Parsed style guide rules (machine-
|
||
│ │ # readable checklist format)
|
||
│ ├── compliance-phrases.md # Prohibited/required phrases + context
|
||
│ ├── disclaimer-templates.md # Short/medium/full disclaimer text
|
||
│ ├── citation-formats.md # Correct citation format by source
|
||
│ ├── report-templates.md # Section structure by report type
|
||
│ └── methodology.md
|
||
├── assets/
|
||
│ ├── prohibited_phrases.json # "will rise", "shall increase", etc.
|
||
│ ├── hedging_phrases.json # "may", "could", "we expect", etc.
|
||
│ ├── abbreviation_registry.json # Known abbreviations and expansions
|
||
│ ├── unit_conversions.json # bu/ac↔MT/ha, bu↔MT by commodity
|
||
│ ├── citation_patterns.json # Regex patterns for valid citations
|
||
│ └── templates/
|
||
│ ├── weekly_crop.json # Required/optional sections + order
|
||
│ ├── flash_commentary.json
|
||
│ ├── quarterly_outlook.json
|
||
│ └── client_presentation.json
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (no external credentials needed — all rules are local)
|
||
Installed at: ~/.claude/skills/publication-compliance-skill
|
||
|
||
Shared to: github.com/acme-trading/publication-compliance-skill
|
||
|
||
|
||
--- The analyst runs a pre-submission check on a weekly report ---
|
||
|
||
Analyst: /publication-compliance-skill Check this draft before I send it to compliance: drafts/soybeans-weekly-2026-03-04.md
|
||
|
||
Copilot (loading publication-compliance-skill):
|
||
|
||
Loading draft: drafts/soybeans-weekly-2026-03-04.md
|
||
Detected report type: Weekly Crop Report (from title format)
|
||
Running all compliance checks...
|
||
|
||
PUBLICATION COMPLIANCE PRE-CHECK
|
||
Report: SOYBEANS WEEKLY — March 4, 2026
|
||
Type: Weekly Crop Report
|
||
Word count: 2,847
|
||
|
||
════════════════════════════════════════════════════════
|
||
CRITICAL ISSUES (must fix before submission — compliance will reject)
|
||
════════════════════════════════════════════════════════
|
||
|
||
1. FORWARD-LOOKING LANGUAGE VIOLATION [Line 34]
|
||
Found: "Brazilian exports will exceed 90 MMT this season"
|
||
Rule: Never use "will" for future market/production outcomes
|
||
Fix: "Brazilian exports are expected to exceed 90 MMT..."
|
||
Source: compliance-language-rules.pdf §3.2
|
||
|
||
2. FORWARD-LOOKING LANGUAGE VIOLATION [Line 67]
|
||
Found: "Prices are going to test $10.50 support"
|
||
Rule: "going to" implies certainty about future prices
|
||
Fix: "Prices may test $10.50 support" or "Prices could test..."
|
||
Source: compliance-language-rules.pdf §3.2
|
||
|
||
3. MISSING DISCLAIMER [End of document]
|
||
Found: No disclaimer block detected
|
||
Rule: Weekly reports require the MEDIUM disclaimer variant (¶2-4
|
||
of the standard disclaimer, including non-investment-advice
|
||
language and data redistribution notice)
|
||
Fix: Append the medium disclaimer from templates/disclaimers.md
|
||
Source: compliance-language-rules.pdf §1.1
|
||
|
||
4. UNQUALIFIED PRICE TARGET [Line 89]
|
||
Found: "Fair value for Nov soybeans is $11.20"
|
||
Rule: Price targets must include attribution qualifier
|
||
Fix: "Our model suggests fair value for Nov soybeans near $11.20"
|
||
Source: compliance-language-rules.pdf §4.1
|
||
|
||
5. BARE DATA WITHOUT SOURCE [Line 52]
|
||
Found: "China imported 8.4 MMT of soybeans in February"
|
||
Rule: All data points require source and reference date
|
||
Fix: "China imported 8.4 MMT of soybeans in February (Source:
|
||
China Customs, as of Mar 1, 2026)"
|
||
Source: data-citation-policy.md §2.1
|
||
|
||
════════════════════════════════════════════════════════
|
||
STYLE ISSUES (should fix — editor will flag)
|
||
════════════════════════════════════════════════════════
|
||
|
||
6. DATE FORMAT [Line 12]
|
||
Found: "3/4/2026"
|
||
Rule: Body text requires "March 4, 2026" (never numeric M/D/Y)
|
||
Fix: "March 4, 2026"
|
||
Source: house-style-guide.pdf §7.1
|
||
|
||
7. DATE FORMAT [Line 78]
|
||
Found: "Feb 28th"
|
||
Rule: No ordinal suffixes on dates ("st", "nd", "rd", "th")
|
||
Fix: "Feb 28" (table) or "February 28" (body text)
|
||
Source: house-style-guide.pdf §7.1
|
||
|
||
8. UNIT CONSISTENCY [Line 23]
|
||
Found: "US yield of 52 bu/ac"
|
||
Rule: Bushels require metric conversion in parentheses
|
||
Fix: "US yield of 52 bu/ac (3.5 MT/ha)"
|
||
Source: house-style-guide.pdf §8.3
|
||
|
||
9. UNIT CONSISTENCY [Lines 41, 56, 71]
|
||
Found: Three more bare bushel references without MT conversion
|
||
Fix: Add "(X.X MT/ha)" or "(X.X MT)" after each bushel figure
|
||
Source: house-style-guide.pdf §8.3
|
||
|
||
10. ABBREVIATION FIRST USE [Line 8]
|
||
Found: "CONAB reported..." (first occurrence)
|
||
Rule: Abbreviations must be defined on first use
|
||
Fix: "Brazil's National Supply Company (CONAB) reported..."
|
||
Source: house-style-guide.pdf §6.2
|
||
|
||
11. ABBREVIATION FIRST USE [Line 15]
|
||
Found: "ABIOVE estimates..." (first occurrence)
|
||
Fix: "The Brazilian Vegetable Oil Industry Association (ABIOVE)
|
||
estimates..."
|
||
Source: house-style-guide.pdf §6.2
|
||
|
||
12. STANDALONE SENTIMENT [Line 92]
|
||
Found: "This is bearish."
|
||
Rule: Bearish/bullish must be qualified with timeframe and scope
|
||
Fix: "This is bearish for nearby CBOT soybean futures" or
|
||
"...bearish for the 2025/26 US export outlook"
|
||
Source: house-style-guide.pdf §11.1
|
||
|
||
13. NUMBER FORMATTING [Line 44]
|
||
Found: "production fell by 3 MMT"
|
||
Rule: Spell out one–nine; BUT exception for units — numerals OK.
|
||
Actually this IS correct (3 MMT uses numeral with unit).
|
||
Status: FALSE POSITIVE — no action needed.
|
||
|
||
════════════════════════════════════════════════════════
|
||
CITATION ISSUES (fix for data integrity)
|
||
════════════════════════════════════════════════════════
|
||
|
||
14. VAGUE USDA CITATION [Line 29]
|
||
Found: "Source: USDA"
|
||
Rule: Must specify which USDA report
|
||
Fix: "Source: USDA WASDE, February 2026" or "Source: USDA FAS
|
||
PSD, February 2026"
|
||
Source: data-citation-policy.md §3.1
|
||
|
||
15. MISSING BLOOMBERG TICKER [Line 61]
|
||
Found: "Source: Bloomberg"
|
||
Rule: Bloomberg citations require the terminal ticker
|
||
Fix: "Source: Bloomberg (S 1 Comdty)"
|
||
Source: data-citation-policy.md §3.3
|
||
|
||
16. STALE DATA REFERENCE [Line 47]
|
||
Found: "USDA projects 2025/26 exports at 1,825 million bushels"
|
||
Note: This is from the FEBRUARY WASDE. The March WASDE was
|
||
published yesterday (March 3). You should either update to
|
||
the March figure or add "(February estimate, prior to
|
||
March revision)"
|
||
Source: data-citation-policy.md §4.1
|
||
|
||
════════════════════════════════════════════════════════
|
||
TEMPLATE CHECK
|
||
════════════════════════════════════════════════════════
|
||
|
||
Weekly Crop Report — Required sections:
|
||
✓ Title (correct format: "SOYBEANS WEEKLY — March 4, 2026")
|
||
✓ Executive Summary
|
||
✓ Price Action
|
||
✓ Weather
|
||
✓ Crop Conditions
|
||
✓ Supply & Demand
|
||
✓ Trade
|
||
✗ Outlook (MISSING — required section)
|
||
✗ Disclaimer (MISSING — see Critical Issue #3)
|
||
|
||
Section header format:
|
||
✓ "PRICE ACTION" — correct (ALL CAPS, no period)
|
||
✓ "WEATHER" — correct
|
||
✗ "Crop Conditions" [Line 38] — should be "CROP CONDITIONS"
|
||
✗ "Supply and Demand." [Line 50] — remove period, use ALL CAPS:
|
||
"SUPPLY AND DEMAND"
|
||
|
||
════════════════════════════════════════════════════════
|
||
SUMMARY
|
||
════════════════════════════════════════════════════════
|
||
|
||
Critical (compliance will reject): 5 issues
|
||
Style (editor will flag): 6 issues (1 false positive)
|
||
Citation: 3 issues
|
||
Template: 2 missing sections, 2 header fixes
|
||
──────────────────────────────────────────────────────
|
||
TOTAL: 16 issues (15 real, 1 false positive)
|
||
|
||
ESTIMATED TIME TO FIX: 15-20 minutes
|
||
|
||
Without this check, compliance would have returned the draft in 2-3
|
||
business days with the same findings. Now you can fix everything in
|
||
one pass, resubmit clean, and publish on schedule.
|
||
|
||
Pre-check report: reports/compliance-check-soybeans-weekly-2026-03-04.pdf
|
||
|
||
|
||
--- The analyst fixes everything and re-runs ---
|
||
|
||
Analyst: /publication-compliance-skill Re-check the updated draft: drafts/soybeans-weekly-2026-03-04-v2.md
|
||
|
||
Copilot (loading publication-compliance-skill):
|
||
|
||
Loading draft: drafts/soybeans-weekly-2026-03-04-v2.md
|
||
Running all compliance checks...
|
||
|
||
PUBLICATION COMPLIANCE PRE-CHECK
|
||
Report: SOYBEANS WEEKLY — March 4, 2026
|
||
Type: Weekly Crop Report (v2)
|
||
Word count: 3,012
|
||
|
||
✓ Forward-looking language: PASSED (0 violations)
|
||
✓ Disclaimer: PASSED (medium variant detected, text matches template)
|
||
✓ Price targets: PASSED (all qualified with "our model suggests")
|
||
✓ Data citations: PASSED (all sources include report name and date)
|
||
✓ Date formats: PASSED (all "Month DD, YYYY" format)
|
||
✓ Unit consistency: PASSED (all bushel figures include MT conversion)
|
||
✓ Abbreviations: PASSED (all defined on first use)
|
||
✓ Sentiment qualifiers: PASSED ("bearish for nearby CBOT futures")
|
||
✓ Bloomberg tickers: PASSED (all citations include ticker)
|
||
✓ Template structure: PASSED (all 9 required sections present, correct order)
|
||
✓ Section headers: PASSED (all ALL CAPS, no periods)
|
||
✓ Data freshness: PASSED (updated to March WASDE figures)
|
||
|
||
RESULT: CLEAN — Ready for compliance submission.
|
||
|
||
0 critical issues. 0 style issues. 0 citation issues.
|
||
This draft should pass compliance review on first submission.
|
||
|
||
|
||
--- A flash commentary during a volatile session ---
|
||
|
||
Analyst: /publication-compliance-skill Quick check on this flash note I wrote during the session: drafts/flash-argentina-drought-2026-03-05.md
|
||
|
||
Copilot (loading publication-compliance-skill):
|
||
|
||
Loading draft: drafts/flash-argentina-drought-2026-03-05.md
|
||
Detected report type: Flash Commentary (from title + word count: 380)
|
||
Running compliance checks...
|
||
|
||
PUBLICATION COMPLIANCE PRE-CHECK
|
||
Report: SOYBEANS FLASH — Argentina Drought Deepens, March 5, 2026
|
||
Type: Flash Commentary
|
||
Word count: 380
|
||
|
||
CRITICAL:
|
||
1. DISCLAIMER VARIANT MISMATCH [End of document]
|
||
Found: Medium disclaimer (312 words)
|
||
Rule: Flash commentaries (< 500 words) use the SHORT disclaimer
|
||
(87 words). Using the medium variant makes the disclaimer
|
||
almost as long as the analysis itself.
|
||
Fix: Replace with short disclaimer from templates/disclaimers.md
|
||
Source: compliance-language-rules.pdf §1.1
|
||
|
||
STYLE:
|
||
2. FORWARD-LOOKING LANGUAGE [Line 8]
|
||
Found: "production will fall to 38-42 MMT"
|
||
Fix: "production could fall to 38-42 MMT"
|
||
|
||
3. MISSING SOURCE DATE [Line 5]
|
||
Found: "Buenos Aires Grain Exchange estimates"
|
||
Fix: "Buenos Aires Grain Exchange estimates (as of Mar 4, 2026)"
|
||
|
||
TEMPLATE:
|
||
✓ Title format: correct
|
||
✓ Key Point section: present
|
||
✓ Analysis section: present
|
||
✓ Implication section: present
|
||
✗ Disclaimer: present but wrong variant (see Critical #1)
|
||
|
||
SUMMARY: 1 critical, 2 style, 0 citation. Fix in 5 minutes.
|
||
|
||
The disclaimer swap is the one that matters. Compliance WILL reject
|
||
a flash note with a medium disclaimer — it looks like you copy-pasted
|
||
from a weekly template without adjusting.
|
||
|
||
|
||
--- Quarterly outlook — the most scrutinized report type ---
|
||
|
||
Analyst: /publication-compliance-skill Full audit on the Q2 outlook before it goes to the MD for sign-off: drafts/soybeans-q2-outlook-2026.md
|
||
|
||
Copilot (loading publication-compliance-skill):
|
||
|
||
Loading draft: drafts/soybeans-q2-outlook-2026.md
|
||
Detected report type: Quarterly Outlook (from title + template match)
|
||
Running compliance checks (FULL AUDIT mode for quarterly)...
|
||
|
||
PUBLICATION COMPLIANCE FULL AUDIT
|
||
Report: SOYBEANS QUARTERLY OUTLOOK — Q2 2026
|
||
Type: Quarterly Outlook
|
||
Word count: 8,420
|
||
|
||
This report type receives the highest compliance scrutiny. Quarterly
|
||
outlooks are distributed to institutional clients and may be cited in
|
||
media. Running all checks at maximum sensitivity.
|
||
|
||
════════════════════════════════════════════════════════
|
||
CRITICAL ISSUES
|
||
════════════════════════════════════════════════════════
|
||
|
||
1. MISSING ANALYST CERTIFICATION [End of document]
|
||
Rule: Quarterly outlooks require the analyst certification
|
||
statement: "I, [Name], certify that the views expressed in
|
||
this report accurately reflect my personal views and that no
|
||
part of my compensation was, is, or will be related to the
|
||
specific recommendations or views expressed herein."
|
||
Fix: Add certification between Risk Factors and Full Disclaimer
|
||
Source: compliance-language-rules.pdf §6.1
|
||
|
||
2. FORWARD-LOOKING LANGUAGE (3 instances) [Lines 112, 245, 389]
|
||
"Prices will recover..." → "Prices may recover..."
|
||
"China will import..." → "China is expected to import..."
|
||
"The trade war will escalate..." → "The trade war could escalate..."
|
||
|
||
3. PROPRIETARY MODEL OUTPUT WITHOUT LABEL [Line 201]
|
||
Found: Table with "Price Forecast" column showing $10.80, $11.40,
|
||
$12.10 for Q2, Q3, Q4
|
||
Rule: Proprietary model outputs must be labeled "Source: [Bank]
|
||
Estimates" or "Source: [Bank] Quantitative Model"
|
||
Fix: Add source line under table: "Source: [Bank Name] Quantitative
|
||
Commodity Model. Forecasts are subject to revision."
|
||
|
||
════════════════════════════════════════════════════════
|
||
STYLE ISSUES
|
||
════════════════════════════════════════════════════════
|
||
|
||
4. UNIT CONSISTENCY [8 instances]
|
||
Found 8 bushel-only figures missing metric conversions.
|
||
Quarterly outlooks have international readership — metric
|
||
conversions are especially important.
|
||
[Line 45] "51.5 bu/ac" → "51.5 bu/ac (3.46 MT/ha)"
|
||
[Line 78] "1,825 M bu" → "1,825 million bushels (49.7 MMT)"
|
||
... (6 more, see full report)
|
||
|
||
5. ROUNDING [Lines 156, 203]
|
||
Found: "exports at 5.23456 MMT"
|
||
Rule: Volumes round to 1 decimal place for MMT
|
||
Fix: "exports at 5.2 MMT"
|
||
|
||
════════════════════════════════════════════════════════
|
||
CITATION ISSUES
|
||
════════════════════════════════════════════════════════
|
||
|
||
6. STALE DATA (WASDE) [Lines 67, 89, 134]
|
||
Your draft cites "USDA WASDE, February 2026" in three places.
|
||
The March WASDE has been published. For a quarterly outlook going
|
||
to print in March, all WASDE references should be March 2026
|
||
unless you're specifically discussing the February-to-March
|
||
revision.
|
||
|
||
7. THIRD-PARTY DATA REDISTRIBUTION [Line 290]
|
||
Found: Full reproduction of a Bloomberg table (12 rows of daily
|
||
CBOT settlement prices)
|
||
Rule: Bloomberg data redistribution terms limit verbatim
|
||
reproduction. Summarize, chart, or excerpt — don't reproduce
|
||
full daily settlement tables.
|
||
Fix: Replace with a summary ("CBOT soybeans traded in a $10.20-
|
||
$11.60 range during Q1") or a chart, with "Source: Bloomberg"
|
||
|
||
════════════════════════════════════════════════════════
|
||
TEMPLATE CHECK
|
||
════════════════════════════════════════════════════════
|
||
|
||
Quarterly Outlook — Required sections:
|
||
✓ Title
|
||
✓ Executive Summary
|
||
✓ Macro Context
|
||
✓ Detailed S&D
|
||
✓ Regional Breakdown
|
||
✓ Price Forecast
|
||
✓ Risk Factors
|
||
✗ Analyst Certification (MISSING — see Critical #1)
|
||
✓ Full Disclaimer (correct variant, text matches)
|
||
|
||
Section order: CORRECT (all sections in approved sequence)
|
||
|
||
════════════════════════════════════════════════════════
|
||
SUMMARY
|
||
════════════════════════════════════════════════════════
|
||
|
||
Critical: 3 issues (certification, language, model label)
|
||
Style: 9 issues (8 unit conversions, 1 rounding)
|
||
Citation: 2 issues (stale WASDE, Bloomberg redistribution)
|
||
Template: 1 missing section
|
||
──────────────────────────────────────────────────────
|
||
TOTAL: 15 issues
|
||
|
||
ESTIMATED TIME TO FIX: 30-40 minutes
|
||
|
||
The Bloomberg redistribution flag is the one that could cause
|
||
real problems. Legal has flagged analysts before for reproducing
|
||
terminal data verbatim. Summarize or chart it — don't copy the table.
|
||
|
||
The analyst certification is a simple paste, but forgetting it on a
|
||
quarterly that goes to 200+ institutional clients would be a career
|
||
embarrassment. This is exactly why you run the checker first.
|
||
|
||
Full audit report: reports/compliance-audit-soy-q2-outlook-2026.pdf
|
||
|
||
|
||
=============================================================
|
||
WHY THIS SKILL WORKS
|
||
=============================================================
|
||
|
||
The publication compliance skill is probably the highest-ROI skill in
|
||
the entire library. Consider:
|
||
|
||
WITHOUT THE SKILL:
|
||
- Analyst writes report: 3-4 hours
|
||
- Submits to compliance: 1 day turnaround (best case)
|
||
- Gets 10-15 issues back: 1-2 hours to fix
|
||
- Resubmits: another 1 day turnaround
|
||
- Gets 2-3 more issues: 30 min to fix
|
||
- Final approval: maybe day 4 after writing
|
||
- Total: 5-7 hours of analyst time + 2-4 days of calendar time
|
||
|
||
WITH THE SKILL:
|
||
- Analyst writes report: 3-4 hours
|
||
- Runs /publication-compliance-skill: 30 seconds
|
||
- Fixes all 15 issues in one pass: 20-40 minutes
|
||
- Submits clean draft to compliance: passes first time
|
||
- Total: 4-5 hours of analyst time + 1 day of calendar time
|
||
|
||
SAVINGS: 2-3 hours per report × 4 reports/month = 8-12 hours/month
|
||
per analyst. For a team of 6 analysts, that's 50-70 hours/month of
|
||
senior analyst time recovered.
|
||
|
||
But the real value isn't the hours — it's the publication speed.
|
||
A weekly crop report that publishes Monday morning instead of
|
||
Wednesday afternoon is infinitely more valuable to clients who trade
|
||
on it. Timeliness IS the product in commodity research.
|
||
|
||
The skill also serves as institutional knowledge preservation. When the
|
||
head of compliance retires, the rules don't disappear — they're codified
|
||
in the skill's reference files. When a new regulation changes the
|
||
disclaimer language, you update one JSON file and every analyst's next
|
||
check reflects the change automatically.
|
||
|
||
This is the kind of skill that doesn't seem exciting — no satellite
|
||
data, no vessel tracking, no yield models. But it's the one the team
|
||
uses every single day, and it's the one the managing director notices
|
||
because reports stop getting bounced back.
|
||
|
||
|
||
=============================================================
|
||
SKILL 17: Email Thread Intelligence — Intent & Requirements Extractor
|
||
=============================================================
|
||
|
||
Every analyst, PM, and researcher has lived this nightmare: a 47-message
|
||
email thread spanning 3 weeks, 9 participants, 4 conflicting opinions,
|
||
2 scope changes buried in reply #31, and one critical deadline mentioned
|
||
once in a forwarded attachment. Someone asks "what did we actually agree
|
||
to?" and nobody can answer without re-reading the entire chain. This
|
||
skill reads the mess and tells you what's real.
|
||
|
||
User: /agent-skill-creator I spend at least an hour a day trying to parse long email threads from clients, internal stakeholders, and cross-functional teams. The problem isn't individual emails — it's threads that mutate over time. A client starts by asking for one thing, then someone on our side proposes an alternative, then the client's boss jumps in and changes the scope, then there are 15 replies about scheduling that bury the actual decision, and by reply #40 nobody remembers what was originally asked. I need a skill that I can paste an email thread into (or point at a .eml/.msg file) and get back: (1) the ACTUAL requirements — not what was first asked, but what was LAST agreed to, tracking how requirements evolved through the thread, (2) all action items with owners and deadlines, (3) open questions that were asked but never answered, (4) decisions that were made (and WHO made them — authority matters), (5) scope changes — what was added, removed, or modified from the original request, and (6) conflicting statements where two people said incompatible things and nobody resolved it. I work in commodity research but this is a universal problem — every knowledge worker has it. Here's an example of the kind of thread I deal with: references/sample-client-thread.eml (62 messages, 12 participants, 3 weeks).
|
||
|
||
Copilot (loading agent-skill-creator skill):
|
||
|
||
Reading references/sample-client-thread.eml...
|
||
|
||
62 messages. 12 participants. 21 days. This is a textbook case of
|
||
requirements drift buried in conversational noise. The core challenge
|
||
is distinguishing signal from noise: most messages are scheduling,
|
||
acknowledgments, CC additions, and side conversations. The real
|
||
decisions are in maybe 8-10 messages. Let me build a skill that
|
||
finds them.
|
||
|
||
Implicit requirements:
|
||
- Input formats: raw pasted text, .eml files (RFC 5322), .msg files
|
||
(Outlook), or a batch of .eml files for multi-thread analysis
|
||
- Thread reconstruction: emails arrive out of order, have inconsistent
|
||
quoting styles (>, |, inline), forwarded sub-threads, and sometimes
|
||
broken In-Reply-To headers. Need to rebuild the conversation tree
|
||
- Participant identification: same person may appear as "John Smith",
|
||
"John", "JS", "john.smith@acme.com", and "Smith, John (London)".
|
||
Need entity resolution across the thread
|
||
- Authority detection: not all participants are equal. A director
|
||
saying "let's do X" overrides an analyst suggesting "maybe Y".
|
||
Detect seniority signals from: email signatures (titles), CC vs TO
|
||
position, who others defer to, explicit authority statements ("I've
|
||
approved this")
|
||
- Temporal tracking: requirements stated in message #5 may be
|
||
superseded by message #28. The skill must track the EVOLUTION,
|
||
not just extract from the latest message
|
||
- Implicit vs explicit: "sounds good" in reply to a proposal = implicit
|
||
agreement. "Per our call, we agreed to..." = explicit decision.
|
||
Both matter but carry different confidence levels
|
||
- Negation detection: "Actually, scratch that — let's go with plan B"
|
||
negates everything in the preceding proposal
|
||
- Attachment awareness: "see attached SOW" or "per the deck I sent
|
||
Tuesday" — flag that a requirement lives outside the email body
|
||
- Cross-thread references: "as discussed in the other thread about
|
||
the Brazil report" — flag that context exists elsewhere
|
||
- Output must be structured, scannable, and cite specific messages
|
||
by sender + timestamp so the analyst can verify
|
||
|
||
Building...
|
||
|
||
email-thread-intel-skill/
|
||
├── SKILL.md
|
||
├── scripts/
|
||
│ ├── thread_parser.py # Parse .eml/.msg/raw text into
|
||
│ │ # structured message objects
|
||
│ │ # (sender, date, body, quoted text)
|
||
│ ├── thread_reconstructor.py # Rebuild conversation tree from
|
||
│ │ # In-Reply-To, References, quoting
|
||
│ │ # patterns, and timestamp ordering
|
||
│ ├── participant_resolver.py # Entity resolution: merge "John",
|
||
│ │ # "JS", "john.smith@acme.com" into
|
||
│ │ # one person with role/seniority
|
||
│ ├── intent_tracker.py # Track requirements through the
|
||
│ │ # thread: initial ask → modifications
|
||
│ │ # → supersessions → final state
|
||
│ ├── decision_extractor.py # Find explicit decisions, implicit
|
||
│ │ # agreements, and authority signals
|
||
│ ├── action_item_finder.py # "Can you send me..." / "I'll have
|
||
│ │ # this by Friday" / "ACTION: ..."
|
||
│ │ # with owner + deadline extraction
|
||
│ ├── conflict_detector.py # Find incompatible statements from
|
||
│ │ # different participants that were
|
||
│ │ # never explicitly resolved
|
||
│ ├── question_tracker.py # Questions asked but never answered
|
||
│ │ # in subsequent messages
|
||
│ ├── scope_diff.py # Compare initial request vs final
|
||
│ │ # agreed state: added/removed/changed
|
||
│ └── report_builder.py # Thread Intelligence Brief (markdown
|
||
│ # + optional PDF)
|
||
├── references/
|
||
│ ├── parsing-patterns.md # Email quoting styles, signature
|
||
│ │ # patterns, forwarding formats
|
||
│ ├── intent-signals.md # Linguistic markers for decisions,
|
||
│ │ # proposals, agreements, rejections
|
||
│ ├── authority-heuristics.md # How to infer seniority from email
|
||
│ │ # metadata and language patterns
|
||
│ └── methodology.md
|
||
├── assets/
|
||
│ ├── decision_phrases.json # "let's go with", "approved", "agreed"
|
||
│ ├── action_phrases.json # "can you", "please send", "I'll do"
|
||
│ ├── negation_phrases.json # "actually", "scratch that", "instead"
|
||
│ ├── hedge_phrases.json # "maybe", "what if", "just thinking"
|
||
│ │ # (proposals, not decisions)
|
||
│ └── title_seniority.json # "MD" > "Director" > "VP" > "Associate"
|
||
│ # (for authority weighting)
|
||
├── install.sh
|
||
└── README.md
|
||
|
||
Validation: PASSED
|
||
Security: PASSED (no external APIs — all processing is local)
|
||
Installed at: ~/.claude/skills/email-thread-intel-skill
|
||
|
||
Shared to: github.com/acme-trading/email-thread-intel-skill
|
||
|
||
|
||
--- The analyst pastes a nightmarish client thread ---
|
||
|
||
Analyst: /email-thread-intel-skill Parse this thread and tell me what the client actually wants. I've been CC'd into the middle of it and I'm lost: emails/client-brazil-soy-report-thread.eml
|
||
|
||
Copilot (loading email-thread-intel-skill):
|
||
|
||
Parsing emails/client-brazil-soy-report-thread.eml...
|
||
47 messages, 9 participants, spanning Feb 10 – Mar 3, 2026.
|
||
Reconstructing conversation tree...
|
||
Resolving participants...
|
||
Extracting requirements, decisions, and action items...
|
||
|
||
THREAD INTELLIGENCE BRIEF
|
||
Subject: "RE: RE: FW: Brazil Soy Report — Scope & Deliverables"
|
||
|
||
════════════════════════════════════════════════════════
|
||
PARTICIPANTS (resolved)
|
||
════════════════════════════════════════════════════════
|
||
|
||
| Name | Role | Org | Messages | Authority |
|
||
|--------------------|-----------------------|------------|----------|-----------|
|
||
| Sarah Chen | Portfolio Manager | Client | 8 | HIGH |
|
||
| David Park | Head of Research | Client | 3 | HIGHEST |
|
||
| Lisa Nakamura | Research Analyst | Client | 12 | MEDIUM |
|
||
| Tom Bradley | Trading Desk | Client | 6 | MEDIUM |
|
||
| You (Maria Santos) | Senior Analyst | Our Firm | 7 | — |
|
||
| James Wilson | Head of Ag Research | Our Firm | 4 | HIGH |
|
||
| Alex Rivera | Junior Analyst | Our Firm | 5 | LOW |
|
||
| Priya Sharma | Sales Coverage | Our Firm | 1 | LOW |
|
||
| Rachel Kim | Compliance | Our Firm | 1 | N/A |
|
||
|
||
Note: "Lisa N.", "L. Nakamura", and "lisa.nakamura@clientfund.com"
|
||
are the same person (12 messages total, not 3 people with 4 each).
|
||
|
||
════════════════════════════════════════════════════════
|
||
REQUIREMENTS EVOLUTION (what changed over time)
|
||
════════════════════════════════════════════════════════
|
||
|
||
ORIGINAL REQUEST (Feb 10, Sarah Chen):
|
||
"We need a deep-dive report on Brazil soybean production risk for
|
||
the 2025/26 season. 15-20 pages. Focus on weather impact and
|
||
export pace. Deadline: end of February."
|
||
|
||
MODIFICATION #1 (Feb 14, Lisa Nakamura):
|
||
"Can you also include Argentina? The drought situation there is
|
||
getting interesting. Maybe a comparative section."
|
||
Status: ACCEPTED by Sarah Chen (Feb 14): "Good idea Lisa, yes
|
||
please include Argentina."
|
||
→ SCOPE EXPANDED: Argentina added as comparative section
|
||
|
||
MODIFICATION #2 (Feb 18, Tom Bradley, Trading Desk):
|
||
"For the trading desk, we also need short-term price scenarios.
|
||
Like what happens to the May-July spread if USDA cuts Argentina
|
||
by 5 MMT in March. Give us 3 scenarios with price targets."
|
||
Status: PARTIALLY ACCEPTED by Sarah Chen (Feb 19): "The scenarios
|
||
are useful but let's keep it to 2 scenarios — bull and bear case.
|
||
Three is too many for the investment committee."
|
||
→ SCOPE EXPANDED: Price scenarios added, but 2 not 3
|
||
|
||
MODIFICATION #3 (Feb 24, David Park, Head of Research):
|
||
"I want this to also serve as input for our quarterly allocation
|
||
meeting on March 15. Add a one-page executive summary that a
|
||
generalist portfolio manager can read in 2 minutes. And push
|
||
the deadline to March 10 — we need it 5 days before the meeting."
|
||
Status: THIS IS THE FINAL AUTHORITY. David Park is the most senior
|
||
client participant. No one contradicted this.
|
||
→ DEADLINE CHANGED: Feb 28 → March 10
|
||
→ SCOPE EXPANDED: Executive summary added (1 page, generalist audience)
|
||
→ PURPOSE EXPANDED: Now serves quarterly allocation meeting
|
||
|
||
MODIFICATION #4 (Feb 26, Lisa Nakamura):
|
||
"One more thing — can you include a section on Chinese demand? I
|
||
know it's not in the original scope but it's really driving the
|
||
price action."
|
||
Status: ⚠️ NEVER EXPLICITLY APPROVED OR REJECTED. Sarah Chen
|
||
did not respond to this message. Lisa does not have authority to
|
||
expand scope unilaterally. James Wilson (our side) replied "we can
|
||
look into it" — but that's our internal response, not client
|
||
approval.
|
||
→ AMBIGUOUS: China demand section — in scope or not?
|
||
|
||
════════════════════════════════════════════════════════
|
||
FINAL AGREED REQUIREMENTS (as of last message, Mar 3)
|
||
════════════════════════════════════════════════════════
|
||
|
||
✓ CONFIRMED:
|
||
1. Deep-dive on Brazil soybean production risk (2025/26)
|
||
— Weather impact, crop conditions, production estimates
|
||
— Source: Sarah Chen, Feb 10 (original request)
|
||
2. Argentina comparative section (drought analysis)
|
||
— Source: Lisa Nakamura, Feb 14 → approved by Sarah Chen
|
||
3. Two price scenarios: bull case and bear case
|
||
— Include May-July spread implications
|
||
— Source: Tom Bradley, Feb 18 → modified by Sarah Chen to 2 scenarios
|
||
4. One-page executive summary for generalist audience
|
||
— Source: David Park, Feb 24 (highest authority)
|
||
5. Export pace analysis (Brazil)
|
||
— Source: Sarah Chen, Feb 10 (original request)
|
||
6. Length: 15-20 pages (excluding exec summary)
|
||
— Source: Sarah Chen, Feb 10 (never modified)
|
||
7. Deadline: March 10, 2026
|
||
— Source: David Park, Feb 24 (overrode original Feb 28)
|
||
|
||
⚠️ UNRESOLVED:
|
||
8. China demand section — requested by Lisa (Feb 26), never approved
|
||
by Sarah or David. Recommend: email Sarah directly to confirm
|
||
before spending time on this.
|
||
|
||
✗ SUPERSEDED (no longer valid):
|
||
9. "3 price scenarios" — Tom Bradley's request was narrowed to 2 by
|
||
Sarah Chen. Do NOT deliver 3 scenarios.
|
||
10. "End of February deadline" — overridden by David Park to March 10.
|
||
|
||
════════════════════════════════════════════════════════
|
||
ACTION ITEMS
|
||
════════════════════════════════════════════════════════
|
||
|
||
| # | Action | Owner | Deadline | Status |
|
||
|---|-------------------------------------|-----------------|-----------|-----------|
|
||
| 1 | Deliver Brazil/Argentina soy report | Maria Santos | Mar 10 | IN PROGRESS|
|
||
| 2 | Send interim data tables to Lisa | Alex Rivera | Feb 28 | ⚠️ OVERDUE |
|
||
| 3 | Confirm China section in/out | Maria Santos | ASAP | OPEN |
|
||
| 4 | Share draft for internal review | Maria Santos | Mar 5 | OPEN |
|
||
| 5 | Compliance review of draft | Rachel Kim | Mar 7 | PENDING |
|
||
| 6 | Schedule client call for Mar 12 | Priya Sharma | Mar 3 | ⚠️ OVERDUE |
|
||
|
||
NOTE: Action item #2 is OVERDUE. Alex Rivera agreed on Feb 20 to
|
||
"send the PSD tables by end of the month." It's now March 3. Lisa
|
||
asked about it on Feb 28 and got no response. This needs follow-up
|
||
immediately — the client noticed.
|
||
|
||
════════════════════════════════════════════════════════
|
||
UNANSWERED QUESTIONS
|
||
════════════════════════════════════════════════════════
|
||
|
||
1. Lisa Nakamura (Feb 22): "Should the price scenarios use the
|
||
March WASDE numbers or our own estimates?"
|
||
→ Nobody responded. This affects the entire scenarios section.
|
||
Recommend: ask Sarah or decide internally and state assumption.
|
||
|
||
2. Tom Bradley (Feb 25): "Can you include the May-July spread chart
|
||
going back 10 years? I want to show the trading committee."
|
||
→ Nobody responded. Simple request, probably should just do it.
|
||
|
||
3. Sarah Chen (Feb 27): "What format are you thinking — Word doc
|
||
or PDF? Last time the formatting was off in PDF."
|
||
→ James Wilson replied "we'll send both" (Mar 1). But did Maria
|
||
confirm? The thread ended without Maria acknowledging.
|
||
|
||
════════════════════════════════════════════════════════
|
||
CONFLICTS (incompatible statements, never resolved)
|
||
════════════════════════════════════════════════════════
|
||
|
||
CONFLICT #1: Report audience
|
||
- Sarah Chen (Feb 10): "This is for our ag research team" (specialist
|
||
audience, technical depth expected)
|
||
- David Park (Feb 24): "Add a one-page exec summary for a generalist
|
||
portfolio manager" (implies the REPORT will be read by generalists)
|
||
|
||
These aren't necessarily incompatible — the report can be technical
|
||
with a generalist exec summary. But clarify: is the generalist going
|
||
to read ONLY the exec summary, or the whole report? If the whole
|
||
report, the writing style needs to shift.
|
||
|
||
CONFLICT #2: Argentina depth
|
||
- Lisa Nakamura (Feb 14): "Maybe a comparative section" (brief)
|
||
- Tom Bradley (Feb 20): "The Argentina drought is the real story —
|
||
give it equal weight to Brazil" (deep)
|
||
|
||
Sarah Chen approved "include Argentina" but didn't specify depth.
|
||
These two colleagues are asking for different things. Recommend:
|
||
3-5 pages on Argentina (not a full separate analysis, but more than
|
||
a sidebar).
|
||
|
||
════════════════════════════════════════════════════════
|
||
SCOPE DIFF (original → final)
|
||
════════════════════════════════════════════════════════
|
||
|
||
ORIGINAL (Feb 10) → FINAL (as of Mar 3)
|
||
──────────────────────────────────────────────────────
|
||
Brazil only → Brazil + Argentina comparative
|
||
No price scenarios → 2 price scenarios (bull/bear)
|
||
No exec summary → 1-page exec summary (generalist)
|
||
15-20 pages → 15-20 pages + exec summary
|
||
Due: end of February → Due: March 10
|
||
Audience: ag research → Audience: ag research + PM (exec summary)
|
||
No spread analysis → May-July spread implications
|
||
No China coverage → China: ⚠️ UNRESOLVED
|
||
|
||
The scope has approximately DOUBLED since the original request.
|
||
The deadline moved back by 10 days, but the scope grew faster than
|
||
the timeline. Flag this to James Wilson — this may need a revised
|
||
LOE estimate.
|
||
|
||
════════════════════════════════════════════════════════
|
||
RECOMMENDED NEXT STEPS
|
||
════════════════════════════════════════════════════════
|
||
|
||
1. URGENT: Follow up on Alex's overdue data tables to Lisa (Feb 28)
|
||
2. Email Sarah Chen directly: "Should we include a China demand
|
||
section? Lisa suggested it — want to confirm before we invest
|
||
the time." (5 seconds of her time, saves you 4 hours of work)
|
||
3. Ask Sarah or Lisa: "For the price scenarios, should we use USDA's
|
||
official estimates or our internal model?" (unanswered question #1)
|
||
4. Just include the 10-year May-July spread chart — it's easy, Tom
|
||
asked for it, and nobody objected
|
||
5. Send both Word and PDF per James's commitment
|
||
6. Flag to James Wilson that scope has doubled — is the March 10
|
||
deadline still realistic with current resources?
|
||
|
||
|
||
--- Quick follow-up on a different thread ---
|
||
|
||
Analyst: /email-thread-intel-skill Quick scan — just the action items and deadlines from this internal thread: emails/weekly-publication-schedule.eml
|
||
|
||
Copilot (loading email-thread-intel-skill):
|
||
|
||
Parsing emails/weekly-publication-schedule.eml...
|
||
23 messages, 5 participants (all internal), spanning Feb 28 – Mar 4.
|
||
Quick scan mode (action items + deadlines only)...
|
||
|
||
ACTION ITEMS — Weekly Publication Schedule Thread
|
||
|
||
| # | Action | Owner | Deadline | Source Message |
|
||
|---|---------------------------------------|----------------|---------------|----------------------|
|
||
| 1 | Soybeans Weekly draft | Maria Santos | Mon Mar 4 9am | James W., Feb 28 |
|
||
| 2 | Wheat Weekly draft | Alex Rivera | Mon Mar 4 9am | James W., Feb 28 |
|
||
| 3 | Coffee Flash (if ICE moves > 3%) | Maria Santos | Same day | James W., Feb 28 |
|
||
| 4 | Update S&D model with March WASDE | Alex Rivera | Tue Mar 5 | Maria S., Mar 3 |
|
||
| 5 | Client call prep deck (Chen account) | Maria Santos | Wed Mar 5 | Priya S., Mar 1 |
|
||
| 6 | Review all drafts before compliance | James Wilson | Mon Mar 4 2pm | James W., Feb 28 |
|
||
|
||
SCHEDULING CONFLICT DETECTED:
|
||
Maria Santos has 3 deliverables due Monday morning (items 1, 3, 6)
|
||
plus the Chen report (from the other thread) in progress. James
|
||
Wilson committed to review "all drafts by 2pm Monday" — but Maria's
|
||
soybeans draft is due at 9am and James typically doesn't review
|
||
until after lunch. Recommend: send James the draft Friday evening
|
||
for early Monday review.
|
||
|
||
OVERDUE: None — all deadlines are upcoming.
|
||
UNANSWERED: Alex Rivera hasn't acknowledged item #4 (WASDE update).
|
||
|
||
|
||
--- The universal use case: "what did we decide on the call?" ---
|
||
|
||
Analyst: /email-thread-intel-skill Someone took rough notes during a client call and emailed them out. Parse these notes and give me the real decisions and follow-ups. There were "action items" listed but I don't think they're complete: emails/call-notes-chen-account-mar3.eml
|
||
|
||
Copilot (loading email-thread-intel-skill):
|
||
|
||
Parsing emails/call-notes-chen-account-mar3.eml...
|
||
1 message (call notes email) + 6 reply messages (corrections/additions).
|
||
Processing notes + corrections...
|
||
|
||
CALL INTELLIGENCE — Chen Account, March 3, 2026
|
||
|
||
STATED IN ORIGINAL NOTES (sent by Priya Sharma):
|
||
- "Client wants the report by March 10" ✓ Consistent with thread
|
||
- "Discussed including China demand section" — VAGUE
|
||
- "Tom wants spread analysis" ✓ Consistent with thread
|
||
- Action items listed: "Maria to send draft by Mar 7"
|
||
|
||
CORRECTIONS FROM REPLY CHAIN:
|
||
- James Wilson (Mar 3, 4:12pm): "Actually, Sarah said March 10 for
|
||
FINAL, not draft. Draft review should be internal by March 7.
|
||
Priya's notes have this backwards."
|
||
- Lisa Nakamura (Mar 3, 5:30pm): "To clarify — I asked about China
|
||
and Sarah said 'if there's time, sure, but don't delay the report
|
||
for it.' So it's optional, not required."
|
||
|
||
THIS IS CRITICAL. The reply chain CONTRADICTS the original notes:
|
||
|
||
| Item | Original Notes Say | Replies Corrected To |
|
||
|--------------------|-----------------------|-----------------------------|
|
||
| March 10 deadline | Report due Mar 10 | FINAL due Mar 10, draft Mar 7|
|
||
| China section | "Discussed" | Optional — don't delay for it|
|
||
| Draft to client | "Maria to send by Mar 7" | Mar 7 is INTERNAL review |
|
||
|
||
If you followed the original notes, you'd send the client a draft on
|
||
March 7 (wrong — that's the internal review date) and you'd spend
|
||
4 hours on the China section (unnecessary — Sarah said optional).
|
||
|
||
REAL ACTION ITEMS (merged from notes + corrections):
|
||
|
||
| # | Action | Owner | Deadline | Confidence |
|
||
|---|----------------------------------|---------------|----------|------------|
|
||
| 1 | Internal draft ready | Maria Santos | Mar 7 | HIGH |
|
||
| 2 | James reviews draft | James Wilson | Mar 7-8 | HIGH |
|
||
| 3 | Compliance review | Rachel Kim | Mar 8-9 | MEDIUM |
|
||
| 4 | Final report to client | Maria Santos | Mar 10 | HIGH |
|
||
| 5 | China section (OPTIONAL) | Maria Santos | only if time | MEDIUM |
|
||
| 6 | Include 10yr spread chart | Alex Rivera | with draft| HIGH |
|
||
|
||
The notes Priya sent are 60% accurate. The reply corrections are
|
||
essential. If you'd only read Priya's email, you'd have the wrong
|
||
deadline structure and waste time on an optional section.
|
||
|
||
|
||
=============================================================
|
||
WHY THIS SKILL WORKS
|
||
=============================================================
|
||
|
||
This skill is universal. It's not specific to commodity research,
|
||
finance, or any industry. Every knowledge worker in every company
|
||
deals with:
|
||
|
||
- Email threads that mutate requirements over 20+ messages
|
||
- Meeting notes that don't match what was actually discussed
|
||
- Scope creep buried in casual replies ("oh and can you also...")
|
||
- Action items with no clear owner or deadline
|
||
- Questions that get asked but fall through the cracks
|
||
- Authority ambiguity — who actually has the power to decide?
|
||
|
||
The skill doesn't need APIs, credentials, or external data. It runs
|
||
entirely on the text you give it. The intelligence is in the parsing:
|
||
|
||
- TEMPORAL TRACKING: message #5 says X, message #28 overrides X
|
||
with Y. The skill knows Y is current, not X.
|
||
- AUTHORITY WEIGHTING: the Head of Research saying "do this"
|
||
outweighs a junior analyst suggesting "maybe that."
|
||
- SILENCE DETECTION: a question asked in message #15 that nobody
|
||
answered in the next 32 messages is a dropped ball.
|
||
- IMPLICIT AGREEMENT: "sounds good" = soft yes. "I've approved
|
||
this" = hard yes. Both are agreements but at different confidence.
|
||
- NEGATION AWARENESS: "Actually, scratch that" makes everything
|
||
before it in that reply irrelevant.
|
||
|
||
The ROI is immediate and measurable:
|
||
|
||
WITHOUT THE SKILL:
|
||
- Re-read 47-message thread: 30-45 minutes
|
||
- Still miss 2-3 buried decisions or scope changes
|
||
- Start working on superseded requirements (wasted hours)
|
||
- Miss an overdue action item (damages client relationship)
|
||
- Misinterpret call notes (wrong deliverable timeline)
|
||
|
||
WITH THE SKILL:
|
||
- Paste thread, get intelligence brief: 30 seconds
|
||
- Full visibility into requirements evolution
|
||
- Clear action items with owners and deadlines
|
||
- Conflicts and unanswered questions surfaced explicitly
|
||
- Zero time re-reading — jump straight to acting
|
||
|
||
The skill pays for itself the first time it catches a scope change
|
||
you would have missed, or surfaces an overdue action item that was
|
||
about to become a client complaint.
|