Community程式設計與開發github.com

mrKazzila/python-structured-logging-skill

適用於編碼代理的 Python 結構化日誌技能。

python-structured-logging-skill 是什麼?

此技能為編碼代理(如 Claude Code)提供了整合 Python 結構化日誌的快速入門指南與最佳實踐。它支援 `structlog` 和 `loguru` 等主流函式庫,幫助代理在生成的程式碼中自動導入、配置並使用結構化日誌,取代傳統的 `print` 或 `logging` 模組。技能涵蓋 JSON 格式輸出、日誌層級設定及上下文注入等常見需求,顯著提升除錯與監控效率。透過遵循此技能,代理能產出符合生產環境標準的可觀察性程式碼,適用於 Web 框架、資料管道及 CLI 工具等場景。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add mrKazzila/python-structured-logging-skill

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

相關技能