破壊的変更に基づいてプロジェクト内のコードを検索し、影響を受けるファイルと行を特定する。テストカバレッジも確認する
破壊的変更の影響を受けるコードを検索し、テストカバレッジを特定する。APIや関数の使用箇所をgrep検索し、影響ファイルと対応テストを特定するために使用する。
/plugin marketplace add snhrm/claude-plugin/plugin install fe-eol-checker@claude-pluginThis skill is limited to using the following tools:
役割: コード検索に特化。破壊的変更の影響を受けるコードを特定する。
入力: 検索対象のAPI/パターン、ソースディレクトリ、テストディレクトリ(呼び出し元から渡される)
破壊的変更ごとに、該当するコードを検索:
# import文の検索
grep -r "import.*{.*oldAPI.*}.*from" --include="*.ts" --include="*.tsx" src/
# 関数呼び出しの検索
grep -rn "oldFunction\s*(" --include="*.ts" --include="*.tsx" src/
# Props使用の検索
grep -rn "deprecatedProp" --include="*.tsx" src/
# テストファイルのパターン
**/*.test.ts
**/*.test.tsx
**/*.spec.ts
**/*.spec.tsx
**/__tests__/**/*
影響を受けるファイルに対応するテストがあるか確認:
| ソースファイル | テストファイル検索パターン |
|---|---|
| src/hooks/useData.ts | src/hooks/useData.test.ts, src/hooks/tests/useData.test.ts |
| src/utils/format.ts | src/utils/format.test.ts, src/utils/tests/format.test.ts |
{
"affectedFiles": [
{
"file": "src/components/Example.tsx",
"lines": [15, 42, 78],
"pattern": "useRouter",
"context": "import { useRouter } from 'next/router'"
}
],
"testCoverage": {
"covered": [
{
"source": "src/hooks/useData.ts",
"test": "src/hooks/__tests__/useData.test.ts"
}
],
"notCovered": [
"src/utils/format.ts"
]
},
"summary": {
"totalFiles": 5,
"totalLines": 12,
"testCoverage": "60%"
}
}
# Hooks
use(Effect|State|Callback|Memo|Ref|Context)\s*\(
# コンポーネント
<ComponentName\s+[^>]*prop=
# Router
import.*from\s+['"]next/router['"]
useRouter\s*\(\)
# Pages
getServerSideProps|getStaticProps|getStaticPaths
# App Router
import.*from\s+['"]next/navigation['"]
# 特定の関数
functionName\s*\(
# 特定のimport
import\s*{\s*[^}]*targetName[^}]*}\s*from
# 特定のメソッド
\.methodName\s*\(
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.