用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/joenandez/spectre --skill spectre-forget命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Orchestrate durable XS–XL planning after confirmed Scope, with adaptive artifacts, review, tasks, telemetry, and explicit pre-code approval. Do not use for scoping, bug diagnosis, read-only work, or execution of approved artifacts.
Orchestrate durable XS–XL planning after confirmed Scope, with adaptive artifacts, review, tasks, telemetry, and explicit pre-code approval. Do not use for scoping, bug diagnosis, read-only work, or execution of approved artifacts.
Create the smallest evidence-backed plan for confirmed Scope. Use for HOW after scope or when Plan routes here; not for scope, UX, tasks, or implementation.
基于 SOC 职业分类
正在显示 SKILL.md
| name | spectre-forget |
| description | Clear session memory - archive all session files so next session starts fresh |
| user-invocable | true |
| disable-model-invocation | true |
Treat the current command arguments as this workflow's input. When invoked from a slash command, use the forwarded $ARGUMENTS value.
branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo unknown)
canonical_dir=".spectre/handoffs/${branch}"
legacy_dir="docs/tasks/${branch}/session_logs"
archived_count=0
for session_dir in "$canonical_dir" "$legacy_dir"; do
[ -d "$session_dir" ] || continue
archive_dir="${session_dir}/archive"
while IFS= read -r -d '' session_file; do
mkdir -p "$archive_dir"
mv "$session_file" "$archive_dir/"
archived_count=$((archived_count + 1))
done < <(
find "$session_dir" -maxdepth 1 -type f \
\( -name '*_handoff.json' -o -name '*_todos.json' -o -name 'todos_history.json' \) \
-print0
)
done
if [ "$archived_count" -eq 0 ]; then
echo "NO_SESSIONS"
exit 0
fi
echo "ARCHIVED:${archived_count}"
Archive only the current branch's active, top-level files in .spectre/handoffs/{branch}/ and the matching legacy docs/tasks/{branch}/session_logs/. Do not scan another branch, descend into an existing archive/, merge the roots, or restore an archived file. The raw branch name is used directly; slash-containing branches intentionally nest.
Action — ConfirmCleared: Based on bash output, inform user
If output is NO_SESSIONS:
No session logs found for this branch. Memory is already clear.
Else (output is ARCHIVED:N):
✓ Session memory cleared
Archived {N} session file(s) under the matching
.spectre/handoffs/{branch}/archive/and legacydocs/tasks/{branch}/session_logs/archive/directories.Next: Start a new session with
/clearor close this terminal. Your next session will start fresh without auto-loaded context.
*_handoff.json files in both roots moved to their own archive/ subdirectory*_todos.json files in both roots moved to their own archive/ subdirectorytodos_history.json files in both roots moved to their own archive/ subdirectory