Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

utils:dependency-scanner

/utils:dependency-scanner

Skanuje pliki wtyczki pod kątem wzorców wskazujących na zależności od innych wtyczek lub narzędzi i tworzy extends-plugin.json.

Repozytorium
agent-foundry ↗
Licencja
MIT
Ostatnia zmiana repozytorium
16.08.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format15 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 16.08.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Skanuje pliki wtyczki pod kątem wzorców wskazujących na zależności od innych wtyczek lub narzędzi i tworzy extends-plugin.json.

Wyzwalacze z opisu

scan for dependenciesfind plugin dependenciesgenerate extends-plugin.jsondiscover plugin requirements
Oryginalny opis (EN)

This skill should be used when the user asks to "scan for dependencies", "find plugin dependencies", "generate extends-plugin.json", "discover plugin requirements", or invokes /utils:dependency-scanner. Scans plugin files for patterns indicating dependencies on other plugins or system tools.

Jak działa

  1. Usage
  2. Workflow
  3. Key Principles
  4. Additional Resources
Sekcje z nagłówków SKILL.md, w oryginale · 114 linii, 447 słów
Podgląd SKILL.md
---
name: utils:dependency-scanner
description: This skill should be used when the user asks to "scan for dependencies", "find plugin dependencies", "generate extends-plugin.json", "discover plugin requirements", or invokes /utils:dependency-scanner. Scans plugin files for patterns indicating dependencies on other plugins or system tools.
version: 0.1.0
---

# Dependency Scanner

Scan plugins for patterns that indicate dependencies on other plugins or system tools.

## Usage

- `/utils:dependency-scanner` - Scan all enabled plugins
- `/utils:dependency-scanner --plugin <name>` - Scan specific plugin
- `/utils:dependency-scanner --marketplace <name>` - Scan all plugins from marketplace
- `/utils:dependency-scanner --plugin-dir <path>` - Scan local plugin directory
- `/utils:dependency-scanner --marketplace-dir <path>` - Scan local marketplace directory

## Workflow

### Step 1: Generate CPR Resolver

```bash
Skill(skill="utils:find-claude-plugin-root")
```

### Step 2: Run the Scanner Script

```bash
PLUGIN_ROOT=$(python3 /tmp/cpr.py utils)
python3 "$PLUGIN_ROOT/scripts/dependency-scanner.py" [FLAGS] > /tmp/dependency-scan.json
```

### Step 3: Read and Interpret Matches

Read `/tmp/dependency-scan.json` and analyze the matches. The script returns raw pattern matches - the analysis process involves:

1. **Filter internal references**: If Skill A in plugin X references Skill B also in plugin X, that's NOT a dependency
2. **Group by source**: Combine `/foo:spam`, `/foo:ham`, `/foo:eggs` into one "foo" dependency
3. **Identify source**: For each group, determine which plugin/marketplace provides it
4. **Classify**: Determine if it's a plugin dependency or system dependency

### Step 4: Determine Dependency Sources

**For plugin dependencies:**
- Search installed plugins for matching skill/command names
- Check marketplace plugins if not found in installed
- If skill is `/foo:bar`, look for plugin named "foo"
- If skill is `/bar` (no prefix), search all available skills

**For system dependencies:**
- Run `which <command>` to check if installed
- Run `<command> --version` to get version
- Do web search for installation instructions if needed

### Step 5: Batch Confirmations with User

For EACH dependency group, use AskUserQuestion to confirm. BATCH similar findings:

```
Found 3 skills (spam, ham, eggs) from foo@bar-marketplace.
Current installed version: 1.2.3

Add to dependencies?
- Yes, require ^1.2.0 (Recommended)
- Yes, require ^1.0.0
- Yes, as optional dependency
- No, skip this
```

For system dependencies:

```
Found system command: gh (used 5 times)
Currently installed: 2.45.0

Add to systemDependencies?
- Yes, require >=2.0.0 (Recommended)
- Yes, require >=2.45.0 (exact current)
- Yes, as optional system dependency
- No, skip this
```

### Step 6: Build extends-plugin.json

After all confirmations, build the final JSON:

```json
{
  "dependencies": {
    "foo": "^1.2.0"
  },
  "optionalDependencies": {},
  "systemDependencies": {
    "gh": ">=2.0.0"
  },
  "optionalSystemDependencies": {}
}
```

### Step 7: Confirm and Write

Show the final `extends-plugin.json` to the user and ask for confirmation before writing.

Write to: `<plugin-path>/.claude-plugin/extends-plugin.json`

## Key Principles

- **Script does pattern matching only** - returns potential matches
- **LLM interprets** - groups, filters, identifies sources
- **User confirms everything** - never auto-write
- **Batch similar findings** - don't ask 3 times for same plugin
- **False positives are OK** - better than missing dependencies

## Additional Resources

### Scripts
- `$PLUGIN_ROOT/scripts/dependency-scanner.py` - Pattern matching scanner

Wersje

W bazie nie ma innych skilli o nazwie utils:dependency-scanner.

Migawka bazy z 13.11.2026 · wersja paczki 8a9f19a123f7 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90midnight-plugin-utils:dependency-scanner
    Skanuje pliki wtyczki w poszukiwaniu zależności od innych wtyczek i narzędzi systemowych, tworząc manifest extends-plugin.json.
  • 90utils:dependency-checker
    Sprawdza zadeklarowane zależności wtyczek w pliku extends-plugin.json względem zainstalowanych i włączonych wtyczek.
  • 90midnight-plugin-utils:dependency-checker
    Sprawdza zależności zadeklarowane w plikach extends-plugin.json względem zainstalowanych i włączonych wtyczek i wskazuje brakujące elementy.
  • 90utils:find-claude-plugin-root
    Ustala ścieżkę instalacji wtyczki, gdy zmienna CLAUDE_PLUGIN_ROOT nie rozwija się w plikach Markdown, i generuje skrypt rozwiązujący.
  • 95api-utils
    Podaje sygnatury, opcje i wzorce użycia narzędzi eksportowanych z @cyanheads/mcp-ts-core/utils.
  • 95api-utils
    Podaje sygnatury, opcje i wzorce użycia narzędzi eksportowanych z @cyanheads/mcp-ts-core/utils.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.