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

jshell

/jshell

Pomaga uruchamiać fragmenty kodu Java w JShell oraz używać JShell jako REPL i brudnopisu.

Repozytorium
kortex ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
22.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
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 22.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

Pomaga uruchamiać fragmenty kodu Java w JShell oraz używać JShell jako REPL i brudnopisu.

Oryginalny opis (EN)

Use when running Java snippets in JShell or using JShell as a Java REPL or scratchpad.

Jak działa

  1. Resolve the executable
  2. Start and use JShell
  3. Finish the session
Sekcje z nagłówków SKILL.md, w oryginale · 44 linii, 312 słów
Podgląd SKILL.md
---
name: jshell
description: Use when running Java snippets in JShell or using JShell as a Java REPL or scratchpad.
---

# JShell

Run JShell in an agent-controlled terminal and own its lifecycle. Record its pid when it starts,
keep the terminal session, and do not finish the task until that session has exited.

## Resolve the executable

Run `jshell --version` before the first evaluation. On macOS, `/usr/bin/jshell` can be a launcher
that reports no Java runtime even when an SDK-managed JDK is installed. In that case, resolve an
installed JDK and use its absolute `bin/jshell` path for the rest of the task.

If a requested JShell option is uncertain, inspect that executable's `--help` or `--help-extra`.

## Start and use JShell

Start this command in a terminal with TTY enabled, replacing the final argument with the resolved
absolute path:

```sh
/bin/sh -c 'printf "JSHELL_PID=%s\n" "$$" >&2; exec "$1" --execution local --feedback concise' sh /absolute/path/to/jshell
```

Save both the returned terminal-session id and the printed `JSHELL_PID`. `exec` replaces the shell
with JShell without changing the pid, while `--execution local` keeps evaluation in that tracked
process.

Send Java snippets to the terminal session with a trailing newline. Poll a running session with an
empty write. A returned live-session id only means the command is still running; it does not prove
that JShell is waiting at a prompt.

## Finish the session

Never send `/exit`. When no more evaluation is needed:

1. From a separate terminal command, send `TERM` to the recorded numeric pid. For example, if
   JShell printed `JSHELL_PID=16438`, run `kill -TERM 16438`.
2. Poll the original terminal session with empty writes for at most five seconds.
3. If it has not exited after those five seconds, confirm that the same pid is still the tracked
   JShell process, send `KILL` to that pid, and poll the original session again until it exits.

Never abandon a live JShell terminal session. Do not use `pkill jshell` or `killall`; terminate only
the pid recorded for the current task.
Pliki w paczce (2)
  • SKILL.md 2 KB
  • agents/openai.yaml 1 KB

Wersje

W bazie nie ma innych skilli o nazwie jshell.

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

  • 100cli-controller
    Steruje interaktywnymi aplikacjami wiersza poleceń: debugowanie przez pdb, gdb i jshell, uruchamianie instancji Claude Code oraz praca z REPL-ami i długo działającymi procesami.
  • 96java
    Podaje wytyczne budowy aplikacji Java dla plików .java, od struktury kodu po obsługę błędów.
  • 95java-11-to-java-17-upgrade
    Pomaga stosować nowości Javy 17, które pojawiły się po wersji 11, i wskazuje przestarzałe wzorce do zamiany.
  • 85julia-evaluation
    Uruchamia i testuje kod Julia w trwałej sesji REPL oraz przeładowuje zmiany bez restartu.
  • 100rolldown-repl
    Koduje i dekoduje linki udostępniania REPL rolldown, aby odczytać pliki źródłowe i wersję z adresu zgłoszenia lub je wysłać dalej.
  • 100rolldown-repl
    Koduje i dekoduje linki REPL rolldown, czyli adresy z zakodowanym w base64 zestawem plików i wersją rolldown, na przykład w zgłoszeniach na GitHubie.

Uwagi i zgłoszenia

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