Przejdź do treści
Biblioteka skilli
Programowanie · Research

cite-precedent

/cite-precedent

Szuka dojrzałych projektów open source, które rozwiązały ten sam problem, i zapisuje decyzję projektową z cytatem.

Repozytorium
mort-stack ↗
Licencja
MIT
Ostatnia zmiana repozytorium
30.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 30.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

Szuka dojrzałych projektów open source, które rozwiązały ten sam problem, i zapisuje decyzję projektową z cytatem.

Oryginalny opis (EN)

For any decision that isn't clear-cut (a storage shape, a key-rotation scheme, a limits model, a config format, a naming convention, an error taxonomy), finds the mature open-source project that already solved the same problem, follows its shape, and records the decision with the citation. Use whenever you or a subagent is about to design something a well-known project has already designed.

Jak działa

  1. When it applies
  2. How
  3. Worked precedents
  4. In subagent prompts
Sekcje z nagłówków SKILL.md, w oryginale · 67 linii, 436 słów
Podgląd SKILL.md
---
name: cite-precedent
description: For any decision that isn't clear-cut (a storage shape, a key-rotation scheme, a limits model, a config format, a naming convention, an error taxonomy), finds the mature open-source project that already solved the same problem, follows its shape, and records the decision with the citation. Use whenever you or a subagent is about to design something a well-known project has already designed.
---

# Cite precedent

If you're deciding something non-obvious, someone mature has almost certainly
decided it already. They have also lived with the consequences, reversed what
didn't work, and filed the bug reports. Copy their shape and say where it came
from. A bespoke design that looks smaller today usually costs more by the third
edge case.

## When it applies

It applies to any decision where a reasonable engineer could pick two different
shapes:

- data shapes and storage layouts
- rotation, versioning and migration schemes
- limits, quotas and plan models
- config formats and naming conventions
- error enums, state machines and audit-event schemas
- security-sensitive defaults

It doesn't apply to choices the codebase already makes. Follow the codebase.

## How

1. **Name the problem in one line**, the way the precedent would describe it.
   For example: "encrypt with the newest key, decrypt with any listed key".
2. **Find one or two mature projects that solved it.** Prefer projects that
   are widely deployed, actively maintained, and whose licence lets you read
   them. Read their actual code or docs, not a blog post about them. Check
   their changelog and issues for **reversals**: what they tried first and
   later changed.
3. **Adopt their shape**, including field names where it makes sense. Note
   what you deliberately didn't take, and why.
4. **Record it.** Add a line to the decision log (`DECISIONS.md`, or wherever
   the project keeps them), and to the PR or lane report when you're inside a
   round:

   ```
   | D-042 | Key rotation: encrypt with newest, decrypt with any listed |
   |       | Precedent: Rails ActiveRecord Encryption `previous:` keys; Django SECRET_KEY_FALLBACKS |
   |       | Not taken: Rails' per-attribute key derivation (we encrypt whole records) |
   ```

## Worked precedents

These have held up well:

| Problem | Precedent |
|---|---|
| Connection config in environment variables | 12-factor app; Heroku `DATABASE_URL` |
| Secret and key rotation | Rails Active Record Encryption `previous:`; Django `SECRET_KEY_FALLBACKS`; Vault/OpenBao transit key versions |
| Plan limits and quotas | GitLab `plan_limits` table |
| Allowlisting in a secrets scanner | gitleaks `[allowlist] paths` |
| Feature flags | OpenFeature's evaluation model |
| Audit events | CloudTrail event shape (actor, action, resource, outcome, request id) |
| Retries and idempotency | Stripe `Idempotency-Key` |

## In subagent prompts

When you hand design work to another agent, add this line to its instructions:

> For every non-obvious decision, include a `precedent` line: the project,
> the file or doc, what you adopted, and what you deliberately did not.

A reviewer should treat an unexplained bespoke design as a defect.

Wersje

W bazie nie ma innych skilli o nazwie cite-precedent.

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

  • 100precedent
    Sprawdza, czy decyzje architektoniczne ADR i RFC nadal obowiązują przed zmianą kodu lub projektowaniem nowego rozwiązania.
  • 100prior-art-research
    Bada rozwiązania wzorcowe dla decyzji inżynierskiej: jak specyfikacje, implementacje open source, biblioteki i klienci obsługują zachowanie protokołu, domyślną wartość lub kształt API, z oceną siły dowodów.
  • 100precedent
    Sprawdza decyzje zespołu przed zmianą architektury, zależności, dostawcy lub polityki, zanim agent doda bazę albo usługę.

Uwagi i zgłoszenia

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