Bruno-Cunha-Souza/ValarMindSkills / skills/context-optimization
context-optimization
UnverifiedLifecycle context audit/optimize/plan. Audit mode (Phase 0..6) + Guide mode (catalog lookup). Targets long-conv agents, RAG pipelines, sub-agents, large-doc workflows. Detects bloat/dedup/cache/masking/partition opportunities. Emits findings (SAFE/REVIEW/BREAKING) + optimization plan + token delta. Read-only — LGTM if sound. Triggers: 'optimize context', 'compact context', 'auditar contexto', 'otimizar contexto', '/context-optimization'.
Security report
UnverifiedStatic analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.
- Commit
dad2765355463ef2b6ef6ea065b4f33160376b53- Content hash
4275b1a6f183162818645961115d07790d5be9a0741423840c97704ee275066f- Scanned
- 2026-11-18
- Scanner version
- skillxone-scan-1.0.0
- Policy version
- 0.1-draft
- Decision
- Required check skipped: dependencies (Manifest format not supported yet, dependencies not checked: scripts/ctxopt/Cargo.lock, scripts/ctxopt/Cargo.toml.)
- Verification expires
- Not applicable
Findings (1 low, 1 info)
The text tells the agent to ignore or override its existing instructions, a common prompt-injection pattern. Severity lowered from high because it appears in a quotation.
- **Prompt-injection via chunk content** — chunks contain `"ignore the above"`-style instructions; LLM follows them. Cross-link: [`prompt-engineering` §13](../../prompt-engineering/references/STRATEGIES.md#13-prompt-injection-guard).Suggested fix: Remove the instruction. A skill should add guidance for its task, not cancel the instructions the agent already follows.
The skill ships an executable script. Review it before allowing an agent to run it.
#!/usr/bin/env bashSuggested fix: None required. Informational.
Checks run
- prompt-injection
- dangerous-commands
- credentials
- network
- file-access
- integrity
Checks skipped
- dependencies (required): Manifest format not supported yet, dependencies not checked: scripts/ctxopt/Cargo.lock, scripts/ctxopt/Cargo.toml.
- gitleaks: gitleaks is not installed on this host.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |