Communitygithub.com

MikeCheng1208/BattleTree

根據ABOUTME標頭進行索引式檔案搜尋。用於取代grep或Explore agent,根據用途或功能尋找檔案,比掃描程式碼更快、更準確。當使用者詢問「哪些檔案處理X」、「Y在哪裡實作」,或需要尋找與某個功能或任務相關的檔案時,請使用此技能。

BattleTree 是什麼?

BattleTree 是一個專為 AI 代理(如 Claude Code、Cursor)設計的技能,它利用 `ABOUTME` 標頭建立索引,實現基於目的的檔案發現,而非傳統的 grep 或程式碼掃描。此技能的核心是維護一個位於 `.claude/aboutme-index.json` 的 JSON 索引檔案,該檔案會將檔案路徑對應到其功能的簡短文字摘要。當使用者需要尋找處理特定功能(例如身份驗證、組態設定)的檔案時,AI 代理可以查詢此索引,而不是掃描整個程式碼庫。這不僅速度更快,而且準確性更高,因為索引提供了高層次的語意理解。BattleTree 支援自動重建索引(在會話啟動時),以及增量更新(在檔案編輯時),確保索引始終保持最新。此外,它還提供 `/aboutme-check`、`/aboutme-rebuild` 和 `/aboutme-stale` 等命令,用於管理索引的完整性。此技能特別適用於大型程式碼庫,其中傳統的 grep 搜尋可能效率低下或產生誤報。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/MikeCheng1208/BattleTree/tree/HEAD/.agents/skills/aboutme-index

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

ABOUTME 索引

讀取 .claude/aboutme-index.json,根據用途尋找檔案,而非使用 grep 搜尋。

使用方式

  1. 讀取索引:
cat .claude/aboutme-index.json
  1. 使用 jq 根據關鍵字篩選:
cat .claude/aboutme-index.json | jq 'to_entries[] | select(.value | test("auth|jwt"; "i"))'
  1. 讀取相關檔案。

指令

指令說明
/aboutme-check尋找缺少 ABOUTME 標頭的檔案
/aboutme-rebuild重建整個索引
/aboutme-stale檢查是否有過時的標頭
cat .claude/aboutme-index.json直接讀取索引

索引格式

{
  "app/src/auth.py": "用於 AWS Cognito 存取權杖的 JWT 驗證模組...",
  "app/src/config.py": "使用 Pydantic 設定的集中式組態..."
}

索引會在會話啟動時自動重建,並在檔案編輯時增量更新。

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

MikeCheng1208/BattleTree

Factor modeling and portfolio construction (Markowitz, Black-Litterman, constraints, turnover).

MikeCheng1208/BattleTree

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

MikeCheng1208/BattleTree

Analyze the CustomGPT.ai Labs Innovation workbook and cost tracking data to surface portfolio-level insights, trends, and recommendations for where to focus Innovation efforts.

MikeCheng1208/BattleTree

Personal meta-skill for Arach. Use this as the entry point to understand arach's projects, conventions, and available skills. Activates on "arach's projects", "what does arach work on", or when working in any arach/* repo.

MikeCheng1208/BattleTree

High-converting landing pages. Copy + design + implementation. Triggers: landing page, conversion page.

MikeCheng1208/BattleTree

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios,...

MikeCheng1208/BattleTree

Automate Klipfolio tasks via Rube MCP (Composio). Always search tools first for current schemas.

MikeCheng1208/BattleTree

Minimalist, typography-focused portfolio design system inspired by neo-brutalist and Swiss design principles. Emphasizes bold typography, generous whitespace, monochromatic color schemes, and elegant simplicity for developer/designer portfolios.

MikeCheng1208/BattleTree

Portfolio allocation and rebalancing optimizer. Manages asset allocation across stocks/cash/bonds, performs periodic rebalancing, and ensures diversification according to market regime and risk tolerance.

MikeCheng1208/BattleTree

Optimize project portfolio selection under constraints using mathematical optimization

MikeCheng1208/BattleTree

Detect and explain risk drift in lending portfolios over time using vintage analysis, migration matrices, and concentration metrics. Use when monitoring portfolio credit quality trends, preparing board risk reports, conducting stress testing, or when risk metrics deviate from appetite thresholds.

MikeCheng1208/BattleTree

Build a GitHub portfolio that gets you hired — curate 3-5 polished projects, craft compelling READMEs, deploy live demos, tell a coherent story across your repos, and align everything to AI-native development roles. Use when preparing your GitHub for job searches, deciding what to pin, or auditing your public presence.

相關技能