session-init

Initialize Claude Code sessions by checking environment and summarizing task state.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/lane2077/claude-code-harness-zh --skill session-init-lane2077
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-init
Source: https://github.com/lane2077/claude-code-harness-zh/tree/main/codex/.codex/skills/session-init
Command: npx skills add https://github.com/lane2077/claude-code-harness-zh --skill session-init-lane2077

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the initial setup of Claude Code sessions by performing environment checks and summarizing the current task state, ensuring the user starts with clear context and aligned expectations.

Core Features & Use Cases

  • Environment validation at session start (Git status, current branch, uncommitted changes) and preflight checks for Plans.md and AGENTS.md.

  • Task discovery and handoff: extracts ongoing work (cc:WIP), newly requested tasks (pm:依頼中), and ready-to-start items (cc:TODO) from Plans.md, along with a summary of the latest snapshot.

  • Context provisioning and guardrails: loads the previous session handoff, ensures AGENTS.md constraints are acknowledged, and prepares a context-rich report to drive subsequent actions via /work, /sync-status, or /maintenance.

  • Memory resume integration: (outlined) leverages the Unified Harness Memory resume pack to restore session context when available.

Quick Start

Start a new session to initialize the environment and task overview.

Frequently Asked Questions about session-init

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize a Claude Code session with environment checks and task status?

Initializing a Claude Code session requires validating the Git state, reading Plans.md for ongoing work, and loading AGENTS.md constraints to populate context and guardrails for guiding subsequent actions.

What is the best way to resume a previous session and restore context in Claude Code?

Session resume works by loading the previous session handoff and leveraging the Unified Harness Memory resume pack to restore context, ensuring AGENTS.md constraints are acknowledged before proceeding.

How does task discovery work when starting a new development session?

Task discovery extracts ongoing cc:WIP work, newly requested pm:依頼中 tasks, and ready-to-start cc:TODO items from Plans.md, alongside a summary of the latest snapshot, to prepare a context-rich report.

Do I need Plans.md and AGENTS.md files to use session initialization?

Plans.md and AGENTS.md are required dependencies for session initialization, as the skill needs them to perform preflight checks, extract task statuses, and load guardrails to guide next steps.

Can I trigger environment and status checks manually after a session has started?

Environment and status checks can be triggered manually whenever requested, as the skill applies its validation logic at session start or on-demand to summarize the current task state.

How do I prepare guardrails and context before starting work in a new session?

To prepare guardrails and context, the skill loads the previous session handoff, acknowledges AGENTS.md constraints, and integrates Plans.md with the latest snapshot to produce a context-rich report for driving subsequent actions.