AgentSkillsCN

session-context

从 .sessions/index.md 读取项目会话上下文,以了解正在进行的工作、之前的决定、阻塞因素和历史记录。在用户询问项目上下文、之前会话、之前做了什么、架构决策、阻塞因素,或引用“上次”、“之前”、“这次会话”或“我们决定了什么”时使用。

SKILL.md
--- frontmatter
name: session-context
description: Read project session context from .sessions/index.md to understand ongoing work, previous decisions, blockers, and history. Use when the user asks about project context, previous sessions, what was worked on before, architectural decisions, blockers, or when they reference "last time", "previously", "the session", or "what we decided".
allowed-tools: Read, Glob

Session Context

This project uses the Sessions Directory Pattern to maintain continuity across AI coding sessions. Context is stored in .sessions/index.md rather than relying on conversation memory.

When to Use This Skill

Read session context when the user:

  • Asks about previous work or decisions
  • References "last time", "previously", "before"
  • Wants to know about blockers or pending issues
  • Asks what the project status is
  • Starts a significant task that might have prior context

Instructions

  1. Read .sessions/index.md to understand:

    • Current project status and recent work
    • Active decisions and their rationale
    • Known blockers or pending issues
    • Links to relevant plans or documentation
  2. Check .sessions/plans/ if the user asks about implementation plans

  3. Check .sessions/docs/ if the user asks about documented topics

  4. For monorepos, check .sessions/packages/ for package-specific context

File Structure

code
.sessions/
├── index.md          # Main session context (read this first)
├── archive/          # Completed work history
├── docs/             # Topic documentation
├── plans/            # Implementation plans
├── prep/             # Pre-session context
└── packages/         # Monorepo package notes (if applicable)

Important

  • This skill is for reading context, not updating it
  • Session updates happen via /end-session slash command
  • Don't modify .sessions/index.md unless explicitly asked