Przejdź do treści
Biblioteka skilli
Programowanie · Nauka i wyjaśnianie

analyze-code

/analyze-code

Wyjaśnia, co robi wskazany plik, moduł lub funkcja, oraz ocenia jego bezpieczeństwo, wydajność i architekturę, gdy trzeba zrozumieć cudzy kod.

Repozytorium
ai-toolkit ↗
Licencja
MIT
Ostatnia zmiana repozytorium
23.10.2026

Ocena i bezpieczeństwo

84/ 100Klasa: dobry
Format9 / 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
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 23.10.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

Wyjaśnia, co robi wskazany plik, moduł lub funkcja, oraz ocenia jego bezpieczeństwo, wydajność i architekturę, gdy trzeba zrozumieć cudzy kod.

Wyzwalacze z opisu

explain this file to mewhat does this code doanalyze the security of this modulereview the performance of this functionhelp me understand this architecture
Oryginalny opis (EN)

Comprehensive code explanation and analysis. Use when user says "explain this file to me", "what does this code do", "analyze the security of this module", "review the performance of this function", or "help me understand this architecture".

Jak działa

  1. Execution Steps
  2. Analysis Depth
  3. Focus Areas
  4. Output Includes
  5. Delegation
  6. Examples
  7. Detailed Reference
Sekcje z nagłówków SKILL.md, w oryginale · 81 linii, 493 słów
Podgląd SKILL.md
---
description: Comprehensive code explanation and analysis. Use when user says "explain this file to me", "what does this code do", "analyze the security of this module", "review the performance of this function", or "help me understand this architecture".
allowed-tools: Read, Grep, Glob, Bash(git show:*), Bash(git ls-files:*), Task(subagent_type:code-explainer-agent), Task(subagent_type:security-analyzer-agent), Task(subagent_type:performance-analyzer-agent), Task(subagent_type:context-loader-agent)
model: opus
---

# Code Analyzer

Provide comprehensive code explanation through multi-agent analysis for architecture, patterns, security, and performance insights.

## Execution Steps

1. **Identify the target** — Extract the file path or module name from the user's request. If no target is specified, ask: "Which file or module would you like me to analyze?"

2. **Verify the target exists** — Use `Read` or `Glob` to confirm the file exists. If it doesn't, report and stop: "Could not find `<path>`. Please check the path and try again."

3. **Infer analysis depth** from the user's request:

   - `overview` — request uses words like "quick", "summary", "briefly", "what does this do"
   - `deep` — request mentions "security", "performance", "vulnerabilities", "thorough", "deep", "comprehensive"
   - `architectural` — request mentions "architecture", "system", "how does this fit", "overall design"
   - **Default to `overview` when depth is ambiguous.** `deep` spawns three agents; running
     that for "what does this file do" costs three context loads to answer a one-agent
     question. Escalate to `deep` only on evidence — the user asked for it, `overview`
     surfaced a concrete security or performance concern, or the target is a trust boundary
     (auth, payments, external input parsing).

4. **Dispatch agents** based on depth:

   - `overview`: spawn **code-explainer-agent** only; pass the file path and its contents
   - `deep`: spawn **code-explainer-agent** + **security-analyzer-agent** + **performance-analyzer-agent** in parallel
   - `architectural`: run **context-loader-agent** first to gather system-level context, then spawn **code-explainer-agent** + **security-analyzer-agent** + **performance-analyzer-agent** in parallel with that context

5. **Synthesize results** — Combine agent outputs into a single structured report. Integrate and deduplicate findings; do not dump raw agent output.

6. **Handle agent failures** — If an agent errors or returns empty output, note it in the report ("Security analysis unavailable") and continue with remaining results.

## Analysis Depth

| Depth           | Description            | Agents Used                                             |
| --------------- | ---------------------- | ------------------------------------------------------- |
| `overview`      | Quick summary          | code-explainer                                          |
| `deep`          | Comprehensive analysis | code-explainer, security-analyzer, performance-analyzer |
| `architectural` | System-level context   | All agents + context-loader                             |

## Focus Areas

- **patterns**: Design patterns, SOLID, anti-patterns
- **security**: Vulnerabilities, input validation, auth
- **performance**: Algorithm complexity, memory, queries
- **all**: Complete analysis (default)

## Output Includes

- **Summary**: Purpose and the concrete complexity signals observed (function count, nesting
  depth, file length). Do not emit a maintainability score — there is no measurement behind it.
- **Architecture**: Patterns, layers, coupling analysis
- **Functionality**: Main purpose, data flow, side effects
- **Dependencies**: Imports, exports, circular dependencies
- **Risks**: Security, performance, maintainability issues
- **Improvements**: Quick wins and refactoring suggestions

## Delegation

For simple explanations, use **code-explainer-agent** directly.

For deep analysis, coordinate:

- **code-explainer-agent**: Architecture and patterns
- **security-analyzer-agent**: Vulnerability assessment
- **performance-analyzer-agent**: Complexity analysis
- **context-loader-agent**: System-level context

## Examples

```
"Explain src/auth/login.ts to me"
"What does this API endpoint do?"
"Analyze the security of the payment module"
"Is there anything wrong with this code?"
```

## Detailed Reference

For output schemas and advanced options, see [explain-file-guide.md](explain-file-guide.md).
Pliki w paczce (2)
  • SKILL.md 4 KB
  • explain-file-guide.md 8 KB

Wersje

W bazie nie ma innych skilli o nazwie analyze-code.

Migawka bazy z 28.10.2026 · wersja paczki 485c4371d60f (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

  • 90understand-explain
    Wyjaśnia szczegółowo wskazany plik, funkcję lub moduł w bazie kodu.
  • 100trove-explain
    Wyjaśnia kod, architekturę i przepływ danych na poziomie dopasowanym do odbiorcy, gdy trzeba zrozumieć nieznany moduł.
  • 90explain-code
    Wyjaśnia, jak działa funkcja, plik lub przepływ w kodzie, z odniesieniami do plików i linii.
  • 100code-explanation
    Wyjaśnia złożony kod przez przejrzyste narracje, diagramy i rozbicie krok po kroku: algorytmy, wzorce projektowe i przeglądy kodu.
  • 84review-code
    Recenzuje zmiany w kodzie pod kątem jakości, bezpieczeństwa i wydajności, w tym architektury i stylu, i ocenia, czy PR jest gotowy.
  • 90ctx-explain
    Wyjaśnia kod osobie nowej w projekcie, odpowiadając na pytania typu co ten kod robi.

Uwagi i zgłoszenia

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