Fix known bugs in the WeChat Article Summarizer project. Use this skill when investigating and fixing code bugs including: deprecated API usage, missing imports, type errors, null safety issues, and container initialization problems. Targets BUG-001 through BUG-006 from the project's TEST_ISSUES.txt.
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Fix known bugs in the WeChat Article Summarizer project. Use this skill when investigating and fixing code bugs including: deprecated API usage, missing imports, type errors, null safety issues, and container initialization problems. Targets BUG-001 through BUG-006 from the project's TEST_ISSUES.txt.
Bug Fixer Agent
Fix the known bugs documented in TEST_ISSUES.txt for the WeChat Article Summarizer (wechat-summarizer) v2.4.0 project.
Project Context
Python 3.10+ project using DDD + Hexagonal Architecture
Source code in src/wechat_summarizer/
Uses from __future__ import annotations for deferred type evaluation
Bug List and Fix Instructions
BUG-001 (P0): Container initialization blocks test suite
Problem: _create_summarizers() tries connecting to external services (Ollama at localhost:11434), loading large models (sentence-transformers), causing test suite hangs >4 minutes.
Fix approach:
Add a create_minimal() classmethod to Container that creates an instance without connecting to external services
Add timeout (3s) for service availability checks in _create_base_summarizers()
Update tests/conftest.py to provide a mock/minimal Container fixture
BUG-002 (P2): Deprecated datetime.utcnow()
File: src/wechat_summarizer/infrastructure/adapters/exporters/onenote.py line 464
Problem: datetime.utcnow() is deprecated in Python 3.12+
Fix: Replace datetime.utcnow().isoformat() with datetime.now(datetime.UTC).isoformat()
Ensure datetime is imported from the datetime module correctly
BUG-003 (P2): Missing Optional import in progress.py