بنقرة واحدة
session-management
Apply when initializing, saving, resuming, or closing a work session
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Apply when initializing, saving, resuming, or closing a work session
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Provides coding style rules for Python and PowerShell. Apply when writing, editing, reviewing, or debugging code.
Apply when conducting deep research on technologies, APIs, frameworks, or other software development topics requiring systematic investigation
Apply when doing planning for long-running tasks in sessions on top level
Apply when committing code, writing commit messages, or configuring .gitignore
Apply when working with GitHub repositories, issues, PRs, or authentication
Apply when interacting with Google services (Gmail, Calendar, Drive, Tasks) via gogcli CLI
استنادا إلى تصنيف SOC المهني
| name | session-management |
| description | Apply when initializing, saving, resuming, or closing a work session |
Sessions track EDIRD phases:
[DEFAULT_SESSIONS_FOLDER]/_YYYY-MM-DD_[SessionTopicCamelCase]/[DEFAULT_SESSIONS_FOLDER] = [WORKSPACE_FOLDER] (override in !NOTES.md)T##_TopicDescription_YYYY-MM-DD/ for independent work streams. Max 1 level. Run detection procedure on session entry./session-new): Create session folder with tracking files/session-save): Document findings, commit changes/session-load): Re-read session documents, continue work/session-finalize): Sync findings to project files, prepare for archiveWhen a session performs multiple steps in sequence to produce an output, each step gets its own subfolder. Each subfolder yields a corresponding summary document at the session root.
Pattern: S##_Description_YYYY-MM-DD[_gitignore]/
S## - 2-digit step sequence number with S prefix (S01, S02, ...)Description - CamelCase description; optionally prefixed with TOPIC- if step belongs to a research track (e.g., S03_MYTPC-ExtractPatterns_2026-05-10/)YYYY-MM-DD - date the step was executed_gitignore - optional suffix marking local-only content (large data, intermediate artifacts)Sub-steps: Use letter suffix without renumbering: S03a_, S03b_
Each step folder gets a corresponding summary at the session root.
Pattern: S##_Description_STEPLOG.md
_gitignore suffix)[filename](S##_Folder/filename)Use STEPLOG_TEMPLATE.md from this skill folder.
Each step folder has its own independent numbering namespace:
_INFO_TOPIC_01-SUMMARY.md, _INFO_TOPIC_02-SOURCES.md, etc.See "Structure" example under Topic Folders section for a complete session layout including Step Folders, Topic Folders, and Bug Folders.
Not needed for single-step sessions or sessions where all work fits in the session root with a few INFO files.
When a session contains multiple independent work streams, each stream gets its own [TOPIC_FOLDER] with independent tracking files. Max 1 level of nesting (session root → topic folder, never deeper).
Pattern: T##_TopicDescription_YYYY-MM-DD/
T## - 2-digit sequence number with T prefix (T01, T02, ...). Sequence = creation order, not dependencyTopicDescription - CamelCase description; optionally prefixed with TOPIC- if topic belongs to a research track (e.g., T01_XLREF-TranslationReflection_2026-05-22/)YYYY-MM-DD - date the topic folder was created_YYYY-MM-DD_SessionName/
├── NOTES.md (Topic Registry, Topic/Step Folders, Bug List)
├── PROBLEMS.md
├── PROGRESS.md (Topic/Step Folders progress)
│
│ Topic Folders (independent work streams)
├── T01_DatabaseOptions_2026-01-15/
│ ├── NOTES.md
│ ├── PROBLEMS.md
│ ├── PROGRESS.md
│ └── _INFO_DBOPT_01.md
├── T02_APID-APIDesign_2026-01-15/
│ ├── NOTES.md
│ ├── PROBLEMS.md
│ ├── PROGRESS.md
│ └── _SPEC_APID_01.md
│
│ Step Folders (sequential pipeline)
├── S01_CollectData_2026-01-15_gitignore/
│ └── (large source files, local only)
├── S01_CollectData_STEPLOG.md
├── S02_MYTPC-AnalyzeResults_2026-01-16/
│ ├── _INFO_MYTPC_01-SUMMARY.md
│ └── _INFO_MYTPC_02-SOURCES.md
├── S02_MYTPC-AnalyzeResults_STEPLOG.md
│
│ Bug Folders (AUTH = session TOPIC ID, see /bugfix workflow)
└── AUTH-BG-0001_TokenRaceCondition/
├── PROBLEMS.md
└── _INFO_*.md
Not needed for sessions with a single focus or where all work feeds into one outcome.
Execute when entering any session workflow. Detect from the current working path:
T##_* pattern[TOPIC_FOLDER], its parent is the [SESSION_FOLDER][SESSION_FOLDER]Workspace-level files (e.g., !NOTES.md) are loaded by /prime, not as parent session context.
Execute at end of /session-save when working in a T##_* folder:
## Topic Folders section (create section if not present):
- [ ] T##_Description_YYYY-MM-DD: [one-line status summary][x] when topic folder work is completeExecute when /session-finalize is invoked:
If finalizing from a T##_* folder:
[x]If finalizing from session root with T##_* subfolders:
/session-finalize behavior)When creating a new topic folder inside an existing session:
T## number (find highest existing T## number + 1)T##_TopicDescription_YYYY-MM-DD/ inside the session folder## Topic Folders section## Topic Folders sectionBase: [DEFAULT_SESSIONS_FOLDER] (default: [WORKSPACE_FOLDER], can be overridden in !NOTES.md)
Format: [DEFAULT_SESSIONS_FOLDER]/_YYYY-MM-DD_[SessionTopicCamelCase]/
Example: _PrivateSessions/_2026-01-12_FixAuthenticationBug/
Use templates from this skill folder:
NOTES_TEMPLATE.md): Key information, agent instructions, working patterns, large initial prompts (>120 tokens)PROBLEMS_TEMPLATE.md): All problems to be addressed - initial prompts, questions, feature requests, bugs, strange behavior, investigation topics. Each problem gets a unique ID and tracks status (Open/Resolved/Deferred)PROGRESS_TEMPLATE.md): Task execution tracking - to-do list, done items, tried-but-not-used approachesKey distinction:
1. INIT: User initializes session (`/session-new`)
└── Session folder, NOTES.md, PROBLEMS.md, PROGRESS.md created
2. PREPARE (one of):
A) User prepares work manually
└── Creates INFO / SPEC / IMPL documents, tracks progress
B) User explains problem, agent assists
└── Updates Problems, Progress, Notes → researches → creates documents
3. WORK: User or agent implements
└── Makes decisions, creates tests, implements, verifies
└── Progress and findings tracked continuously
4. SAVE: User saves session for later (`/session-save`)
└── Everything updated and committed
5. RESUME: User resumes session (`/session-load`)
└── Agent primes from session files, executes workflows in Notes
└── Continue with steps 2-3
6. FINALIZE: User finalizes session (`/session-finalize`)
└── Everything updated, committed, synced to project/workspace
7. ARCHIVE: User archives session
└── Session folder moved to _Archive/
See [AGENT_FOLDER]/rules/devsystem-ids.md rule (always-on) for complete ID system.
Quick Reference:
[TOPIC]-[DOC][NN] (IN, SP, IP, TP)
CRWL-SP01, AUTH-IP01[TOPIC]-[TYPE]-[NNNN] (BG = Bug, FT = Feature, PR = Problem, FX = Fix, TK = Task)
SAP-BG-0001, UI-PR-0003, GLOB-TK-0015Use the full templates from this skill folder (not the minimal snippets below):
NOTES_TEMPLATE.md - Includes Topic Registry, Topic/Step Folders, Bug List, Significant Prompts LogPROBLEMS_TEMPLATE.md - Open/Resolved/Deferred sections with ID formatPROGRESS_TEMPLATE.md - To Do/In Progress/Done, Topic/Step Folders progress