Skip to content
Back to skills

Cli Memory

ASecurity

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." ---

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentsgosecurity

Works with

  • cursor
  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill cli_memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-cli-memory/badge)](https://www.skillsdirectory.com/skills/idorgham-cli-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md3.6 KB
  • SKILL.md.meta.json793 B
  • core.py400 B
  • manifest.yaml181 B
  • tests/test_core.py281 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.