configuration

configuration is a skill for Claude Code from Myst4ke/mcp-to-skills-converter. It costs 22 tokens per session (2,384 once invoked), scanned A, original, MIT.

A guide for safely managing configuration files in TypeScript, including backups and recovery.

In plain words
What is it for?
Use it to create timestamped backups, update JSON files safely, validate settings, restore failed changes, and remove old backups.
Why use it?
It reduces the risk of losing or corrupting settings when files are updated, validated, or restored.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the spec-implementer-generated plugin — 3 skills, 4 agents shipped together

Good fit Use it to create timestamped backups, update JSON files safely, validate settings, restore failed changes, and remove old backups.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/myst4ke/mcp-to-skills-converter/configuration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Myst4ke/mcp-to-skills-converter --skill configuration
Clone the repo
git clone --depth 1 https://github.com/Myst4ke/mcp-to-skills-converter

Made for: Claude Code.

Or install spec-implementer-generated, the plugin that ships this one along with the rest of its 3 skills, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for configuration

README.md
[![agentmods](https://agentmods.dev/badge/skills/myst4ke/mcp-to-skills-converter/configuration/github.svg)](https://agentmods.dev/skills/myst4ke/mcp-to-skills-converter/configuration)
Your own site
<a href="https://agentmods.dev/skills/myst4ke/mcp-to-skills-converter/configuration"><img src="https://agentmods.dev/badge/skills/myst4ke/mcp-to-skills-converter/configuration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for configuration

Your own site · 80×15
<a href="https://agentmods.dev/skills/myst4ke/mcp-to-skills-converter/configuration"><img src="https://agentmods.dev/badge/skills/myst4ke/mcp-to-skills-converter/configuration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,384 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.02384
Opus 5.5 $0.00009 $0.00954
Sonnet 5.5 $0.00004 $0.00477
Haiku 4.5 $0.00002 $0.00238

Measured 1mo ago against content hash 0abec63a22c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

configuration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/spec-implementer-generated/skills/configuration/SKILL.md · 394 lines

How it starts

The opening of the file, as written. The whole thing — 394 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Configuration Management Skill

Overview

This skill provides guidance for implementing safe configuration file management including backup systems, atomic updates, and recovery mechanisms. For US-4 (MCP Uninstaller), this skill covers:

  • Creating timestamped configuration backups
  • Atomic JSON file updates
  • Configuration validation
  • Backup restoration and cleanup

Core Capabilities

  • Atomic File Operations: Write-then-rename pattern for safe file updates
  • Backup Management: Create, restore, and clean up timestamped backups
  • JSON Manipulation: Safe parsing, modification, and validation of JSON config files
  • Error Recovery: Automatic rollback on failures
  • Metadata Tracking: Include metadata in backups for audit trail
  • Cleanup Policies: Implement retention policies (e.g., keep last 10 backups)

Input Requirements

Required:

  • Configuration file path
  • Operation type (backup, update, restore)
  • Backup directory path

Optional:

  • Retention policy (number of backups to keep)
  • Validation schema
  • Metadata to include in backup

Output Format

Returns:

  • Operation result (success/failure)
  • Backup file path (for backup operations)
  • Validation results
  • Error messages if applicable

Dependencies

  • fs-extra: Enhanced file system operations
  • JSON schema validator (optional): For config validation
  • TypeScript 5.x: For type-safe config handling

Workflow

Step 1: Define Configuration Interfaces

Create TypeScript interfaces for config structure:

// src/interfaces/config.interface.ts
export interface ClaudeConfig {
  mcpServers?: Record<string, MCPServerConfig>;
  [key: string]: any;
}

export interface MCPServerConfig {
  command: string;
  args?: string[];
  env?: Record<string, string>;
}

export interface BackupMetadata {
  timestamp: string;
  originalPath: string;
  reason: string;
  mcpName?: string;
}

Step 2: Implement Backup Service

Create backup with metadata:

// src/services/config-backup.ts
import * as fs from 'fs-extra';
import * as path from 'path';

export class ConfigBackup {
  private backupDir: string;
  private maxBackups: number;

  constructor(backupDir: string = '.claude/backups', maxBackups: number = 10) {
    this.backupDir = backupDir;
    this.maxBackups = maxBackups;
  }

  async createBackup(configPath: string, reason: string, mcpName?: string): Promise<string> {
    // Ensure backup directory exists
    await fs.ensureDir(this.backupDir);

    // Generate timestamp
    const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
    const backupFileName = `config-backup-${timestamp}.json`;
    const backupPath = path.join(this.backupDir, backupFileName);

    // Read original config
    const config = await fs.readJson(configPath);

    // Create backup with metadata
    const backup = {
      metadata: {
        timestamp: new Date().toISOString(),
        originalPath: configPath,
        reason,
        mcpName
      },
      config
    };

    // Write backup atomically
    await this.atomicWrite(backupPath, JSON.stringify(backup, null, 2));

    // Verify backup
    if (!await fs.pathExists(backupPath)) {
      throw new Error('Backup verification failed');
    }

    // Clean up old backups
    await this.cleanupOldBackups();

    return backupPath;
  }

  private async atomicWrite(filePath: string, content: string): Promise<void> {
    const tempPath = `${filePath}.tmp`;
    await fs.writeFile(tempPath, content, 'utf-8');
    await fs.rename(tempPath, filePath);
  }

  private async cleanupOldBackups(): Promise<void> {
    const files = await fs.readdir(this.backupDir);
    const backupFiles = files
      .filter(f => f.startsWith('config-backup-'))
      .sort()
      .reverse();

    // Keep only the most recent maxBackups
    const filesToDelete = backupFiles.slice(this.maxBackups);
    for (const file of filesToDelete) {
      await fs.remove(path.join(this.backupDir, file));
    }
  }

  async restore(backupPath: string, targetPath: string): Promise<void> {
    const backup = await fs.readJson(backupPath);

    if (!backup.config) {
      throw new Error('Invalid backup file: missing config data');
    }

    // Write config atomically
    await this.atomicWrite(targetPath, JSON.stringify(backup.config, null, 2));
  }
}

Read the full file on GitHub · 394 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 394 lines · 22 tokens per session scan A 0abec63a22c1

Subscribe to this mod's changes

configuration is a skill published in the GitHub repository Myst4ke/mcp-to-skills-converter (1 stars, last pushed 11mo ago), licensed MIT. It adds 22 tokens to every session and 2,384 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

karpenter

Design, install, debug, review, plan capacity, audit scaling history, migrate from Cluster Autoscaler, and upgrade Karpenter v1.x on EKS. Covers NodePool, EC2NodeClass, NodeClaim, Spot diversity, disruption strategy, Pod Identity/IRSA, interruption queue, private clusters, AMI rotation, and GitOps integration. Use…

nitinjain999/platform-skills · 131 tokens

pr-review

Comprehensive PR review across six dimensions — cost impact, environment drift, ownership gaps, SOC 2 compliance, deprecated API / version hygiene, and rollback feasibility. Each mode inspects the diff and current file state, reports findings with severity, and recommends concrete fixes. Use when preparing a PR for…

nitinjain999/platform-skills · 81 tokens

azure

Azure identity (Workload Identity, OIDC, Entra ID), resource tagging, AKS platform patterns, RBAC scoping, and production-readiness review — with Terraform generation.

nitinjain999/platform-skills · 39 tokens

kubescape

Check Kubernetes manifests, Helm charts, Kustomize overlays and live clusters against NSA-CISA, MITRE ATT&CK, CIS (EKS, AKS, GKE, vanilla) and SOC2 with the Kubescape CLI. Covers framework choice, score and severity gates, PR gates that fail only on new findings (--baseline), exceptions that actually suppress…

nitinjain999/platform-skills · 217 tokens

chaos

Design, run, and debug Chaos Engineering experiments on Kubernetes using Litmus Chaos v3 and Chaos Mesh v2. Covers fault injection (pod-delete, network-loss, CPU stress, node-drain), steady-state hypothesis probes, GameDay runbooks, scheduled experiments, DORA feedback loop, and RBAC setup. Use when asked to "inject a…

nitinjain999/platform-skills · 97 tokens

opa

Generate, test, validate, explain, and debug OPA (Open Policy Agent) Rego policies and Conftest configurations. Covers deny/warn/violation rules, unit tests, regal linting, conftest fmt, namespace design, input shape analysis, and GitHub Actions integration. Use when asked to "write a policy", "test a rego file"…

nitinjain999/platform-skills · 98 tokens