new

Solid

Start a new session — save summary to memory, then mark as reset so next message gets a fresh greeting. OpenClaw-compatible. Triggers on /new, /reset, /agent:new, "nueva sesión", "new session", "reset".

AI & Automation 62 stars 14 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /new — Start a new session Save the current session to memory, then mark it as "reset pending" so the next message triggers a fresh greeting (like OpenClaw). ## How this works (architecture) OpenClaw's `/new` generates a new session ID and runs a greeting prompt on the next turn. In Claude Code, skills CANNOT invoke native `/clear`. Instead, we: 1. **Save** the current session to `memory/YYYY-MM-DD.md` 2. **Write a marker** `.session-reset-pending` with the greeting prompt 3. **Respond** with a brief "new session" acknowledgement 4. **On the next message**, the agent detects the marker, delivers the greeting, deletes the marker This is the honest simulation of a session reset when native `/clear` is not invokable. ## Steps 1. **Detect surface** (CLI vs messaging). 2. **Summarize the current session** to memory: ```bash DATE=$(date +%Y-%m-%d) TIME=$(date +%H:%M) ``` Append to `memory/$DATE.md`: ```markdown ## Session summary (<TIME>) — before /new - <key point> - <key point> ### Open items - <pending> ``` If the session was trivial, skip this step but still do the next one. 3. **Write the reset marker**: ```bash cat > .session-reset-pending << 'EOF' A new session was started via /new or /reset. Greet the user in your configured persona, if one is provided. Be yourself - use your defined voice, mannerisms, and mood. Keep it to 1-3 sentences and ask what they want to do. If the runtime model differs f...

Details

Author
crisandrews
Repository
crisandrews/ClawCode
Created
5 months ago
Last Updated
2 days ago
Language
TypeScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

start

Start a new session. Trigger with /start at the beginning of a conversation. Reads the session brief, checks git status, summarizes where things stand, and increments the session number.

1 Updated 3 weeks ago
t0ddharris
AI & Automation Solid

load-session

Restore session context at the start of every new conversation. Auto-triggers on session start, or when user says 'continue', 'what were we doing', 'where did we leave off'.

71 Updated today
faizkhairi
DevOps & Infrastructure Listed

session

Windows session tools for Claude Code, three jobs in one skill. (1) LAUNCH: open a NEW Claude Code session in a Windows Terminal tab — a fresh scratch folder or a registered workspace alias — only when the user gives an explicit launch verb together with "Claude"/"session" or a workspace (클로드 켜줘, 새 임시 작업 켜줘, 세션 열어줘, <별칭> 폴더 켜줘, open a new claude session). (2) RESUME: reopen an EARLIER session in a new tab (아까 그 세션 다시 켜줘, <별칭> 폴더 이어서 켜줘, reopen my last session). (3) REBOOT-AND-CONTINUE: carry the CURRENT session across a Windows restart — save the next-step prompt, register a one-shot resume, restart, and pick up after logon — for work that needs a restart (Windows Update, driver or feature installs, WSL/Docker/Hyper-V, registry edits) when the user asks to reboot and continue (재부팅하고 이어서 해, reboot and continue); cancelling or checking a scheduled resume (재부팅 취소, 재개 예약 확인) is this skill too. Never fire on a bare mention of a project, product or folder name without a launch verb, and never treat "restart the ses

0 Updated 1 weeks ago
getCurrentThread