Skip to content
Back to skills

Clear

ASecurity

Saves this session's knowledge as /kb:save does, then clears the session - but only when the save fully succeeded. Run only when the user types /kb:clear.

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

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add jrnxf/kb --skill clear --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clear?

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

Security grade badge for Clear
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jrnxf-clear/badge)](https://www.skillsdirectory.com/skills/jrnxf-clear)

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
---
name: clear
description: Saves this session's knowledge as /kb:save does, then clears the session - but only when the save fully succeeded. Run only when the user types /kb:clear.
argument-hint: "[auto memory folder]"
disable-model-invocation: true
allowed-tools: Bash(kb *), Bash(rm */projects/*/memory/*.md), Bash(kb-transcript --memory), Read, Glob, Edit, Write
---

# kb clear

Read `<this skill's base directory>/../save/SKILL.md` and follow every step of it, with these arguments: $ARGUMENTS

When this turn ends, kb runs `/clear` by itself if all of these are true:

- `kb checkpointed` ran in this turn and succeeded.
- Your answer starts with `**Safe to clear**`.
- The turn ended normally.

So:

- When a step needs the user's answer, such as a repo rule that waits for a yes, ask the question and stop. Write no report. The session then stays, and the user runs `/kb:clear` again after the answer.
- When the verdict is `**Not safe to clear**`, write it as the save skill says. The session then stays.
- Never write `**Safe to clear**` unless step 6 succeeded.

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.