Agent Context Audit
AI-Builder-Club/skills
Audit a repo's agent context — CLAUDE.md files, codebase docs, skills, and tool/MCP designs — against Anthropic's Claude 5 context-engineering guidance ("unhobbling": Anthropic cut ~80% of Claude…
This skill should be used when designing prompts, system prompts, or context windows for Claude.
$ npx skills add closedloop-ai/claude-plugins --skill context-engineering -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install closedloop-ai/claude-plugins context-engineering --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/closedloop-ai/claude-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/platform/skills/context-engineering .claude/skills/context-engineering && 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 "context-engineering" agent skill from https://github.com/closedloop-ai/claude-plugins/tree/main/plugins/platform/skills/context-engineering into .claude/skills/context-engineering/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-engineering", 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/closedloop-ai/claude-plugins/tree/main/plugins/platform/skills/context-engineeringType 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 closedloop-ai/claude-plugins --skill context-engineering -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install closedloop-ai/claude-plugins context-engineering --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/closedloop-ai/claude-plugins.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/platform/skills/context-engineering .agents/skills/context-engineering && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "context-engineering" agent skill from https://github.com/closedloop-ai/claude-plugins/tree/main/plugins/platform/skills/context-engineering into .agents/skills/context-engineering/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-engineering", 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 closedloop-ai/claude-plugins --skill context-engineering -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install closedloop-ai/claude-plugins context-engineering --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/closedloop-ai/claude-plugins.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/platform/skills/context-engineering .cursor/skills/context-engineering && 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 "context-engineering" agent skill from https://github.com/closedloop-ai/claude-plugins/tree/main/plugins/platform/skills/context-engineering into .cursor/skills/context-engineering/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-engineering", 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/closedloop-ai/claude-plugins.git --path plugins/platform/skills/context-engineering--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 closedloop-ai/claude-plugins --skill context-engineering -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install closedloop-ai/claude-plugins context-engineering --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/closedloop-ai/claude-plugins.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/platform/skills/context-engineering .gemini/skills/context-engineering && 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 "context-engineering" agent skill from https://github.com/closedloop-ai/claude-plugins/tree/main/plugins/platform/skills/context-engineering into .gemini/skills/context-engineering/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-engineering", 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 closedloop-ai/claude-plugins context-engineeringInstalls 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 closedloop-ai/claude-plugins --skill context-engineering -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/closedloop-ai/claude-plugins.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/platform/skills/context-engineering .github/skills/context-engineering && 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 "context-engineering" agent skill from https://github.com/closedloop-ai/claude-plugins/tree/main/plugins/platform/skills/context-engineering into .github/skills/context-engineering/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-engineering", 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 closedloop-ai/claude-plugins --skill context-engineering -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install closedloop-ai/claude-plugins context-engineering --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/closedloop-ai/claude-plugins.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/platform/skills/context-engineering .opencode/skills/context-engineering && 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 "context-engineering" agent skill from https://github.com/closedloop-ai/claude-plugins/tree/main/plugins/platform/skills/context-engineering into .opencode/skills/context-engineering/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-engineering", 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.
context-engineeringThis skill should be used when designing prompts, system prompts, or context windows for Claude.
Context Engineering is an agent skill from closedloop-ai/claude-plugins. This skill should be used when designing prompts, system prompts, or context windows for Claude. Triggers include writing prompts for API calls, designing agent instructions, structuring complex inputs, optimizing context for accuracy, using examples effectively, or implementing chain-of-thought reasoning. Provides comprehensive guidance from Anthropic's official prompt engineering documentation.
Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/chain-of-thought.md`, `references/extended-thinking.md` and `references/long-context.md`).
It sits in Agent Workflows, covering Context engineering, Prompt engineering and Agent instruction files. The repository describes itself as: Open-source Claude Code plugins for multi-agent software delivery. Plan-first SDLC workflow, code review, LLM quality judges, and self-learning — grounded in your codebase… The licence is Apache-2.0.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 0e20ac0. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are xml).
From 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.
Context Engineering loads about 3.1k tokens when it runs, and up to ~6.8k if it reads all its reference files. Until then it costs about 105 tokens; SKILL.md has 1,381 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 closedloop-ai/claude-plugins at commit 0e20ac0, republished under its Apache-2.0 licence (© closedloop-ai). 1,381 words, ~3,057 tokens.
.claude/skills/context-engineering/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Context engineering is the practice of designing the entire context window—system prompts, examples, structure, instructions, and data—to maximize Claude's performance. This skill distills Anthropic's official prompt engineering documentation into actionable guidance.
Apply techniques in order of effectiveness. Not all tasks require all techniques.
| Priority | Technique | Best For |
|---|---|---|
| 1 | Be clear and direct | All tasks |
| 2 | Use examples (multishot) | Format consistency, complex patterns |
| 3 | Chain of thought | Math, logic, analysis, complex reasoning |
| 4 | XML tags | Multi-part prompts, structured I/O |
| 5 | Role prompting | Domain expertise, tone adjustment |
| 6 | Prefill response | Output format control, character consistency |
| 7 | Chain prompts | Multi-step workflows, error isolation |
| 8 | Long context tips | Documents >20K tokens |
| 9 | Extended thinking | Complex STEM, constraint optimization |
Think of Claude as a brilliant new employee who needs explicit instructions.
The Golden Rule: Show the prompt to a colleague with minimal context. If they're confused, Claude will be too.
Key Practices:
<example>
<poor>
Please remove all personally identifiable information from these messages.
</poor>
<good>
Your task is to anonymize customer feedback for our quarterly review.
Instructions:
Data to process: {{FEEDBACK_DATA}}
</good>
</example>
Examples dramatically improve accuracy, consistency, and quality.
Best Practices:
<example> tags (nest within <examples> if multiple)<example>
<prompt>
Our CS team needs to categorize feedback. Use categories: UI/UX, Performance, Feature Request, Integration, Pricing, Other. Rate sentiment (Positive/Neutral/Negative) and priority (High/Medium/Low).
<example>
Input: The new dashboard is a mess! It takes forever to load, and I can't find the export button. Fix this ASAP!
Category: UI/UX, Performance
Sentiment: Negative
Priority: High
</example>
Now analyze: {{FEEDBACK}}
</prompt>
</example>
Encourage Claude to break down problems step-by-step for complex reasoning tasks.
When to Use:
When to Avoid:
Complexity Levels:
| Level | Approach | Example |
|---|---|---|
| Basic | "Think step-by-step" | Quick, less guided |
| Guided | Outline specific steps | More control over reasoning |
| Structured | Use <thinking> and <answer> tags | Easy to parse, separates reasoning from output |
<example>
<basic>
Solve this problem. Think step-by-step.
</basic>
<structured>
Draft personalized donor emails.
Program info: {{PROGRAM_DETAILS}} Donor info: {{DONOR_DETAILS}}
Think before writing in <thinking> tags:
Then write the email in <email> tags.
</structured>
</example>
Use XML tags to structure prompts with multiple components.
Benefits:
Best Practices:
<outer><inner></inner></outer><contract> tags..."<instructions>, <context>, <examples>, <data>)<example>
<prompt>
Analyze this software licensing agreement for legal risks.
<context>
We're a multinational enterprise considering this for core infrastructure.
</context>
<agreement>
{{CONTRACT}}
</agreement>
<instructions>
1. Analyze: Indemnification, Limitation of liability, IP ownership
2. Note unusual or concerning terms
3. Compare to our standard: <standard_contract>{{STANDARD}}</standard_contract>
4. Summarize findings in <findings> tags
5. List recommendations in <recommendations> tags
</instructions>
</prompt>
</example>
See references/xml-tags.md for detailed patterns.
Use the system parameter to set Claude's role and dramatically improve domain performance.
Benefits:
Best Practices:
system parameter, task in user turn<example>
<basic>
system: "You are a helpful assistant."
</basic>
<enhanced>
system: "You are the General Counsel of a Fortune 500 tech company. You specialize in software licensing and data privacy regulations."
</enhanced>
</example>
Guide outputs by prefilling the Assistant message.
Use Cases:
{ for JSON)Constraints:
<example>
<json_output>
user: Extract name, price, color from: {{DESCRIPTION}}
assistant: { <!-- prefill forces JSON output -->
</json_output>
<character_maintenance>
user: What do you deduce about this shoe?
assistant: [Sherlock Holmes] <!-- prefill maintains character -->
</character_maintenance>
</example>
Break complex tasks into sequential subtasks for better accuracy.
When to Chain:
Benefits:
Patterns:
<example>
<chain>
Prompt 1: Analyze contract for risks → {{ANALYSIS}}
Prompt 2: Draft email based on <analysis>{{ANALYSIS}}</analysis>
Prompt 3: Review email for tone and clarity → {{FEEDBACK}}
Prompt 4: Revise email based on <feedback>{{FEEDBACK}}</feedback>
</chain>
</example>
For prompts with substantial data (20K+ tokens):
Key Practices:
Put data at the top: Place long documents above queries/instructions (up to 30% quality improvement)
Structure with XML: Wrap documents with metadata
<documents>
<document index="1">
<source>annual_report.pdf</source>
<document_content>{{CONTENT}}</document_content>
</document>
</documents>See references/long-context.md for detailed patterns.
For complex problems requiring deep reasoning:
Best Practices:
Best Use Cases:
See references/extended-thinking.md for detailed patterns.
| Goal | Technique |
|---|---|
| JSON output | Prefill with { |
| Specific structure | Provide example in <example> tags |
| No preamble | Prefill or explicit instruction |
| Consistent format | Multishot examples |
| Problem | Solution |
|---|---|
| Misses instructions | Number steps, be explicit |
| Inconsistent format | Add examples |
| Wrong reasoning | Add CoT with structured output |
| Misses context | Add role prompting |
| Drops steps | Chain into separate prompts |
When optimizing or compressing an existing prompt, apply these checks after every structural change:
| Pitfall | Check |
|---|---|
| Stale cross-references | After renaming or renumbering steps, search for ALL references to old labels (jump targets, "see Step X", resume points) and update them |
| Over-abstraction | If the model needs exact values to execute (specific keys, field names, command arguments), keep them literal even if they look repetitive. A generic placeholder the model cannot expand is worse than duplication |
| Lost preconditions | When merging or removing steps, verify that any precondition checks or guards in the removed step are preserved elsewhere |
| Dropped qualifiers | Single modifiers like only, when appropriate, unless X, if it affects Y, must, never, always are load-bearing constraints that look like filler during compression. For every modifier deleted, confirm the constraint it carried is preserved or that dropping it is the intended behavior change |
| Silent behavior changes | Diff the before/after and confirm every deleted line is either redundant or relocated, not dropped |
Validation Pass (run before declaring a refactor done):
| Tag | Purpose |
|---|---|
<instructions> | Task directives |
<context> | Background information |
<example> / <examples> | Few-shot demonstrations |
<data> / <document> | Input content |
<thinking> | Chain of thought reasoning |
<answer> / <output> | Final response |
<constraints> | Limitations or requirements |
For detailed guidance on specific techniques:
© closedloop-ai, Apache-2.0. 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 4 other files (references) in plugins/platform/skills/context-engineering of closedloop-ai/claude-plugins.
Open the folder on GitHubat commit 0e20ac0
Context Engineering 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 |
|---|---|---|---|---|---|---|
| Context Engineering this skillclosedloop-ai/claude-plugins | 122 | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| Agent Context AuditAI-Builder-Club/skills | 1.3k | — | ~2.2k | Automated safety check: Pass | None | |
| Caveman Learn Token FixesJuliusBrussee/caveman | 110k | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Agent Config Self Tunekdeldycke/dotfiles | 173 | — | ~3.4k | Automated safety check: Notes | BSD-2-Clause | |
| Agent Configagentculture/culture | 113 | — | ~1k | Automated safety check: Pass | Apache-2.0 | |
| Lintlanghermes-labs-ai/lintlang | 137 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 |
AI-Builder-Club/skills
Audit a repo's agent context — CLAUDE.md files, codebase docs, skills, and tool/MCP designs — against Anthropic's Claude 5 context-engineering guidance ("unhobbling": Anthropic cut ~80% of Claude…
JuliusBrussee/caveman
Acts on a Caveman learn report: reviews ranked token sinks, applies cost-lowering edits one at a time with your consent, and reports what each fix returned.
kdeldycke/dotfiles
Audit and tune the configuration of coding agents across Claude Code and pi - settings files (settings.json, settings.local.json), permission rules, instruction files (CLAUDE.md, AGENTS.md), skill…
agentculture/culture
Show a Culture agent's full configuration in one read-only view: its system-prompt file (CLAUDE.md / AGENTS.md / GEMINI.md), the parallel culture.yaml, and the agent's local .claude/skills index.
hermes-labs-ai/lintlang
Lint AI agent instruction files (SKILL.md, CLAUDE.md, AGENTS.md, GEMINI.md), tool definitions, system prompts, and agent configs with the deterministic LintLang CLI.
egorfedorov/claude-context-optimizer
Audit the fixed context overhead every session starts with — system prompt, MCP tools, agents, CLAUDE.md, memory — measured from real transcript usage
closedloop-ai/claude-plugins
Run Codex to review a plan file and return structured feedback with a verdict.
closedloop-ai/claude-plugins
Check if critic reviews are still valid before re-running Phase 2.5 critics.
closedloop-ai/claude-plugins
Check if cross-repo coordinator results can be reused, avoiding redundant Sonnet agent launches.
closedloop-ai/claude-plugins
Check for a cached plan-evaluation.json result before launching the plan-evaluator agent.
closedloop-ai/claude-plugins
This skill should be used when needing to locate files within the Claude Code plugins cache directory (~/.claude/plugins/cache).
closedloop-ai/claude-plugins
Start a detached GitHub pull-request monitor that wakes the exact launching Codex Desktop or CLI root through the managed Codex App Server when review, CI, conflict, merge-queue, closure, readiness…
Categories
This skill should be used when designing prompts, system prompts, or context windows for Claude. Context Engineering is an agent skill from closedloop-ai/claude-plugins. This skill should be used when designing prompts, system prompts, or context windows for Claude.
Context Engineering fits situations like: include writing prompts for API calls; designing agent instructions; structuring complex inputs; optimizing context for accuracy.
Run `npx skills add closedloop-ai/claude-plugins --skill context-engineering -a claude-code`. Or copy the skill folder (plugins/platform/skills/context-engineering in closedloop-ai/claude-plugins) into .claude/skills/context-engineering in your project. Claude Code loads it when a task matches its description.
Run `npx skills add closedloop-ai/claude-plugins --skill context-engineering -a codex`. Or copy the skill folder (plugins/platform/skills/context-engineering in closedloop-ai/claude-plugins) into .agents/skills/context-engineering 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 closedloop-ai/claude-plugins --skill context-engineering -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-engineering, .gemini/skills/context-engineering, .github/skills/context-engineering and .opencode/skills/context-engineering in your project.
SKILL.md names no scripts, command-line tools or credentials: Context Engineering is instructions for the agent only.
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.
Context Engineering is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.1k tokens (SKILL.md is roughly 12k 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 3.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Context Engineering: Agent Context Audit (AI-Builder-Club/skills, 1.3k stars), Caveman Learn Token Fixes (JuliusBrussee/caveman, 110k stars), Agent Config Self Tune (kdeldycke/dotfiles, 173 stars) and Agent Config (agentculture/culture, 113 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
closedloop-ai (a GitHub organization) maintains it in closedloop-ai/claude-plugins, which has 122 GitHub stars. The repository holds 43 skills in this directory. The repository was last updated on October 7, 2026.
Source: closedloop-ai/claude-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.