never-twice
/never-twice
Sprawdza wcześniejsze lekcje przed zmianami w kodzie, konfiguracji, pakietach, testach i wdrożeniach, a po korekcie zapisuje wniosek.
- Autor
- cognicore-dev ↗
- Repozytorium
- cognicore-env ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Sprawdza wcześniejsze lekcje przed zmianami w kodzie, konfiguracji, pakietach, testach i wdrożeniach, a po korekcie zapisuje wniosek.
Oryginalny opis (EN)
Use before any task that changes something (writing or editing code or config, installing packages, running tests, builds, migrations, commits or deploys) to check lessons from past mistakes, and whenever the user corrects you or a command fails, to record the lesson so it is never repeated.
Jak działa
- Before you act
- Record a lesson when
- Never
- Privacy
Podgląd SKILL.md
---
name: never-twice
description: Use before any task that changes something (writing or editing code or config, installing packages, running tests, builds, migrations, commits or deploys) to check lessons from past mistakes, and whenever the user corrects you or a command fails, to record the lesson so it is never repeated.
version: 1.0.2
metadata:
openclaw:
requires:
bins:
- cognicore
homepage: https://github.com/cognicore-dev/cognicore-env/tree/main/skills/never-twice
---
# Never Twice
You learn from mistakes and never repeat them. Lessons are stored by the `cognicore` command and checked before you act.
## Before you act
Check lessons before any task that changes something: installing or removing packages, editing code or config,
running tests or builds, running migrations, committing, pushing or deploying. Skip the check for questions,
explanations and reading files.
Run:
cognicore lesson check "<one line: the kind of action, then the specifics>"
Describe the kind of action in general words as well as the specifics, for example
`"install a package: add axios"` or `"format dates in the invoice export"`. Lessons are matched by words.
If it prints lessons, follow them, and tell the user in one short line which lesson you applied, for example:
"Using pnpm (lesson: npm breaks this repo's lockfile)." If it prints nothing, carry on; there is nothing to apply.
If a lesson clearly doesn't apply to this task, ignore it and don't mention it.
## Record a lesson when
- the user corrects you ("no", "that's wrong", "actually…", "don't do that")
- a command or tool fails and you find the fix
- the user undoes or rewrites something you did
- you discover a project rule the hard way
Run:
cognicore lesson add --mistake "<what went wrong>" --fix "<what works>" --why "<the reason>" --when "<the situation, in general words>"
- Always include `--why`. One lesson per mistake, each field one sentence.
- `--when` names the situation broadly ("installing or adding packages", "writing dates"), so the lesson is found next time even when the task is worded differently.
- Add `--scope global` only for lessons that apply in every project; the default is this project.
- Recording the same lesson again is fine: it is merged and counted, not duplicated.
## Never
- store passwords, tokens, keys or personal data in a lesson
- record a lesson the user asked you not to keep
## Privacy
Lessons are stored locally in the CogniCore data folder (`~/.cognicore/mcp/lessons.db`). Nothing leaves this machine.
Users can review lessons with `cognicore lesson list` and delete one with `cognicore lesson forget <id>`.
Pliki w paczce (3)
- .clawhubignore 1 KB
- README.md 2 KB
- SKILL.md 3 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · cognicore-dev/cognicore-env | 100 | Apache-2.0 |
| RabbitDesigns22/never-twice | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki a73f9b517571 (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
- 90lessons
Przypomina lekcje z poprzednich błędów przed edycją pliku, zmianą stanu i po każdej korekcie lub nieoczekiwanym wyniku. - 90lessons
Przypomina zapisane lekcje przed każdą zmianą pliku lub stanu i po błędzie, korekcie albo zaskakującym wyniku. - 86lesson
Zamienia poprawkę lub powtarzający się błąd w zabezpieczenie: regułę, skrypt, test albo wpis w zasadach, jako ostatnią opcję. - 90learn-from-lessons
Podpowiada lekcje z dawnych sesji agenta: zasady i fakty projektu z odwołaniem do fragmentów rozmów, zanim wykonasz ryzykowny krok. - 100rc-memory
Prowadzi pamięć projektu w .rc/memory/: fakty, lekcje i sprawdzone ścieżki, czytane przed pracą i uzupełniane po korekcie. - 100lessons
Zapisuje i porządkuje trwałe lekcje w katalogu .agent/lessons: jeden plik na lekcję z indeksem w README, po powtarzalnym błędzie, trudnym debugowaniu lub przy czyszczeniu indeksu.