Install
$ agentstack add skill-kissrosecicd-hub-agents-evolution-logging-helper ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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
Алгоритм отладки через логи
- Добавь логи в подозрительные места
- Воспроизведи проблему
- Проанализируй вывод — найди аномалию
- Убери лишнее, оставь ключевые точки контроля
- Зафиксируй 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.
- Author: kissrosecicd-hub
- Source: kissrosecicd-hub/agents-evolution
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.