moai-session-info
1
总安装量
1
周安装量
#76178
全站排名
安装命令
npx skills add https://github.com/ajbcoding/claude-skill-eval --skill moai-session-info
Agent 安装分布
amp
1
cline
1
opencode
1
cursor
1
continue
1
kimi-cli
1
Skill 文档
Session Information Provider
Skill Metadata
| Field | Value |
|---|---|
| Version | 1.0.0 |
| Tier | Alfred (Session Management) |
| Auto-load | On session start or when status requested |
| Purpose | Provide comprehensive project and session overview |
What It Does
Comprehensive session and project information provider that gives users complete context about their current MoAI-ADK project state, including Git status, SPEC progress, version information, and system resources.
Core capabilities:
- â Project metadata and configuration display
- â Git repository status and commit history
- â SPEC progress tracking and completion metrics
- â Version information and update availability
- â System resource monitoring
- â Checkpoint status and restoration options
- â Session metrics and handoff information
When to Use
- â When starting a new Claude Code session
- â When checking project status and progress
- â Before making significant changes or commits
- â When users ask “what’s the status”, “show project info”, “where are we”
- â When reviewing project context and history
- â Before running /alfred commands
Core Information Categories
1. Project Overview
ð¿ Project: MoAI-ADK
ð Location: /Users/goos/MoAI/MoAI-ADK
ð Language: íêµì´ (Korean)
ð§ Mode: Team (GitFlow)
â¡ Toolchain: Python optimized
2. Version Information
ð¦ Current: v0.15.2
ð Update Available: v0.16.0
â¬ï¸ Upgrade Command: pip install --upgrade moai-adk
ð Release Notes: https://github.com/moai-adk/moai-adk/releases/tag/v0.16.0
3. Git Repository Status
ð¿ Branch: develop (3 commits ahead of main)
ð Changes: 5 modified, 2 added
ð¨ Last Commit: feat: Complete skill consolidation (2 hours ago)
ð Commit Hash: a1b2c3d
4. SPEC Progress
ð Total SPECs: 15
â
Completed: 12 (80%)
â³ In Progress: 2
ð Pending: 1
ð Completion Rate: 80%
5. System Resources
ð§ Memory Usage: 2.4GB / 16GB (15%)
ð¾ Disk Space: 45GB free
ð CPU Usage: 12%
â¡ Session Duration: 45 minutes
6. Available Checkpoints
ðï¸ Checkpoints: 3 available
ð auth-system-implementation (30 min ago)
ð skill-consolidation (2 hours ago)
ð feature-branch-workflow (yesterday)
â©ï¸ Restore: /alfred:0-project restore
Quick Start Commands
Basic Status Check
# Simple project overview
Skill("moai-session-info")
Detailed Status with Metrics
# Comprehensive status with all details
Skill("moai-session-info")
# Response includes all categories above
Before Major Operations
# Always check status before:
# - /alfred:1-plan (planning new features)
# - /alfred:2-run (implementing changes)
# - git operations (commits, merges)
Skill("moai-session-info")
# Review status, then proceed with operation
Information Sources
The skill gathers information from multiple sources:
Project Configuration
.moai/config.json– Project settings and languagepyproject.toml– Package version and dependencies.git/– Repository status and history
SPEC Tracking
.moai/specs/– SPEC documents and completion status- SPEC metadata – Progress tracking and milestones
System Resources
psutil– Memory and CPU usage- File system – Disk space and project size
- Session metrics – Current session duration
Version Information
- Package registries – Latest available versions
- GitHub releases – Release notes and changelogs
Status Message Format
The skill generates structured status messages with consistent formatting:
ð MoAI-ADK Project Status
ð Project Overview
ð¿ Project: {project_name}
ð Location: {project_path}
ð Language: {language}
ð§ Mode: {git_mode}
ð¦ Version Information
ð¦ Current: {current_version}
{update_information}
ð Release Notes: {release_url}
ð¿ Git Repository
ð¿ Branch: {branch} ({commit_hash})
ð Changes: {file_changes}
ð¨ Last: {last_commit_message}
ð SPEC Progress
ð Total: {total_specs}
â
Completed: {completed_specs} ({percentage}%)
â³ In Progress: {in_progress_specs}
ð§ System Resources
ð§ Memory: {memory_usage}
ð¾ Disk: {disk_space}
â¡ Session: {session_duration}
ðï¸ Checkpoints
{checkpoint_list}
â©ï¸ Restore: /alfred:0-project restore
Integration with Alfred Commands
This skill is automatically invoked by:
SessionStart Hook Integration
# In session_start__show_project_info.py
# Automatically called when session starts
Skill("moai-session-info")
Command Integration
# Before /alfred:1-plan
if context == "planning":
Skill("moai-session-info") # Show current status
# Before /alfred:2-run
if context == "implementation":
Skill("moai-session-info") # Confirm project state
# Before git operations
if "git" in command:
Skill("moai-session-info") # Show repository status
Error Handling and Fallbacks
Graceful Degradation
The skill provides useful information even when some sources fail:
# If Git commands fail:
# Still show project info, version, and system resources
# If SPEC counting fails:
# Still show Git status and version information
# If network access fails:
# Still show local information (Git, SPECs, system)
Common Error Scenarios
- Git repository not found: Shows project info without Git details
- No .moai/config.json: Uses default settings and basic project detection
- Network unavailable: Shows local information only
- Permission denied: Provides read-only information where possible
Performance Considerations
Optimization Strategies
- Caching: Cache expensive operations (Git history, version checks)
- Timeouts: 5-second timeout for network operations
- Lazy Loading: Load detailed information only when requested
- Incremental Updates: Update only changed information
Resource Usage
- Memory: Minimal footprint (< 10MB)
- Network: Only for version checks (cached locally)
- Disk: Reads existing files, no modifications
- CPU: Lightweight operations, quick response times
Usage Examples
Example 1: Session Start
# User starts new Claude Code session
Skill("moai-session-info")
# Output:
ð MoAI-ADK Session Started
ð Project Overview
ð¿ Project: MoAI-ADK
ð Location: /Users/goos/MoAI/MoAI-ADK
ð Language: íêµì´
ð§ Mode: Team
ð¦ Version: v0.15.2 â v0.16.0 available
ð Release Notes: https://github.com/...
ð¿ Branch: develop (3 ahead)
ð Changes: 5 modified, 2 added
ð SPEC Progress: 12/15 (80%)
Example 2: Pre-Implementation Check
# User wants to implement new feature
"/alfred:2-run SPEC-AUTH-001"
# Alfred automatically calls:
Skill("moai-session-info")
# User sees status before implementation begins
Example 3: Status Query
# User asks: "what's our current status?"
Skill("moai-session-info")
# Complete project status displayed
End of Skill | Optimized for quick status checks and session context