Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

rename-sql-object

/rename-sql-object

Zmienia nazwę typu obiektu lub struktury używanej przez mikroserwis SQL CRUD.

Repozytorium
fabric ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
23.10.2026

Ocena i bezpieczeństwo

100/ 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ść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 23.10.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

Zmienia nazwę typu obiektu lub struktury używanej przez mikroserwis SQL CRUD.

Oryginalny opis (EN)

TRIGGER when user asks to rename the object type or struct used by a SQL CRUD microservice.

Jak działa

  1. Workflow
Sekcje z nagłówków SKILL.md, w oryginale · 64 linii, 405 słów
Podgląd SKILL.md
---
name: rename-sql-object
description: TRIGGER when user asks to rename the object type or struct used by a SQL CRUD microservice.
---

**CRITICAL**: Read and analyze this microservice before starting. Do NOT explore or analyze other microservices unless explicitly instructed to do so. The instructions in this skill are self-contained to this microservice.

**IMPORTANT**: `MyNoun`, `MyNounKey`, `mynoun`, and `mynounapi` are placeholders for the actual object, its key, directory, and API package of the microservice.

## Workflow

Copy this checklist and track your progress:

```
Renaming the object:
- [ ] Step 1: Read Local CLAUDE.md File
- [ ] Step 2: Update Type Definitions
- [ ] Step 3: Update References
- [ ] Step 4: Alias the Old Type Definitions
- [ ] Step 5: Housekeeping
```

#### Step 1: Read Local `CLAUDE.md` File

Read the local `CLAUDE.md` file in the microservice's directory. It contains microservice-specific instructions that should take precedence over global instructions.

#### Step 2: Update Type Definitions

Find the struct definition of `MyNounKey` in `mynounapi/objectkey.go` and rename it to the new name `MyNewNounKey`.

Find the struct definition of `MyNoun` in `mynounapi/object.go` and rename it to the new name `MyNewNoun`.

#### Step 3: Update References

Update only the hand-written files; the generated files (`mynounapi/client.go`, `intermediate.go`, `mock.go`, `mock_test.go`, `manifest.yaml`) are regenerated from `definition.go` in Step 5.

Search the hand-written files in `mynounapi/` (`definition.go` and the sibling type files) for references to `MyNounKey` and `MyNoun`, and update to `MyNewNounKey` and `MyNewNoun`. In `definition.go` this covers the In/Out struct fields that carry the object/key types (e.g. `Obj *MyNoun`, `ObjKey MyNounKey`).

Search the microservice's other hand-written files (`service.go`, `service_test.go`) for `mynounapi.MyNounKey` and `mynounapi.MyNoun`, and update them.

Search other microservices that consume this type for `mynounapi.MyNounKey` and `mynounapi.MyNoun` and update their hand-written `definition.go`/`service.go`; their generated files are regenerated by their own housekeeping. The aliases added in Step 4 keep everything compiling in the meantime.

#### Step 4: Alias the Old Type Definitions

This step intentionally reintroduces the old type names as deprecated aliases for backwards compatibility.

Add a type alias of the old object key to the new object key in `mynounapi/objectkey.go`

```go
// MyNounKey is an alias to MyNewNounKey.
//
// Deprecated: Use [MyNewNounKey]
type MyNounKey = MyNewNounKey
```

Add a type alias of the old object to the new object in `mynounapi/object.go`

```go
// MyNoun is an alias to MyNewNoun.
//
// Deprecated: Use [MyNewNoun]
type MyNoun = MyNewNoun
```

#### Step 5: Housekeeping

Follow the `housekeeping` skill. The renamed object type is referenced by `definition.go`, so the boilerplate regeneration (genservice) re-emits `client.go`/`intermediate.go`/`mock.go`/`mock_test.go`/`manifest.yaml` with the new name.

Wersje

W bazie nie ma innych skilli o nazwie rename-sql-object.

Migawka bazy z 13.11.2026 · wersja paczki 06aec7574e1d (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

  • 100rename-sql-table
    Zmienia nazwę tabeli bazy danych używanej przez mikroserwis SQL CRUD.
  • 100modify-sql-fields
    Pomaga zmienić, przemianować lub zmienić typ pól i kolumn obiektu w mikroserwisie CRUD opartym na SQL.
  • 95lov-rename-project
    Zmienia nazwę projektu, ścieżek i repozytorium z zachowaniem kluczy zgodności i ciągłości działania, z jasnym wejściem i odczytem wyniku.
  • 90rename
    Zmienia nazwę pliku przez git mv i aktualizuje wszystkie odwołania w projekcie, żeby nie zostały nieaktualne wskaźniki.
  • 100formae-rename
    Zmienia nazwę lub etykietę zarządzanego zasobu, także wykrytego pod automatyczną nazwą, bez niszczenia i odtwarzania obiektu w chmurze.
  • 100rename-skill
    Zmienia nazwę istniejącego skilla agenta, aktualizując nazwę katalogu, nazwę we frontmatterze i odwołania w całym repozytorium.

Uwagi i zgłoszenia

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