mun0602/mun-skill/awf-session-restore

Claude Code and agent skill by mun0602/mun-skill

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Auto-restore context on session start. Keywords: context, memory, session, restore, recap, remember, resume, continue, comeback, return. Activates as pre-hook for ALL AWF workflows to show brief session summary.

Install

npx vskill@latest install mun0602/mun-skill/awf-session-restore

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as mun0602/mun-skill/awf-session-restore.

AWF Session Restore

Auto-restore context khi user quay lại sau thời gian vắng mặt.

Trigger Conditions

Pre-hook for ALL workflows - Activates before any AWF command:

  • /plan, /code, /brainstorm, /debug, /test, etc.

Keywords in user message:

  • "quay lại", "tiếp tục", "đang làm gì", "làm dở"
  • "comeback", "continue", "resume", "what was I doing"

Execution Logic

Step 1: Check Session File
if exists(".brain/session.json"):
→ Parse JSON
→ Continue to Step 2
else:
→ Show: "Chưa có session. Bắt đầu mới nhé!"
→ Skip to workflow execution
Step 2: Generate Brief Summary

Extract from session.json và show indicator:

🔄 Restoring session...
📍 **Đang làm:** {working_on.feature}
└─ Task: {working_on.task}
└─ Status: {working_on.status}
⏭️ **Pending:** {pending_tasks.length} tasks
└─ Tiếp theo: {pending_tasks[0].task}
🕐 **Last saved:** {updated_at}
Step 3: Continue to Workflow

After summary display (< 3 seconds):

  • Pass context to main workflow
  • Workflow executes with restored context

Performance Requirements

  • Load time: < 500ms
  • Summary display: < 3 seconds total
  • File read: Single JSON parse

Error Handling

If session.json corrupted:
→ "Session file bị lỗi. Bắt đầu fresh nhé!"
→ Skip session restore, continue workflow
If session.json empty:
→ "Chưa có gì trong session. Bắt đầu mới!"
→ Skip session restore, continue workflow

Example Output

🔄 Restoring session...
📍 **Đang làm:** User Authentication
└─ Task: Implement login endpoint
└─ Status: in_progress
⏭️ **Pending:** 3 tasks
└─ Tiếp theo: Add password validation
🕐 **Last saved:** 2 hours ago
─────────────────────────────
✅ Context restored. Tiếp tục workflow...

Integration

Skill này được gọi tự động bởi tất cả AWF workflows. User KHÔNG cần gọi trực tiếp.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mun0602/mun-skill/awf-session-restore/badge)](https://verified-skill.com/skills/mun0602/mun-skill/awf-session-restore)

Something wrong with this skill or its page? Tell us.