You maintain the **durable tool memory** so Cursor and agents can prefer the right CLI for each task type. Load this skill when doing a **structured update** of `CLI_TOOL_MEMORY.md` from the usage log, or when the user asks to "update tool memory" or "refresh CLI scoreboard." ---
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cli Memory?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/idorgham-cli-memory)
---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---
# Workspace Factory CLI tool memory (cli-memory)
You maintain the **durable tool memory** so Cursor and agents can prefer the right CLI for each task type. Load this skill when doing a **structured update** of `CLI_TOOL_MEMORY.md` from the usage log, or when the user asks to "update tool memory" or "refresh CLI scoreboard."
---
## 1. When to use this skill
- **After a batch of CLI runs** — Summarize the last N entries from `CLI_USAGE_AND_RESULTS.md` into `CLI_TOOL_MEMORY.md` (scoreboard and per-tool notes).
- **When the guide or orchestrator needs a recommendation** — Ensure "Recommended tool per task" and per-tool notes in `CLI_TOOL_MEMORY.md` reflect recent outcomes.
- **User asks** — "Update CLI memory," "Refresh the CLI scoreboard," or "Summarize CLI usage into tool memory."
---
## 2. Inputs
- **`docs/development/learning/CLI_USAGE_AND_RESULTS.md`** — Log of date, CLI, task/phase, outcome, notes.
- **`docs/development/learning/CLI_LIMITS_TRACKING.md`** (optional) — Current limits; don’t recommend a CLI at 80%+.
- **`docs/development/learning/GUIDE_PREFERENCES.md`** (optional) — User’s preferred tools; respect them when updating "Best for."
- **`docs/guides/TOOL_AND_CLI_REFERENCE.md`** — Task-to-tool matrix; use as default when no memory yet.
---
## 3. Procedure
1. **Read** the last N entries (e.g. 20–50) from `CLI_USAGE_AND_RESULTS.md`.
2. **Cluster** by task type (e.g. refactor, schema/DB, content, security/audit) and by CLI.
3. **Tally** wins / partials / fails per (task type, CLI). **Exclude Claude** from the scoreboard; Claude entries go only into the **Escalations** section of `CLI_TOOL_MEMORY.md`.
4. **Update** `CLI_TOOL_MEMORY.md`:
- Scoreboard table: add or update counts; set "Best for" per task type to the CLI with the best outcomes (subject to 80% rule and user preferences).
- Per-tool notes: short "Best for" / "Avoid when" / "Notes" from recent wins and failures.
- Escalations: append Claude-only rows (date, task, outcome, notes); do not score Claude.
- Recommended tool per task: align with scoreboard and per-tool notes.
5. **Keep** entries short. Do not remove existing content unless replacing with a clearer summary.
---
## 4. Rules
- **Claude** — Always logged in `CLI_USAGE_AND_RESULTS.md`; in `CLI_TOOL_MEMORY.md` only in the **Escalations** section. Never add Claude to the competition scoreboard.
- **80% rule** — If `CLI_LIMITS_TRACKING.md` or `GUIDE_PREFERENCES.md` says a CLI is at 80%+, do not recommend it as "Best for" for new work unless the user has permitted it.
- **Cursor is master** — Tool memory is a recommendation; Cursor still decides which tool to use.
## 🌍 Regional Calibration (MENA Context)
- **Cultural Alignment:** Ensure all logic respects regional business etiquette and MENA market expectations.
- **RTL Compliance:** Logic must explicitly handle Right-to-Left (RTL) flow where relevant.
## 🛡️ Critical Failure Modes (Anti-Patterns)
- **Anti-Pattern:** Generic Output -> *Correction:* Apply sector-specific professional rules from RULE.md.
- **Anti-Pattern:** Global-Only Logic -> *Correction:* Verify against MENA regional calibration.
---
## 5. References
- `docs/development/learning/CLI_USAGE_AND_RESULTS.md` — Source log.
- `docs/development/learning/CLI_TOOL_MEMORY.md` — Target file to update.
- `.antigravity/skills/cli-limits/SKILL.md` — Limits and 80% rule.
- `docs/guides/TOOL_AND_CLI_REFERENCE.md` — Task-to-tool matrix and defaults.