AGENT SKILL

orient-session

Use when the user wants to continue prior work, resume a topic, or pick up where they left off on a recurring subject. Recalls prior session context before opening a new session. Activates on "continue work on X", "resume research on X", "pick up where I left off on X", or "start session with context on X".

License 许可
MIT
最近更新
2026-03-22
Stars
★ 0
Forks
0

01 前言 Front Matter

name
orient-session
version
1.0.0
description
Use when the user wants to continue prior work, resume a topic, or pick up where they left off on a recurring subject. Recalls prior session context before opening a new session. Activates on "continue work on X", "resume research on X", "pick up where I left off on X", or "start session with context on X".
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

Recall-Driven Session Start

Load prior session context on a topic before opening a new session. This skill prevents re-doing work by surfacing what prior sessions covered, then starting grounded in that context. Use this when resuming — not for cold-start sessions (use ztl:session for that).

Iron Laws

Present prior context summary before opening any session. Never call session_start without first showing the user what prior sessions found. The checkpoint in step 5 is not optional.

Check result.success after every MCP call. If recall_topic fails, stop and report the error — do not start a session on incomplete recall.

Workflow

  1. Read ztlctl://sessions/recent — load the last 5 sessions. Scan topics and timestamps for relevance to the user's stated subject.

  2. recall_topic(query="<topic>") — search session log entries for sessions matching the topic. Returns matching sessions with note IDs, timestamps, and relevance scores.

  3. For the top relevant sessions: extract note_ids; call get_document(content_id="<id>") on the highest-scored and most recently modified notes to rebuild context. Parallel fetches are acceptable.

  4. Summarize prior context: "Found N prior sessions on '<topic>'. Key notes: [titles]. Last worked on: [date]. Main findings: [summary of note bodies from step 3]."

  5. Present summary and ask user to confirm continuation. Do not open the session until the user confirms. Ask: "Continue from this context, or start fresh?" Stop here until the user responds.

  6. session_start(topic="<topic> — continued") — open a new session grounded in prior context. The " — continued" suffix creates a session lineage that recall_topic can trace in future runs. Check result.success. Report: session ID, prior session count, key note IDs loaded.

Path detection

This skill is for RESUMING prior work on a recurring topic. If the user is starting work on a topic for the first time (no prior sessions), use ztl:session instead — orient-session adds recall overhead with no benefit on a fresh topic.

If recall_topic returns no matching sessions, report: "No prior sessions found on '<topic>'. Suggest using ztl:session for a clean start."

See references/recall-workflow.md for sessions/recent resource format, recall_topic output, and continuation pattern details.

04 同仓库更多 Skills

ThatDevStudio
ThatDevStudio/ztlctl

vault-methodology

Use when working in a ztlctl vault — creating notes, organizing knowledge, tagging, linking, or making decisions about content types and structure. Activates for any knowledge management task.

★ 0
ThatDevStudio
ThatDevStudio/ztlctl

synthesize

Use when the user wants to synthesize scattered notes into a unified artifact, consolidate knowledge on a topic, connect existing notes, find structural gaps, or create a synthesis note. Activates on "synthesize", "consolidate", "connect my notes on X", "summarize what I know about X", "find gaps in X", or "create synthesis".

资料检索与研究
★ 0
ThatDevStudio
ThatDevStudio/ztlctl

session

Use when the user wants to start, begin, or open a work session, OR close, end, or finish an active session. Manages the full session lifecycle: pre-flight checks, polaris alignment, session start, and session close with enrichment pipeline.

★ 0
ThatDevStudio
ThatDevStudio/ztlctl

session-workflow

Use when starting, running, or closing research sessions. Guides structured knowledge capture workflows: start → capture → synthesize → close.

资料检索与研究Skill与智能体开发
★ 0
ThatDevStudio
ThatDevStudio/ztlctl

review-triage

Use when the user asks to review the work queue, triage pending items, clear the backlog, or find out what needs attention in the vault. Surfaces prioritized actionable items and batch-processes approved updates.

★ 0
ThatDevStudio
ThatDevStudio/ztlctl

review-contradictions

Use when the user wants to review conflicting notes, find inconsistencies in the vault, check for contradictions between knowledge claims, or inspect semantically-close notes that may conflict. Runs the per-pair evaluation loop to surface genuine contradictions and dismiss false positives.

★ 0