Scribe (scb) - Complete Documentation

Overview

The Scribe spell transcribes files and directories into well-formatted markdown documents, supporting various output options including aether storage, local files, and clipboard. It provides comprehensive support for directory traversal with optional Git-awareness.

Core Features

1. Content Transcription

2. Output Options

3. Git Integration

Technical Requirements

Dependencies

__requires__ = ['click', 'pyperclip', 'pathspec']

Storage Structure

~/.sanctum/
└── .aether/
    └── transcription_{name}_{timestamp}.md

Basic Usage

Command Syntax

# Basic transcription
cast scb <path>

# Include Git files
cast scb <path> --include-git

# Verbose output
cast scb <path> -v

Interactive Options

Each transcription prompts for:
1. Aether storage
2. Local storage (if not using aether)
3. Clipboard copying

Complete Example Session

$ cast scribe .
 Transcribing your chosen realm...
 Send transcription to the aether? [y/N]: y
 The transcription has been sent to the aether.
 Copy transcription to clipboard? [y/N]:

Alternative flow with local storage:

$ cast scribe .
 Transcribing your chosen realm...
 Send transcription to the aether? [y/N]: 
 Save to local directory? [y/N]: y
 The transcription has been saved to [...]/transcription_dirname_20241215_093503.md
 Copy transcription to clipboard? [y/N]: y
 Transcription copied to clipboard!

Output Format

File Transcription

# filename.ext

```content```

Directory Transcription

# Directory: directory_name

## /subdirectory/
/subdirectory/file.ext: 
```content```

Feature Details

File Processing

Directory Handling

Storage Management

Best Practices

1. Storage Selection

2. Git Integration

3. Large Directories

4. Content Organization

Common Use Cases

1. Project Documentation

cast scb ./project_root
# Save to aether for permanent documentation

2. Code Review

cast scb ./feature_branch
# Copy to clipboard for immediate review

3. Knowledge Sharing

cast scb ./documentation
# Save locally for sharing

Technical Details

File Reading

Path Handling

Git Integration

Error Handling

File Operations

Storage Operations

Tips

Notes

Future Considerations

  1. Additional output formats
  2. Enhanced file type detection
  3. Improved pattern matching
  4. Performance optimizations
  5. Extended metadata support