Skip to content
Back to skills

Session Context

ASecurity

Git change summarization, ADR relevance matching, and pattern applicability for building session context. Provides techniques for analyzing recent project activity, scoring context relevance, and detecting patterns that accelerate AI coding session starts. Use when explicitly asked to prime/build context for a new coding session or onboarding. Do NOT use for a simple factual lookup like "what did I commit yesterday?" -- that's a plain `git log`, not a context-building request.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 14, 2026
ai-agentsgotestinggit

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add michaelalber/ai-toolkit --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/michaelalber-session-context/badge)](https://www.skillsdirectory.com/skills/michaelalber-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
audience: team
description: Git change summarization, ADR relevance matching, and pattern applicability for building session context. Provides techniques for analyzing recent project activity, scoring context relevance, and detecting patterns that accelerate AI coding session starts. Use when explicitly asked to prime/build context for a new coding session or onboarding. Do NOT use for a simple factual lookup like "what did I commit yesterday?" -- that's a plain `git log`, not a context-building request.
---

# Session Context

> "Context is worth 80 IQ points. The difference between a productive coding session and a stumbling
> one is whether you understood the state of the system before you started changing it."
> -- Alan Kay (attributed)

## Core Philosophy

Every AI coding session starts with a context gap: the model doesn't know what changed yesterday,
which architectural decisions govern this module, or which files are volatile. This skill bridges
that gap systematically, turning cold-start into a solved problem. Session context is not about
knowing everything — it is about knowing the *right* things. Relevant context, delivered concisely
at session start, prevents more bugs than any amount of testing after the fact.

**Non-Negotiable Constraints:**
1. RELEVANCE OVER RECENCY — score context by relevance to the focus area; recency is only a tiebreaker.
2. CITE EVERY CLAIM — every statement references a commit hash, file path, line number, or ADR; no exceptions.
3. SUMMARIZE, DON'T DUMP — never reproduce full ADRs, logs, or files; summarize with citations.
4. CONCISE SUMMARY — the executive summary fits one screen (< 40 lines); detailed sections are for drill-down.
5. OBSERVATION ≠ INFERENCE — label inferences explicitly; only verifiable facts are stated as facts.

Full principle table, the change-summarization and ADR-matching protocols, discipline rules,
anti-patterns, and error recovery live in `references/conventions.md`.

## Workflow

```
SCOPE       Define the focus area + time window (default 2 weeks active / 4 weeks less active);
            identify the repo root and branch topology.

GATHER      Collect raw context: git log --stat for the window, file change frequencies (hotspots),
            imports/deps in the focus area, ADR files + dates, convention files, README/design docs.
            (Protocols: conventions.md; techniques: change-summarization.md.)

SCORE       Rate each item: proximity to focus, recency weighting, ADR applicability, dependency
            relevance. Filter below the relevance threshold. (Scoring: relevance-matching.md.)

SYNTHESIZE  Group git changes by feature/area; rank ADRs by relevance; present the focused dependency
            subgraph; surface warnings (hotspots, overdue reviews, breaking changes); form recommendations.

DELIVER     Present the briefing (templates in output-templates.md): executive summary first
            (< 40 lines), detailed sections following, every claim cited, recommendations actionable.
```

**Exit criteria:** a briefing with a < 40-line executive summary, every claim cited, ADRs ranked by
relevance with stated reasons, dependency blast radius shown, staleness/hotspot warnings surfaced,
and specific session recommendations.

## State Block

```
<session-context-state>
mode: scope | gather | score | synthesize | deliver
focus_area: [files, modules, or features]
time_window: [date range]
repository: [path to repository root]
commits_collected: [count]
files_in_focus: [count]
adrs_discovered: [count]
adrs_relevant: [count]
dependencies_traced: [count]
hotspots_detected: [count]
relevance_threshold: [score cutoff]
last_action: [what was just completed]
next_action: [what should happen next]
</session-context-state>
```

## Output Template

- **Executive summary, change group, dependency context, hotspot analysis** — `references/output-templates.md`.
- **Git log analysis techniques (grouping, diff-stat, hotspot detection, branch topology)** — `references/change-summarization.md`.
- **Relevance scoring (proximity, recency, ADR applicability, dependency-path relevance)** — `references/relevance-matching.md`.
- **Principle table, summarization + ADR protocols, discipline rules, anti-patterns, error recovery** — `references/conventions.md`.

## Integration with Other Skills

| Skill | Relationship |
|-------|-------------|
| `architecture-journal` | This skill surfaces relevant ADRs and overdue retrospectives; architecture-journal provides the templates and review protocols to act on them. |
| `dependency-mapper` | This skill traces dependencies at summary level for blast radius; dependency-mapper provides full Martin metrics (Ca, Ce, I, A, D) when patterns look concerning. |
| `qrspi-research` / `qraspi-research` | Use session-context as a pre-step to seed research with recent-change context before deeper codebase exploration. |

Files in this skill

  • SKILL.md4.8 KB
  • references/change-summarization.md11.7 KB
  • references/conventions.md6.4 KB
  • references/output-templates.md2.9 KB
  • references/relevance-matching.md15.9 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.