Agent skill

Code Service Defrag

by jacob-dietle in jacob-dietle/context-os

This skill should be used to periodically defragment a multi-app/multi-service codebase — both CODE (duplicate deploy targets, colliding bindings, stale forks) and CONTEXT (parallel spec…

MITAuto-check passedDevOps & Cloud

Install Code Service Defrag

skills CLI
$ npx skills add jacob-dietle/context-os --skill code-service-defrag -a claude-code

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

GitHub CLI
$ gh skill install jacob-dietle/context-os code-service-defrag --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/jacob-dietle/context-os.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/code-service-defrag .claude/skills/code-service-defrag && 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
code-service-defrag
GitHub stars
111
Token cost
~3.7k tokens
SKILL.md length
1,677 words
Files
12 (incl. scripts, references)
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

This skill should be used to periodically defragment a multi-app/multi-service codebase — both CODE (duplicate deploy targets, colliding bindings, stale forks) and CONTEXT (parallel spec…

  • Works in 6 steps: Establish Scan Scope → Run the Full Defrag Scan → Classify Findings by Severity → …
  • Tasks that involve Containers
  • SKILL.md covers Why Fragmentation Is…, Two Terrains Fragment in…, The Collision Shape (universal… and Perceived vs Actual Problem, plus 7 more sections
  • Runs Shell scripts from its folder; calls bash and git

What it does

Code Service Defrag is an agent skill from jacob-dietle/context-os. This skill should be used to periodically defragment a multi-app/multi-service codebase — both CODE (duplicate deploy targets, colliding bindings, stale forks) and CONTEXT (parallel spec conventions, orphan docs, scattered context packages) — on any platform (Cloudflare, Railway, Vercel, Fly, Render, Docker Compose). Converts the vague "things are getting messy" feeling into specific, located, severity-ranked findings. Detect-only — does NOT auto-consolidate. Apply on a monthly cadence, before any risky deploy…

Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts and reference files (for example `references/cadence.md`, `references/downstream-handoff.md` and `references/landmine-patterns.md`).

It sits in DevOps & Cloud, covering Containers. It works with Cloudflare, Vercel and Docker. The licence is MIT.

When your agent uses it

  • Tasks that involve Containers

Example prompts

  • “things are getting messy”
  • “/code-service-defrag”

Requirements

  • A Bash shell
  • Docker

Workflow steps

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

  1. Establish Scan Scope
  2. Run the Full Defrag Scan
  3. Classify Findings by Severity
  4. Produce the Defrag Report
  5. Present to User + Hand Off
  6. Record the Run

What it can do on your machine

Read from SKILL.md and the folder at commit 1027e3f. 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

    Ships 7 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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

Code Service Defrag loads about 3.7k tokens when it runs, and up to ~9.1k if it reads all its reference files. Until then it costs about 202 tokens; SKILL.md has 1,677 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~202
When it runs · the whole SKILL.md, loaded when a task matches
~3.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.1k

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); the scripts in this folder are not scanned.

SKILL.md

The full file from jacob-dietle/context-os at commit 1027e3f, republished under its MIT licence (© jacob-dietle). 1,677 words, ~3,738 tokens.

Download SKILL.mdSave it as .claude/skills/code-service-defrag/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
code-service-defrag
description
This skill should be used to periodically defragment a multi-app/multi-service codebase — both CODE (duplicate deploy targets, colliding bindings, stale forks) and CONTEXT (parallel spec conventions, orphan docs, scattered context packages) — on any platform (Cloudflare, Railway, Vercel, Fly, Render, Docker Compose). Converts the vague "things are getting messy" feeling into specific, located, severity-ranked findings. Detect-only — does NOT auto-consolidate. Apply on a monthly cadence, before any risky deploy, after a migration, or whenever canonical-source ambiguity is suspected. Core principle — agentic coding fragments state faster than humans consolidate it, so drift accumulates silently until a deploy fires from the wrong place or an agent onboards from the wrong context.

Code + Service Defrag

Periodic consolidation of a fragmenting codebase — code AND context — back into coherent, single-source-of-truth wholes. The maintenance discipline that counteracts the entropy agentic coding produces.

Meta-Principle: Agentic coding fragments state faster than humans consolidate it. Fragmentation only accumulates — it is the second law applied to repos. Defrag is the periodic counter-force. Run it on a cadence, or discover the fragmentation the day a deploy fires from the wrong directory.

Why Fragmentation Is Inevitable (it is not a failure)

Conway's Law says a system mirrors the communication structure of whoever built it. Invert it: a codebase touched by parallel agents and multiple humans across many sessions — with no single mind holding the whole map — necessarily accumulates fragments. Duplicate configs, forks, orphan specs, services quietly sharing a database. This is not sloppiness to feel bad about; it is the expected entropy of high-leverage, multi-actor development. The only real question is whether you defrag periodically or meet the fragmentation when it detonates.

The leverage of agentic coding (ship 10x faster) is paid for in visibility (nobody holds the full map). Defrag buys the visibility back, cheaply, on a schedule.

Two Terrains Fragment in Parallel

TerrainFragments intoDetonates as
Codeduplicate deploy targets, colliding bindings, stale forks, orphan reposa silent prod overwrite — deploy from the wrong dir clobbers the live one
Contextparallel spec conventions, orphan docs, scattered context packagesa false foundation — an agent onboards from the wrong context and builds on it

Treat both as first-class. Code drift fails loud (eventually — when a deploy detonates). Context drift fails silent — an agent reads the wrong spec, produces confidently wrong work, and nobody notices until it ships. The context half of this skill is not a footnote to the code half; it is the half that fails without a stack trace.

The Collision Shape (universal across platforms)

Any system with multiple deployable units accumulates collision risk: two things that can silently overwrite or corrupt each other. The platform changes the vocabulary, not the shape.

Universal conceptCloudflareRailwayVercelFlyDocker Compose
Deploy target (what a deploy pushes to)Worker nameService nameProject nameApp nameCompose service
Shared datastore (silent corruption risk)D1 database_idDATABASE_URL / PostgresLinked DBattached Postgresnamed volume / DB service
Domain claim (exclusive, last-writer-wins)route patternservice domainproject domain[[services]]published port
Deploy configwrangler.tomlrailway.json/tomlvercel.jsonfly.tomldocker-compose.yml

The landmine is always the same shape: two configs name the same target, or bind the same shared resource, and the platform does not stop the wrong one from winning. Whether that shape is 🔴 or 🟢 depends on the platform's deploy model — see references/platform-collision-semantics.md. A name match is a candidate, never an automatic verdict.

Perceived vs Actual Problem

Fragmentation registers as a vague "things are getting messy in here" unease. A vague feeling is not actionable, so it gets deferred — until it detonates. Defrag's core move is converting the unactionable feeling into a specific, located, severity-ranked finding.

Perceived (the feeling)Actual (what defrag locates)
"Things are getting messy in here"Two wrangler.toml deploy to the same worker — and you can't say which is live
"I should clean up sometime"Three services point at the same prod Postgres; none owns migrations
"There's old stuff lying around"A 6-month-old fork shares a name with the active dir; grep finds the wrong one first
"The docs are a bit scattered"Two context-package conventions; agents onboard from whichever they hit first

If a defrag pass ends with a feeling instead of a located finding with a file path and a severity, it failed.

The Three Tests (apply to any candidate)

These are the teeth. Run them before classifying severity.

1. The "Which one is live?" test. For every deploy-target name, can you name the canonical directory in under five seconds? Hesitation is the finding — your mental map has diverged from the repo. A system you can't answer this for instantly is already fragmented.

2. The "Two-deploy" test. If you ran the deploy command from each directory sharing a target name, would the same live deployment change? Yes → they are the same target; one is a silent-overwrite landmine (🔴). No (different platform/project/namespace) → coincidental (🟢). This test is what platform-collision-semantics.md formalizes per platform.

3. The "Onboard cold" test (context). If a fresh agent loaded context for this project right now, would it find one coherent source — or land in whichever fragment it happened to hit first? More than one possible answer = context fragmentation, even if every individual doc is fine.

When to Apply This Skill

Apply when:

  • Periodic: last defrag >30 days ago (the discipline — don't wait for a trigger)
  • Pre-deploy: before any deploy / push / release on a shared account
  • Post-migration: immediately after a repo merge, git subtree add, directory move, or fork consolidation
  • Post-multi-agent work: after parallel agents create parallel fragments
  • On-demand: when canonical-source ambiguity is suspected ("which one is the real one?")
  • On confusion: when someone catches themselves saying "I thought I deleted that" or "didn't we consolidate that?"

Do NOT apply when:

  • Starting a greenfield project with no existing multi-service layout
  • Auditing knowledge base branches (use a KB-specific audit instead)
  • Auditing a single app's internal structure (use a general code-review/simplify pass)
  • Fixing is already planned and scoped — skip to the migration step

Detect-Only, Never Auto-Fix

The skill produces a severity-ranked report; the human decides what to consolidate. Auto-fixing would re-introduce the exact cowboy problem this skill exists to prevent — one more actor changing state without holding the whole map. Defrag's job is to restore visibility, not to act on it unsupervised.

Workflow

Step 1: Establish Scan Scope

Default scope: apps/* (or services/, packages/) in the current repo — any directory holding deployable units with their own configs.

bash
# List app-like directories
ls -d apps/*/ services/*/ packages/*/ 2>/dev/null

# Spot deployable units across platforms
find . -maxdepth 3 \( -name "wrangler.toml" -o -name "railway.json" -o -name "railway.toml" \
  -o -name "vercel.json" -o -name "fly.toml" -o -name "render.yaml" \
  -o -name "docker-compose.yml" -o -name "Dockerfile" \) -not -path "*/node_modules/*" 2>/dev/null

Confirm scope with the user if ambiguous.

Show full SKILL.md (724 more words)Show less
Step 2: Run the Full Defrag Scan
bash
bash .claude/skills/code-service-defrag/scripts/defrag_scan.sh [scope_root]

The master scanner runs six sub-scans and aggregates findings:

  1. scan_deploy_target_names.sh — duplicate deploy-target names across CF / Railway / Vercel / Fly / Render / Compose configs
  2. scan_bindings.sh — shared-datastore collisions (Postgres/Supabase/MySQL/DATABASE_URL) + CF D1/KV/R2/route collisions
  3. scan_archive_markers.sh — directories with no explicit CANONICAL or ARCHIVED marker in their README
  4. scan_stale_forks.sh — directories sharing similar names with divergent commit activity
  5. scan_spec_dirs.sh — spec/context-package drift (parallel conventions, orphan files, legacy staging dirs)
  6. scan_deploy_surface.sh — enumeration of every location a deploy can fire from, with git remote

If a sub-scan returns no output, that is a finding in itself — note it explicitly (e.g., "no platform configs found" is valid for a library-only repo).

Step 3: Classify Findings by Severity

A name match is a candidate, not a verdict. Severity comes from the platform's deploy model — does it protect you from the collision, or leave it as a footgun? Flattening "duplicate name = 🔴" across all platforms produces false confidence. Calibrate per platform using references/platform-collision-semantics.md.

SeverityMeaningExample trigger
🔴 LandmineA single deploy silently regresses production, no warningAccount/org-global target name + identical bindings (Cloudflare, Fly); overlapping domain claim; same datastore with no migration owner
🟡 Candidate / DriftReal only if a platform-specific condition holds — confirm itSame name on a project-scoped platform (Railway/Render — same project?); Vercel name match (same projectId?); shared datastore (intentional?); stale fork; spec drift
🟢 OK / coincidentalPlatform protects you, or the match is across namespacesCross-platform name match (separate namespaces); Compose service name across files; explicit canonical/archived marker

The 🔴 rule that never relaxes: account/org-global name + identical bindings (Cloudflare, Fly) — the shape that fires silently with zero warning.

For each candidate, run the platform-specific check in references/platform-collision-semantics.md and escalate (🟡→🔴) or clear (🟡→🟢). Never leave a 🟡 candidate unresolved on a platform whose footgun you haven't checked. See references/landmine-patterns.md for the catalog of shapes.

Step 4: Produce the Defrag Report

Write the report to _system/reports/defrag_YYYY-MM-DD.md (or wherever the repo keeps reports). Structure:

markdown
# Defrag Report — YYYY-MM-DD

## Scope
- Directories scanned: N
- Configs found: X by platform

## Findings by Severity
### 🔴 Landmines (N)
1. **[finding title]** — [what collides, where, evidence]
   - Locations: `apps/foo/<config>:3`, `apps/bar/<config>:3`
   - Collision: same deploy-target name + same datastore binding
   - Recommended downstream: pick canonical → write consolidation plan → migrate → verify

### 🟡 Drift (N)
### 🟢 OK (N)

## Deploy Surface Inventory
| Location | Config | Target | Domain | Git remote |

## Recommended Next Actions

Every finding MUST have: specific file paths with line numbers, evidence, and a recommended next step.

Step 5: Present to User + Hand Off

Show the report summary (counts by severity + top 3 landmines if any). Do NOT start consolidating — the user decides.

If 🔴 findings exist, the standard consolidation sequence is:

pick canonical → trace 2nd/3rd-order effects → write consolidation spec →
execute migration (preserve history) → verify safety before deploy → record the why

If only 🟡 findings exist, either defer to the next defrag or execute lightweight fixes (add archive marker, delete orphan, document the intentional shared datastore).

Step 6: Record the Run

Append one line to a defrag log so "last defrag was X days ago" is answerable:

YYYY-MM-DD | N scanned | L 🔴 / D 🟡 / O 🟢 | report: defrag_YYYY-MM-DD.md

Bundled Resources

Scripts (scripts/)

All scripts are bash, detect-only, exit 0 on success with findings on stdout. None modify the filesystem. None print credentials (the datastore scan reads only host/identifier portions of connection strings, never passwords).

  • defrag_scan.sh — master orchestrator; runs all sub-scans and concatenates output
  • scan_deploy_target_names.sh — duplicate deploy-target names across all supported platforms
  • scan_bindings.sh — shared-datastore collisions (any stack) + CF D1/KV/R2/route collisions
  • scan_archive_markers.sh — for each app dir, checks README for explicit CANONICAL or ARCHIVED marker
  • scan_stale_forks.sh — directories with similar base names + diverging last-commit timestamps
  • scan_spec_dirs.sh — context/docs drift: parallel context_packages/ dirs, empty convention dirs, legacy staging dirs, orphan spec files
  • scan_deploy_surface.sh — enumerates every deploy config (CF/Fly/Docker/Vercel/Railway/Render/Compose) with target name and git remote

Run individually for targeted investigation, or use defrag_scan.sh for the full pass.

References (references/)
  • platform-collision-semantics.md — the calibration layer: per-platform deploy model, what each platform protects you from, and therefore what severity a detected collision deserves. This is where the skill's potency lives — consult it during classification.
  • landmine-patterns.md — the specific shapes of silent-overwrite landmines, with anonymized reproducing snippets and severity rules. Patterns are stated platform-agnostically with per-platform examples.
  • downstream-handoff.md — decision tree mapping finding types to remediation chains.
  • cadence.md — when to run, what to expect, how "good" looks over time.

Quality Gates

Before delivering the report:

  • Every 🔴 finding has line-numbered evidence
  • Every finding has a recommended next step
  • Deploy surface inventory is exhaustive (every place a deploy could fire)
  • Report written to disk
  • Log entry appended
  • No auto-fix actions taken — detect-only respected

Adapting to Your Stack

The scanners already cover Cloudflare, Railway, Vercel, Fly, Render, and Docker Compose. To add a platform:

  1. Teach scan_deploy_target_names.sh how to extract the target name from that platform's config
  2. Teach scan_bindings.sh the platform's shared-resource identifiers (if any beyond the generic datastore scan)
  3. Add the config filename to scan_deploy_surface.sh

The directory-level scanners (scan_archive_markers.sh, scan_stale_forks.sh, scan_spec_dirs.sh) are already platform-agnostic — they reason about directories, READMEs, and git history, not deploy configs.

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

Files

SKILL.md and 11 other files (scripts, references) in .claude/skills/code-service-defrag of jacob-dietle/context-os.

  • SKILL.md
  • references/cadence.md
  • references/downstream-handoff.md
  • references/landmine-patterns.md
  • references/platform-collision-semantics.md
  • scripts/defrag_scan.sh
  • scripts/scan_archive_markers.sh
  • scripts/scan_bindings.sh
  • scripts/scan_deploy_surface.sh
  • scripts/scan_deploy_target_names.sh
  • scripts/scan_spec_dirs.sh
  • scripts/scan_stale_forks.sh

Open the folder on GitHubat commit 1027e3f

Compare with similar skills

Code Service Defrag 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.

Code Service Defrag compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Service Defrag this skilljacob-dietle/context-os111—~3.7kAutomated safety check: PassMIT
Deploy AstermemAsterove/AsterMem161—~3.2kAutomated safety check: WarnAGPL-3.0
Devops SpecialistCaoMeiYouRen/caomei-auth220—~446Automated safety check: NotesMIT
Devopsnicepkg/auto-company1942 repos~814Automated safety check: PassMIT
Pwa ReleaseAHS12/thoth-blueprint625—~505Automated safety check: PassGPL-3.0
CI/CD Pipeline Principlesirahardianto/awesome-agv157—~2.7kAutomated safety check: NotesMIT

Similar skills

  • Deploy Astermem

    Asterove/AsterMem

    Guide the user through taking AsterMem live — on a cloud server, or on a machine they already own (home NAS, Raspberry Pi, this computer) exposed through Cloudflare Tunnel with no public IP.

    161 GitHub stars~3.2k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check: warnings
  • Devops Specialist

    CaoMeiYouRen/caomei-auth

    修改 Docker、CI/CD、部署配置、环境变量、运行时参数、构建脚本和发布流程时使用。优先覆盖 Docker、Vercel、Cloudflare 与 GitHub Actions 场景。用户提到 deploy、Dockerfile、workflow、CI、CD、environment variables、build pipeline、release config 时都应触发。

    220 GitHub stars~446 tokensUpdated 8 days ago
    DevOps & CloudAuto-check: notes
  • Devops

    nicepkg/auto-company

    Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm).

    194 GitHub starsUsed in 2 repos~814 tokens
    DevOps & CloudAuto-check passed
  • Pwa Release

    AHS12/thoth-blueprint

    Safely change Vite, service-worker, offline fallback, cache, Docker, Vercel, or release-distribution behavior.

    625 GitHub stars~505 tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • CI/CD Pipeline Principles

    irahardianto/awesome-agv

    Rules for designing CI/CD pipelines in layers: universal lint, test and scan stages, container builds with SBOM attestation, and GitOps for orchestrated deployments.

    157 GitHub stars~2.7k tokensUpdated 4 days ago
    DevOps & CloudAuto-check: notes
  • Frontmcp Deployment

    agentfront/frontmcp

    A skill your agent uses when deploying, building for production, packaging, or shipping a FrontMCP server.

    146 GitHub stars~9.2k tokensUpdated 2 days ago
    DevOps & CloudAuto-check: notes

More from jacob-dietle/context-os

All 11 skills in this repo
  • Bottleneck Attack

    jacob-dietle/context-os

    A skill your agent uses when deciding what to work on next, when progress is stuck, or when the reflex is to build or automate before proving the current bottleneck.

    111 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Content Strategy And Assembly

    jacob-dietle/context-os

    This skill should be used when producing content (newsletter posts, blog posts, LinkedIn posts) from existing corpus material.

    111 GitHub stars~3.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Context Os CLI

    jacob-dietle/context-os

    This skill should be used when users ask about their work context, what they're working on, recent activity, file relationships, or knowledge graph structure.

    111 GitHub stars~4.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Decision Accountability

    jacob-dietle/context-os

    This skill should be used when making architectural decisions, writing specs, or reviewing decisions that contain "future work", "v2", "simpler for now", "out of scope", or complexity claims.

    111 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Coordinated Agent Teams

    jacob-dietle/context-os

    This skill should be used when decomposing a spec into a multi-agent implementation plan with dependency ordering, parallelism decisions, contract testing, and verification strategy.

    111 GitHub stars~4.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Eval Loop

    jacob-dietle/context-os

    This skill should be used when a specific quality problem (UX, data, architecture, feature) needs systematic diagnosis and iterative fixing toward a defined target.

    111 GitHub stars~5.2k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Code Service Defrag

What does Code Service Defrag do?

This skill should be used to periodically defragment a multi-app/multi-service codebase — both CODE (duplicate deploy targets, colliding bindings, stale forks) and CONTEXT (parallel spec…. Code Service Defrag is an agent skill from jacob-dietle/context-os. This skill should be used to periodically defragment a multi-app/multi-service codebase — both CODE (duplicate deploy targets, colliding bindings, stale forks) and CONTEXT (parallel spec conventions, orphan docs, scattered context packages) — on any platform (Cloudflare, Railway, Vercel, Fly, Render, Docker Compose).

When should I use Code Service Defrag?

Code Service Defrag fits situations like: tasks that involve Containers.

How do I install Code Service Defrag in Claude Code?

Run `npx skills add jacob-dietle/context-os --skill code-service-defrag -a claude-code`. Or copy the skill folder (.claude/skills/code-service-defrag in jacob-dietle/context-os) into .claude/skills/code-service-defrag in your project. Claude Code loads it when a task matches its description.

How do I install Code Service Defrag in Codex?

Run `npx skills add jacob-dietle/context-os --skill code-service-defrag -a codex`. Or copy the skill folder (.claude/skills/code-service-defrag in jacob-dietle/context-os) into .agents/skills/code-service-defrag in your project. Codex loads it when a task matches its description.

Can I use Code Service Defrag 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 jacob-dietle/context-os --skill code-service-defrag -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-service-defrag, .gemini/skills/code-service-defrag, .github/skills/code-service-defrag and .opencode/skills/code-service-defrag in your project.

What does Code Service Defrag need to run?

Going by SKILL.md and its folder, Code Service Defrag needs a shell for the scripts in its folder and the command-line tools its instructions call (bash and git). Our summary lists: A Bash shell; Docker.

Does Code Service Defrag access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Code Service Defrag 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Code Service Defrag use?

Code Service Defrag 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 Code Service Defrag use?

About 3.7k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.4k tokens, read only when the agent opens those files.

What are the alternatives to Code Service Defrag?

Skills that share tags, products or a category with Code Service Defrag: Deploy Astermem (Asterove/AsterMem, 161 stars), Devops Specialist (CaoMeiYouRen/caomei-auth, 220 stars), Devops (nicepkg/auto-company, 194 stars) and Pwa Release (AHS12/thoth-blueprint, 625 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Service Defrag?

jacob-dietle (a GitHub user) maintains it in jacob-dietle/context-os, which has 111 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on August 13, 2026.

Source: jacob-dietle/context-os on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.