Context Compression
guanyang/open-agent-hub
This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve…
Build composable skill modules with hub-and-spoke loading. An agent skill from athola/claude-night-market.
$ npx skills add athola/claude-night-market --skill modular-skills -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install athola/claude-night-market modular-skills --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/abstract/skills/modular-skills .claude/skills/modular-skills && rm -rf skills-srcUse ~/.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/
Install the "modular-skills" agent skill from https://github.com/athola/claude-night-market/tree/master/plugins/abstract/skills/modular-skills into .claude/skills/modular-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "modular-skills", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/athola/claude-night-market/tree/master/plugins/abstract/skills/modular-skillsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add athola/claude-night-market --skill modular-skills -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install athola/claude-night-market modular-skills --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/abstract/skills/modular-skills .agents/skills/modular-skills && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "modular-skills" agent skill from https://github.com/athola/claude-night-market/tree/master/plugins/abstract/skills/modular-skills into .agents/skills/modular-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "modular-skills", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add athola/claude-night-market --skill modular-skills -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install athola/claude-night-market modular-skills --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/abstract/skills/modular-skills .cursor/skills/modular-skills && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "modular-skills" agent skill from https://github.com/athola/claude-night-market/tree/master/plugins/abstract/skills/modular-skills into .cursor/skills/modular-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "modular-skills", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/athola/claude-night-market.git --path plugins/abstract/skills/modular-skills--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add athola/claude-night-market --skill modular-skills -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install athola/claude-night-market modular-skills --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/abstract/skills/modular-skills .gemini/skills/modular-skills && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "modular-skills" agent skill from https://github.com/athola/claude-night-market/tree/master/plugins/abstract/skills/modular-skills into .gemini/skills/modular-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "modular-skills", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install athola/claude-night-market modular-skillsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add athola/claude-night-market --skill modular-skills -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/abstract/skills/modular-skills .github/skills/modular-skills && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "modular-skills" agent skill from https://github.com/athola/claude-night-market/tree/master/plugins/abstract/skills/modular-skills into .github/skills/modular-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "modular-skills", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add athola/claude-night-market --skill modular-skills -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install athola/claude-night-market modular-skills --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/abstract/skills/modular-skills .opencode/skills/modular-skills && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "modular-skills" agent skill from https://github.com/athola/claude-night-market/tree/master/plugins/abstract/skills/modular-skills into .opencode/skills/modular-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "modular-skills", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
modular-skillsBuild composable skill modules with hub-and-spoke loading. An agent skill from athola/claude-night-market.
Modular Skills is an agent skill from athola/claude-night-market. Build composable skill modules with hub-and-spoke loading. Use when token budget is tight.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files (for example `README.md`, `guide.md` and `modules/antipatterns-and-migration.md`).
It sits in AI & LLM Engineering, covering LLM cost and token optimization. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.
Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Modular Skills loads about 1.6k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 607 words of instructions outside code blocks.
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.
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.
The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 607 words, ~1,565 tokens.
.claude/skills/modular-skills/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.abstract:skill-authoring)leyline:progressive-loading)This framework breaks complex skills into focused modules to keep token usage predictable and avoid monolithic files. We use progressive disclosure: starting with essentials and loading deeper technical details via @include or Load: statements only when needed. This approach prevents hitting context limits during long-running tasks.
Modular design keeps file sizes within recommended limits, typically under 150 lines. Shallow dependencies and clear boundaries simplify testing and maintenance. The hub-and-spoke model allows the project to grow without bloating primary skill files, making focused modules easier to verify in isolation and faster to parse.
Three tools support modular skill development:
skill-analyzer: Checks complexity and suggests where to split code.token-estimator: Forecasts usage and suggests optimizations.module_validator: Verifies that structure complies with project standards.We design skills around single responsibility and loose coupling. Each module focuses on one task, minimizing dependencies to keep the architecture cohesive. Clear boundaries and well-defined interfaces prevent changes in one module from breaking others. This follows Anthropic's Agent Skills best practices: provide a high-level overview first, then surface details as needed to maintain context efficiency.
Deprecated: skills/shared/modules/ directories. This pattern caused orphaned references when shared modules were updated or removed.
Current pattern: Each skill owns its modules at skills/<skill-name>/modules/. When multiple skills need the same content, the primary owner holds the module and others reference it via relative path (e.g., ../skill-authoring/modules/description-writing.md). The validator flags any remaining skills/shared/ directories.
Analyze modularity using scripts/skill_analyzer.py. You can set a custom threshold for line counts to identify files that need splitting.
python scripts/skill_analyzer.py --file path/to/SKILL.md --threshold 100From Python, use analyze_skill from abstract.skill_tools.
Estimate token consumption to verify your skill stays within budget. Run this from the skill directory:
python scripts/tokens.pyCheck for structure and pattern compliance before deployment.
python scripts/abstract_validator.py --scanStart by assessing complexity with skill_analyzer.py. If a skill exceeds 150 lines, break it into focused modules following the patterns in modules/implementation-patterns.md. Use token_estimator.py to check efficiency and abstract_validator.py to verify the final structure. This iterative process maintains module maintainability and token efficiency.
Identify modules needing attention by checking line counts. A module over 100 lines is a candidate for a split. Do not add a Table of Contents: an anchor list restates the headings below it and costs tokens on every load, and grep finds the headings directly.
# Find modules exceeding 100 lines
find modules -name "*.md" -exec wc -l {} + | awk '$1 > 100'Our standards prioritize concrete examples and a consistent voice. Always provide actual commands in Quick Start sections instead of abstract descriptions. Use third-person perspective (e.g., "the project", "developers") rather than "you" or "your". Each code example should be followed by a validation command. For discoverability, descriptions must include at least five specific trigger phrases.
Standard patterns for triggers and for deciding whether a skill applies:
Detailed guides for implementation and maintenance:
modules/enforcement-patterns.mdmodules/core-workflow.mdmodules/implementation-patterns.mdmodules/antipatterns-and-migration.mdmodules/design-philosophy.mdmodules/troubleshooting.mdmodules/optimization-techniques.md - reducing large skill file sizes through externalization, consolidation, and progressive loadingskill_analyzer.py, token_estimator.py, and abstract_validator.py in ../../scripts/.skills/shared/modules/ directory exists; all modules live under
skills/<skill-name>/modules/.python scripts/abstract_validator.py --scan exits 0 with no structural warnings on the
affected skill directory.python scripts/tokens.py reports total estimated tokens within the declared
estimated_tokens budget for the hub SKILL.md.© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 10 other files in plugins/abstract/skills/modular-skills of athola/claude-night-market.
Open the folder on GitHubat commit 9f3eb00
Modular Skills 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Modular Skills this skillathola/claude-night-market | 341 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Context Compressionguanyang/open-agent-hub | 977 | 2 repos | ~4.6k | Automated safety check: Pass | MIT | |
| Fleet Auditoralexgreensh/token-optimizer | 2.5k | — | ~1.7k | Automated safety check: Pass | Custom licence | |
| Context Auditundefined-ui/second-brain-os | 1k | — | ~802 | Automated safety check: Pass | MIT | |
| Analyzing Claude Code Sessionsamd/gaia | 1.6k | — | ~2.3k | Automated safety check: Pass | MIT | |
| Token Optimizeralexgreensh/token-optimizer | 2.5k | — | ~481 | Automated safety check: Pass | Custom licence |
guanyang/open-agent-hub
This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve…
alexgreensh/token-optimizer
Cross-system agent token/cost audit (Claude Code, Codex, OpenClaw, Hermes, OpenCode): idle burns, model misrouting, config bloat, with dollar savings.
undefined-ui/second-brain-os
Audit an agent's context layout against the four places: system prompt, tools, history, tail.
amd/gaia
Mines local Claude Code session transcripts with a deterministic Python pipeline to show what the agent is actually used for, how often it fails and what it costs.
alexgreensh/token-optimizer
Audit your OpenClaw setup for token waste, context bloat, and cost optimization opportunities
egorfedorov/claude-context-optimizer
Configure token budget limits, auto-compact settings, and view current budget status (model-aware — Claude 5 lineup, Opus 5.5 default fallback, full 1M context at standard price)
athola/claude-night-market
Run and interpret repo diagnostic scripts (ratchets, validators, token stats).
athola/claude-night-market
Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.
athola/claude-night-market
Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.
athola/claude-night-market
Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).
athola/claude-night-market
Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.
athola/claude-night-market
Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.
Categories
Build composable skill modules with hub-and-spoke loading. An agent skill from athola/claude-night-market. Modular Skills is an agent skill from athola/claude-night-market. Build composable skill modules with hub-and-spoke loading.
Modular Skills fits situations like: token budget is tight; tasks that involve LLM cost and token optimization.
Run `npx skills add athola/claude-night-market --skill modular-skills -a claude-code`. Or copy the skill folder (plugins/abstract/skills/modular-skills in athola/claude-night-market) into .claude/skills/modular-skills in your project. Claude Code loads it when a task matches its description.
Run `npx skills add athola/claude-night-market --skill modular-skills -a codex`. Or copy the skill folder (plugins/abstract/skills/modular-skills in athola/claude-night-market) into .agents/skills/modular-skills in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill modular-skills -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/modular-skills, .gemini/skills/modular-skills, .github/skills/modular-skills and .opencode/skills/modular-skills in your project.
Going by SKILL.md and its folder, Modular Skills needs the command-line tools its instructions call (python). Our summary lists: Python 3.
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.
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.
Modular Skills is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Modular Skills: Context Compression (guanyang/open-agent-hub, 977 stars), Fleet Auditor (alexgreensh/token-optimizer, 2.5k stars), Context Audit (undefined-ui/second-brain-os, 1k stars) and Analyzing Claude Code Sessions (amd/gaia, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
athola (a GitHub user) maintains it in athola/claude-night-market, which has 341 GitHub stars. The repository holds 152 skills in this directory. The repository was last updated on October 9, 2026.
Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.