restart

restart is a skill for Claude Code from tonydzi/second-brain-starter-kit. It costs 43 tokens per session (2,623 once invoked), scanned A, original, MIT.

A procedure for restarting a named app, browser, or coding session while keeping available context and checking that the new instance responds.

In plain words
What is it for?
Use it to relaunch Chrome, Firefox, Claude Desktop, Claude Code, Codex, Cursor, or another requested application on Windows, macOS, or Linux.
Why use it?
It avoids an unverified restart that may lose the wrong session or leave the application unusable.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

Part of the second-brain-skills plugin — 248 skills, 3 agents, 1 plugin shipped together

Good fit Use it to relaunch Chrome, Firefox, Claude Desktop, Claude Code, Codex, Cursor, or another requested application on Windows, macOS, or Linux.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonydzi/second-brain-starter-kit/restart
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tonydzi/second-brain-starter-kit --skill restart
Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 248 skills, 3 agents, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for restart

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/restart/github.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/restart)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/restart"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/restart/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for restart

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/restart"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/restart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,623 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02623
Opus 5.5 $0.00017 $0.01049
Sonnet 5.5 $0.00009 $0.00525
Haiku 4.5 $0.00004 $0.00262

Measured 6d ago against content hash e9ed7f08531c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

restart scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/restart/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/restart <цель>

Одна команда для управляемого перезапуска. Исполнитель: вызвавший агент на своей машине. Вход: приложение и необязательный профиль/экземпляр. Выход: прежний экземпляр завершён, новый отвечает, сохранённый контекст и ограничения названы. Рельса: локальные инструменты ОС и существующие скиллы, без платного API. Портируемость: Windows, macOS, Linux; выбирать штатные инструменты текущей ОС.

Выбор цели

Регистр свободный: /Restart Firefox = /restart firefox.

Запрос Что выбирать Существующий маршрут
chrome / хром Google Chrome, нужный профиль ../chrome-fix/SKILL.md
firefox / фаерфокс Mozilla Firefox, нужный профиль локальные средства браузера и ОС
браузеры / browsers запущенные обычные браузеры пользователя перечислить экземпляры, затем по одному
claude desktop / клод десктоп приложение Claude Desktop ../claude-repair/SKILL.md
claude code / клод код конкретная CLI/GUI-сессия Claude Code сохранить session id и способ resume
codex / кодекс конкретный Codex Desktop или CLI сохранить chat/session id и способ продолжения
cursor / курсор приложение Cursor и рабочая папка ../cursor-repair/SKILL.md
antigravity / антигравити установленное приложение Antigravity определить exe/bundle/service и штатный запуск
edge, brave, opera, vivaldi ровно названный браузер тот же цикл сохранения и перезапуска
другая цель установленное приложение либо конкретный сервис сначала найти реальный запуск и потребителей

Голый /restart требует одного короткого уточнения цели. «Claude» без уточнения не означает все процессы claude: проверить, какое приложение/сессия зависло; если одновременно видны Desktop и Code и контекст не различает их, уточнить. Группа «браузеры» не включает Electron-приложения, WebView, Screenpipe и агентов. Без физического узла в запросе работать локально. Перезагрузка ОС: ../reboot/SKILL.md.

Цикл выполнения

  1. Определить экземпляр. Снять PID, время создания, путь exe/bundle, дерево процессов, профиль/рабочую папку, видимые окна и текущую нагрузку. Для браузера перечислить вкладки через уже разрешённый браузерный коннектор либо видимый UI. Ради перечисления не включать CDP/remote debugging/Marionette, не читать sessionstore/Sessions/SNSS, cookies или содержимое профиля. Если разрешённой двери нет, написать «вкладки не перечислены» и назвать риск потери контекста; не обходить ограничение. Не считать число процессов числом вкладок. Память/старые заметки дают гипотезы; цель и текущее состояние подтверждаются живым прибором. Приложение не запущено: пропустить закрытие, выполнить шаги 5–6 как запуск с исходом already-stopped.
  2. Сохранить продолжение. Браузер: сохранить список обычных несекретных ссылок в локальном несинкаемом ~/.claude/restart-state/<UTC>-<target>-<UUID>.json, доступном только пользователю (ACL пользователя в Windows, mode 600 на Unix). Проверить границу синка перед записью. URL с токенами, авторизацией, подписанными параметрами либо сомнительным содержимым не сохранять даже сюда: для такой вкладки записать только название и домен, без пути, query и fragment; отметить невозможность автоматического восстановления. Содержимое списка не помещать в отчёт, волт, закладки синкаемого профиля или счётчик. Путь к локальному файлу назвать в отчёте, чтобы пользователь мог найти сохранённое. Автоматическую чистку файлов не добавлять. Предупредить про несохранённые формы; для Chrome выполнить контроль cookies из chrome-fix до/после. Ссылки не сохраняют черновики, прокрутку и состояние форм. Редактор: штатно сохранить открытые документы; CLI/агент: checkpoint, session id, точный путь проекта и поддерживаемая команда resume. Не читать значения секретов.
  3. Закрыть штатно. Использовать разрешённый текущим harness инструмент и штатный Quit/Exit, сигнал завершения либо менеджер конкретного сервиса. Дать до 30 секунд. Диалог о несохранённых данных не обходить. Не закрывать чужие automation-профили и активные сессии соседних агентов без согласования с владельцем.
  4. Если не вышел. Перечитать PID, время создания, exe и окна. Завершить принудительно можно только доказанно зависший выбранный экземпляр в рамках явного приказа на его перезапуск и после сохранения доступного контекста. Фоновая работа без окна сама по себе не доказывает зависание. Не применять killall/taskkill по одному имени ко всем процессам; соседние экземпляры оставить. Если есть риск потерять несохранённое, назвать его и запросить решение.
  5. Запустить заново. Сначала доказать выход старого экземпляра. Запустить тот же продукт, профиль и проект, не подменять приложением с похожим именем. Обычный restart восстанавливает контекст по настройкам продукта; он не закрывает навсегда все вкладки. Чистый старт с закрытием вкладок только по явному запросу.
  6. Проверить результат. Новый PID/время старта плюс ответ интерфейса или health конкретного сервиса. Одного Start-Process/rc=0 недостаточно. Проверить сохранённый контекст; если обычное восстановление вкладок не сработало, восстановить только отсутствующие несекретные страницы из сохранённого списка, предварительно сравнив с текущими вкладками (кроме явно заказанного чистого старта). Ссылки с токенами/одноразовыми параметрами не открывать повторно автоматически. Если жаловались на тормоза, сравнить CPU/RAM до/после через /perf. Cookies count не доказывает живой логин. Если UI не проверен, так и написать.

Read the full file on GitHub · 151 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed e9ed7f08531c
  2. 8d ago First seen · 151 lines · 43 tokens per session scan A c599543a41fa

Subscribe to this mod's changes

restart is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (12 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 2,623 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.

Related

Other skills, from other repositories

defuddle

Plan optional Defuddle extraction and retain already available local source files through reviewed filesystem capture. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion. Network extraction remains unavailable until an enforcing…

AgriciDaniel/claude-obsidian · 61 tokens

superbrain-distill

Internal SuperBrain skill — run by the detached capture child to distill a session-event delta into routed Obsidian notes. Not for direct user invocation.

m3talux/superbrain · 36 tokens

email-sorting

Customize and use a human-reviewed email sorting system for Gmail, Google Workspace, Outlook, Microsoft 365 or another connected mailbox. Use for first-time setup, folder or label recommendations from a read-only email sample, inbox triage, and applying approved sorting batches. Not for sending, replying to or…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 66 tokens

last30days-plus

The last30days research skill with your own subscriptions added as extra research lanes, driven inside Agent Chrome. Grok (Private Chat) for X/Twitter, Perplexity Deep research (Incognito) for the web and news, and Meta's Muse for Facebook groups and Instagram (experimental). Runs the upstream last30days skill…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 152 tokens

muse-browser

EXPERIMENTAL. Research Facebook and Instagram (trends, Reels, creators, and conversations in Facebook groups you belong to) by asking Meta's own AI agent Muse (muse.ai) inside Agent Chrome, in a fresh side chat with a read-only instruction. Muse searches Facebook, Instagram and Threads posts your account can see and…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 159 tokens

perplexity-browser

Research with your own Perplexity subscription inside Agent Chrome instead of the paid Perplexity API. Quick cited web answers (Search) or Perplexity Deep research reports with dozens of sources, always in Incognito and with a neutral preface so your personalization and memory don't shape the answer. Use when asked to…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 140 tokens