跳到正文
cccskills
免费在 GitHub 公开

impact-analysis

This skill should be used when the user asks to "このファイルを変えたら何が壊れる?

", "what depends on this function", "影響範囲を調べて", "show me what imports this module", or wants to understand the blast radius before modifying a shared utility, exported type, or public API. Traces import/require references up to two levels deep and lists affected test files.

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

查看安装方法

包含的文件(2)

  • SKILL.md3.0 KB
  • README.md1.1 KB

SKILL.md(原文)

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

変更対象のファイルまたはシンボルを起点に、影響を受けるファイルとテストを列挙するスキル。

Step 1: 対象の受け取り

$ARGUMENTS を以下のいずれかとして解釈する:

  • ファイルパス: src/utils/auth.ts のようなパス
  • シンボル名: 関数名・クラス名・型名(例: createSession、UserType)

引数がない場合は「分析対象のファイルパスまたはシンボル名を指定してください」とユーザーに促す。

Step 2: 直接の依存元を探索

ファイルパスの場合

以下のパターンで Grep 検索する:

import.*from.*<filename>
require.*<filename>
export.*from.*<filename>

シンボル名の場合

以下のパターンで Grep 検索する:

import.*\b<symbol>\b
<symbol>\(
: <symbol>
extends <symbol>
implements <symbol>

Step 3: 間接依存の探索

Step 2 で見つかったファイルを起点に、さらにそれらを import しているファイルを探索する。 探索は 最大2段階 まで行い、それ以上の深さはスコープ外として明示する。

Step 4: テストファイルの特定

影響ファイル一覧に対して、以下のパターンでテストファイルを特定する:

  • <filename>.test.ts / <filename>.spec.ts
  • __tests__/<filename>.ts
  • テストファイル内で対象シンボルを参照しているもの(Grep)

Step 5: 結果の報告

以下の形式で結果を出力する:

## 影響範囲分析: <対象>

### 直接依存(1段階目)
- src/services/userService.ts — `createSession` を呼び出し
- src/api/authRoute.ts — `createSession` を import

### 間接依存(2段階目)
- src/middleware/auth.ts — authRoute.ts を経由

### 影響を受けるテスト
- src/services/__tests__/userService.test.ts
- src/api/__tests__/authRoute.test.ts

### 注意が必要な箇所
- <変更時に特に気をつけるべき点があれば記載>

影響がゼロの場合は「このファイル/シンボルを参照しているコードは見つかりませんでした」と報告する。

注意事項

  • ダイナミックインポートは検出できない: await import(variable) のような動的参照は静的解析では追跡できないため、その旨を注記する
  • 外部パッケージは対象外: node_modules 以下はスキップする
  • 変更は行わない: このスキルはあくまで調査のみ。修正は implement-task や直接編集で行う

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

This skill should be used when the user asks to "プロジェクトを解析して", "コードベースを調べてドキュメント化して", "移行作業の準備をして", "新機能実装の前にプロジェクトを整理して", "analyze this codebase", "document the project structure", "既存プロジェクトのCLAUDE.mdを作って", or wants to prepare CLAUDE.md and architecture docs before a migration, feature development, or onboarding.

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

t6adev/claude-code-tools32026年4月9日 更新

This skill should be used when the user asks to "このエラーを直して", "help me debug this", "fix this stack trace", "なぜこのエラーが出るの", "CI が落ちた", or pastes an error message or stack trace and wants help diagnosing it. Classifies the error type, identifies related files, and proposes up to three root-cause hypotheses with concrete fix plans.

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

t6adev/claude-code-tools32026年4月9日 更新

doc-sync

免费

This skill should be used when the user asks to "ドキュメントを更新して", "sync the docs", "update CLAUDE.md after this change", "実装に合わせてドキュメントを直して", or notices that docs have drifted from the codebase. Diffs git history to identify what changed, proposes targeted updates to CLAUDE.md, docs/architecture.md, docs/requirements.md, and README.md, then applies only approved changes.

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

t6adev/claude-code-tools32026年4月9日 更新

explain

免费

Explain selected code or a specified file/function in plain language, including what it does, why it exists, and potential pitfalls

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

t6adev/claude-code-tools32026年4月9日 更新

This skill should be used when the user asks to "このIssueを実装して", "implement this issue", "fix this bug", "このタスクをやって", "Issue

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

t6adev/claude-code-tools32026年4月9日 更新

This skill should be used when the user asks to "これらのIssueを全部実装して", "implement these issues autonomously", "Issue一覧を自動で片付けて", "これらのタスクを順番に実装してPRにして", or provides a list of GitHub Issue numbers/URLs for autonomous batch implementation. Fetches all specified Issues, resolves dependency order, then iterates through each — creating a worktree, implementing, and opening a PR — without user intervention.

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

t6adev/claude-code-tools32026年4月9日 更新

查看 t6adev 的全部技能

报告此技能的问题