跳到正文
cccskills
免费在 GitHub 公开

indexing-awareness

プロジェクトの構造インデックスと依存関係トレースにより、RAG的なコンテキスト取得を実現するスキル

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(4)

  • SKILL.md3.7 KB
  • scripts/index-structure.sh3.2 KB
  • scripts/trace-dependencies.sh5.5 KB
  • scripts/verify-structure.sh3.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Indexing Awareness Skill

Antigravity はリポジトリの事前インデックス化を行わないため、エージェントが 自律的に プロジェクト構造を把握し、依存関係を検索する必要があります。 このスキルは、Cursor の RAG(事前インデックス + 関連コンテキスト検索)を擬似的に再現するスクリプト群を提供します。

Triggers (自動実行のタイミング)

エージェントは以下の状況で、対応するスクリプトを 自発的に 実行すること。 人間からの指示を待たず、ルール indexing-codebase.md に従って自律判断する。

状況実行するスクリプト
初見のプロジェクト・新しいタスク開始時index-structure.sh
ファイルの変更・追加・削除を行う前trace-dependencies.sh <対象ファイル>
未知の関数・クラス・シンボルを参照する前trace-dependencies.sh <シンボル名>
ルール・ワークフロー・スキルの構成を変更した後verify-structure.sh

Scripts

1. index-structure.sh (構造インデックス)

プロジェクトのディレクトリ構造、ファイル種別、サイズをインデックス化します。

# 実行権限の付与(初回のみ)
chmod +x .agent/skills/indexing-awareness/scripts/index-structure.sh

# プロジェクト全体のインデックス
./.agent/skills/indexing-awareness/scripts/index-structure.sh

# 探索深度を指定(デフォルト: 4)
./.agent/skills/indexing-awareness/scripts/index-structure.sh --depth 6

# 特定ディレクトリのみ
./.agent/skills/indexing-awareness/scripts/index-structure.sh --dir src/

2. trace-dependencies.sh (依存関係トレース)

ファイルまたはシンボルの依存関係を 双方向 に検索します。

chmod +x .agent/skills/indexing-awareness/scripts/trace-dependencies.sh

# ファイルモード: 依存関係の双方向トレース
./.agent/skills/indexing-awareness/scripts/trace-dependencies.sh src/utils/auth.ts

# シンボルモード: 定義元と使用箇所の検索
./.agent/skills/indexing-awareness/scripts/trace-dependencies.sh handleLogin

# 検索範囲を限定
./.agent/skills/indexing-awareness/scripts/trace-dependencies.sh UserService src/

ファイルモード出力:

  • 📥 Forward Dependencies — そのファイルが何を import/require しているか
  • 📤 Reverse Dependencies — そのファイルを誰が import/require しているか
  • 🔍 Config/Doc References — 設定ファイルやドキュメントからの参照

シンボルモード出力:

  • 📌 Definitions — 定義元(function, class, const, def, fn 等)
  • 📎 Usages — 使用箇所(word boundary マッチ)
  • 📦 Import References — import/require/from 文での参照

3. verify-structure.sh (ドキュメント整合性チェック)

.agent/ 内のルール・ワークフロー・スキルと README.md の記載整合性を検証します。

chmod +x .agent/skills/indexing-awareness/scripts/verify-structure.sh
./.agent/skills/indexing-awareness/scripts/verify-structure.sh

Troubleshooting

  • trace-dependencies.sh の結果がノイジー: 第2引数で検索範囲を限定してください。
  • index-structure.sh の出力が長すぎる: --depth 2 でツリーの深さを制限してください。
  • verify-structure.sh で "Missing in README" エラー: README.md に適切な記述を追加してください。

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Retrieve the current system date and time to anchor the agent in present reality. Use for questions involving today, current time, recent events, or information newer than the model's training data to prevent knowledge-cutoff errors and fictionalization of real facts.

中文简介正在准备中。当前显示原文说明。

imkohenauser/antigravity-starter-ja112026年3月11日 更新

查看 imkohenauser 的全部技能

报告此技能的问题