AgentSkillsCN

start-session

从模板中创建新的会话文件,自动识别工作模式,将分支与迭代周期一一对应,并做好工作环境的准备工作。

SKILL.md
--- frontmatter
name: start-session
description: Create a new session file from template, auto-detect work mode, map branch to cycle, and prepare working context.

Start Session Skill

Goal

Initialize a new session with correct mode, branch awareness, and cycle mapping.

Steps

  1. Run context-reload logic (light version):
  • Read snapshot
  • Read baseline
  • Detect current branch
  • Detect active cycle (if any)
  1. Create new session file: docs/audit/sessions/SXXX.md

Use TEMPLATE_SESSION_SXXX.md structure.

  1. Fill:
  • Auto-detected mode
  • Confidence + reasons
  • Current branch
  • Baseline version
  • Active cycles
  • Snapshot reviewed: yes
  1. Apply Branch/Cycle Requirement Auto-check:

If mode=COMMITTING:

  • Require a cycle + status.md
  • Require branch mapping in status.md (branch_name: current branch)
  • Run Core DoR check from status.md/brief.md/plan.md:
    • objective + scope/non-scope present
    • first implementation step defined
    • constraints/risks acknowledged
  • If DoR not satisfied:
    • do not proceed as COMMITTING
    • recommend smallest actions to reach READY
    • suggest THINKING or EXPLORING until fixed

If mode=EXPLORING and:

  • 2 files touched OR

  • 30 min code work expected → Recommend converting to SPIKE cycle + dedicated branch

  1. Suggest:
  • Session Objective (1 sentence)
  • Time Budget
  • Planned Outputs

Do not modify baseline. Only create/update session file.