Agent skill

xc-plugin State Management

by conorluddy in conorluddy/xclaude-plugin

Teaches how xc-plugin saves tokens with progressive disclosure, cached responses and consistent configuration, so large device lists and build logs arrive as summaries first.

MITAuto-check passedAgent Workflows

Install xc-plugin State Management

skills CLI
$ npx skills add conorluddy/xclaude-plugin --skill state-management -a claude-code

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

GitHub CLI
$ gh skill install conorluddy/xclaude-plugin state-management --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/conorluddy/xclaude-plugin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/state-management .claude/skills/state-management && 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
state-management
GitHub stars
183
Token cost
~4k tokens
SKILL.md length
1,001 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Teaches how xc-plugin saves tokens with progressive disclosure, cached responses and consistent configuration, so large device lists and build logs arrive as summaries first.

  • Works in 6 steps: Minimize Context Window Usage → Cache Expensive Operations → Clear State Between Test Runs → …
  • Working with large device lists or build logs without flooding the context window
  • SKILL.md covers Overview, When to Use This Skill, Key Concepts and Workflows, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

This skill explains how the xc-plugin, an iOS development plugin that groups Xcode and IDB tools into MCP servers, manages state to save tokens. Instead of returning a large dataset, a call returns a short summary, a cache_id and a follow-up query for the full details. The skill presents this as cutting token use by 85 to 90 percent for typical queries.

It also describes the cache. Keys are the first 16 characters of a SHA-256 hash of the operation and its parameters, so identical input gives the same cache_id. Storage is in memory with optional disk persistence and a configurable expiry, and list, build and describe operations are cache-friendly. The agent is shown how to query cached data, invalidate stale entries and set consistent build and simulator settings for repeatable test runs.

When your agent uses it

  • Working with large device lists or build logs without flooding the context window
  • Querying or invalidating cached xc-plugin responses
  • Setting up consistent simulator and build configuration for test runs

Example prompts

  • “List the simulators with xc-plugin but only show the summary and keep the cache_id.”
  • “The cached build log looks stale. Invalidate it and rebuild.”
  • “Set consistent simulator preferences so my test runs are repeatable.”

Requirements

  • The xc-plugin installed with its Xcode MCP tools

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Minimize Context Window Usage
  2. Cache Expensive Operations
  3. Clear State Between Test Runs
  4. Handle Stale Cache Gracefully
  5. Token Efficiency Metrics
  6. Configuration File Examples

What it can do on your machine

Read from SKILL.md and the folder at commit 6de4b2c. 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 json and typescript).

    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

xc-plugin State Management loads about 4k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 1,001 words of instructions outside code blocks.

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

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 conorluddy/xclaude-plugin at commit 6de4b2c, republished under its MIT licence (© conorluddy). 1,001 words, ~3,988 tokens.

Download SKILL.mdSave it as .claude/skills/state-management/SKILL.md (or your agent's skills folder).
name
state-management
description
Cache management, configuration best practices, and progressive disclosure patterns for efficient context window usage. Use when working with large responses, optimizing token costs, or managing plugin state across operations.
version
0.0.1
token_cost
~40

State Management Skill

Optimizing token efficiency and state management in xc-plugin

Overview

The xc-plugin implements sophisticated state management through caching, progressive disclosure, and configuration management. This Skill teaches how to leverage these patterns to minimize token usage, improve performance, and maintain clean state across operations.

Key Benefits:

  • 85-90% token reduction through progressive disclosure
  • Cache-friendly operations avoid redundant work
  • Deterministic state ensures reliable test results
  • Configuration consistency across development workflows

When to Use This Skill

Use this Skill when you need to:

  1. Optimize Token Usage

    • Working with large device lists or build logs
    • Reducing context window consumption
    • Implementing efficient query patterns
  2. Manage Cache State

    • Understanding when responses are cached
    • Invalidating stale cache entries
    • Querying cached data efficiently
  3. Handle Configuration

    • Setting up consistent build environments
    • Managing simulator preferences
    • Configuring test execution parameters
  4. Design Efficient Workflows

    • Implementing progressive disclosure patterns
    • Avoiding expensive repeated operations
    • Building cache-aware automation

Key Concepts

Progressive Disclosure Pattern

Principle: Show essentials first, provide details on-demand.

Instead of returning massive datasets that consume tokens, xc-plugin returns:

  1. Summary - Key metrics and booted devices (~100 tokens)
  2. cache_id - Reference to full dataset
  3. Follow-up query - Retrieve complete details only if needed

Token Efficiency:

Traditional approach: 2000 tokens (full device list)
Progressive disclosure: 100 tokens (summary) + optional 2000 tokens (details)
Average savings: 95% (most queries don't need full details)
Cache Architecture

The plugin uses deterministic caching for expensive operations:

Cache Key Generation:

  • SHA-256 hash of operation + parameters
  • First 16 characters used as cache_id
  • Deterministic: Same input → Same cache_id

Cache Storage:

  • In-memory for current session
  • Optional disk persistence
  • Automatic expiration (configurable TTL)

Cache-Friendly Operations:

  • list operations (device lists, app lists)
  • build operations (build logs, test results)
  • describe operations (accessibility trees)
Response Types

SuccessResult with Progressive Disclosure:

typescript
{
  success: true,
  data: {
    summary: "31 devices available, 1 booted",
    booted_devices: [...],
    cache_id: "a1b2c3d4e5f6g7h8"
  },
  summary: "Device list retrieved successfully"
}

Follow-up Query Pattern:

typescript
{
  operation: "get-details",
  cache_id: "a1b2c3d4e5f6g7h8",
  detail_type: "full-list"
}

Workflows

Workflow 1: Cache-Aware Device Listing

Initial Query (Token-Efficient):

json
{
  "operation": "list",
  "parameters": {
    "concise": true
  }
}

Response:

json
{
  "success": true,
  "data": {
    "summary": {
      "total_devices": 47,
      "available_devices": 31,
      "booted_devices": 1
    },
    "booted": [
      {
        "name": "iPhone 15",
        "udid": "ABC123...",
        "state": "Booted",
        "runtime": "iOS 17.0"
      }
    ],
    "cache_id": "sim-list-xyz789"
  }
}

Follow-Up (Only If Needed):

json
{
  "operation": "get-details",
  "cache_id": "sim-list-xyz789",
  "detail_type": "full-list"
}

Token Analysis:

  • Initial query: ~150 tokens
  • Follow-up (if needed): ~2000 tokens
  • Traditional approach: ~2000 tokens always
  • Savings: 92% when details not needed
Workflow 2: Build Cache Management

Build Operation:

json
{
  "operation": "build",
  "scheme": "MyApp",
  "configuration": "Debug",
  "output_format": "summary"
}

Response with Cache:

json
{
  "success": true,
  "data": {
    "message": "Build succeeded",
    "build_time": "45.2s",
    "warnings": 3,
    "cache_id": "build-abc123"
  },
  "summary": "Build completed successfully with 3 warnings"
}

Retrieve Full Logs:

json
{
  "operation": "get-details",
  "cache_id": "build-abc123",
  "detail_type": "full-log"
}

Cache Invalidation Scenarios:

  • Source code changes
  • Scheme configuration changes
  • Clean operation executed
  • Manual cache clear
Workflow 3: Configuration State Management

Query Current Configuration:

json
{
  "operation": "cache",
  "sub_operation": "get-config"
}

Response:

json
{
  "cache_enabled": true,
  "cache_ttl": 3600,
  "max_cache_size": 100,
  "persistence_enabled": false
}

Update Configuration:

json
{
  "operation": "cache",
  "sub_operation": "set-config",
  "parameters": {
    "cache_ttl": 7200,
    "persistence_enabled": true
  }
}
Workflow 4: State Cleanup Between Tests

Pattern for Clean Test State:

1. cache (clear: "all") → Remove all cached data
2. device-lifecycle (erase) → Reset simulator state
3. app-lifecycle (uninstall) → Remove app
4. app-lifecycle (install) → Fresh install
5. app-lifecycle (launch) → Start with clean state
6. (run tests) → Execute test suite
7. cache (clear: "response") → Clean response cache

Why This Matters:

  • Eliminates test interdependencies
  • Prevents cache poisoning
  • Ensures reproducible results
  • Catches state-dependent bugs

Progressive Disclosure Pattern

Pattern Structure

Level 1: Summary (Always Returned)

json
{
  "summary": {
    "key_metric_1": "value",
    "key_metric_2": "value",
    "action_taken": "description"
  },
  "cache_id": "unique-identifier",
  "next_steps": [
    "Suggested action 1",
    "Suggested action 2"
  ]
}

Level 2: Detailed Query (On-Demand)

json
{
  "operation": "get-details",
  "cache_id": "unique-identifier",
  "detail_type": "full-data|errors-only|warnings-only|metadata"
}
When to Use Progressive Disclosure

Always Use For:

  • Device lists (>5 devices)
  • Build logs (>100 lines)
  • Test results (>10 tests)
  • Accessibility trees (>20 elements)
  • App lists (>10 apps)

Skip For:

  • Single device operations
  • Error messages
  • Quick status checks
  • Configuration queries
Example: Test Results

Summary Response:

json
{
  "success": false,
  "data": {
    "tests_run": 45,
    "tests_passed": 43,
    "tests_failed": 2,
    "failed_tests": [
      "MyAppTests.LoginTests.testInvalidPassword",
      "MyAppTests.LoginTests.testEmptyCredentials"
    ],
    "cache_id": "test-run-def456"
  }
}

Full Details Query:

json
{
  "operation": "get-details",
  "cache_id": "test-run-def456",
  "detail_type": "full-log"
}

Token Efficiency:

  • Summary: ~200 tokens
  • Full log: ~3000 tokens
  • Savings: 93% for typical success cases

Caching Strategies

Cache-Friendly Operations

High Cache Value (Long TTL):

  • list operations (device list changes infrequently)
  • version operations (Xcode version is stable)
  • show-build-settings (project config changes rarely)

Moderate Cache Value (Medium TTL):

  • build operations (results valid until code changes)
  • test operations (results valid until code/tests change)
  • describe operations (UI state changes moderately)

Low Cache Value (Short TTL):

  • device-lifecycle (device state changes frequently)
  • app-lifecycle (app state is dynamic)
  • input/tap operations (UI interactions modify state)
Cache TTL Guidelines
typescript
// Recommended TTL values
{
  simulator_list: 1800,      // 30 minutes
  device_state: 60,          // 1 minute
  build_results: 3600,       // 1 hour
  test_results: 3600,        // 1 hour
  xcode_version: 86400,      // 24 hours
  project_schemes: 3600,     // 1 hour
  accessibility_tree: 10     // 10 seconds
}
Cache Invalidation Triggers

Automatic Invalidation:

  • TTL expiration
  • Memory pressure (LRU eviction)
  • Conflicting operation (e.g., clean invalidates build cache)

Manual Invalidation:

json
{
  "operation": "cache",
  "sub_operation": "clear",
  "parameters": {
    "cache_type": "simulator|project|response|all"
  }
}

Smart Invalidation:

  • File modification detection (build cache)
  • State change detection (device cache)
  • Operation sequence analysis (test cache)
Memory vs Disk Caching

In-Memory Cache (Default):

  • Pros: Fast access, no I/O overhead
  • Cons: Lost on process restart
  • Use For: Session-scoped data, frequently accessed data

Disk Cache (Optional):

  • Pros: Persists across restarts, larger capacity
  • Cons: I/O overhead, synchronization complexity
  • Use For: Build artifacts, test results, expensive queries

Enable Disk Persistence:

json
{
  "operation": "persistence",
  "sub_operation": "enable",
  "parameters": {
    "cache_dir": "/tmp/xc-cache"
  }
}
Show full SKILL.md (395 more words)Show less

Configuration Management

Xcode Preferences

Query Build Settings:

json
{
  "operation": "show-build-settings",
  "scheme": "MyApp",
  "configuration": "Debug"
}

Common Settings to Cache:

  • PRODUCT_BUNDLE_IDENTIFIER
  • DEVELOPMENT_TEAM
  • CODE_SIGN_IDENTITY
  • SDKROOT
  • ARCHS

Use Case:

  • Validate configuration consistency
  • Debug build issues
  • Generate documentation
  • Audit security settings
Simulator Settings

Query Simulator Configuration:

json
{
  "operation": "list",
  "parameters": {
    "runtime": "iOS 17.0",
    "device_type": "iPhone"
  }
}

Persist Simulator State:

  • Boot order (preferred device)
  • Location simulation settings
  • Accessibility preferences
  • Network conditions
Build Configurations

Debug vs Release Configuration:

Debug:

json
{
  "configuration": "Debug",
  "options": {
    "parallel": true,
    "quiet": false
  }
}
  • Optimizations: Off
  • Symbols: Included
  • Token Impact: Verbose logs (~2000 tokens)
  • Cache Strategy: Short TTL (code changes frequently)

Release:

json
{
  "configuration": "Release",
  "options": {
    "parallel": true,
    "quiet": true
  }
}
  • Optimizations: On
  • Symbols: Optional
  • Token Impact: Quiet logs (~300 tokens)
  • Cache Strategy: Long TTL (less frequent)
Environment Variables

Set Test Environment:

json
{
  "operation": "app-lifecycle",
  "sub_operation": "launch",
  "device_id": "iPhone 15",
  "app_identifier": "com.example.MyApp",
  "parameters": {
    "environment": {
      "API_URL": "https://staging.example.com",
      "MOCK_DATA": "true",
      "LOG_LEVEL": "debug"
    }
  }
}

Common Environment Variables:

  • API_URL - Backend endpoint
  • FEATURE_FLAGS - Enable/disable features
  • TEST_MODE - Testing-specific behavior
  • LOG_LEVEL - Logging verbosity

Best Practices

1. Minimize Context Window Usage

Use Progressive Disclosure:

json
// Good: Request summary first
{
  "operation": "list",
  "parameters": { "concise": true }
}

// Then query details only if needed
{
  "operation": "get-details",
  "cache_id": "sim-list-xyz"
}

Avoid Verbose Operations:

json
// Bad: Always verbose
{
  "operation": "build",
  "options": { "verbose": true }
}

// Good: Quiet by default, verbose on errors
{
  "operation": "build",
  "options": { "quiet": true }
}
2. Cache Expensive Operations

Identify Expensive Operations:

  • build (20-120 seconds)
  • test (10-300 seconds)
  • list with large device sets (1-5 seconds)
  • describe with complex UI (0.5-2 seconds)

Cache Strategy:

json
// First call: Execute and cache
{
  "operation": "list"
}
// Response includes cache_id

// Subsequent calls: Use cached data
{
  "operation": "get-details",
  "cache_id": "previous-cache-id"
}
3. Clear State Between Test Runs

Clean State Pattern:

1. Cache clear (all)
2. Simulator erase
3. App uninstall
4. Fresh app install
5. Launch with test environment
6. Run tests
7. Cache clear (response)

Why Each Step:

  • Cache clear: No stale data influencing tests
  • Simulator erase: Clean device state
  • App uninstall: Remove app data/preferences
  • Fresh install: Simulate first-time user
  • Test environment: Consistent configuration
  • Response cache clear: Clean logs for next run
4. Handle Stale Cache Gracefully

Detect Stale Cache:

typescript
// Check cache timestamp
if (cache_age > ttl) {
  invalidateCache(cache_id);
  refetch();
}

Recovery Strategy:

json
// If cache miss or stale:
{
  "operation": "original-operation",
  // Original parameters
}
// Plugin automatically refreshes cache

User Pattern:

  • Try cached query first
  • If data seems stale, force refresh
  • Update cache with new results
5. Token Efficiency Metrics

Track Token Usage:

Summary responses: ~100-300 tokens
Full responses: ~1000-5000 tokens
Progressive disclosure savings: 80-95%

Optimization Checklist:

  • Use concise: true for list operations
  • Request summary output format for builds
  • Query cache_id before full details
  • Use quiet: true for non-debug builds
  • Enable response caching for repeated queries
6. Configuration File Examples

Build Configuration:

json
{
  "scheme": "MyApp",
  "configurations": {
    "debug": {
      "configuration": "Debug",
      "destination": "platform=iOS Simulator,name=iPhone 15",
      "cache_strategy": "short_ttl",
      "output_format": "summary"
    },
    "release": {
      "configuration": "Release",
      "destination": "generic/platform=iOS",
      "cache_strategy": "long_ttl",
      "output_format": "detailed"
    }
  }
}

Test Configuration:

json
{
  "test_scheme": "MyAppTests",
  "test_devices": [
    "iPhone 15",
    "iPad Pro (12.9-inch)"
  ],
  "clean_state": true,
  "cache_results": true,
  "parallel_execution": false,
  "environment": {
    "TEST_MODE": "true",
    "MOCK_NETWORK": "true"
  }
}

Cache Configuration:

json
{
  "cache": {
    "enabled": true,
    "ttl": {
      "simulator_list": 1800,
      "build_results": 3600,
      "test_results": 3600,
      "device_state": 60
    },
    "persistence": {
      "enabled": true,
      "path": "/tmp/xc-cache",
      "max_size_mb": 500
    },
    "invalidation": {
      "auto_invalidate_on_build": true,
      "auto_invalidate_on_test": false
    }
  }
}

Integration with MCP Tools

This Skill applies to all xc-plugin MCP tools:

Cache-Aware Tools:

  • xcodebuild-list - Returns cache_id for project data
  • xcodebuild-build - Returns cache_id for build logs
  • xcodebuild-test - Returns cache_id for test results
  • simctl-list - Returns cache_id for device lists
  • idb-ui-describe - Returns cache_id for UI trees

Cache Management Tools:

  • xcodebuild-get-details - Query cached build data
  • simctl-get-details - Query cached simulator data
  • cache - Manage cache configuration
  • persistence - Configure disk caching
  • simulator-workflows: Device management operations
  • xcode-workflows: Build system operations
  • ui-automation-workflows: Accessibility tree caching
  • ios-testing-patterns: Test state management
  • xc://reference/cache-architecture - Cache implementation details
  • xc://reference/token-optimization - Token efficiency guide
  • xc://workflows/progressive-disclosure - Pattern documentation
  • xc://reference/configuration - Configuration reference

Remember: Progressive disclosure first, full details only when needed. Cache expensive operations. Clear state between tests. 85-90% token savings are achievable with proper state management.

© conorluddy, 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 skills/state-management of conorluddy/xclaude-plugin.

Open the folder on GitHubat commit 6de4b2c

Compare with similar skills

xc-plugin State Management 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.

xc-plugin State Management compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
xc-plugin State Management this skillconorluddy/xclaude-plugin183—~4kAutomated safety check: PassMIT
Context Mode Output Sandboxmksglu/context-mode26k—~4.1kAutomated safety check: PassCustom licence
Context Mode for Antigravity CLImksglu/context-mode26k—~850Automated safety check: PassCustom licence
Foundation Models Os27 Updaterrryam/FoundationModelsKit162—~2.9kAutomated safety check: PassMIT
Entroly Context Controljuyterman1000/entroly474—~501Automated safety check: PassApache-2.0
Entroly Evidence Operationsjuyterman1000/entroly474—~528Automated safety check: PassApache-2.0

Similar skills

  • Context Mode Output Sandbox

    mksglu/context-mode

    Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.

    26k GitHub stars~4.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation.

    26k GitHub stars~850 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Foundation Models Os27 Updater

    rryam/FoundationModelsKit

    Upgrade any Apple Foundation Models Swift app or package from OS 26-era APIs to OS 27 and Xcode 27 APIs.

    162 GitHub stars~2.9k tokensUpdated 8 days ago
    MobileAuto-check passed
  • Entroly Context Control

    juyterman1000/entroly

    Surgically select, compress, and recover codebase context using Entroly's MCP tools.

    474 GitHub stars~501 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Entroly Evidence Operations

    juyterman1000/entroly

    Use Entroly for content-blind agent-history audits, explicit baseline/optimized trials, recoverable command or browser evidence, response contracts, and token-efficiency claim verification.

    474 GitHub stars~528 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Entroly Lobehub Audit

    juyterman1000/entroly

    Audit and remediate Entroly's MCP marketplace quality with evidence, adversarial validation, and no score gaming.

    474 GitHub stars~1.2k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from conorluddy/xclaude-plugin

All 8 skills in this repo
  • iOS Accessibility Testing

    conorluddy/xclaude-plugin

    Guides WCAG 2.1 and VoiceOver accessibility testing for iOS apps, working from the accessibility tree and not from screenshots.

    183 GitHub stars~5k tokensUpdated 27 days ago
    Auto-check passed
  • iOS Crash Log Debugging

    conorluddy/xclaude-plugin

    Walks through retrieving, symbolicating and diagnosing iOS crash logs, turning a cryptic stack trace into the function names that actually failed.

    183 GitHub stars~4.9k tokensUpdated 27 days ago
    Auto-check passed
  • iOS Simulator Workflows

    conorluddy/xclaude-plugin

    Manages iOS Simulator devices and apps through the execute_simulator_command MCP tool instead of raw simctl: boot, create and delete devices, install and launch apps, screenshots and diagnostics.

    183 GitHub stars~3.3k tokensUpdated 27 days ago
    Auto-check passed
  • UI Automation Workflows

    conorluddy/xclaude-plugin

    Accessibility-first UI automation using IDB. An agent skill from conorluddy/xclaude-plugin.

    183 GitHub stars~2.2k tokensUpdated 27 days ago
    Auto-check passed
  • Xcode Build Workflows

    conorluddy/xclaude-plugin

    Directs iOS build, test and clean operations through the execute_xcode_command MCP tool instead of raw xcodebuild in the shell, with parameter-level retries on failure.

    183 GitHub stars~3k tokensUpdated 27 days ago
    Auto-check passed
  • Performance Profiling

    conorluddy/xclaude-plugin

    Instruments integration and performance analysis workflows for iOS apps.

    183 GitHub stars~7.3k tokensUpdated 27 days ago
    Auto-check passed

Questions about xc-plugin State Management

What does xc-plugin State Management do?

Teaches how xc-plugin saves tokens with progressive disclosure, cached responses and consistent configuration, so large device lists and build logs arrive as summaries first. This skill explains how the xc-plugin, an iOS development plugin that groups Xcode and IDB tools into MCP servers, manages state to save tokens. Instead of returning a large dataset, a call returns a short summary, a cache_id and a follow-up query for the full details.

When should I use xc-plugin State Management?

xc-plugin State Management fits situations like: working with large device lists or build logs without flooding the context window; querying or invalidating cached xc-plugin responses; setting up consistent simulator and build configuration for test runs.

How do I install xc-plugin State Management in Claude Code?

Run `npx skills add conorluddy/xclaude-plugin --skill state-management -a claude-code`. Or copy the skill folder (skills/state-management in conorluddy/xclaude-plugin) into .claude/skills/state-management in your project. Claude Code loads it when a task matches its description.

How do I install xc-plugin State Management in Codex?

Run `npx skills add conorluddy/xclaude-plugin --skill state-management -a codex`. Or copy the skill folder (skills/state-management in conorluddy/xclaude-plugin) into .agents/skills/state-management in your project. Codex loads it when a task matches its description.

Can I use xc-plugin State Management 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 conorluddy/xclaude-plugin --skill state-management -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/state-management, .gemini/skills/state-management, .github/skills/state-management and .opencode/skills/state-management in your project.

What does xc-plugin State Management need to run?

SKILL.md names no scripts, command-line tools or credentials: xc-plugin State Management is instructions for the agent only. Our summary lists: The xc-plugin installed with its Xcode MCP tools.

Does xc-plugin State Management 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 xc-plugin State Management 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 xc-plugin State Management use?

xc-plugin State Management 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 xc-plugin State Management use?

About 4k tokens (SKILL.md is roughly 16k 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 xc-plugin State Management?

Skills that share tags, products or a category with xc-plugin State Management: Context Mode Output Sandbox (mksglu/context-mode, 26k stars), Context Mode for Antigravity CLI (mksglu/context-mode, 26k stars), Foundation Models Os27 Updater (rryam/FoundationModelsKit, 162 stars) and Entroly Context Control (juyterman1000/entroly, 474 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains xc-plugin State Management?

conorluddy (a GitHub user) maintains it in conorluddy/xclaude-plugin, which has 183 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 12, 2026.

Source: conorluddy/xclaude-plugin on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.