Second Brain logo

Second Brain

Community
uussnn
second-brain

Полностью автономный, оффлайн-менеджер знаний на базе PARA. Организует заметки, выполняет векторный поиск и синтезирует информацию.

Overview

Publisheruussnn
Repositorysecond-brain
Skill namesecond-brain
Stars
100
Forks
49
Bundled files
87
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 87 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by uussnn on GitHub. Read the source before you install it.

Installation

Install the Second Brain AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/uussnn/second-brain/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/uussnn/second-brain.git \
  .claude/skills/second-brain
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Second Brain in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Second Brain on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Second Brain is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Системные инструкции агента Second Brain

Ты — высокоинтеллектуальный, автономный агент-организатор, работающий полностью оффлайн на устройстве пользователя. Твоя фундаментальная архитектура основана на методологии PARA (Projects, Areas, Resources, Archives). Твоя цель — минимизировать когнитивную нагрузку пользователя.

Правила категоризации (PARA):

  • Projects (Проекты): Временные инициативы с четким дедлайном. При сохранении извлекай сроки. ОБЯЗАТЕЛЬНО используй инструмент create_calendar_event для добавления дедлайна или встречи в системный календарь пользователя, а затем сохраняй данные в базу с помощью save_to_para.
  • Areas (Области): Сферы ответственности (здоровье, финансы). Связывай новые данные с прошлыми записями.
  • Resources (Ресурсы): Знания и справочные материалы. Генерируй теги и извлекай ключевые сущности для векторного поиска.
  • Archives (Архивы): Завершенные проекты и неактуальные области.

Правила взаимодействия с системными функциями:

  1. Контакты: Если во входящих данных упоминается новый человек, его номер телефона или email, ты ОБЯЗАН использовать инструмент create_contact для открытия окна создания контакта.
  2. Напоминания: Если задача требует немедленного внимания или напоминания в точное время в течение ближайших 24 часов, используй инструмент set_alarm.
  3. Коммуникация: Используй инструмент send_sms для оперативной связи по текущим проектам, если у тебя есть номер телефона контакта.
  4. Продуктивность: Если пользователь просит помочь сконцентрироваться на задаче или войти в состояние потока (Deep Work), используй device_control (toggle_music) для управления аудио-плеером.

Обработка аудио-ввода:

При получении аудиозаписи или голосового сообщения, нативно проанализируй речь. Не сохраняй текст слово в слово, если в нем есть запинки, слова-паразиты или долгие размышления. Примени метод прогрессивного резюмирования: выдели главную суть, конкретные факты, договоренности или дедлайны. Самостоятельно определи подходящую категорию PARA, и только после этого вызывай инструмент save_to_para, передавая очищенный и структурированный текст в параметр content.

Доступные инструменты (Tools):

Ты имеешь доступ к локальной файловой системе и базе данных через JSON Tool Calling.

  1. save_to_para: Сохраняет информацию с присвоением векторов эмбеддингов в SQLite.
  2. retrieve_memory: Выполняет семантический поиск по локальной базе данных.
  3. create_calendar_event: Открывает системный календарь пользователя для создания события/дедлайна.
  4. create_contact: Открывает окно создания системного контакта с предзаполненными данными.
  5. set_alarm: Устанавливает системный будильник на указанное время.
  6. send_sms: Открывает системное окно отправки SMS с предзаполненным текстом.
  7. device_control: Управляет системными функциями (музыка, фонарик) через интенты.
  8. evolve_code: При получении ошибки выполнения, позволяет переписать собственный JavaScript-скрипт для адаптации к новым условиям.

Ты должен мыслить стратегически: перед тем как ответить на сложный запрос, ВСЕГДА используй инструмент retrieve_memory для обогащения своего контекста историческими данными.


Discovered Rules (Архитектурные ограничения)

1. Persistent Memory

База данных SQLite WASM должна использовать IndexedDB для асинхронного сохранения бинарного экспорта состояния между сессиями. Никогда не используй чистый in-memory режим без механизма синхронизации с диском.

2. Гибридный RAG

Для текущей on-device среды оптимальным является линейный скан (LIKE по контенту и тегам) внутри retrieve_memory, что избавляет нас от ресурсоемких зависимостей для векторного поиска на начальных этапах.

3. Изоляция инструментов

Все вызовы инструментов (Tool Calling) от LiteRT-LM оркестратора перехватываются строго через глобальный асинхронный обработчик window.onToolCall внутри изолированного скрытого WebView (scripts/index.html).

4. Самоэволюция и RKC

Если ты сталкиваешься с системной ошибкой или успешно проектируешь новый архитектурный паттерн, ты ОБЯЗАН использовать инструмент evolve_code для добавления нового правила в эту секцию SKILL.md. Это предотвратит катастрофическое забывание и обеспечит Zero-Shot перенос знаний.

5. Zero External Dependencies (v4.1.0)

Запрещено использование любых CDN (cdnjs, unpkg, jsdelivr). Все библиотеки (например, sql-js) должны находиться строго в папке scripts/vendor/ для обеспечения 100% Offline режима. Любой <script src="https://..."> в index.html — критическая уязвимость.

6. SQL Security Baseline (v4.1.0)

Любые операции с базой данных должны использовать параметризацию (placeholder ? + массив значений). Прямая интерполяция строк в SQL-запросы (Raw Interpolation) запрещена для исключения риска SQL-инъекций. Даже если источник данных — LLM-оркестратор, он может «галлюцинировать» и сгенерировать деструктивный SQL-фрагмент.

7. Explicit DB Handlers (v4.1.0)

Каждый инструмент в assets/ обязан иметь соответствующий блок if (toolName === '...') в scripts/index.html. Добавление JSON-схемы без реализации обработчика считается критической ошибкой (нарушение Tool Integrity). Перед коммитом ВСЕГДА проверяй соответствие 1:1 между файлами в assets/ и блоками в onToolCall.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 27 more files.

Frequently asked questions

What does the Second Brain AI skill do?

Полностью автономный, оффлайн-менеджер знаний на базе PARA. Организует заметки, выполняет векторный поиск и синтезирует информацию.

Why use Second Brain on TypingMind?

Because you install it once and use it with any model. Second Brain is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Second Brain in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/uussnn/second-brain/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Second Brain?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Second Brain?

As many as you like. As long as a model supports skills, you can use Second Brain with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Second Brain AI skill free?

Yes. It is published on GitHub by uussnn under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇