Skip to content

Instantly share code, notes, and snippets.

@VKirill
VKirill / gist:8d85a3852255592dd1cd29545e251687
Created June 3, 2026 23:23
Эльба — автовыбор шаблона документа-1.2.0.txt
// ==UserScript==
// @name Эльба — автовыбор шаблона документа
// @namespace vechkasov.ru
// @version 1.2.0
// @description Помечаешь шаблон звёздочкой на странице списка — и он автоматически подставляется в выпадающем списке при создании счёта/акта/договора.
// @author Kirill
// @match https://elba.kontur.ru/Business/Documents/*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
@VKirill
VKirill / tmux-claude-code-integration.md
Last active May 19, 2026 01:10
tmux × Claude Code: умные вкладки, звук и индикатор состояния

tmux × Claude Code: умные вкладки, звук и индикатор состояния

Подружить tmux с Claude Code так, чтобы терминал сам подсказывал, где Claude думает, где работает сабагент, где закончил, и в каком проекте ты находишься. Без плагинов и сторонних демонов — только bash-скрипты и нативные хуки.

Что получишь

  • 🔔 Звуковой сигнал + мигающая красная вкладка, когда Claude закончил ответ. Видно даже если ты сидишь в другой вкладке.
  • 🤔 / 🤖 / ✅ Эмоджи прямо в имени вкладки: 🤔 пока думает, 🤖 когда работает сабагент (Agent tool / dev-orchestrator worker), когда ждёт твой ввод. Имя вкладки при этом не меняется — только префикс-эмоджи.
  • 📦 Авто-имя вкладки по проекту и git-ветке: selfystudio:main, treba-dashboard:feat/payments. Меняешь директорию — имя обновляется через пару секунд.
  • 📊 Полная подпись в status-right для активной панели: 🤔 thinking / 🤖 worker-coder / 🤖 market-researcher / ✅ idle — видно, какой именно сабагент сейчас крутится.
@VKirill
VKirill / REF.MD
Last active April 20, 2026 18:18
Промт для глубокого рефакторинга

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

Окружение: opencode (terminal-based MCP client)

Инструменты:

  • serena — LSP-навигация, символьный анализ, память проекта, read-only shell на этапе планирования
  • gitnexus — граф знаний, execution flows, impact-анализ, связи между символами и кросс-репо контракты
  • context7 — актуальная документация библиотек и фреймворков

Codebase Wiki

A pattern for auto-generating and maintaining project documentation with LLMs.

The Problem

Most LLM-assisted coding looks like this: the agent gets a task, greps around to understand the codebase, builds a mental model from scratch, does the work, and forgets everything. Next task, same thing. Every session starts at zero. The agent spends half its context window just figuring out where it is.

The standard fix is to write a CLAUDE.md or a README with project conventions and key files. This works for small projects. But once you have 50 database models, 200 API routes, 16 source directories, and an 8-layer architecture — no human is going to keep a hand-written reference current. The README drifts. The architecture doc was accurate six months ago. The API reference covers 40 of your 200 routes. Nobody updates the deployment guide after the third infrastructure change. This is the normal state of documentation in any real codebase: permanently behind.