Agent skill · Audited from source
Cost Compact Context
skill · ruvnet/rufloMIT licenceAudited 25 Sep 2026 · source ef7d4f0535e5
Is it safe? With care — CAUTION, grade B (89/100). We read this skill's source at commit ef7d4f0535e5 and found no filesystem, network or shell access and no hard-coded secrets. The audit raised 4 findings, 0 critical or high. What it does: Wrap getTokenOptimizer().getCompactContext() to retrieve compacted ReasoningBank context for cost-analysis queries; report bridge-reported tokensSaved
Cite
Cite this page
ModelsAtlas. “Cost Compact Context (ruvnet/ruflo)”. Retrieved 25 Sep 2026. https://modelsatlas.com/skills/ruvnet/cost-compact-context
Trust audit
Audit 0.4.1 · source read 25 Sep 2026
CAUTION means the audit found things worth knowing before you trust this skill. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN | 4 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (4)
MEDIUMInventory / provenanceinv.symlink · crates
crates
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · plugin/agents
plugin/agents
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · plugin/commands
plugin/commands
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · plugin/skills
plugin/skills
- Why
- link not followed
- Fix
- —
Audit 0.4.1 · source sha ef7d4f0535e5 · 25 Sep 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherruvnet GitHub userOwner of the repository this skill is read from
- Source folderruvnet/ruflo/plugins/ruflo-cost-tracker/skills/cost-compact-contextThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdictef7d4f0535e5A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Wrap getTokenOptimizer().getCompactContext() to retrieve compacted ReasoningBank context for cost-analysis queries; report bridge-reported tokensSaved
---
name: cost-compact-context
description: Wrap getTokenOptimizer().getCompactContext() to retrieve compacted ReasoningBank context for cost-analysis queries; report bridge-reported tokensSaved
argument-hint: "<query>"
allowed-tools: Bash
---
# Cost Compact Context
Wraps `getTokenOptimizer().getCompactContext()` from `@claude-flow/integration` for cost-analysis queries. The bridge dynamically imports `agentic-flow` with graceful fallback: when the package isn't installed, `tokensSaved` is `0` and the skill exits cleanly. No MCP tool wraps `getTokenOptimizer` today (ADR-0002 §"Riskiest assumption"); we shell a Node one-liner instead.
## Steps
1. **Take the query** — the single argument.
2. **Invoke** — run from anywhere under `v3/` so `@claude-flow/integration` resolves:
```bash
( cd v3 && node ../plugins/ruflo-cost-tracker/scripts/compact.mjs "<QUERY>" )
```
The script imports `@claude-flow/integration/token-optimizer` (canonical export — **not** `dist/token-optimizer.js`, which would double the `.js` extension via Node's `./*` exports rule), calls `getCompactContext(query)`, and prints a markdown summary plus a JSON line via `COMPACT_QUIET=1`.
3. **Report** — markdown table with: memories retrieved, tokens saved (bridge-reported), agentic-flow availability, cache hit rate. The script also emits a "bridge-reported, not measured against a no-RAG baseline" disclaimer. On bridge-unavailable: prints "agentic-flow not installed — bridge returns inert results." and exits cleanly.
## Caveats — claimed upstream, not yet verified
CLAUDE.md root claims `ReasoningBank retrieval: -32%` tokens. The bridge's `tokensSaved` is `query_tokens − compact_prompt_tokens` (token-optimizer.ts:141–143) — a heuristic, **not** a baseline-measured saving. token-optimizer.ts:9–10 itself says: *"No fabricated metrics are reported — all stats reflect real measurements"*. This skill carries that disclaimer forward.
Booster-specific availability is **not** exposed as a getter — observable only through `optimizedEdit()` returning `method: 'agent-booster'`. The canonical Tier 1 signal is `[AGENT_BOOSTER_AVAILABLE]` (see `cost-booster-route`).
## Fallback
`agentic-flow` not installed → `getCompactContext` returns `{tokensSaved: 0, memories: []}` (line 116–124), `optimizedEdit` returns `{method: 'traditional'}`, `getOptimalConfig` falls back to anti-drift defaults. Skill exits cleanly with the "not available" message.
## Cross-references
ADR-0002 Decision #2 + §"Riskiest assumption" · `token-optimizer.ts:308` (singleton export) · `docs/benchmarks/0002-baseline.md` (verification findings).Excerpt, first 2,625 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit ef7d4f0
git clone https://github.com/ruvnet/ruflo git -C ruflo checkout ef7d4f0535e5
The author documents no install command, so this uses the repository directly. Our verdict covers commit ef7d4f0535e5 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- !CAUTION B 89 / 100
first audit · source
ef7d4f0535e5
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/ruvnet/cost-compact-context/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
ruvnet/claude-flow
Quantum-resistant, self-learning version control for AI agents with ReasoningBank intelligence and multi-agent coordination
ruvnet/claude-flow
Train and deploy neural networks in distributed E2B sandboxes with Flow Nexus
ruvnet/claude-flow
Cloud-based AI swarm deployment and event-driven workflow automation with Flow Nexus platform
ruvnet/claude-flow
Comprehensive GitHub release orchestration with AI swarm coordination for automated versioning, testing, deployment, and rollback management
ruvnet/claude-flow
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
ruvnet/claude-flow
Advanced Hive Mind collective intelligence system for queen-led multi-agent coordination with consensus mechanisms and persistent memory
Add this badge to your README
[](https://modelsatlas.com/skills/ruvnet/cost-compact-context/)
<a href="https://modelsatlas.com/skills/ruvnet/cost-compact-context/"><img src="https://modelsatlas.com/skills/ruvnet/cost-compact-context/badge.svg" alt="ModelsAtlas: CAUTION B"></a>
Questions about Cost Compact Context
What does the Cost Compact Context skill do?
Is Cost Compact Context safe to install?
What can Cost Compact Context access on my machine?
How current is this page?
Sources
- github.com/ruvnet/ruflo/tree/main/plugins/ruflo-cost-tracker/ski — the audited source at commit ef7d4f0535e5 and every finding aboveObserved · 25 Sep 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Cost Compact Context skill do?
- Is Cost Compact Context safe to install?
- What can Cost Compact Context access on my machine?