recap
Loads session context and pending work status for fresh session starts.
- License 许可
- MIT
- 所属仓库
- goffity/dev-km
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- recap
- description
- Loads session context and pending work status for fresh session starts.
- user-invocable
- true
02 资源文件 14
- 参考文档CompanyTools.md5.0 KB
- 参考文档EntityTools.md6.9 KB
- 参考文档EthicalFramework.md5.4 KB
- 参考文档Methodology.md6.1 KB
- 参考文档PeopleTools.md4.6 KB
- 参考文档SOURCES.JSON100.3 KB
- 参考文档SOURCES.md28.8 KB
- 参考文档Workflows/CompanyDueDiligence.md13.3 KB
- 参考文档Workflows/CompanyLookup.md6.8 KB
- 参考文档Workflows/DiscoverOSINTSources.md5.8 KB
- 参考文档Workflows/DomainLookup.md9.4 KB
- 参考文档Workflows/EntityLookup.md8.7 KB
- 参考文档Workflows/OrganizationLookup.md11.1 KB
- 参考文档Workflows/PeopleLookup.md6.3 KB
03 SKILL.md 正文
Session Recap
เริ่ม session ใหม่โดยโหลด context ที่จำเป็น
Usage
/recap
Instructions
Language Setting
Check
LANGUAGEindocs/current.md. Ifth, translate output perreferences/language-guide.md. Display current LANGUAGE as part of context. Seereferences/bash-helpers.mdfor detection snippet.
Step 1: Load Current Focus
export TZ='Asia/Bangkok'
echo "=== Current Focus ==="
cat docs/current.md
Step 2: Show Context
export TZ='Asia/Bangkok'
echo "=== Recent Activity (last 5) ==="
tail -5 docs/logs/activity.log
echo ""
echo "=== Git Status ==="
echo "Date: $(date '+%Y-%m-%d %H:%M')"
echo "Branch: $(git branch --show-current)"
git status --short
echo ""
echo "=== Recent Commits ==="
git log --oneline -5
Step 3: Check for Pending Work
ถ้า STATE = working หรือ pending:
ใช้ AskUserQuestion เพื่อถามผู้ใช้:
งานค้างอยู่: [TASK from current.md]
ตั้งแต่: [SINCE from current.md]
ต้องการทำอะไร?
Options:
- ทำต่องานเดิม - Continue working on current task
- เริ่มงานใหม่ - Start new task (old task moves to WIP.md)
Step 4: Handle User Choice
ถ้าเลือก "ทำต่องานเดิม":
export TZ='Asia/Bangkok'
EXPECTED_BRANCH=$(grep "^BRANCH:" docs/current.md | cut -d: -f2- | xargs)
CURRENT_BRANCH=$(git branch --show-current)
if [ -n "$EXPECTED_BRANCH" ] && [ "$EXPECTED_BRANCH" != "-" ] && [ "$CURRENT_BRANCH" != "$EXPECTED_BRANCH" ]; then
echo "Switching to branch: $EXPECTED_BRANCH"
git checkout "$EXPECTED_BRANCH"
fi
sed -i '' 's/STATE: pending/STATE: working/' docs/current.md
echo "$(date '+%Y-%m-%d %H:%M') | working | [TASK] (resumed)" >> docs/logs/activity.log
แสดง:
พร้อมทำต่อ: [TASK]
Branch: [BRANCH]
ถ้าเลือก "เริ่มงานใหม่":
- ย้ายงานเก่าไป WIP.md:
export TZ='Asia/Bangkok'
if [ ! -f docs/WIP.md ]; then
echo "# Work In Progress" > docs/WIP.md
echo "" >> docs/WIP.md
echo "งานที่ยังไม่เสร็จ พักไว้ก่อน" >> docs/WIP.md
echo "" >> docs/WIP.md
fi
TASK=$(grep "^TASK:" docs/current.md | cut -d: -f2- | xargs)
SINCE=$(grep "^SINCE:" docs/current.md | cut -d: -f2- | xargs)
BRANCH=$(grep "^BRANCH:" docs/current.md | cut -d: -f2- | xargs)
ISSUE=$(grep "^ISSUE:" docs/current.md | cut -d: -f2- | xargs)
echo "## $TASK" >> docs/WIP.md
echo "" >> docs/WIP.md
echo "- **Started:** $SINCE" >> docs/WIP.md
echo "- **Paused:** $(date '+%Y-%m-%d %H:%M')" >> docs/WIP.md
echo "- **Branch:** $BRANCH" >> docs/WIP.md
echo "- **Issue:** $ISSUE" >> docs/WIP.md
echo "- **Status:** Incomplete" >> docs/WIP.md
echo "" >> docs/WIP.md
- Log activity:
export TZ='Asia/Bangkok'
echo "$(date '+%Y-%m-%d %H:%M') | pending | [TASK] (moved to WIP.md)" >> docs/logs/activity.log
- Reset current.md:
export TZ='Asia/Bangkok'
cat > docs/current.md << 'EOF'
STATE: ready
TASK: -
SINCE: -
ISSUE: -
BRANCH: -
EOF
- แสดง:
งานเก่าถูกย้ายไป docs/WIP.md แล้ว
ใช้ /focus เพื่อตั้งงานใหม่
ถ้า STATE = ready หรือ completed:
ไม่มีงานค้าง
ใช้ /focus เพื่อตั้งงานใหม่
Step 5: Check WIP.md (Optional)
ถ้ามี WIP.md และมีงานค้างอยู่ แสดง:
if [ -f docs/WIP.md ]; then
echo "=== งานที่พักไว้ ==="
grep "^## " docs/WIP.md | head -5
fi
Output Format
## Session Recap
### Current Focus
STATE: [state]
TASK: [task]
SINCE: [since]
ISSUE: [issue]
BRANCH: [branch]
### Recent Activity
[last 5 entries]
### Git Status
Branch: [branch]
Changes: [count]
### Action Required
[ถาม continue/new หรือ แนะนำ /focus]
State Reference
| STATE | Action |
|---|---|
ready |
ไม่มี focus → แนะนำ /focus |
working |
มีงานค้าง → ถาม continue/new |
pending |
งานถูกพักไว้ → ถาม continue/new |
blocked |
ติดปัญหา → ถามสถานะ |
completed |
งานเสร็จแล้ว → แนะนำ /focus |
Related Commands
| Command | Purpose |
|---|---|
/focus |
ตั้ง focus ใหม่ |
/recap |
ดู context (คุณอยู่ที่นี่) |
/td |
จบ session + retrospective |
/mem |
บันทึก knowledge |
04 同仓库更多 Skills
wait-what
Stop. That last message did not land: re-pitch it.
tdd
Test-driven development loop (red-green-refactor) with commit-based phase state and Jira traceability. Use when the user wants to build a feature or fix a bug test-first, mentions "tdd", "red-green-refactor", or "test-first". Replaces the tdg plugin — combines its commit/phase discipline with seam-based test quality rules from kb Testing Standards.
td
Creates post-task retrospectives with Before/After context and session documentation.
summary
Generates weekly or monthly session summaries from retrospectives and activity logs.
share
Shares knowledge across projects by copying to shared-knowledge directory with cross-project metadata.
session-analyzer
Analyzes git changes and creates retrospective drafts with Before/After context.