Add /export and /mcp-status commands
- /export command to export session data as Markdown or JSON - Export for sharing with other Claude instances - Include session details, topics, summary, and memory items - /mcp-status command to check MCP integration health - Gmail venv and credentials status - Calendar API dependencies - Delegation helpers presence - MCP server configuration - Updated shell completions with 15 aliases total - Test suite now covers 23 tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,8 @@ Slash commands for quick actions. User-invoked (type `/command` to trigger).
|
||||
| `/search` | `/find`, `/lookup` | Search memory, history, config |
|
||||
| `/log` | `/logs`, `/logview` | View and analyze logs |
|
||||
| `/debug` | `/diag`, `/diagnose` | Debug and troubleshoot config |
|
||||
| `/export` | `/session-export`, `/share` | Export session for sharing |
|
||||
| `/mcp-status` | `/mcp`, `/integrations` | Check MCP integrations |
|
||||
| `/maintain` | `/maintenance`, `/admin` | Configuration maintenance |
|
||||
| `/programmer` | | Code development tasks |
|
||||
| `/gcal` | `/calendar`, `/cal` | Google Calendar access |
|
||||
|
||||
44
commands/export.md
Normal file
44
commands/export.md
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
name: export
|
||||
description: Export session data for sharing or archiving
|
||||
aliases: [session-export, share]
|
||||
invokes: skill:session-export
|
||||
---
|
||||
|
||||
# Export Command
|
||||
|
||||
Export session data to Markdown or JSON for sharing.
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
/export # Export most recent session
|
||||
/export <session_id> # Export specific session
|
||||
/export --list # List sessions available to export
|
||||
/export --format json # Export as JSON
|
||||
/export --output FILE # Save to file
|
||||
```
|
||||
|
||||
## Implementation
|
||||
|
||||
Run the session export script:
|
||||
|
||||
```bash
|
||||
python3 ~/.claude/automation/session-export.py [options] [session_id]
|
||||
```
|
||||
|
||||
## Output Includes
|
||||
|
||||
| Section | Description |
|
||||
|---------|-------------|
|
||||
| Session Details | ID, date, summarized status |
|
||||
| Topics | Topics discussed |
|
||||
| Summary | Session summary |
|
||||
| Memory Items | Preferences, decisions, projects, facts created |
|
||||
|
||||
## Use Cases
|
||||
|
||||
- Share session context with another Claude instance
|
||||
- Archive important sessions
|
||||
- Create documentation from sessions
|
||||
- Review what was accomplished
|
||||
44
commands/mcp-status.md
Normal file
44
commands/mcp-status.md
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
name: mcp-status
|
||||
description: Check status of MCP integrations
|
||||
aliases: [mcp, integrations]
|
||||
invokes: skill:mcp-status
|
||||
---
|
||||
|
||||
# MCP Status Command
|
||||
|
||||
Check the status of MCP integrations (Gmail, Calendar, etc.).
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
/mcp-status # Show integration status
|
||||
/mcp-status --json # Output as JSON
|
||||
```
|
||||
|
||||
## Implementation
|
||||
|
||||
Run the MCP status script:
|
||||
|
||||
```bash
|
||||
~/.claude/automation/mcp-status.sh [--json]
|
||||
```
|
||||
|
||||
## Integrations Checked
|
||||
|
||||
| Integration | What's Checked |
|
||||
|-------------|----------------|
|
||||
| Gmail | Venv, gmail-mcp package, credentials, token |
|
||||
| Calendar | google-api-python-client, credentials, token |
|
||||
| Delegation | Helper scripts present |
|
||||
| MCP Servers | .mcp.json configuration |
|
||||
|
||||
## Status Levels
|
||||
|
||||
| Status | Meaning |
|
||||
|--------|---------|
|
||||
| `ready` | Fully configured and working |
|
||||
| `needs_auth` | Credentials present, needs OAuth |
|
||||
| `needs_setup` | Missing configuration |
|
||||
| `missing_deps` | Python packages not installed |
|
||||
| `not_installed` | Integration not set up |
|
||||
Reference in New Issue
Block a user