Przejdź do treści
Biblioteka skilli
Nauka i badania · Integracja z narzędziem

setup

/setup

Wykrywa ustawienia projektu automatycznie, potem pozwala skonfigurować powiadomienia, listę dozwolonych poleceń CLI i środowisko LaTeX.

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

Wykrywa ustawienia projektu automatycznie, potem pozwala skonfigurować powiadomienia, listę dozwolonych poleceń CLI i środowisko LaTeX.

Oryginalny opis (EN)

30-second auto-detection tour, then optional configuration of notifications, CLI allowlist, research CLAUDE.md rules, and LaTeX environment. Use when the user runs /labrat:setup.

Jak działa

  1. Step 0: Auto-detection tour (always run first)
  2. Step 1: Feature Selection (optional, only if user opted in)
  3. Step 2: Notifications (if selected)
  4. Step 3: CLI Allowlist (if selected)
  5. Step 4: Research CLAUDE.md (if selected)
  6. Step 5: LaTeX Environment (if selected)
  7. Paper search (when needed)
  8. Escape hatches (mention only if asked)
Sekcje z nagłówków SKILL.md, w oryginale · 143 linii, 706 słów
Podgląd SKILL.md
---
name: setup
description: >
  30-second auto-detection tour, then optional configuration of notifications,
  CLI allowlist, research CLAUDE.md rules, and LaTeX environment.
  Use when the user runs /labrat:setup.
disable-model-invocation: true
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
---

# Lab Rat Setup

The plugin works correctly the moment it is installed. Most users never need to run setup. This skill exists to (1) show what was auto-detected on the user's system, and (2) let users opt into a few extras (notifications, allowlist, project CLAUDE.md, LaTeX).

## Step 0: Auto-detection tour (always run first)

Before asking any questions, print what the plugin already knows. No prompts, no decisions, just visibility.

Run these probes silently and present the results:

```bash
# Last few long-job launches the plugin would have flagged
recent_launches=$(history 200 2> /dev/null | grep -E '(python.*train|accelerate launch|torchrun|deepspeed|sbatch|tmux.*python)' | tail -5)

# What the agentic Stop hook would orient on for this project
project_orientation=""
[ -f README.md ] && project_orientation+="README.md found  "
[ -f CLAUDE.md ] && project_orientation+="CLAUDE.md found  "
[ -f .claude/CLAUDE.md ] && project_orientation+=".claude/CLAUDE.md found  "
[ -f AGENTS.md ] && project_orientation+="AGENTS.md found  "
```

Then present:

```
Lab Rat auto-detected the following:

Recent launches:    <count> training-job patterns in shell history
Project orientation: ${project_orientation:-no README / CLAUDE.md / AGENTS.md found at project root}

This is what the hooks and agentic Stop hook will use. No configuration needed.
The plugin works on the first prompt. Hooks fire silently when there is nothing to flag.

Want to configure any extras? (notifications, allowlist, CLAUDE.md, LaTeX) [y/N]
```

If the user says no, you are done. If yes, walk them through the optional steps below.

## Step 1: Feature Selection (optional, only if user opted in)

Use AskUserQuestion:

```
Which extras would you like to set up?

1. Notifications: get alerts when long tasks complete (ntfy / slack / email)
2. CLI Allowlist: auto-approve safe commands used in research workflows
3. Research CLAUDE.md: add research integrity rules to your project
4. LaTeX Environment: detect and configure LaTeX / BibTeX toolchain

Enter numbers separated by commas (e.g., 1,3,4), or "all":
```

## Step 2: Notifications (if selected)

Ask which notification method:

```
How would you like to receive notifications?

1. ntfy.sh: free, works over SSH, no account needed
2. Slack: webhook to a channel
3. Email: via sendmail / msmtp

Enter number:
```

Based on selection:

- **ntfy.sh**: ask for topic name, write to `.env` as `NTFY_TOPIC=<topic>`. Test with `curl -d "labrat test" ntfy.sh/<topic>`
- **Slack**: ask for webhook URL, write to `.env` as `SLACK_WEBHOOK_URL=<url>`. Test with curl POST
- **Email**: ask for recipient, write to `.env` as `NOTIFICATION_EMAIL=<email>`. Test with sendmail

## Step 3: CLI Allowlist (if selected)

Show the user a list of safe, non-destructive commands commonly used in research:

```json
{
  "allowedTools": [
    "Read",
    "Glob",
    "Grep",
    "Bash(pdflatex *)",
    "Bash(biber *)",
    "Bash(bibtex *)",
    "Bash(python -c *)",
    "Bash(uv run *)",
    "Bash(git status)",
    "Bash(git diff *)",
    "Bash(git log *)",
    "Bash(nvidia-smi)",
    "Bash(htop)",
    "Bash(df -h)",
    "Bash(wc -l *)",
    "Bash(du -sh *)"
  ]
}
```

Ask for confirmation, then merge into `.claude/settings.json`.

## Step 4: Research CLAUDE.md (if selected)

Present the following research integrity rules to add to the project's CLAUDE.md:

```markdown
## Research Integrity Rules

- Code is the source of truth. When paper text and code disagree, the code is correct
  unless the user explicitly states otherwise.
- Never state a numerical result without tracing it to a specific file, log, or code output.
  If you cannot find the source, say so explicitly.
- Never assume domain-specific technical behavior. Verify against code before making claims
  about how methods, losses, architectures, or training procedures work.
- When editing paper text, change ONLY what was requested. Do not remove existing content,
  add unrequested sections, or "improve" surrounding text unless asked.
- Citation integrity: verify author names, venue, and year against DBLP before adding or
  modifying any BibTeX entry. Flag any citation detail you cannot verify.
- Edit code locally, commit, push, then `git pull` on the GPU host. Never edit tracked code
  in place over SSH.
```

Ask the user to confirm, then:

- Read existing CLAUDE.md (if any)
- Append the research rules section (avoiding duplicates)

## Step 5: LaTeX Environment (if selected)

Follow [the LaTeX setup](../paper-write/references/latex.md).

## Paper search (when needed)

See [paper search setup](../literature-research/references/paper-search.md).

## Escape hatches (mention only if asked)

The plugin avoids configuration on purpose. If a user really wants to override:

- **Suppress a hook**: edit `~/.claude/settings.json` and set `"hooks.<event>.<matcher>.disabled": true` (Claude Code's standard mechanism)

Wersje

RepozytoriumWynikLicencja
Ta strona · fcakyon/phd-skills100MIT
HwangSlater/harness-fit100MIT
nesquikm/dev-process-toolkit100MIT
userKael/rastro100MIT
als-apg/osprey100BSD-3-Clause
dedujeong/gemba100Apache-2.0
eigenwise/eigenwise-toolshed100MIT
awrshift/agent-memory-kit100MIT
lifecycle-innovations-limited/claude-ops100MIT

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

  • 100latex-setup
    Pomaga skonfigurować i naprawić środowisko LaTeX: wybór między biber i bibtex, instalacja pakietów dla szablonu konferencji i konfiguracja kompilacji.
  • 100code-env-setup
    Prowadzi interaktywny kreator konfiguracji środowiska Claude Code: wykrywa istniejące ustawienia i konfiguruje globalny CLAUDE.md, szkielet projektu, serwery MCP, hooki, agentów, skróty i ustawienia.
  • 95research-paper
    Pomaga pisać i poprawiać artykuły naukowe w LaTeX: szkic, wielu recenzentów, czytelność i kontrolę liczby stron.
  • 100export-latex
    Przygotowuje szkic manuskryptu w LaTeX z wynikami projektu, rysunkami, metodami i bibliografią pod wybrane czasopisma naukowe.
  • 90omcr-setup
    Instaluje w projekcie infrastrukturę OMCR: puste bloki w CLAUDE.md, pamięć agentów i listę dozwolonych uprawnień, bez pytania o badania.
  • 100latex-paper-skills
    Pisze, poprawia i sprawdza artykuły badawcze z ML i AI w LaTeX: plan, przegląd literatury, wyniki i cytowania.

Uwagi i zgłoszenia

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