strategic-compact

Prompt deliberate context compaction at logical boundaries during Salesforce Apex development sessions.

13|2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill strategic-compact-jiten-singh-shahi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/jiten-singh-shahi/salesforce-claude-code/tree/main/.cursor/skills/strategic-compact
Command: npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill strategic-compact-jiten-singh-shahi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Strategic Compact Skill helps teams manage context during long Salesforce Apex development sessions by prompting deliberate manual compaction at logical boundaries to preserve critical org context, metadata, and planning artifacts.

Core Features & Use Cases

  • Strategic prompts to compact at defined boundaries (e.g., after org exploration, after completing a feature) to keep context intact.
  • Configurable thresholds and reminder cadence to balance productivity and context preservation.
  • Supports multi-session workflows by saving and restoring plan-state across sessions.

Quick Start

Use /compact at a strategic boundary to preserve context during an ongoing Apex development session.

Frequently Asked Questions about strategic-compact

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

FAQPage Schema
How do I preserve context during long Apex development sessions?

To preserve context during long Apex development sessions, use strategic manual compaction at logical boundaries like after org exploration or completing a feature to keep critical metadata and planning artifacts intact.

Why does context collapse during extended Salesforce Apex workflows?

Context collapse happens during extended Salesforce Apex workflows because the session accumulates excessive metadata, requiring deliberate compaction at logical boundaries to prevent the loss of critical org context and planning artifacts.

How do I compact context at strategic boundaries in Apex development?

Compact context in Apex development by applying the skill across org exploration, planning, implementation, and domain transitions, enforcing a PreToolUse hook with configurable thresholds to trigger deliberate manual compaction.

Can I configure compact thresholds for Salesforce session context management?

Yes, you can configure compact thresholds and reminder cadence for Salesforce session context management to balance productivity and context preservation during ongoing Apex development.

Does context compaction work across domain transitions like Apex to LWC?

Yes, context compaction works across domain transitions like Apex to LWC by applying deliberate manual compaction at these boundaries to preserve critical org context and metadata.

What is the best way to manage context across multiple Salesforce development sessions?

The best way to manage context across multiple Salesforce development sessions is using strategic compaction to save and restore plan-state across sessions, ensuring continuity of planning artifacts and org metadata.