context-worker
БесплатноБез исполняемых скриптовНе проверенContext management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Context Worker
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
When to Use This Skill
Features that modify context management hooks, memory consolidation, daily log infrastructure, mtime-based locking, or session-counting triggers.
Work Procedure
Read the feature description carefully. Understand the exact behavior changes and how they integrate with existing memory infrastructure.
Read source files. Before modifying:
- Read ALL files mentioned in the feature's preconditions and description
- Read
AGENTS.mdfor CC patterns reference and key file locations - Read existing tests for files being modified
Write tests first (red). Create test file at
tests/lib/memory/<descriptive-name>.test.cjsortests/hooks/<name>.test.cjs. Tests must cover:- Happy path (expected behavior)
- Edge cases (missing files, empty data, corrupted input)
- Fail-open behavior (errors caught, session not crashed)
- Backward compatibility (existing API still works) Use temp directories for filesystem isolation. Run tests — they should FAIL.
Implement changes.
- Memory operations MUST be fail-open (try/catch, exit 0)
- Use
path.join()for all paths (Windows compatibility) - Use UTC for all timestamps
- Use
fs.appendFileSyncfor daily log appends - Use
atomicWriteSyncfor critical file updates - Preserve backward compatibility with existing APIs
Run tests (green). All tests pass.
Run lint and format.
pnpm lint npx prettier --check <modified-files>Run related existing tests for regression.
Example Handoff
{
"salientSummary": "Created daily log writer with UTC timestamped entries, recursive dir creation, and fail-open behavior. Integrated into session-end hook. 18 tests.",
"whatWasImplemented": "appendDailyLog() in memory-daily-log.cjs creates logs/YYYY/MM/YYYY-MM-DD.md directories recursively, appends timestamped bullets, sanitizes content. Session-end hook calls appendDailyLog after STM→MTM promotion.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "node --test tests/lib/memory/daily-log.test.cjs", "exitCode": 0, "observation": "18 tests passing" },
{ "command": "pnpm lint", "exitCode": 0, "observation": "0 errors" }
]
}
}
When to Return to Orchestrator
- Session-end hook has a significantly different structure than expected
- File locking mechanism conflicts with the new approach
- Existing memory-tiers API would need breaking changes
Установить context-worker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл context-worker?
Context management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
Как установить скилл context-worker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл context-worker запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic