원클릭으로
aget-close-session
Close session with pre-close triage, enriched output, and dual provenance. Orchestrates wind-down — does not replace it.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Close session with pre-close triage, enriched output, and dual provenance. Orchestrates wind-down — does not replace it.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Guide through the 7-phase specification enhancement lifecycle (Phases 0-6 from L622). Governs creating, updating, wiring, and validating AGET specifications.
Expand SKOS ontology vocabularies with web-researched, evidence-backed concepts. Identifies thin topics, proposes expansion areas, researches best-practice concepts, creates bridging interlinkage, writes formal SKOS entries, and enriches matched existing entries.
Open a session with context-aware establishment. Orchestrates wake-up, recovers prior session context, surfaces pending work, and proposes a session agenda.
Verify factual claims using a stratified 3-pass protocol (data, logic, propagation). Layer 2 Pre-Assertion Gates for the anti-confabulation architecture.
Read-only cross-system coherence check for initiatives. Aggregates state from KB, GitHub, Linear, and Slack, then reports alignment and drift.
Generate standalone narrative documents from session artifacts, optimized for a target consumption medium (NotebookLM, slides, memo, share-draft). Use when the user says "create briefing", "create a briefing for NotebookLM", "make this listenable", "summarize session for [medium]", "prepare a listen", "brief me on [topic]", or "create a summary I can share".
| name | aget-close-session |
| description | Close session with pre-close triage, enriched output, and dual provenance. Orchestrates wind-down — does not replace it. |
| allowed-tools | ["Bash","Read","Write","Edit","Glob","Grep"] |
Close an AGET agent session with decision support. Scans for quick wins, auto-executes them, then runs wind-down and enriches the session note.
planning/artifacts/CAP-SESSION-013_close_session_requirements.md v0.1.0
Extends: AGET_SESSION_SPEC v1.2.0 (CAP-SESSION-004: Wind-Down Protocol)
Proposal: SP-008
Before modifying this skill: update planning/artifacts/CAP-SESSION-013_close_session_requirements.md requirements first. SKILL.md implements the spec, not the other way around. (OBS-13, L157)
When this skill is invoked:
Before running wind-down, scan session context for remaining low-effort work.
Friction rule: Use Glob and Grep to discover uncommitted files and session state — do NOT use git status via Bash. This avoids a wasted permission prompt (R-CLOSE-040, R-CLOSE-041).
Pre-close actions:Triage boundary: Fix time ≤5 min qualifies. Diagnostic time is excluded from the 5-min budget but counts against the friction budget (R-CLOSE-020).
Run wind-down and telemetry as a single Bash call (R-CLOSE-042):
scripts/record_invocation.py exists using Glob (not Bash)python3 scripts/wind_down.py --force && python3 scripts/record_invocation.py aget-close-session
python3 scripts/wind_down.py --force
This consumes 1 permission prompt for all of Phase 2. --force bypasses the re-entrancy guard since close-session is the orchestrator.
Target: ≤2 permission prompts for the entire invocation.
The only Bash calls allowed are:
python3 scripts/wind_down.py --force [&& python3 scripts/record_invocation.py aget-close-session] (Phase 2, single combined call)git add ... && git commit ... (Phase 3, single combined call)Everything else MUST use dedicated tools:
git status, not ls)cat, not head)grep, not rg)test -f)PROHIBITED Bash calls: git status, git diff, git log, git diff --stat, ls, cat, grep. These each cost a permission prompt and are replaceable by dedicated tools.
Enrich the session note created by wind_down.py:
theme: and closed_by: aget-close-session/1.0.0 to YAML frontmatter (R-CLOSE-008, R-CLOSE-011)## Session Friction section with table classifying events as avoidable/structural/operational (R-CLOSE-017, R-CLOSE-018). If zero friction events, write None observed. (R-CLOSE-019)pending_work and health_check data from the stubgit add only this session's filesOther sessions' uncommitted files (not committed):
- [filename] (likely from [session/date])
Present the close-session summary. All fields are mandatory.
Close Session Complete: [THEME IN CAPS]
- Session: [duration]
- Sanity: [healthy/warnings/errors]
- Pending: [N] items in planning/
- Changes: [committed/staged/unstaged counts]
- Pre-close actions: [N quick wins executed — list them] (omit if 0)
- Artifacts: [count and types: L-docs, issues, scripts, session notes, skills]
- Friction: [N] events ([M] avoidable)
- Context: [N]% remaining (estimate from status bar)
CRITICAL: [blocker description] (only if critical blockers exist — omit otherwise)
Resume: [one-line actionable hint for next session]
Type `exit` to end this session.
Mandatory fields: ALL lines are mandatory. Friction: MUST appear even when 0 events — write Friction: 0 events (0 avoidable) (R-CLOSE-035).
Tail ordering (mandatory): CRITICAL (conditional) → Resume (always) → exit line (always).
---
date: YYYY-MM-DD
aget_version: "X.Y.Z"
agent_name: "agent-name"
theme: "DESCRIPTIVE SESSION THEME"
closed_by: aget-close-session/1.0.0
status: completed
---
theme: is the canonical field name — NOT title:, NOT name: (R-CLOSE-012)closed_by version MUST match this skill's version (R-CLOSE-010)Target: ≤2 permission prompts per invocation.
git add + git commit callExpected prompts: wind_down.py (1) + git commit (1) = 2.
| Aspect | /aget-wind-down | /aget-close-session |
|---|---|---|
| Role | Infrastructure (stub + health check) | Orchestrator (triage + wind-down + enrichment) |
| Invocation | Phase 2 delegate | Top-level skill |
| Output | Minimal session stub | Enriched session note |
| Provenance | None | closed_by + record_invocation.py |
| Status | Deprecated (POL-DEP-001, grace until v4.0) | Canonical |
/aget-wind-down remains functional. A deprecation notice should be added to its SKILL.md:
DEPRECATED: Use
/aget-close-sessioninstead. This skill is retained during POL-DEP-001 grace period. Expires at v4.0 per DESIGN_DIRECTION_skill_verb_vocabulary.md.
--force if within close-session invocation| Link | Reference |
|---|---|
| Requirements | CAP-SESSION-013 (planning/artifacts/) |
| Extends | AGET_SESSION_SPEC v1.2.0 CAP-SESSION-004 |
| Proposal | SP-008 (planning/skill-proposals/PROPOSAL_aget-close-session.md) |
| Verb vocabulary | DESIGN_DIRECTION_skill_verb_vocabulary.md (close: proposed, Common category) |
| Upstream issues | #925 ({verb}_by), #926 (friction budget), #297 (v4.0 rename) |
| Cross-fleet evidence | Legalon FLEET_CLOSE_SESSION_SPEC v1.1.0 (9 CAPs, 8 scored sessions, 0.74 avg) |
| L-docs | L670, L699, L605 (framework); L157, L159, L160, L162 (Legalon) |
| Session observations | OBS-5 through OBS-11 (SESSION_2026-04-10) |
| Version | Date | Changes |
|---|---|---|
| 1.0.0 | 2026-04-10 | Initial creation. Composition architecture (orchestrates wind-down). 3 phases: pre-close triage, wind-down delegation, session enrichment. Governed by CAP-SESSION-013. Cross-fleet evidence from Legalon v1.0-v1.3 (8 sessions, 0.50→0.74). |
aget-close-session v1.0.0 Category: Lifecycle Architecture: Composition (orchestrates /aget-wind-down)