Agent skill

Compact Now

by mtarcure in mtarcure/claude-vibe-squad

Operator-triggered proactive compaction — Chrono externalizes load-bearing state (active decisions, open tasks, next action) to a snapshot + a durable Vault learning note before invoking Claude…

MITAuto-check passed

Install Compact Now

skills CLI
$ npx skills add mtarcure/claude-vibe-squad --skill compact-now -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mtarcure/claude-vibe-squad compact-now --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/chrono-vault/skills/compact-now .claude/skills/compact-now && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
compact-now
GitHub stars
163
Token cost
~1.6k tokens
SKILL.md length
346 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Operator-triggered proactive compaction — Chrono externalizes load-bearing state (active decisions, open tasks, next action) to a snapshot + a durable Vault learning note before invoking Claude…

  • Works in 6 steps: Reads the live board partition via… → If blockers exist (live dispatches),… → Externalizes load-bearing state to the… → …
  • The operator says /compact-now / compact now
  • SKILL.md covers When to invoke, When NOT to invoke, Implementation and Cross-references
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Compact Now is an agent skill from mtarcure/claude-vibe-squad. Operator-triggered proactive compaction — Chrono externalizes load-bearing state (active decisions, open tasks, next action) to a snapshot + a durable Vault learning note before invoking Claude Code's native /compact, then resumes from the snapshot. Use when the operator says "/compact-now" / "compact now" or when Chrono has flagged context pressure against shared/lifecycle.md rule 8.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Multi-model AI orchestration where behaviour is Markdown, not code. One coordinator routes scoped task packets to 71 role-based specialists across 5 model families (Codex /… The licence is MIT.

When your agent uses it

  • The operator says /compact-now / compact now
  • Chrono has flagged context pressure against shared/lifecycle.md rule 8

Example prompts

  • “/compact-now”
  • “compact now”
  • “/compact-now”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Reads the live board partition via chrono_state.registry.registry_view() and confirms no
  2. If blockers exist (live dispatches), surfaces them to the operator and asks whether to proceed
  3. Externalizes load-bearing state to the Vault via the current record("learning", {...}) writer — captures active decisions (authority)…
  4. Snapshots the same state to _state/chrono/compaction/.json via chrono_state.compaction.snapshot().
  5. Invokes Claude Code's native /compact.
  6. After compact, reads the snapshot via chrono_state.compaction.recover() and re-anchors on the next operator turn — never bulk-re-reading…

What it can do on your machine

Read from SKILL.md and the folder at commit 7bd69f8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Compact Now loads about 1.6k tokens when it runs. Until then it costs about 100 tokens; SKILL.md has 346 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~100
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mtarcure/claude-vibe-squad at commit 7bd69f8, republished under its MIT licence (© mtarcure). 346 words, ~1,561 tokens.

Download SKILL.mdSave it as .claude/skills/compact-now/SKILL.md (or your agent's skills folder).
name
compact-now
description
Operator-triggered proactive compaction — Chrono externalizes load-bearing state (active decisions, open tasks, next action) to a snapshot + a durable Vault learning note before invoking Claude Code's native /compact, then resumes from the snapshot. Use when the operator says "/compact-now" / "compact now" or when Chrono has flagged context pressure against shared/lifecycle.md rule 8.
type
skill

/compact-now

Chrono-side proactive compaction. The operator triggers via slash phrase. Chrono:

  1. Reads the live board partition via chrono_state.registry.registry_view() and confirms no live work is in flight. Whether context pressure warrants compacting is Chrono's judgment against shared/lifecycle.md § 8. The context tripwire hook (bin/context-tripwire.sh) already reports the measured token count on every prompt once it passes 400k, so a WARN/HARD line in the current turn is the direct signal; below that, pressure is inferred from the § 9 proxy signals.
  2. If blockers exist (live dispatches), surfaces them to the operator and asks whether to proceed anyway — likewise for any unclassified registry status, which the partition cannot vouch for.
  3. Externalizes load-bearing state to the Vault via the current record("learning", {...}) writer — captures active decisions (authority), open tasks, pending approvals, and the next action.
  4. Snapshots the same state to _state/chrono/compaction/<session>.json via chrono_state.compaction.snapshot().
  5. Invokes Claude Code's native /compact.
  6. After compact, reads the snapshot via chrono_state.compaction.recover() and re-anchors on the next operator turn — never bulk-re-reading conversation history.

When to invoke

  • Operator types /compact-now (explicit)
  • Operator types compact now / please compact / let's compact in prose (intent-recognition)
  • After Chrono has flagged context pressure against shared/lifecycle.md § 8 and the operator nudges affirmatively

When NOT to invoke

  • Live dispatches running (registry_view()["live"] non-empty) — surface blockers first
  • Mid-task (Chrono still processing) — wait for a task boundary
  • Below the shared/lifecycle.md § 8 threshold — no benefit, just cost

Implementation

Chrono runs this skill inline (not a subagent dispatch), operator-triggered. It uses the chrono_state helpers (in scripts/python/chrono_state/) and Chrono's existing chrono-vault MCP access. A PreCompact hook is OPTIONAL and only fires if .claude/settings.json declares one — do not depend on it; externalize eagerly here.

python
# Chrono inline (not dispatched)
import json, sys
sys.path.insert(0, "scripts/python")
from chrono_state.compaction import snapshot                   # noqa: E402
from chrono_state.registry import registry_view                # noqa: E402
from chrono_state.decisions import active_decisions            # noqa: E402

# ONE classification pass over the LIVE registry (_state/active-tasks.json).
# registry_view() is the current API for this gate. The dead bounded-registry helper
# load_active() was removed; it read _state/tasks/active.json, which the live board
# does not feed. registry_view() partitions by the real vocabulary in
# registry.LIVE_STATUSES / DEFERRED_STATUSES; never hand-write status literals here,
# or the gate filters on a status the board does not emit and passes vacuously.
board = registry_view()

# Live work is a hard blocker and IS mechanical -- the board knows it, so ask the
# board. Whether context pressure warrants compacting at all is Chrono's judgment
# against shared/lifecycle.md rule 8; there is no predicate for it and no token
# counter to feed one (rule 9: proxy signals only).
blockers = [t["id"] for t in board["live"]]
if blockers:
    surface_to_operator(f"Blockers: {blockers}. Proceed anyway?")
    if not operator_confirms:
        return
# An unclassified status is owed work the partition cannot see — surface it loudly
# rather than compacting over it (same contract as the resume capsule).
if board["unclassified"]:
    surface_to_operator(f"UNKNOWN registry statuses: {board['unclassified']}. Proceed anyway?")

state = {
    "next_action": next_action,
    "active_decisions": active_decisions(),   # AUTHORITY — not Vault evidence
    "active_tasks": board["live"],
    "deferred_tasks": board["deferred"],      # owed work; stalled, not executing
    "latest_turn": latest_operator_turn,
    "pending_approvals": pending_approvals,
}

# 1) Durable Vault note via the CURRENT API — record(note_type, fields), NOT the stale
#    record_finding(role=, canonical_name=, ...) signature. fields require title/body/
#    target/attack_class; unknown fields are rejected.
mcp__chrono_vault__record("learning", {
    "title": f"compact-now externalization ({session_id})",
    "body": json.dumps(state, indent=2),
    "target": "chrono-orchestrator",
    "attack_class": "session-continuity",
    "keywords": ["compaction", "resume", "chrono"],
    "source_task": current_task_id,
})

# 2) Atomic snapshot to _state/chrono/compaction/<session>.json
snapshot(session_id, state)

# 3) Invoke Claude Code's native /compact
trigger_native_compact()

# 4) After compact: recover ONLY from the snapshot, never bulk-re-read history.
#    from chrono_state.compaction import recover; recover(session_id)

Cross-references

  • Snapshot helpers: scripts/python/chrono_state/compaction.py (snapshot, recover). The threshold policy is prose, not code: shared/lifecycle.md § 8.
  • Decision authority (separate from Vault): scripts/python/chrono_state/decisions.py
  • Live board partition: scripts/python/chrono_state/registry.py (registry_view — live / deferred / unclassified; LIVE_STATUSES is the only status vocabulary. The dead bounded-file helper load_active() was removed; registry_view() is the correct API for this blocker gate.)
  • Resume capsule generator: scripts/python/chrono_state/resume.py
  • Vault writer API: record(note_type, fields) — see plugins/chrono-vault/README.md
  • Resume canary (acceptance proof): scripts/python/tests/test_resume_canary.py
  • PreCompact hook: OPTIONAL; only if .claude/settings.json declares one

© mtarcure, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/chrono-vault/skills/compact-now of mtarcure/claude-vibe-squad.

Open the folder on GitHubat commit 7bd69f8

Compare with similar skills

Compact Now next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Compact Now compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Compact Now this skillmtarcure/claude-vibe-squad163—~1.6kAutomated safety check: PassMIT
Strategic Compactaffaan-m/ECC275k1 repos~2.1kAutomated safety check: PassMIT
It Operationsdavila7/claude-code-templates32k1 repos~3.7kAutomated safety check: PassMIT
Operator Approval Loopaffaan-m/ECC275k—~3.3kAutomated safety check: PassMIT
Business Operations Skillsalirezarezvani/claude-skills28k—~2.3kAutomated safety check: PassMIT
External Linksthedaviddias/Front-End-Checklist74k—~773Automated safety check: PassMIT

Similar skills

  • Strategic Compact

    affaan-m/ECC

    Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

    275k GitHub starsUsed in 1 repo~2.1k tokens
    Agent WorkflowsAuto-check passed
  • It Operations

    davila7/claude-code-templates

    Manages IT infrastructure, monitoring, incident response, and service reliability.

    32k GitHub starsUsed in 1 repo~3.7k tokens
    DevOps & CloudAuto-check passed
  • Operator approval contract with internal filing notices for agent-drafted outbound messages, hashed drafts, epoch-keyed decisions, durable delivery claims and receipts, and a pre-draft baseline gate.

    275k GitHub stars~3.3k tokensUpdated 3 days ago
    Auto-check passed
  • Business Operations Skills

    alirezarezvani/claude-skills

    A skill your agent uses when running, diagnosing, or designing internal business operations — process documentation, vendor SLAs, capacity planning, internal comms, SOP/runbook authoring…

    28k GitHub stars~2.3k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • External Links

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing content pages for citation quality, suggesting authoritative sources to link for factual claims, or reviewing whether a page's external link attributes…

    74k GitHub stars~773 tokensUpdated 2 days ago
    Research & ScienceAuto-check passed
  • Compact

    catlog22/Claude-Code-Workflow

    Compact current session memory into structured text for session recovery.

    2.1k GitHub stars~3.2k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed

More from mtarcure/claude-vibe-squad

All 17 skills in this repo
  • Systematic Attacking

    mtarcure/claude-vibe-squad

    A skill your agent uses for ALL authorized offensive-security / bug-bounty work — the single method to find, chain, prove, dedup, and package the highest-value (High/Critical) findings across every…

    163 GitHub stars~3.6k tokensUpdated 17 days ago
    Auto-check passed
  • Blind Rediscovery

    mtarcure/claude-vibe-squad

    Operational checklist + helper for blind-rediscovery fan-out work.

    163 GitHub stars~1.6k tokensUpdated 17 days ago
    Auto-check passed
  • Chain Construct Smart Contract

    mtarcure/claude-vibe-squad

    A skill your agent uses when you have a confirmed on-chain vulnerability hypothesis and must demonstrate it with a passing proof-of-concept — author an attacker contract or crafted instruction…

    163 GitHub stars~1.5k tokensUpdated 17 days ago
    Auto-check passed
  • Agent Prompt Engineering

    mtarcure/claude-vibe-squad

    A skill your agent uses when building or revising the system prompt for a product agent and you need an eval-backed boundary, tool-use, grounding, and output contract.

    163 GitHub stars~872 tokensUpdated 17 days ago
    Auto-check: warnings
  • Defi Invariant Check

    mtarcure/claude-vibe-squad

    A skill your agent uses when the audit target is a DeFi protocol — AMM, lending market, yield vault, stablecoin, or perps — and you must author the economic properties generic campaigns miss, such…

    163 GitHub stars~2.5k tokensUpdated 17 days ago
    Auto-check passed
  • Dependency Cycle Audit

    mtarcure/claude-vibe-squad

    A skill your agent uses when module, package, or build dependencies may contain cycles, especially load-order failures, broad rebuilds, or a planned extraction: derive the real graph, compute…

    163 GitHub stars~1.5k tokensUpdated 17 days ago
    Auto-check passed

Questions about Compact Now

What does Compact Now do?

Operator-triggered proactive compaction — Chrono externalizes load-bearing state (active decisions, open tasks, next action) to a snapshot + a durable Vault learning note before invoking Claude…. Compact Now is an agent skill from mtarcure/claude-vibe-squad. Operator-triggered proactive compaction — Chrono externalizes load-bearing state (active decisions, open tasks, next action) to a snapshot + a durable Vault learning note before invoking Claude Code's native /compact, then resumes from the snapshot.

When should I use Compact Now?

Compact Now fits situations like: the operator says /compact-now / compact now; chrono has flagged context pressure against shared/lifecycle.md rule 8.

How do I install Compact Now in Claude Code?

Run `npx skills add mtarcure/claude-vibe-squad --skill compact-now -a claude-code`. Or copy the skill folder (plugins/chrono-vault/skills/compact-now in mtarcure/claude-vibe-squad) into .claude/skills/compact-now in your project. Claude Code loads it when a task matches its description.

How do I install Compact Now in Codex?

Run `npx skills add mtarcure/claude-vibe-squad --skill compact-now -a codex`. Or copy the skill folder (plugins/chrono-vault/skills/compact-now in mtarcure/claude-vibe-squad) into .agents/skills/compact-now in your project. Codex loads it when a task matches its description.

Can I use Compact Now in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mtarcure/claude-vibe-squad --skill compact-now -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/compact-now, .gemini/skills/compact-now, .github/skills/compact-now and .opencode/skills/compact-now in your project.

What does Compact Now need to run?

SKILL.md names no scripts, command-line tools or credentials: Compact Now is instructions for the agent only. Our summary lists: Python 3.

Does Compact Now access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Compact Now safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Compact Now use?

Compact Now is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Compact Now use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Compact Now?

Skills that share tags, products or a category with Compact Now: Strategic Compact (affaan-m/ECC, 275k stars), It Operations (davila7/claude-code-templates, 32k stars), Operator Approval Loop (affaan-m/ECC, 275k stars) and Business Operations Skills (alirezarezvani/claude-skills, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Compact Now?

mtarcure (a GitHub user) maintains it in mtarcure/claude-vibe-squad, which has 163 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on September 21, 2026.

Source: mtarcure/claude-vibe-squad on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.