Skip to content

Commit 1bb3b49

Browse files
dgunningclaude
andcommitted
Add FortyF to skill YAML files so agents can discover 40-F capabilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f05b09e commit 1bb3b49

4 files changed

Lines changed: 63 additions & 2 deletions

File tree

‎edgar/ai/skills/core/skill.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ handoffs:
150150
- to: financials
151151
when: Deep financial analysis, multi-period comparison, ratios
152152
- to: reports
153-
when: Report sections (MD&A, risk factors, Item 1-8), TenK/TenQ/EightK objects
153+
when: Report sections (MD&A, risk factors, Item 1-8), TenK/TenQ/EightK/FortyF objects
154154
- to: holdings
155155
when: 13F filings, portfolio analysis, institutional holdings
156156
- to: ownership

‎edgar/ai/skills/forms.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ mappings:
2626

2727
foreign:
2828
"foreign annual": "20-F"
29+
"canadian annual|mjds": "40-F"
2930
"foreign current": "6-K"
3031

3132
gotchas:

‎edgar/ai/skills/reports/sharp-edges.yaml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,30 @@ sharp_edges:
4040
plain = item.text # Plain text
4141
# For tabular data, use financials skill (XBRL structured)
4242
43+
- id: forty-f-not-item-numbers
44+
summary: 40-F uses NI 51-102 section names, not US Item numbers
45+
severity: high
46+
solution: |
47+
# WRONG: forty_f['Item 1'] → None (40-F has no US Item numbers)
48+
# RIGHT: Use section names or convenience properties
49+
forty_f.risk_factors # Convenience property
50+
forty_f['Risk Factors'] # Exact name
51+
forty_f['business'] # Fuzzy keyword match
52+
53+
# Check what sections exist
54+
print(forty_f.items) # ['Corporate Structure', 'Risk Factors', ...]
55+
56+
- id: forty-f-sections-may-be-absent
57+
summary: Not all NI 51-102 sections appear in every 40-F filing
58+
severity: medium
59+
solution: |
60+
# Some sections vary by company — always check for None
61+
cap = forty_f.capital_structure
62+
if cap:
63+
print(cap[:500])
64+
else:
65+
print("No capital structure section in this AIF")
66+
4367
- id: eightk-items-different
4468
summary: 8-K items indicate events, detail often in exhibits
4569
severity: low

‎edgar/ai/skills/reports/skill.yaml‎

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: "1.1"
44

55
# See also: sharp-edges.yaml for production gotchas
66

7-
identity: Report section analyst. Extract items from 10-K, 10-Q, 8-K using report.items or convenience properties.
7+
identity: Report section analyst. Extract items from 10-K, 10-Q, 8-K, 20-F, 40-F using report.items or convenience properties.
88

99
patterns:
1010
- name: Get Report Object
@@ -13,6 +13,7 @@ patterns:
1313
tenk = company.get_filings(form="10-K")[0].obj() # TenK object
1414
tenq = company.get_filings(form="10-Q")[0].obj() # TenQ object
1515
eightk = company.get_filings(form="8-K")[0].obj() # EightK object
16+
forty_f = company.get_filings(form="40-F")[0].obj() # FortyF (Canadian MJDS)
1617
1718
- name: 10-K Sections
1819
when: Extract annual report sections
@@ -36,6 +37,41 @@ patterns:
3637
tenq['Item 3'] # Market risk disclosures
3738
tenq.items # List available items
3839
40+
- name: 40-F Sections (Canadian MJDS)
41+
when: Extract sections from Canadian annual reports (Shopify, Royal Bank, etc.)
42+
code: |
43+
forty_f = company.get_filings(form="40-F")[0].obj() # FortyF object
44+
45+
# Convenience properties (NI 51-102 AIF sections)
46+
forty_f.business # Business description from AIF
47+
forty_f.risk_factors # Risk factors
48+
forty_f.corporate_structure # Corporate structure
49+
forty_f.dividends # Dividends
50+
forty_f.capital_structure # Capital structure (if present)
51+
forty_f.directors_and_officers # Directors and officers
52+
forty_f.legal_proceedings # Legal proceedings
53+
54+
# Fuzzy lookup by keyword
55+
forty_f["business"] # Matches "Description Of The Business"
56+
forty_f["dividends"] # Case-insensitive
57+
58+
# Full AIF text for LLM context
59+
forty_f.aif_text # Plain text (100K+ chars)
60+
forty_f.aif_html # Raw HTML
61+
62+
# List detected sections
63+
forty_f.items # ['Corporate Structure', 'Risk Factors', ...]
64+
65+
# Financials (XBRL, same as 10-K)
66+
forty_f.financials # Financials object
67+
forty_f.income_statement # Income statement
68+
forty_f.balance_sheet # Balance sheet
69+
note: |
70+
40-F uses NI 51-102 AIF section headings, NOT US "Item 1", "Item 2" numbers.
71+
Sections are detected by regex; not all sections appear in every filing.
72+
Properties return None when a section is absent (e.g. capital_structure for SHOP).
73+
Use fuzzy keyword lookup: forty_f["business"] matches any heading containing "business".
74+
3975
- name: 8-K Events
4076
when: Extract current report events
4177
code: |

0 commit comments

Comments
 (0)