Skip to content
Back to skills

Session Context

ASecurity

Load development context at session start: git branch, uncommitted changes, CONTEXT.md / TODO.md / open issues. Use when: starting a new coding session, resuming interrupted work, or when the agent needs to orient itself quickly before acting. Inspired by: disler/claude-code-hooks-mastery session_start pattern.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
ai-agentsbashgit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add yanacuti1121/Yana-AI --skill session-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Session Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Session Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yanacuti1121-session-context/badge)](https://www.skillsdirectory.com/skills/yanacuti1121-session-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "session-context"
description: "Load development context at session start: git branch, uncommitted changes, CONTEXT.md / TODO.md / open issues. Use when: starting a new coding session, resuming interrupted work, or when the agent needs to orient itself quickly before acting. Inspired by: disler/claude-code-hooks-mastery session_start pattern."
---

# Session Context Skill

## When to trigger

- Starting a new session
- "orient yourself", "load context", "what's the current state"
- "nhắc lại context", "tóm tắt trạng thái"
- Session start hooks firing

## What to do

### Step 1 — Git state
```bash
git status --short
git log --oneline -5
git branch --show-current
```

Report: current branch, uncommitted files, last 5 commits.

### Step 2 — Context files (read if present)
- `CONTEXT.md` — project-specific session context
- `TODO.md` — open action items
- `CLAUDE.md` — agent instructions
- `AGENTS.md` — agent entry point

Do not fail if files are missing — skip silently.

### Step 3 — Session summary

Output a compact summary:
```
Branch: [branch-name]
Uncommitted: [N files or "clean"]
Last commit: [message]
Open todos: [count or "none found"]
Active context: [key points from CONTEXT.md or "none"]
```

## Graceful degradation

- Missing git: skip git section, note "not a git repo"
- Missing context files: skip sections, do not error
- Never block the session — always complete with partial data if needed

## Output format

Plain text, compact. Max 20 lines. No headers unless content is long.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…