# Context Tool Audit

> Use when auditing context-heavy skills/plugins or project tool cleanup.

- Skill: `cyz26/context-tool-audit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cyz26/context-tool-audit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cyz26/context-tool-audit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: cYz26 (https://skillmd.com/u/cyz26)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/cyz26/context-tool-audit

---


# Context Tool Audit

Use this skill when the user wants to inspect, reduce, or rebalance Codex plugin/skill context for a repo.

## Read-Only Audit

Generate a report first:

```bash
python3 scripts/audit_context_tools.py \
  --repo <repo> \
  --codex-home <codex-home> \
  --json > audit-report.json
```

Optional discovery sources:

```bash
--source-catalog /path/to/marketplace.json
--source-url https://example.com/marketplace.json
```

Review:

- `contextPressure`
- `findings`
- `recommendations`
- `actions`

## Apply After Authorization

Preview selected actions:

```bash
python3 scripts/apply_context_tool_actions.py \
  --plan audit-report.json \
  --action <action-id> \
  --json
```

Apply only after the user confirms the selected action ids:

```bash
python3 scripts/apply_context_tool_actions.py \
  --plan audit-report.json \
  --action <action-id> \
  --apply \
  --json
```

Use `--all-safe` only after showing the user the selected safe actions.

## Safety

- Default to read-only reports and dry-runs.
- Do not apply cleanup/install actions without explicit user authorization.
- Cleanup disables global config entries or global skill activation; it does not delete plugin caches or skill files.
- Installation copies known cached skills into `<repo>/.agents/skills/`.

