用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/seokan-jeong/team-shinchan --skill team-shinchansession-summary命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when you want to start a new task with the integrated workflow.
Use when you want autonomous completion from requirements to verification without intervention.
Use when you need backend development for APIs, databases, servers, or endpoints.
基于 SOC 职业分类
正在显示 SKILL.md
| name | team-shinchan:session-summary |
| description | Use when you need to generate or view a session summary from work tracker logs. |
| user-invocable | false |
Generate a quantitative session summary from work tracker data.
/team-shinchan:session-summary # Current session
/team-shinchan:session-summary --session session-xxx # Specific session
| Arg | Default | Description |
|---|---|---|
--session {id} | current | Session ID to summarize (defaults to .shinchan-docs/.session-id) |
--session provided, use that ID.shinchan-docs/.session-id for the current session IDNo active session found. Use --session {id} to specify one.
Available sessions can be found via: /team-shinchan:work-log
.shinchan-docs/work-tracker.jsonl
No work tracker log found.
Events will be recorded automatically during Claude Code sessions.
{"ts", "type", "agent", "session", "data"}event.session matches the target session IDNo events found for session {id}.
From the filtered session events, calculate:
| Metric | How |
|---|---|
| Duration | First event ts to last event ts. Format as {start} - {end} ({N} minutes) |
| Agents invoked | Count unique non-null agent values from agent_start events. Build {agent: count} map. |
| Files changed | Count events where type === "file_change". Deduplicate by data.file path. |
| Delegations | Count events where type === "delegation". |
| Events total | Total count of all filtered events. |
Run git metrics to include development activity in the summary:
node ${CLAUDE_PLUGIN_ROOT}/src/analytics.js --git --format table
Append to summary output:
Git Activity:
Commits today: {N}
Lines: +{added} / -{deleted}
Files changed: {N}
Test ratio: {N}%
Hotspot files: {top 3 files}
Include in saved SESSION_SUMMARY.md as:
## Git Activity
| Metric | Value |
|--------|-------|
| Commits today | {N} |
| Lines changed | +{added} / -{deleted} |
| Files changed | {N} |
| Test ratio | {N}% |
| Hotspot files | {file1}, {file2}, {file3} |
Display the summary in console AND save to file.
Console output:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Session Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Session: {session_id}
Duration: {start_time} - {end_time} ({N} minutes)
Agents invoked: {count} ({agent: count, ...})
Files changed: {count}
Delegations: {count}
Events total: {count}
Agent Activity:
| Agent | Invocations | Last Action |
|-------|-------------|-------------|
| {agent} | {count} | {last event summary} |
Key Events:
- {HH:MM}: {type} - {description}
...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Determine output path:
.shinchan-docs/*/PROGRESS.md with status: active): .shinchan-docs/{doc_id}/SESSION_SUMMARY.md.shinchan-docs/SESSION_SUMMARY.mdWrite the summary using the same markdown template as hooks/session-wrap.md:
# Session Summary
- **Session**: {session_id}
- **Duration**: {start_time} - {end_time} ({N} minutes)
- **Agents invoked**: {count} ({agent: count, ...})
- **Files changed**: {count}
- **Delegations**: {count}
- **Events total**: {count}
## Agent Activity
| Agent | Invocations | Last Action |
|-------|-------------|-------------|
| {agent} | {count} | {last event summary} |
## Key Events
- {HH:MM}: {type} - {description}
Confirm:
Summary saved to {output_path}
session-wrap Stop hook but is user-triggered.shinchan-docs/work-tracker.jsonl.shinchan-docs/.session-id