make-it-a-template
/make-it-a-template
Zamienia powtarzający się kod w szablon, gdy skan go wskazuje albo gdy projekt ma już podobny wzorzec w innej postaci.
- Autor
- TheDecipherist ↗
- Repozytorium
- claude-packs ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Zamienia powtarzający się kod w szablon, gdy skan go wskazuje albo gdy projekt ma już podobny wzorzec w innej postaci.
Oryginalny opis (EN)
Use when template-law refuses a write, when scan lists repeated code, or when about to write something the project already has in another shape.
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 20 linii, 250 słów
Podgląd SKILL.md
--- name: make-it-a-template description: Use when template-law refuses a write, when scan lists repeated code, or when about to write something the project already has in another shape. --- # Make a repeat one template (one job: the thing exists once, and its instances are data) <constraints> Always do: 1. List the copies. The refusal names them; `npx --no-install @thedecipherist/claude-packs scan` lists them all, with what each becomes. 2. Read what differs. The refusal's "differs only in" list is the template's parameters. No differences: it moves as it is. 3. Pick the form the refusal names: a component (markup), a factory (an object filled in), a function (a run of statements), a table and a loop (one call repeated). In C++, `cpp-extract-template` has the forms. 4. Find the place every copy can already reach. Name the template for what it builds. 5. Take the copies out first, each replaced by a call to the template, then write the template. `template-law` refuses the template while a copy stands, and `once-only` judges a command before it runs. 6. Test the template once, with an instance as a parameter (`test-the-template-once`), and prove the instances with one read of the table. 7. Run the tests the change reaches (`pick-tests`), then search for the copies by name: none is left. Never do: - Mark a repeat `one-off:` to get past the refusal. It is for something that truly differs, with its reason. - Rename things so a copy passes. The law strips names. - Leave some copies behind "for later": half a template is one more copy. - Add a flag to merge two things with different behaviour: they are two kinds (`behaviour-lives-with-its-kind`). </constraints>
Wersje
W bazie nie ma innych skilli o nazwie make-it-a-template.
Migawka bazy z 13.11.2026 · wersja paczki eeb07d36755d (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
- 96python-extract-template
Wyciąga powtarzający się kod Pythona do wzorca, gdy szablon go blokuje albo przy kopiowaniu bloku do zmiany. - 96cpp-extract-template
Wydziela powtarzający się kod C++ do szablonu, gdy reguła szablonów odrzuca kod albo skan wykrywa duplikaty klas i bloków. - 100wf-template
Tworzy albo edytuje interaktywnie szablon przepływu pracy weft. - 100write-code
Pisze i przegląda kod w repozytorium, gdy trzeba napisać nowy kod, sprawdzić istniejący albo go zmienić. - 100wf-new-template
Pomaga interaktywnie utworzyć nowy szablon przepływu pracy weft. - 100extracting-blueprints
Wyodrębnia działający projekt do blueprintu create-faster, na przykład zamienia projekt CRM w szablon.