consolidate

Consolidate the ctx codebase to fix code-level drift and enforce project conventions.

74|14|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/ActiveMemory/ctx --skill consolidate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: consolidate
Source: https://github.com/ActiveMemory/ctx/tree/main/.claude/skills/consolidate
Command: npx skills add https://github.com/ActiveMemory/ctx --skill consolidate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Consolidation detects and fixes code-level drift between sessions by aligning the ctx codebase with project conventions, reducing rework and drift-induced bugs.

Core Features & Use Cases

  • Automates code-level consolidation passes to enforce consistency with project standards across the repository.
  • Validates preconditions such as a clean working tree and passing tests before performing changes.
  • Prepares code for releases by addressing drift before tagging.

Quick Start

Trigger a consolidation pass to align all code with project conventions.

Frequently Asked Questions about consolidate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix code drift in a Go codebase after a sprint?

Fix code drift by running a consolidation pass that audits your Go source files against project conventions and automatically updates them for consistency. This reduces rework and drift-induced bugs before tagging a release.

When should I run a code consolidation pass?

Run a code consolidation pass after three or more sessions since your last alignment, before tagging a release, or when a session touched many files. This timing ensures conventions are enforced when drift is most likely to accumulate.

How do I enforce Go code conventions automatically before a release?

Enforce Go code conventions automatically by triggering a consolidation pass that implements and runs baseline convention checks. It audits your repository and updates files to align with project standards before you tag.

What preconditions are required before consolidating source code?

Consolidating source code requires a clean working tree and passing tests as preconditions. The process validates these states before performing any convention alignment changes to ensure safe integration.

Can I use code consolidation to reduce rework from lint violations?

Yes, code consolidation reduces rework by running baseline audits for lint and convention checks, then updating files to align with project standards. This catches drift-induced issues early rather than during later review stages.

What is code-level drift and how does consolidation fix it?

Code-level drift is the inconsistency that accumulates between development sessions. Consolidation fixes it by auditing your codebase against project standards and automatically updating files to restore convention alignment.