AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Logging Helper

skill-kissrosecicd-hub-agents-evolution-logging-helper · by kissrosecicd-hub

Стратегия логирования, форматы, уровни, отладка через логи, поиск edge cases и багов. Триггеры: «добавь логи», «логирование», «trace», «отслеживай баг», «edge case», «найди причину», «почему упало», «что тут произошло», «логирование в продакшене».

No reviews yet
0 installs
25 views
0.0% view→install

Install

$ agentstack add skill-kissrosecicd-hub-agents-evolution-logging-helper

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-kissrosecicd-hub-agents-evolution-logging-helper)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Logging Helper? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Logging Helper — логирование как инструмент отладки

Контекст

Логи — первый инструмент отладки, не костыль. Логгируй везде: вход/выход функций, ключевые состояния, ошибки, тайминги, неочевидные ветки. Помогают находить баги и edge cases до того, как пользователь заметит.

Стратегия

Что логировать

  • Входные параметры функций (валидация)
  • Возвращаемые значения (особенно при неочевидных результатах)
  • Исключения и стектрейсы
  • Переходы между состояниями
  • Edge cases (пустые массивы, null, boundary values)
  • Тайминги критичных операций (DB queries, API calls, heavy computations)
  • Retry-попытки и fallback-ветки

Уровни логирования

| Уровень | Когда | Пример | |---------|-------|--------| | error | Критичные сбои, требующие вмешательства | DB connection lost, API timeout | | warn | Подозрительное, но система работает | Deprecated API, cache miss > 50% | | info | Ключевые события бизнес-логики | User logged in, order created | | debug | Детальная трассировка для отладки | Function entry/exit, intermediate values |

Формат

[TIMESTAMP] [LEVEL] [MODULE] message — context: {key: value}
  • Машина-читаемо (парсится локи)
  • Человек-читаемо (понятно без декодера)
  • ISO 8601 для timestamp
  • JSON для context — удобно для grep/jq

Алгоритм отладки через логи

  1. Добавь логи в подозрительные места
  2. Воспроизведи проблему
  3. Проанализируй вывод — найди аномалию
  4. Убери лишнее, оставь ключевые точки контроля
  5. Зафиксируй edge case в тесте

Логирование в продакшене

Логи → Мониторинг → Алерты

  • Не надейся на «проверю руками»
  • Критичные error-логи → алерт (email, Slack, Telegram)
  • Паттерны ошибок → дашборд
  • Ротация логой — не забивай диск

Триггеры

«добавь логи», «логирование», «trace», «отслеживай баг», «edge case», «найди причину», «почему упало», «что тут произошло», «логирование в продакшене»

Примеры

Правильно:

async function processOrder(order: Order) {
  log.debug('[ORDER] processing start', { orderId: order.id, items: order.items.length });
  
  try {
    const result = await validateOrder(order);
    if (!result.valid) {
      log.warn('[ORDER] validation failed', { orderId: order.id, reasons: result.errors });
      return { status: 'rejected', errors: result.errors };
    }
    
    log.info('[ORDER] processed successfully', { orderId: order.id });
    return { status: 'ok' };
  } catch (err) {
    log.error('[ORDER] unexpected error', { orderId: order.id, error: err.message, stack: err.stack });
    throw err;
  }
}

Неправильно:

async function processOrder(order: Order) {
  // а что тут случилось? никто не знает
  const result = await validateOrder(order);
  return result; // вернул — и ладно
}

Секреты в логах (НИКОГДА):

log.info('auth', { token: user.token, password: user.password }); // СЕКРЕТЫ!

Маскирование:

log.info('auth attempt', { email: user.email, apiKey: mask(user.apiKey) });
// apiKey: 'sk-****abcd'

Ссылки

  • AGENTS.md правило #19

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.