[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BNMBC7VS9JWV9MGSS79C6F":3,"skill-same:01M7BNMBC7VS9JWV9MGSS79C6F":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7BNMBC7VS9JWV9MGSS79C6F","skilltta-task-guidance",null,"Temporary guidance for analyzing 13F hedge fund filings across Q2 and Q3 2025 using SQLite datasets in \u002Froot\u002F2025-q2 and \u002Froot\u002F2025-q3.","linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fcontrolled-skill-repair-experiments\u002Fresult\u002Fskilltta-claude4.7\u002Ftasks\u002Fsingle-sec-financial-report-RI-003\u002Frepaired_skill\u002Fskilltta-task-guidance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: skilltta-task-guidance\ndescription: Temporary guidance for analyzing 13F hedge fund filings across Q2 and Q3 2025 using SQLite datasets in \u002Froot\u002F2025-q2 and \u002Froot\u002F2025-q3.\n---\n\n# 13F Cross-Quarter Analysis Guidance\n\n## Dataset Layout\n- `\u002Froot\u002F2025-q2\u002F` and `\u002Froot\u002F2025-q3\u002F` each contain SEC 13F filings, typically as SQLite databases (e.g., `form13f.db` or similar). Inspect with `ls` and `sqlite3 \u003Cfile> '.tables'` first.\n- Expected tables (names may vary): `COVERPAGE` (filer metadata, filingmanager_name, accession_number), `SUBMISSION` (accession headers), `INFOTABLE`\u002F`FORM13FTABLE` (per-holding rows with `cusip`, `nameofissuer`, `value`, `sshprnamt`), `SUMMARYPAGE` (AUM \u002F `tableValueTotal`).\n\n## Core Query Pattern (reuse the retrieved sqlite3 + pandas pattern)\n```python\nimport sqlite3, pandas as pd\ndef q(db, sql, params=()):\n    with sqlite3.connect(db) as c:\n        return pd.read_sql_query(sql, c, params=params)\n```\n\n## Fuzzy Matching a Fund Name -> accession_number\nUse `LIKE` with wildcards on `COVERPAGE.filingmanager_name` (case-insensitive). If multiple rows match, pick the one with the largest `tableValueTotal` in SUMMARYPAGE (the real fund, not a small affiliate).\n```sql\nSELECT accession_number, filingmanager_name\nFROM COVERPAGE\nWHERE LOWER(filingmanager_name) LIKE '%renaissance technologies%';\n```\nThen join to SUMMARYPAGE for AUM:\n```sql\nSELECT tableValueTotal, tableEntryTotal FROM SUMMARYPAGE WHERE accession_number = ?;\n```\n- Q1 AUM: `tableValueTotal` for the chosen Renaissance accession in Q3. Note SEC 13F values are often stored in whole dollars in 2023+ filings (previously thousands); verify by sanity-checking magnitude.\n- Q2 stock count: number of distinct holdings. Prefer `COUNT(DISTINCT cusip)` from INFOTABLE for the accession, OR use `tableEntryTotal` from SUMMARYPAGE. If they disagree, the distinct-CUSIP count is the \"stocks held\" answer.\n\n## Q3: Cross-Quarter Top Buys (Berkshire Hathaway)  **critical fix point**\nThe common bug: using filingmanager_name LIKE 'BERKSHIRE%' can match multiple accessions, or joining Q2 and Q3 holdings without aligning on CUSIP (and treating sold-to-zero as a buy). Follow this exact flow:\n\n1. In each quarter DB separately, resolve ONE accession_number for Berkshire Hathaway (prefer the filer whose SUMMARYPAGE.tableValueTotal is the largest among matches; typically filingmanager_name = 'BERKSHIRE HATHAWAY INC').\n2. Pull holdings per quarter, aggregating by CUSIP (same fund can list same CUSIP across multiple rows for different share classes\u002Fmanagers):\n```sql\nSELECT cusip, SUM(value) AS value, SUM(sshprnamt) AS shares\nFROM INFOTABLE WHERE accession_number = ? GROUP BY cusip;\n```\n3. Merge Q2 and Q3 on `cusip` with an **outer join**, filling missing sides with 0 so new positions count as full increases:\n```python\nm = q3.merge(q2, on='cusip', how='outer', suffixes=('_q3','_q2')).fillna(0)\nm['delta_value'] = m['value_q3'] - m['value_q2']\n```\n4. Rank by `delta_value` descending and take top 5 CUSIPs where `delta_value > 0`. Do NOT filter out brand-new positions (q2 value = 0). Do NOT rank by share-count delta — the question asks dollar value increase.\n5. Return CUSIPs as uppercase strings exactly as stored.\n\n## Q4: Top-3 Managers Holding Palantir in Q3\n1. Find Palantir CUSIP by searching INFOTABLE (Q3) for `nameofissuer LIKE '%PALANTIR%'`; take the most common CUSIP (Palantir Class A common = `69608A108`, but confirm from data).\n2. Aggregate Q3 holdings of that CUSIP by accession_number, then join to COVERPAGE for `filingmanager_name`:\n```sql\nSELECT c.filingmanager_name, SUM(i.value) AS v\nFROM INFOTABLE i JOIN COVERPAGE c USING(accession_number)\nWHERE i.cusip = ? GROUP BY c.filingmanager_name ORDER BY v DESC LIMIT 3;\n```\n3. Return the three manager names as they appear in COVERPAGE (preserve original casing).\n\n## Output\nWrite `\u002Froot\u002Fanswers.json` with keys exactly: `q1_answer` (number), `q2_answer` (number), `q3_answer` (list of 5 CUSIP strings), `q4_answer` (list of 3 manager name strings). Use `json.dump` with `indent=2`.\n\n## Robustness Tips (from retrieved patterns)\n- Wrap DB access in `with sqlite3.connect(...) as conn` and use `pd.read_sql_query` (BigCodeBench\u002F408 pattern).\n- Validate file existence before opening (BigCodeBench\u002F381 pattern): raise\u002Flog a clear error if the expected .db file is missing; discover actual filename via `os.listdir`.\n- Before trusting a schema, run `PRAGMA table_info(\u003Ctable>)` to confirm column names (they vary: `value` vs `value_usd`, `sshprnamt` vs `shrsOrPrnAmt`).\n- Normalize text comparisons with `LOWER()` and `TRIM()`.\n","# 13F Cross-Quarter Analysis Guidance\n\n## Dataset Layout\n- `\u002Froot\u002F2025-q2\u002F` and `\u002Froot\u002F2025-q3\u002F` each contain SEC 13F filings, typically as SQLite databases (e.g., `form13f.db` or similar). Inspect with `ls` and `sqlite3 \u003Cfile> '.tables'` first.\n- Expected tables (names may vary): `COVERPAGE` (filer metadata, filingmanager_name, accession_number), `SUBMISSION` (accession headers), `INFOTABLE`\u002F`FORM13FTABLE` (per-holding rows with `cusip`, `nameofissuer`, `value`, `sshprnamt`), `SUMMARYPAGE` (AUM \u002F `tableValueTotal`).\n\n## Core Query Pattern (reuse the retrieved sqlite3 + pandas pattern)\n```python\nimport sqlite3, pandas as pd\ndef q(db, sql, params=()):\n    with sqlite3.connect(db) as c:\n        return pd.read_sql_query(sql, c, params=params)\n```\n\n## Fuzzy Matching a Fund Name -> accession_number\nUse `LIKE` with wildcards on `COVERPAGE.filingmanager_name` (case-insensitive). If multiple rows match, pick the one with the largest `tableValueTotal` in SUMMARYPAGE (the real fund, not a small affiliate).\n```sql\nSELECT accession_number, filingmanager_name\nFROM COVERPAGE\nWHERE LOWER(filingmanager_name) LIKE '%renaissance technologies%';\n```\nThen join to SUMMARYPAGE for AUM:\n```sql\nSELECT tableValueTotal, tableEntryTotal FROM SUMMARYPAGE WHERE accession_number = ?;\n```\n- Q1 AUM: `tableValueTotal` for the chosen Renaissance accession in Q3. Note SEC 13F values are often stored in whole dollars in 2023+ filings (previously thousands); verify by sanity-checking magnitude.\n- Q2 stock count: number of distinct holdings. Prefer `COUNT(DISTINCT cusip)` from INFOTABLE for the accession, OR use `tableEntryTotal` from SUMMARYPAGE. If they disagree, the distinct-CUSIP count is the \"stocks held\" answer.\n\n## Q3: Cross-Quarter Top Buys (Berkshire Hathaway)  **critical fix point**\nThe common bug: using filingmanager_name LIKE 'BERKSHIRE%' can match multiple accessions, or joining Q2 and Q3 holdings without aligning on CUSIP (and treating sold-to-zero as a buy). Follow this exact flow:\n\n1. In each quarter DB separately, resolve ONE accession_number for Berkshire Hathaway (prefer the filer whose SUMMARYPAGE.tableValueTotal is the largest among matches; typically filingmanager_name = 'BERKSHIRE HATHAWAY INC').\n2. Pull holdings per quarter, aggregating by CUSIP (same fund can list same CUSIP across multiple rows for different share classes\u002Fmanagers):\n```sql\nSELECT cusip, SUM(value) AS value, SUM(sshprnamt) AS shares\nFROM INFOTABLE WHERE accession_number = ? GROUP BY cusip;\n```\n3. Merge Q2 and Q3 on `cusip` with an **outer join**, filling missing sides with 0 so new positions count as full increases:\n```python\nm = q3.merge(q2, on='cusip', how='outer', suffixes=('_q3','_q2')).fillna(0)\nm['delta_value'] = m['value_q3'] - m['value_q2']\n```\n4. Rank by `delta_value` descending and take top 5 CUSIPs where `delta_value > 0`. Do NOT filter out brand-new positions (q2 value = 0). Do NOT rank by share-count delta — the question asks dollar value increase.\n5. Return CUSIPs as uppercase strings exactly as stored.\n\n## Q4: Top-3 Managers Holding Palantir in Q3\n1. Find Palantir CUSIP by searching INFOTABLE (Q3) for `nameofissuer LIKE '%PALANTIR%'`; take the most common CUSIP (Palantir Class A common = `69608A108`, but confirm from data).\n2. Aggregate Q3 holdings of that CUSIP by accession_number, then join to COVERPAGE for `filingmanager_name`:\n```sql\nSELECT c.filingmanager_name, SUM(i.value) AS v\nFROM INFOTABLE i JOIN COVERPAGE c USING(accession_number)\nWHERE i.cusip = ? GROUP BY c.filingmanager_name ORDER BY v DESC LIMIT 3;\n```\n3. Return the three manager names as they appear in COVERPAGE (preserve original casing).\n\n## Output\nWrite `\u002Froot\u002Fanswers.json` with keys exactly: `q1_answer` (number), `q2_answer` (number), `q3_answer` (list of 5 CUSIP strings), `q4_answer` (list of 3 manager name strings). Use `json.dump` with `indent=2`.\n\n## Robustness Tips (from retrieved patterns)\n- Wrap DB access in `with sqlite3.connect(...) as conn` and use `pd.read_sql_query` (BigCodeBench\u002F408 pattern).\n- Validate file existence before opening (BigCodeBench\u002F381 pattern): raise\u002Flog a clear error if the expected .db file is missing; discover actual filename via `os.listdir`.\n- Before trusting a schema, run `PRAGMA table_info(\u003Ctable>)` to confirm column names (they vary: `value` vs `value_usd`, `sshprnamt` vs `shrsOrPrnAmt`).\n- Normalize text comparisons with `LOWER()` and `TRIM()`.\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","controlled-skill-repair-experiments\u002Fresult\u002Fskilltta-claude4.7\u002Ftasks\u002Fsingle-sec-financial-report-RI-003\u002Frepaired_skill\u002Fskilltta-task-guidance",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill skilltta-task-guidance",{"tool":37,"command":38},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill skilltta-task-guidance",{"tool":40,"command":41},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill skilltta-task-guidance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fcontrolled-skill-repair-experiments\u002Fresult\u002Fskilltta-claude4.7\u002Ftasks\u002Fsingle-sec-financial-report-RI-003\u002Frepaired_skill\u002Fskilltta-task-guidance\u002FSKILL.md",true,[],[46,53,60,67,72,77],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":68,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":73,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":78,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]