Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

consistency

/consistency

Stosuje wskazany wzorzec w całej bazie kodu lub w wybranym zakresie, gdy użytkownik prosi o spójność.

Repozytorium
skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
11.11.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 11.11.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

Stosuje wskazany wzorzec w całej bazie kodu lub w wybranym zakresie, gdy użytkownik prosi o spójność.

Wyzwalacze z opisu

consistency
Oryginalny opis (EN)

Use when the user says "consistency" or asks to apply a pattern across the codebase or a scope.

Jak działa

  1. State the pattern
  2. Set the scope
  3. Find the sites
  4. Show the dry run
  5. Apply the rule
  6. Enforce the pattern
  7. Check the changes
  8. Return the result
Sekcje z nagłówków SKILL.md, w oryginale · 74 linii, 583 słów
Podgląd SKILL.md
---
name: consistency
description: Use when the user says "consistency" or asks to apply a pattern across the codebase or a scope.
---

# Apply a pattern consistently

Apply a pattern the user built in one place to every other place in the scope where it belongs. A site is one place in the code that follows the old pattern.

## State the pattern

Read the code the user points to. When they point to nothing, read the uncommitted diff and the last few commits.

Write the pattern as one rule, with a before-and-after example taken from that code. When the code supports more than one rule, ask the user which one they mean.

When the rule conflicts with the repository's `AGENTS.md` or `CODING_STANDARDS.md`, report the conflict and ask which one to follow.

The step is done when you have one rule, an example, and an answer to every question you asked.

## Set the scope

Use the folders, files, or modules the user names. When they name none, use the whole repository.

The step is done when the scope is a list of paths.

## Find the sites

Search the scope by code structure as well as by text, because the old pattern rarely looks the same at every site. Use `ast-grep` when it is installed, and `grep` otherwise.

Put each match in one of these groups:

- **Change.** The site follows the old pattern, and the rule fits it as written.
- **Adapt.** The rule fits only with an extra change, such as a new parameter.
- **Skip.** The site looks similar but differs in a way that matters, such as different behavior or a different caller.
- **Design.** Changing the site would remove or alter a public API or change the folder organization. Leave it out of this change and propose it with the `codebase-design` skill.

The step is done when every match is in exactly one group.

## Show the dry run

Show the rule and its example, then one short bullet list per group. Give each adapted site the change it needs, and give each skipped site a one-line reason.

When fewer than five files will change, continue without waiting. Otherwise, wait for the user's agreement.

The step is done when fewer than five files will change, or when the user agrees.

## Apply the rule

Apply the rule to the change and adapt groups. Keep each site's behavior the same.

Run the repository's checks and tests. When a site fails, fix it within the rule, or move it to the skip group with a reason.

The step is done when the checks and tests pass.

## Enforce the pattern

Propose one way to keep the old pattern from coming back. Prefer the first option that the repository's tooling supports:

1. A lint rule, such as an `ast-grep` rule or a rule in the repository's linter, that rejects the old pattern.
2. A test that fails on the old pattern.
3. A line in the repository's `AGENTS.md` that states the rule and points to an example.

Add it only when the user agrees.

The step is done when the user has accepted or declined the proposal.

## Check the changes

- The rule and its example were written before any file changed.
- Every match in the scope is in exactly one group.
- No site's behavior changed.
- The checks and tests pass.
- Design sites were proposed with `codebase-design`, not changed.

## Return the result

Return the rule, then one bullet list per group, with the reason for each skipped site. End with the proposal for enforcing the pattern.

Wersje

RepozytoriumWynikLicencja
Ta strona · adelrodriguez/skills100MIT
arxdsilva/ai-loops100MIT
Deibler/universal-design-principles100MIT

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

  • 100code-check
    Wykonuje przegląd kodu i audyty jakości: spójność SOLID i DRY, audyty wzorców w całej bazie kodu i zgodność z zakazami antywzorców w wybranym zakresie.
  • 100repo-consistency
    Sprawdza spójność dokumentacji w całym repozytorium i weryfikuje, czy dokumenty są ze sobą zgodne.
  • 100pattern-detection
    Rozpoznaje istniejące wzorce w bazie kodu, takie jak konwencje nazw, wzorce architektoniczne i testowe, aby zachować spójność przy generowaniu kodu i przeglądzie zmian.
  • 90consistency-check
    Sprawdza poprawność schematów artefaktów DAE i spójność specyfikacji z kryteriami akceptacji.
  • 100style-guide
    Stosuje reguły przewodników stylu dla konkretnego języka przy pisaniu i przeglądzie kodu, aby zachować spójność z dobrymi praktykami.
  • 100pattern-finder
    Wyszukuje w bazie kodu przykłady implementacji i wzorce projektowe, by zachować spójność z istniejącymi konwencjami.

Uwagi i zgłoszenia

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