mcpField
C
context-cleanup

context-cleanup

github.com/jsonlee12138Agent workflows3354 installsUpdated 32w ago
Repository

About context-cleanup

A standalone skill for controller and worker agents that cleans session context and re-anchors work to project files. It uses role-specific entry files and limits reading to relevant rules and task artifacts rather than scanning all context.

Key features

  1. 01Controller and worker workflows
  2. 02Role-specific required entry files
  3. 03Selective rule and artifact reading
  4. 04Session context stabilization
  5. 05File-based task re-anchoring

Use cases

  1. 01Re-anchor context after a pause
  2. 02Stabilize context during a phase transition
  3. 03Resume work after session drift

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/jsonlee12138/agent-team --skill context-cleanup

After installing, type/context-cleanupin Claude Code to confirm it loaded.

Details

From the project README

context-cleanup

Audience

  • controller
  • worker

Triggers

  • clean context
  • session drift
  • re-anchor context
  • resume after pause
  • phase transition

CLI Binding

  • agent-team context-cleanup
  • This skill is a standalone context-cleanup and file re-anchoring entry.

Required Entry

  • controller/main: MUST read .agent-team/rules/index.md first.
  • worker: MUST read worker.yaml first.

Expansion

  • controller/main: read only the rule files matched from .agent-team/rules/index.md, then the current workflow/task artifacts.
  • worker: read task.yaml after worker.yaml, then context.md and referenced materials only when needed.

Hard Rules

  • Clean session context, not file contents.
  • Never skip the required entry file.
  • Never default to scanning all rule bodies or all task context files.
  • Never describe this skill as context compression.

Boundary

  • Use this skill to stabilize context and re-anchor from files.
  • Use worker-recovery for routine worker task resume when the problem is simply recovering the current assignment.

Comments

Markdown supported