From self-message
Self-messaging capability. Invoke this skill when you need to reframe your approach mid-task, break complex work into deliberate phases, or restart your reasoning with a fresh perspective — without waiting for user input.
How this skill is triggered — by the user, by Claude, or both
Slash command
/self-message:self-messageThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You can send yourself a continuation message to start a **fresh agentic loop** within the same session. This resets your reasoning frame while preserving full conversation context.
You can send yourself a continuation message to start a fresh agentic loop within the same session. This resets your reasoning frame while preserving full conversation context.
This is NOT a subagent. It's a new turn for YOU — same session, same context, new frame.
{"decision": "block", "reason": "<your message>"}bash ${CLAUDE_SKILL_DIR}/scripts/self-message.sh "Reassess: the recursive approach hit a dead end. Try iterative with memoization instead."
Then just stop. That's it. The hook handles session isolation automatically.
Your self-message is the most important part. It's your instruction to your future self. Be specific:
Bad:
Continue working on the task.
Good:
Phase 1 complete: identified 3 API endpoints that need refactoring (users.ts:45, auth.ts:120, billing.ts:89). The common pattern is they all do N+1 queries. Phase 2: implement batch loading for each, starting with users.ts since it's the simplest case.
Good:
Reassess: spent 3 tool calls trying to fix the type error by widening the type. Wrong direction — the real issue is the caller in main.ts:230 passing the wrong shape. Fix the caller, not the type.
Include:
SELF_MSG_MAX_DEPTH env var) — enough for ~12 hours of autonomous worknpx claudepluginhub alberduris/skills --plugin self-messageDetects and breaks looping behavior, bounds over-thinking, and triggers clean handoffs before context runs out in long Claude Code tasks.
Pauses execution between actions to check alignment, release momentum, and refocus attention. Use mid-task when drift might be accumulating or before important decisions.
Executes long-running tasks autonomously across Claude Code sessions using headless bash loops or in-session hooks. Supports structured decomposition for projects and Ralph-style iteration for TDD, fixes, refactoring.