Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

swift-semantic-indexing-workflow

/swift-semantic-indexing-workflow

Odpytuje typy, USR, dokumentację, wystąpienia, referencje i relacje w Swift przez SourceKit, SourceKitten, index store i IndexStoreDB, dla pytań lokalnych i projektowych.

Repozytorium
socket ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
26.08.2026

Ocena i bezpieczeństwo

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

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

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Odpytuje typy, USR, dokumentację, wystąpienia, referencje i relacje w Swift przez SourceKit, SourceKitten, index store i IndexStoreDB, dla pytań lokalnych i projektowych.

Oryginalny opis (EN)

Query Swift types, USRs, documentation, occurrences, references, and relationships with SourceKit, SourceKitten, index stores, and IndexStoreDB. Use for file-local semantics or project-wide symbol questions.

Jak działa

  1. Workflow
  2. SourceKitten Policy
  3. Output
  4. Guardrails
Sekcje z nagłówków SKILL.md, w oryginale · 46 linii, 416 słów
Podgląd SKILL.md
---
name: swift-semantic-indexing-workflow
description: Query Swift types, USRs, documentation, occurrences, references, and relationships with SourceKit, SourceKitten, index stores, and IndexStoreDB. Use for file-local semantics or project-wide symbol questions.
license: Apache-2.0
metadata:
  owner: gaelic-ghost
  repo: socket
  category: swift-language
  hermes:
    category: swift-language
    tags: [swift, sourcekit, sourcekitten, indexstore, semantics]
---

# Swift Semantic Indexing Workflow

Choose between live file semantics and persisted project-wide index data without substituting syntax shape for type-checked meaning.

## Workflow

1. State the semantic question and required scope:
   - one source snapshot at a byte position
   - one file or module
   - project-wide occurrences and relations
   - documentation or generated interface
2. Resolve the toolchain that produced or should interpret the source:
   - use Swiftly for matching Swift.org toolchains and cross-platform SwiftPM builds
   - use Xcode's `xcrun` tools and `sourcekitd` for Apple SDK or Xcode build settings
   - never load `sourcekitd` from one toolchain while passing compiler or plugin paths from another
3. Choose the surface using [references/semantic-index-surfaces.md](references/semantic-index-surfaces.md):
   - raw SourceKit for precise live semantic requests
   - SourceKitten for an accepted Swift or JSON convenience layer
   - compiler index store plus IndexStoreDB for project-wide symbols, occurrences, and relations
   - SourceKit-LSP when a standard editor-facing protocol already covers the request
4. Reconstruct exact compiler arguments from the real build. Include target, SDK, module search paths, language mode, conditional flags, generated sources, bridging inputs, and plugins when applicable.
5. Keep the source text and position representation paired. Record whether positions are UTF-8 byte offsets, line and column pairs, or LSP positions.
6. Verify build and index freshness before interpreting missing results.
7. Normalize output into typed domain records at the integration boundary instead of spreading SourceKit keys or loose JSON dictionaries through the application.
8. Test absent symbols, overloads, extensions, generated code, conditional compilation, and stale-index behavior.

## SourceKitten Policy

- Treat SourceKitten as a third-party wrapper and CLI around SourceKit, not as the source of semantic truth.
- Use it when its `structure`, `syntax`, `doc`, `index`, `complete`, or raw-request JSON contract matches a concrete integration need.
- Check installation and toolchain resolution before use; do not assume SourceKitten is bundled with Swiftly or Xcode.
- Prefer a direct supported library or LSP contract when adding SourceKitten would only translate one unstable representation into another.

## Output

Return semantic scope, selected toolchain, selected surface, compiler-argument source, position encoding, index freshness, query result, and uncertainty.

## Guardrails

- Do not answer inferred-type or reference questions from SwiftSyntax alone.
- Do not treat a missing index result as proof that a symbol is unused before verifying every relevant target was indexed.
- Do not reuse byte offsets after source text changes.
- Do not pass machine-local SourceKit or SDK paths into shared package manifests.
- Do not let raw SourceKit dictionaries become a public application API.
Pliki w paczce (3)
  • SKILL.md 3 KB
  • agents/openai.yaml 1 KB
  • references/semantic-index-surfaces.md 2 KB

Wersje

W bazie nie ma innych skilli o nazwie swift-semantic-indexing-workflow.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

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

Pobrania w ostatnich 30 dniach: 3 · ranking

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

Podobne skille

  • 100swift-lsp
    Daje agentowi na bieżąco diagnostykę błędów, skok do definicji, odwołania i typy w plikach Swift przez SourceKit-LSP.
  • 90sourcekit-lsp-workflow
    Konfiguruje lub diagnozuje SourceKit-LSP w SwiftPM, bazach kompilacji i serwerach budowania: uzupełnianie, nawigacja, refaktoryzacja, diagnostyka, indeksowanie i awarie klienta edytora.
  • 86swift
    Podpowiada przy tworzeniu i edycji plików .swift zasady kodowania dla tego języka.
  • 100cursor-codebase-indexing
    Konfiguruje i optymalizuje indeksowanie kodu w Cursor dla wyszukiwania semantycznego i zapytań @Codebase.
  • 100cursor-codebase-indexing
    Konfiguruje i optymalizuje indeksowanie kodu w Cursor dla wyszukiwania semantycznego.
  • 100build-licenseseat-swift
    Integruje SDK LicenseSeat Swift w aplikacji macOS lub Swift: aktywacja, walidacja licencji i stanowiska.

Uwagi i zgłoszenia

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