[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72WESF15A9RHPK673TZQE7S":3,"skill-same:01M72WESF15A9RHPK673TZQE7S":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M72WESF15A9RHPK673TZQE7S","fetch-bars",null,"Fetch OHLCV bar data for one or more symbols using AlpacaBarFetcher or YahooBarFetcher and cache the result to disk. Use when any skill or user request needs raw bar data as input.","homelessrain\u002FAgenticAlphaLab","homelessrain","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7471268?v=4","01M72WEMXZ7F29SZBGAB55YZF2","01M72WEMYMT55HAV9978KZ8NHZ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhomelessrain\u002FAgenticAlphaLab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ffetch-bars\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: fetch-bars\ndescription: Fetch OHLCV bar data for one or more symbols using AlpacaBarFetcher or YahooBarFetcher and cache the result to disk. Use when any skill or user request needs raw bar data as input.\n---\n\n# fetch-bars\n\nFetch OHLCV bar data for one or more symbols. Both fetchers handle disk caching transparently — repeated calls for the same parameters are served from `data\u002Fbars\u002F` without hitting the API.\n\n## Inputs\n\nParse these from the user's request (all required unless noted):\n\n| Parameter | Description | Default |\n|---|---|---|\n| `symbol` | Ticker string or comma-separated list (e.g. `AAPL`, `BTC\u002FUSD`, `AAPL,MSFT`) | — |\n| `start` | Start date `YYYY-MM-DD` | — |\n| `end` | End date `YYYY-MM-DD` (inclusive) | — |\n| `timeframe` | `minute` \u002F `hour` \u002F `day` \u002F `week` \u002F `month` | `day` |\n| `only_market_hours` | Filter to exchange hours (equities: 9:30–16:00 ET; crypto: always full day) | `True` |\n| `source` | `alpaca` or `yahoo` | `alpaca` |\n\nIf any required parameter is missing, ask the user before proceeding.\n\n## Choosing a source\n\n| | `AlpacaBarFetcher` | `YahooBarFetcher` |\n|---|---|---|\n| **Intraday (minute\u002Fhour)** | Yes, including crypto | Last 30 days only |\n| **Crypto** | Yes (`BTC\u002FUSD` etc.) | No |\n| **Price adjustment** | Unadjusted | Adjusted (auto_adjust=True) |\n| **Extra columns** | `trade_count`, `vwap` | `trade_count`\u002F`vwap` are NaN |\n| **Auth required** | Yes (`ALPACA_API_KEY` \u002F `ALPACA_SECRET_KEY` in `.env`) | No |\n\nDefault to `alpaca`. Prefer `yahoo` only when the user explicitly asks for it or needs adjusted prices.\n\n## Steps\n\n1. **Fetch bars** using the appropriate fetcher:\n\n   ```python\n   import sys\n   sys.path.insert(0, '.')\n   from utils.bar_fetcher import AlpacaBarFetcher, YahooBarFetcher\n\n   # source = 'alpaca' (default) or 'yahoo'\n   fetcher = AlpacaBarFetcher() if source == 'alpaca' else YahooBarFetcher()\n   df = fetcher.fetch_bars(\n       symbol=symbol,          # str or list[str]\n       start_datestr=start,\n       end_datestr=end,\n       timeframe=timeframe,\n       only_market_hours=only_market_hours,\n   )\n   ```\n\n2. **Report back** with:\n   - Source used (`alpaca` or `yahoo`)\n   - Shape of the DataFrame (rows × columns)\n   - Date range actually covered (first and last timestamp in the index)\n   - Whether data was freshly fetched or served from cache (check if the parquet file existed before the call)\n\n## Notes\n\n- `AlpacaBarFetcher` auto-routes stock vs crypto to the correct Alpaca client and applies exchange-calendar market hours.\n- `YahooBarFetcher` returns adjusted prices and naturally limits intraday data to market hours; `only_market_hours` is accepted but has no additional effect.\n- Cache files are named `\u003Csource>_\u003Cstart>_\u003Cend>_\u003Ctimeframe>_\u003Cmh|full>.parquet` under `data\u002Fbars\u002F\u003Csymbol>\u002F`.\n- When called by another skill, load cached data directly:\n  ```python\n  cache_path = fetcher._cache_path(symbol, start, end, timeframe, only_market_hours)\n  df = pd.read_parquet(cache_path)\n  ```\n","# fetch-bars\n\nFetch OHLCV bar data for one or more symbols. Both fetchers handle disk caching transparently — repeated calls for the same parameters are served from `data\u002Fbars\u002F` without hitting the API.\n\n## Inputs\n\nParse these from the user's request (all required unless noted):\n\n| Parameter | Description | Default |\n|---|---|---|\n| `symbol` | Ticker string or comma-separated list (e.g. `AAPL`, `BTC\u002FUSD`, `AAPL,MSFT`) | — |\n| `start` | Start date `YYYY-MM-DD` | — |\n| `end` | End date `YYYY-MM-DD` (inclusive) | — |\n| `timeframe` | `minute` \u002F `hour` \u002F `day` \u002F `week` \u002F `month` | `day` |\n| `only_market_hours` | Filter to exchange hours (equities: 9:30–16:00 ET; crypto: always full day) | `True` |\n| `source` | `alpaca` or `yahoo` | `alpaca` |\n\nIf any required parameter is missing, ask the user before proceeding.\n\n## Choosing a source\n\n| | `AlpacaBarFetcher` | `YahooBarFetcher` |\n|---|---|---|\n| **Intraday (minute\u002Fhour)** | Yes, including crypto | Last 30 days only |\n| **Crypto** | Yes (`BTC\u002FUSD` etc.) | No |\n| **Price adjustment** | Unadjusted | Adjusted (auto_adjust=True) |\n| **Extra columns** | `trade_count`, `vwap` | `trade_count`\u002F`vwap` are NaN |\n| **Auth required** | Yes (`ALPACA_API_KEY` \u002F `ALPACA_SECRET_KEY` in `.env`) | No |\n\nDefault to `alpaca`. Prefer `yahoo` only when the user explicitly asks for it or needs adjusted prices.\n\n## Steps\n\n1. **Fetch bars** using the appropriate fetcher:\n\n   ```python\n   import sys\n   sys.path.insert(0, '.')\n   from utils.bar_fetcher import AlpacaBarFetcher, YahooBarFetcher\n\n   # source = 'alpaca' (default) or 'yahoo'\n   fetcher = AlpacaBarFetcher() if source == 'alpaca' else YahooBarFetcher()\n   df = fetcher.fetch_bars(\n       symbol=symbol,          # str or list[str]\n       start_datestr=start,\n       end_datestr=end,\n       timeframe=timeframe,\n       only_market_hours=only_market_hours,\n   )\n   ```\n\n2. **Report back** with:\n   - Source used (`alpaca` or `yahoo`)\n   - Shape of the DataFrame (rows × columns)\n   - Date range actually covered (first and last timestamp in the index)\n   - Whether data was freshly fetched or served from cache (check if the parquet file existed before the call)\n\n## Notes\n\n- `AlpacaBarFetcher` auto-routes stock vs crypto to the correct Alpaca client and applies exchange-calendar market hours.\n- `YahooBarFetcher` returns adjusted prices and naturally limits intraday data to market hours; `only_market_hours` is accepted but has no additional effect.\n- Cache files are named `\u003Csource>_\u003Cstart>_\u003Cend>_\u003Ctimeframe>_\u003Cmh|full>.parquet` under `data\u002Fbars\u002F\u003Csymbol>\u002F`.\n- When called by another skill, load cached data directly:\n  ```python\n  cache_path = fetcher._cache_path(symbol, start, end, timeframe, only_market_hours)\n  df = pd.read_parquet(cache_path)\n  ```\n",{"name":5,"description":7},"main","a47531f7a62a9287c52975509849e5133c5d0bb3",".claude\u002Fskills\u002Ffetch-bars","https:\u002F\u002Fgithub.com\u002Fhomelessrain\u002FAgenticAlphaLab","https:\u002F\u002Fgithub.com\u002Fhomelessrain","2026-07-06 12:26:24",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add homelessrain\u002FAgenticAlphaLab --skill fetch-bars",{"tool":35,"command":36},"bunx","bunx skills add homelessrain\u002FAgenticAlphaLab --skill fetch-bars",{"tool":38,"command":39},"pnpm","pnpm dlx skills add homelessrain\u002FAgenticAlphaLab --skill fetch-bars","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhomelessrain\u002FAgenticAlphaLab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ffetch-bars\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M72WF2S9VJNWP98VWAK1DCXV","reuse","look through all agent-generated code and extract\u002Frefactor it into reusable scripts and code components.","https:\u002F\u002Fgithub.com\u002Fhomelessrain\u002FAgenticAlphaLab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freuse\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M72WF0F78HQ0TS9QF10NVA8J","research","Conduct a ML research iteration given a hypothesis or direction. Implements new model variants or feature changes, trains and tests them, and writes a structured report. The main entry point for agentic ML research.","https:\u002F\u002Fgithub.com\u002Fhomelessrain\u002FAgenticAlphaLab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fresearch\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M72WEXY7ZWKDM12ARSBZZQ8E","recap","distill insights and next steps from past research reports.","https:\u002F\u002Fgithub.com\u002Fhomelessrain\u002FAgenticAlphaLab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frecap\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M72WEV411PV1EFWK74YXZPBN","prep-ml-data","Transform bar data into ML-ready features and labels and summarize basic insights. Use when any skill or user request needs a feature\u002Flabel dataset as input to model training or evaluation.","https:\u002F\u002Fgithub.com\u002Fhomelessrain\u002FAgenticAlphaLab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fprep-ml-data\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M72WEQGB5NMWZXG5VJ523D71","evaluate","Evaluate ML models.","https:\u002F\u002Fgithub.com\u002Fhomelessrain\u002FAgenticAlphaLab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fevaluate\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M72WEPDTK8XGQZSRAPYJ2V2X","eda","https:\u002F\u002Fgithub.com\u002Fhomelessrain\u002FAgenticAlphaLab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Feda\u002FSKILL.md",[],[]]