Context hygiene enforcement. Detects stale or absent session state, exceeded failed-hypothesis budgets, and missing codebase briefs before non-trivial implementation tasks. Wired into the conductor's write and review operations.
From clean-code-codexnpx claudepluginhub mikecubed/agent-orchestration --plugin clean-code-codexThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
Language-agnostic. Fires on write and review operations regardless of language.
Severity: WARN | Languages: all | Source: CCC
What it prohibits: Starting a non-trivial implementation or review session when
.agent/SESSION.md is absent or its last-updated frontmatter field is more than
24 hours old, without first confirming intent with the developer.
Prohibited patterns:
# Absent session file
.agent/SESSION.md does not exist
# Stale session file
last-updated: "2026-01-01T10:00:00Z" # > 24h ago, session resumed silently
Exemptions:
Detection:
.agent/SESSION.md if it exists; check the last-updated frontmatter fieldlast-updated is > 24 hours before the current time: warn and ask the developer
to confirm the session is intentionally resumedagent_action:
CTX-1 (WARN): No active session state found (SESSION.md absent or stale).Severity: WARN | Languages: all | Source: CCC
What it prohibits: Continuing implementation or debugging when
## Failed Hypotheses in .agent/SESSION.md contains 3 or more entries, without
a context-hygiene pause to consolidate state and prune dead ends.
Prohibited patterns:
# SESSION.md — too many failed hypotheses without a pause
## Failed Hypotheses
- "Caching layer is the bottleneck"
- "Race condition in auth middleware"
- "Database connection pool exhaustion"
# ^ 3 entries: pause required before forming new hypotheses
Exemptions:
current-phase: "context-hygiene-pause" was set and cleared)failed-hypotheses array has < 3 entriesDetection:
.agent/SESSION.md ## Failed Hypotheses section## Decisionsagent_action:
CTX-2 (WARN): {n} failed hypotheses recorded — context-hygiene pause recommended..agent/SESSION.md and start fresh with only confirmed facts."Severity: WARN | Languages: all | Source: CCC
What it prohibits: Beginning a non-trivial implementation task (new module, new service, architectural change) without a recorded codebase brief or scout discovery summary in the session state or task context.
Prohibited patterns:
# Starting "implement new auth service" with:
# - No scout brief
# - No relevant files listed
# - No dependency map
# - SESSION.md Current Task section is empty or generic
Exemptions:
## Current Context section references a prior scout runDetection:
.agent/SESSION.md ## Current Context sectionagent_action:
CTX-3 (WARN): Non-trivial implementation task with no codebase brief recorded.Report schema: see skills/conductor/shared-contracts.md.