appydave-tools 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/CLAUDE.md +113 -29
- data/README.md +262 -86
- data/bin/subtitle_manager.rb +18 -12
- data/bin/subtitle_processor.rb +158 -0
- data/docs/archive/codebase-audit-2025-01.md +424 -0
- data/docs/archive/documentation-framework-proposal.md +808 -0
- data/docs/archive/purpose-and-philosophy.md +110 -0
- data/docs/archive/test-coverage-quick-wins.md +342 -0
- data/docs/archive/tool-discovery.md +199 -0
- data/docs/archive/tool-documentation-analysis.md +592 -0
- data/docs/tools/bank-reconciliation.md +269 -0
- data/docs/tools/cli-actions.md +444 -0
- data/docs/tools/configuration.md +329 -0
- data/docs/{usage → tools}/gpt-context.md +118 -7
- data/docs/tools/index.md +324 -0
- data/docs/tools/move-images.md +295 -0
- data/docs/tools/name-manager.md +322 -0
- data/docs/tools/prompt-tools.md +209 -0
- data/docs/tools/subtitle-processor.md +242 -0
- data/docs/tools/youtube-automation.md +258 -0
- data/docs/tools/youtube-manager.md +248 -0
- data/lib/appydave/tools/{subtitle_manager → subtitle_processor}/clean.rb +1 -1
- data/lib/appydave/tools/{subtitle_manager → subtitle_processor}/join.rb +5 -2
- data/lib/appydave/tools/version.rb +1 -1
- data/lib/appydave/tools.rb +2 -4
- data/package.json +1 -1
- metadata +29 -12
- data/lib/mj-paste-test/main.rb +0 -35
- data/lib/mj-paste-test/prompts.txt +0 -18
- data/lib/mj-paste-test/readme-leonardo.md +0 -0
- /data/lib/appydave/tools/{subtitle_manager → subtitle_processor}/_doc-clean.md +0 -0
- /data/lib/appydave/tools/{subtitle_manager → subtitle_processor}/_doc-join.md +0 -0
- /data/lib/appydave/tools/{subtitle_manager → subtitle_processor}/_doc-todo.md +0 -0
data/docs/tools/index.md
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# AppyDave Tools Documentation
|
|
2
|
+
|
|
3
|
+
Complete documentation for all appydave-tools with practical examples and AI agent use cases.
|
|
4
|
+
|
|
5
|
+
## Quick Navigation
|
|
6
|
+
|
|
7
|
+
### Core Content Tools
|
|
8
|
+
|
|
9
|
+
| Tool | Purpose | Status | Read Time |
|
|
10
|
+
|------|---------|--------|-----------|
|
|
11
|
+
| **[gpt-context](gpt-context.md)** | Gather project files for AI context | ✅ Active | 10 min |
|
|
12
|
+
| **[youtube-manager](youtube-manager.md)** | Manage YouTube video metadata | ✅ Active | 8 min |
|
|
13
|
+
| **[subtitle-processor](subtitle-processor.md)** | Clean and merge SRT files | ✅ Active | 7 min |
|
|
14
|
+
| **[move-images](move-images.md)** | Organize image assets for videos | ✅ Active | 8 min |
|
|
15
|
+
|
|
16
|
+
### Workflow & Automation Tools
|
|
17
|
+
|
|
18
|
+
| Tool | Purpose | Status | Read Time |
|
|
19
|
+
|------|---------|--------|-----------|
|
|
20
|
+
| **[youtube-automation](youtube-automation.md)** | Orchestrate YouTube workflows | ✅ Active | 8 min |
|
|
21
|
+
| **[configuration](configuration.md)** | Multi-channel setup & management | ✅ Active | 9 min |
|
|
22
|
+
| **[cli-actions](cli-actions.md)** | Framework for CLI tools | ✅ Infrastructure | 10 min |
|
|
23
|
+
| **[name-manager](name-manager.md)** | Parse and generate project names | ✅ Infrastructure | 8 min |
|
|
24
|
+
|
|
25
|
+
### Legacy & Specialized Tools
|
|
26
|
+
|
|
27
|
+
| Tool | Purpose | Status | Read Time |
|
|
28
|
+
|------|---------|--------|-----------|
|
|
29
|
+
| **[prompt-tools](prompt-tools.md)** | Text completion (OpenAI API) | ⚠️ Deprecated | 6 min |
|
|
30
|
+
| **[bank-reconciliation](bank-reconciliation.md)** | Process transaction data | ✅ Private | 8 min |
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Tool Categories
|
|
35
|
+
|
|
36
|
+
### 🎥 Video Production Tools
|
|
37
|
+
|
|
38
|
+
For managing video content workflows:
|
|
39
|
+
|
|
40
|
+
1. **[youtube-manager](youtube-manager.md)** - Update video metadata at scale
|
|
41
|
+
2. **[subtitle-processor](subtitle-processor.md)** - Clean and merge subtitles
|
|
42
|
+
3. **[move-images](move-images.md)** - Organize image assets
|
|
43
|
+
4. **[youtube-automation](youtube-automation.md)** - Automate workflows
|
|
44
|
+
|
|
45
|
+
### 🤖 AI & Context Tools
|
|
46
|
+
|
|
47
|
+
For working with AI assistants:
|
|
48
|
+
|
|
49
|
+
1. **[gpt-context](gpt-context.md)** - Gather files for AI (most important for AI agents)
|
|
50
|
+
2. **[prompt-tools](prompt-tools.md)** - Legacy OpenAI API (deprecated)
|
|
51
|
+
|
|
52
|
+
### ⚙️ Infrastructure Tools
|
|
53
|
+
|
|
54
|
+
For system setup and management:
|
|
55
|
+
|
|
56
|
+
1. **[configuration](configuration.md)** - Channel and API setup
|
|
57
|
+
2. **[cli-actions](cli-actions.md)** - Build custom CLI tools
|
|
58
|
+
3. **[name-manager](name-manager.md)** - Project naming patterns
|
|
59
|
+
|
|
60
|
+
### 💰 Financial Tools
|
|
61
|
+
|
|
62
|
+
For personal financial management:
|
|
63
|
+
|
|
64
|
+
1. **[bank-reconciliation](bank-reconciliation.md)** - Process transactions
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Getting Started
|
|
69
|
+
|
|
70
|
+
### First Time Users
|
|
71
|
+
|
|
72
|
+
1. **Read [configuration](configuration.md)** - Set up your channels
|
|
73
|
+
2. **Choose your workflow**:
|
|
74
|
+
- Video content? → Start with [youtube-manager](youtube-manager.md)
|
|
75
|
+
- AI assistance? → Start with [gpt-context](gpt-context.md)
|
|
76
|
+
- Subtitles? → Read [subtitle-processor](subtitle-processor.md)
|
|
77
|
+
|
|
78
|
+
### For AI Agents
|
|
79
|
+
|
|
80
|
+
Each tool document includes **10 AI agent use cases** showing how AI can leverage the tool:
|
|
81
|
+
|
|
82
|
+
- **Code Review** - Gather context, analyze
|
|
83
|
+
- **Bug Fixing** - Understand codebase, suggest fixes
|
|
84
|
+
- **Automation** - Orchestrate workflows
|
|
85
|
+
- **Batch Processing** - Handle multiple items
|
|
86
|
+
- **Integration** - Combine tools for complex tasks
|
|
87
|
+
|
|
88
|
+
→ Check "Use Cases for AI Agents" section in each tool doc
|
|
89
|
+
|
|
90
|
+
### Command Examples
|
|
91
|
+
|
|
92
|
+
Quick reference for most-used commands:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# Gather context for AI
|
|
96
|
+
gpt_context -i '**/*.rb' -e 'spec/**/*' -d -o context.txt
|
|
97
|
+
|
|
98
|
+
# Get YouTube video details
|
|
99
|
+
youtube_manager get -v dQw4w9WgXcQ
|
|
100
|
+
|
|
101
|
+
# Update video metadata
|
|
102
|
+
youtube_manager update -v dQw4w9WgXcQ -t "New Title" -d "New description"
|
|
103
|
+
|
|
104
|
+
# Clean SRT subtitles
|
|
105
|
+
subtitle_processor clean -f input.srt -o output.srt
|
|
106
|
+
|
|
107
|
+
# Organize image assets
|
|
108
|
+
move_images -f project-name intro city-skyline
|
|
109
|
+
|
|
110
|
+
# Set up configuration
|
|
111
|
+
configuration create-channel
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Documentation Structure
|
|
117
|
+
|
|
118
|
+
Each tool document includes:
|
|
119
|
+
|
|
120
|
+
### 📝 "What It Does"
|
|
121
|
+
- Clear description of the tool's purpose
|
|
122
|
+
- What problems it solves
|
|
123
|
+
- Key capabilities
|
|
124
|
+
|
|
125
|
+
### 📖 "How to Use"
|
|
126
|
+
- Practical, copy-paste examples
|
|
127
|
+
- Common usage patterns
|
|
128
|
+
- Command reference with all options
|
|
129
|
+
- Configuration details
|
|
130
|
+
|
|
131
|
+
### 🤖 "Use Cases for AI Agents"
|
|
132
|
+
- **10 specific scenarios** showing AI agent integration
|
|
133
|
+
- Examples of how AI can discover and use the tool
|
|
134
|
+
- Workflow coordination examples
|
|
135
|
+
- Batch processing patterns
|
|
136
|
+
|
|
137
|
+
### 🔧 "Command Reference"
|
|
138
|
+
- Complete option lists
|
|
139
|
+
- Parameter descriptions
|
|
140
|
+
- Required vs optional flags
|
|
141
|
+
- Examples for each option
|
|
142
|
+
|
|
143
|
+
### 🐛 "Troubleshooting"
|
|
144
|
+
- Common issues and solutions
|
|
145
|
+
- Error messages and fixes
|
|
146
|
+
- FAQ section
|
|
147
|
+
- Configuration problems
|
|
148
|
+
|
|
149
|
+
### 💡 "Tips & Tricks"
|
|
150
|
+
- Best practices
|
|
151
|
+
- Efficiency suggestions
|
|
152
|
+
- Common patterns
|
|
153
|
+
- Performance tips
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Tool Relationships
|
|
158
|
+
|
|
159
|
+
### Data Flow
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
Downloaded Images
|
|
163
|
+
↓
|
|
164
|
+
[move-images]
|
|
165
|
+
↓
|
|
166
|
+
Organized Assets
|
|
167
|
+
↓
|
|
168
|
+
[youtube-manager]
|
|
169
|
+
↓
|
|
170
|
+
Video Metadata
|
|
171
|
+
↓
|
|
172
|
+
[youtube-automation]
|
|
173
|
+
↓
|
|
174
|
+
Published Videos
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### AI Agent Workflow
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
Codebase
|
|
181
|
+
↓
|
|
182
|
+
[gpt-context]
|
|
183
|
+
↓
|
|
184
|
+
Project Context
|
|
185
|
+
↓
|
|
186
|
+
AI Agent
|
|
187
|
+
↓
|
|
188
|
+
Analysis/Code/Docs
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Configuration Hub
|
|
192
|
+
|
|
193
|
+
```
|
|
194
|
+
[configuration]
|
|
195
|
+
↓ provides setup for ↓
|
|
196
|
+
[youtube-manager]
|
|
197
|
+
[youtube-automation]
|
|
198
|
+
[gpt-context]
|
|
199
|
+
[cli-actions]
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## Key Features Across Tools
|
|
205
|
+
|
|
206
|
+
### Parallel to Understand
|
|
207
|
+
|
|
208
|
+
**All tools follow consistent patterns:**
|
|
209
|
+
|
|
210
|
+
- **Option parsing**: `-i` for input, `-o` for output, `-d` for debug
|
|
211
|
+
- **Multiple patterns**: Can process multiple files with patterns
|
|
212
|
+
- **Flexible output**: Clipboard, file, or both
|
|
213
|
+
- **Help available**: All tools support `-h` or `--help`
|
|
214
|
+
- **Batch capable**: Most tools can process multiple items
|
|
215
|
+
|
|
216
|
+
### Common Options Across Tools
|
|
217
|
+
|
|
218
|
+
| Option | Meaning | Tools Using It |
|
|
219
|
+
|--------|---------|----------------|
|
|
220
|
+
| `-i` | Include/input | gpt_context, bank_reconciliation |
|
|
221
|
+
| `-e` | Exclude | gpt_context |
|
|
222
|
+
| `-o` | Output | gpt_context, subtitle_processor, others |
|
|
223
|
+
| `-d` | Debug | gpt_context, youtube_automation |
|
|
224
|
+
| `-f` | File/folder | subtitle_processor, bank_reconciliation |
|
|
225
|
+
| `-v` | Video ID | youtube_manager, get_video_action |
|
|
226
|
+
| `-t` | Title | youtube_manager, update_video_action |
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Use Case Finder
|
|
231
|
+
|
|
232
|
+
**Looking for a specific task?**
|
|
233
|
+
|
|
234
|
+
- **Batch update 50 YouTube videos?** → [youtube-manager](youtube-manager.md) + script
|
|
235
|
+
- **Understand a codebase before refactoring?** → [gpt-context](gpt-context.md)
|
|
236
|
+
- **Fix corrupted subtitles?** → [subtitle-processor](subtitle-processor.md)
|
|
237
|
+
- **Set up multi-channel YouTube?** → [configuration](configuration.md)
|
|
238
|
+
- **Prepare images for video?** → [move-images](move-images.md)
|
|
239
|
+
- **Build custom CLI tool?** → [cli-actions](cli-actions.md)
|
|
240
|
+
- **Manage project names?** → [name-manager](name-manager.md)
|
|
241
|
+
- **Automate video workflows?** → [youtube-automation](youtube-automation.md)
|
|
242
|
+
- **Process bank data?** → [bank-reconciliation](bank-reconciliation.md)
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Related Documentation
|
|
247
|
+
|
|
248
|
+
### Archive & Reference
|
|
249
|
+
|
|
250
|
+
- `archive/` folder contains:
|
|
251
|
+
- `documentation-framework-proposal.md` - How we organize docs
|
|
252
|
+
- `test-coverage-quick-wins.md` - Testing priorities
|
|
253
|
+
- `codebase-audit-2025-01.md` - Codebase inventory
|
|
254
|
+
- Other reference materials
|
|
255
|
+
|
|
256
|
+
### Digital Asset Management
|
|
257
|
+
|
|
258
|
+
- `dam/` folder contains:
|
|
259
|
+
- `overview.md` - DAM system design
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Contributing to Documentation
|
|
264
|
+
|
|
265
|
+
### To Add Use Cases
|
|
266
|
+
Each tool has 10 AI agent use cases. To add more:
|
|
267
|
+
1. Open the tool's `.md` file
|
|
268
|
+
2. Find "Use Cases for AI Agents" section
|
|
269
|
+
3. Add new numbered use case with:
|
|
270
|
+
- Brief command example
|
|
271
|
+
- Bold "AI discovers:" line explaining what the agent learns
|
|
272
|
+
- How the agent can apply it
|
|
273
|
+
|
|
274
|
+
### To Fix or Improve
|
|
275
|
+
- Suggest improvements via PR
|
|
276
|
+
- Follow the structure: What → How → Use Cases
|
|
277
|
+
- Keep examples practical and copy-paste ready
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## Quick Command Cheat Sheet
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
# AI Context (most important for AI agents)
|
|
285
|
+
gpt_context -i '**/*.rb' -e 'spec/**/*' -d -o context.txt
|
|
286
|
+
|
|
287
|
+
# YouTube Operations
|
|
288
|
+
youtube_manager get -v VIDEO_ID
|
|
289
|
+
youtube_manager update -v VIDEO_ID -t "Title" -d "Description"
|
|
290
|
+
|
|
291
|
+
# Subtitles
|
|
292
|
+
subtitle_processor clean -f input.srt -o output.srt
|
|
293
|
+
subtitle_processor join -d ./ -f "*.srt" -o merged.srt
|
|
294
|
+
|
|
295
|
+
# Assets
|
|
296
|
+
move_images -f project-name section prefix
|
|
297
|
+
|
|
298
|
+
# Setup
|
|
299
|
+
configuration create-channel
|
|
300
|
+
configuration validate
|
|
301
|
+
|
|
302
|
+
# Automation
|
|
303
|
+
youtube_automation execute workflow_name
|
|
304
|
+
youtube_automation status job_id
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
## Status Legend
|
|
310
|
+
|
|
311
|
+
- ✅ **Active** - Stable, regularly used in production
|
|
312
|
+
- ⚠️ **Deprecated** - Still works but plan to migrate
|
|
313
|
+
- 🔧 **Maintenance** - Works, not actively developed
|
|
314
|
+
- 🟢 **Infrastructure** - Internal framework/utilities
|
|
315
|
+
- 🔴 **Private** - Personal/financial tools, not for sharing
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
**Last Updated**: November 2024
|
|
320
|
+
**Total Documentation**: ~2,900 lines
|
|
321
|
+
**Tools Documented**: 10
|
|
322
|
+
**Use Cases**: 100+ (10 per tool)
|
|
323
|
+
|
|
324
|
+
**Start reading**: Choose a tool above that matches your task!
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
# Move Images
|
|
2
|
+
|
|
3
|
+
Organize and rename downloaded images for use in video projects with section-based folder structure.
|
|
4
|
+
|
|
5
|
+
## What It Does
|
|
6
|
+
|
|
7
|
+
**Move Images** organizes image assets for video production:
|
|
8
|
+
|
|
9
|
+
- Moves downloaded images from smart-downloads to project folders
|
|
10
|
+
- Renames images with section-based prefixes for organization
|
|
11
|
+
- Creates nested folder structure automatically (assets/section/)
|
|
12
|
+
- Indexes images sequentially for easy reference
|
|
13
|
+
- Maintains asset library organization for video projects
|
|
14
|
+
|
|
15
|
+
## How to Use
|
|
16
|
+
|
|
17
|
+
### Basic Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
move_images -f <folder> <section> <prefix>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Parameters**:
|
|
24
|
+
- `-f` / `--folder`: Video project folder (e.g., `appydave-b60`)
|
|
25
|
+
- `section`: Asset category (e.g., `intro`, `content`, `outro`)
|
|
26
|
+
- `prefix`: Image name prefix (e.g., `city`)
|
|
27
|
+
|
|
28
|
+
### Example
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Move downloaded images for AppyDave video 60, intro section
|
|
32
|
+
move_images -f appydave-b60 intro city
|
|
33
|
+
|
|
34
|
+
# Result:
|
|
35
|
+
# ~/Sync/smart-downloads/download-images/image-001.jpg →
|
|
36
|
+
# /Volumes/Expansion/Sync/tube-channels/video-projects/appydave-b60/assets/intro/city-intro-1.jpg
|
|
37
|
+
#
|
|
38
|
+
# ~/Sync/smart-downloads/download-images/image-002.jpg →
|
|
39
|
+
# /Volumes/Expansion/Sync/tube-channels/video-projects/appydave-b60/assets/intro/city-intro-2.jpg
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Multiple Sections
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Organize intro images
|
|
46
|
+
move_images -f video-project intro opening
|
|
47
|
+
|
|
48
|
+
# Later, organize content images
|
|
49
|
+
move_images -f video-project content landscape
|
|
50
|
+
|
|
51
|
+
# Later, organize outro images
|
|
52
|
+
move_images -f video-project outro closing
|
|
53
|
+
|
|
54
|
+
# Result folder structure:
|
|
55
|
+
# video-project/assets/
|
|
56
|
+
# ├── intro/
|
|
57
|
+
# │ ├── opening-intro-1.jpg
|
|
58
|
+
# │ ├── opening-intro-2.jpg
|
|
59
|
+
# │ └── ...
|
|
60
|
+
# ├── content/
|
|
61
|
+
# │ ├── landscape-content-1.jpg
|
|
62
|
+
# │ ├── landscape-content-2.jpg
|
|
63
|
+
# │ └── ...
|
|
64
|
+
# └── outro/
|
|
65
|
+
# ├── closing-outro-1.jpg
|
|
66
|
+
# ├── closing-outro-2.jpg
|
|
67
|
+
# └── ...
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Directory Structure
|
|
71
|
+
|
|
72
|
+
### Source Structure
|
|
73
|
+
```
|
|
74
|
+
~/Sync/smart-downloads/download-images/
|
|
75
|
+
├── image-001.jpg
|
|
76
|
+
├── image-002.jpg
|
|
77
|
+
├── image-003.jpg
|
|
78
|
+
└── ... (downloaded from web, browser auto-saves)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Destination Structure
|
|
82
|
+
```
|
|
83
|
+
/Volumes/Expansion/Sync/tube-channels/video-projects/
|
|
84
|
+
└── {project-name}/
|
|
85
|
+
└── assets/
|
|
86
|
+
├── intro/
|
|
87
|
+
│ ├── {prefix}-intro-1.jpg
|
|
88
|
+
│ └── {prefix}-intro-2.jpg
|
|
89
|
+
├── content/
|
|
90
|
+
│ ├── {prefix}-content-1.jpg
|
|
91
|
+
│ └── {prefix}-content-2.jpg
|
|
92
|
+
└── outro/
|
|
93
|
+
├── {prefix}-outro-1.jpg
|
|
94
|
+
└── {prefix}-outro-2.jpg
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Use Cases for AI Agents
|
|
98
|
+
|
|
99
|
+
### 1. Bulk Asset Organization
|
|
100
|
+
```bash
|
|
101
|
+
# AI orchestrates: Download → Move → Organize
|
|
102
|
+
# For multiple images across multiple sections
|
|
103
|
+
for image_set in intro content outro transition; do
|
|
104
|
+
move_images -f project-name "$image_set" "prefix-for-$image_set"
|
|
105
|
+
done
|
|
106
|
+
```
|
|
107
|
+
**AI discovers**: Asset organization workflow, section patterns. Can systematically organize image libraries.
|
|
108
|
+
|
|
109
|
+
### 2. Asset Library Maintenance
|
|
110
|
+
```bash
|
|
111
|
+
# AI reviews asset structure
|
|
112
|
+
# Ensures all sections are properly organized
|
|
113
|
+
# Identifies orphaned or misplaced images
|
|
114
|
+
```
|
|
115
|
+
**AI discovers**: Current asset state, what's organized/disorganized. Can clean up asset libraries.
|
|
116
|
+
|
|
117
|
+
### 3. Video Production Workflow
|
|
118
|
+
```bash
|
|
119
|
+
# Part of larger workflow:
|
|
120
|
+
# 1. Search/download images (browser smart-download)
|
|
121
|
+
# 2. Move images to project (move_images)
|
|
122
|
+
# 3. Reference in video editing (from assets folder)
|
|
123
|
+
# 4. FliVideo imports from assets
|
|
124
|
+
```
|
|
125
|
+
**AI discovers**: Image integration into video pipeline. Can automate asset management in video workflows.
|
|
126
|
+
|
|
127
|
+
### 4. Multi-Section Asset Management
|
|
128
|
+
```bash
|
|
129
|
+
# Complex video with many sections
|
|
130
|
+
# AI orchestrates moving images for each section
|
|
131
|
+
# Ensures proper folder structure throughout
|
|
132
|
+
```
|
|
133
|
+
**AI discovers**: Project complexity, section organization. Can manage multi-part asset structures.
|
|
134
|
+
|
|
135
|
+
### 5. Asset Inventory
|
|
136
|
+
```bash
|
|
137
|
+
# After moving images, create inventory
|
|
138
|
+
# Count assets per section
|
|
139
|
+
# Generate asset report for video editor
|
|
140
|
+
```
|
|
141
|
+
**AI discovers**: What assets are available for each section. Can provide asset inventory for planning.
|
|
142
|
+
|
|
143
|
+
### 6. Naming Convention Enforcement
|
|
144
|
+
```bash
|
|
145
|
+
# Ensure consistent naming:
|
|
146
|
+
# {prefix}-{section}-{number}.jpg
|
|
147
|
+
# AI validates moved files follow pattern
|
|
148
|
+
```
|
|
149
|
+
**AI discovers**: Naming scheme, consistency. Can enforce standard naming across projects.
|
|
150
|
+
|
|
151
|
+
### 7. Batch Project Setup
|
|
152
|
+
```bash
|
|
153
|
+
# Set up image assets for multiple projects
|
|
154
|
+
# Each project: multiple sections with different image sets
|
|
155
|
+
# AI coordinates: move_images for each section
|
|
156
|
+
```
|
|
157
|
+
**AI discovers**: Project requirements, multi-section needs. Can batch-organize multiple projects.
|
|
158
|
+
|
|
159
|
+
### 8. Asset Deduplication
|
|
160
|
+
```bash
|
|
161
|
+
# Before moving, check if images already exist
|
|
162
|
+
# Avoid duplicate assets in project
|
|
163
|
+
# AI coordinates smart deduplication
|
|
164
|
+
```
|
|
165
|
+
**AI discovers**: Existing assets, duplicates. Can prevent redundant downloads/moves.
|
|
166
|
+
|
|
167
|
+
### 9. Workflow Validation
|
|
168
|
+
```bash
|
|
169
|
+
# After moving, verify:
|
|
170
|
+
# - All images in correct folders
|
|
171
|
+
# - Naming follows convention
|
|
172
|
+
# - No images left in download folder
|
|
173
|
+
# - Asset count matches expectation
|
|
174
|
+
```
|
|
175
|
+
**AI discovers**: Workflow correctness. Can validate asset organization integrity.
|
|
176
|
+
|
|
177
|
+
### 10. Asset Tracking & Metadata
|
|
178
|
+
```bash
|
|
179
|
+
# Track which images went where
|
|
180
|
+
# Create manifest of assets per section
|
|
181
|
+
# Link images to video timeline positions
|
|
182
|
+
```
|
|
183
|
+
**AI discovers**: Asset-to-content mapping. Can create detailed asset metadata for video production.
|
|
184
|
+
|
|
185
|
+
## Command Reference
|
|
186
|
+
|
|
187
|
+
### Move Images
|
|
188
|
+
```bash
|
|
189
|
+
move_images -f <folder> <section> <prefix>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
| Parameter | Description |
|
|
193
|
+
|-----------|-------------|
|
|
194
|
+
| `-f FOLDER` / `--folder FOLDER` | Video project folder name (required) |
|
|
195
|
+
| `section` | Asset category: intro, content, outro, transition, thumb, teaser, etc. |
|
|
196
|
+
| `prefix` | Image name prefix for organization (e.g., "city", "beach", "nature") |
|
|
197
|
+
|
|
198
|
+
### Supported Sections (Common)
|
|
199
|
+
|
|
200
|
+
- `intro` - Introduction/opening images
|
|
201
|
+
- `content` - Main content images
|
|
202
|
+
- `outro` - Closing/ending images
|
|
203
|
+
- `transition` - Between-section transition images
|
|
204
|
+
- `thumb` - Thumbnail candidate images
|
|
205
|
+
- `teaser` - Teaser/preview images
|
|
206
|
+
- Custom sections allowed (any string)
|
|
207
|
+
|
|
208
|
+
## Folder Paths
|
|
209
|
+
|
|
210
|
+
### Configuration
|
|
211
|
+
- **Base directory**: `/Volumes/Expansion/Sync/tube-channels/video-projects`
|
|
212
|
+
- **Source folder**: `~/Sync/smart-downloads/download-images/`
|
|
213
|
+
- **Destination**: `{base}/{project}/assets/{section}/`
|
|
214
|
+
|
|
215
|
+
## Image Naming Convention
|
|
216
|
+
|
|
217
|
+
Generated filename format:
|
|
218
|
+
```
|
|
219
|
+
{prefix}-{section}-{number}.jpg
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Examples:
|
|
223
|
+
- `city-intro-1.jpg`
|
|
224
|
+
- `city-intro-2.jpg`
|
|
225
|
+
- `landscape-content-1.jpg`
|
|
226
|
+
- `beach-outro-1.jpg`
|
|
227
|
+
|
|
228
|
+
## Workflow Integration
|
|
229
|
+
|
|
230
|
+
Typical video production workflow:
|
|
231
|
+
|
|
232
|
+
```
|
|
233
|
+
1. Research & Download (Browser → smart-downloads)
|
|
234
|
+
2. Move & Organize (move_images tool)
|
|
235
|
+
3. Reference in Planning (asset folders organized by section)
|
|
236
|
+
4. Video Editing (editor selects from assets/{section}/)
|
|
237
|
+
5. FliVideo (can reference assets from organized structure)
|
|
238
|
+
6. Publish (video with organized asset trail)
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## Troubleshooting
|
|
242
|
+
|
|
243
|
+
| Issue | Solution |
|
|
244
|
+
|-------|----------|
|
|
245
|
+
| "Folder doesn't exist" | Create project folder first in video-projects/ |
|
|
246
|
+
| "No images found" | Verify images exist in ~/Sync/smart-downloads/download-images/ |
|
|
247
|
+
| "Permission denied" | Check folder permissions, verify external drive is mounted |
|
|
248
|
+
| "Images not moved" | Check source folder path, verify .jpg extension |
|
|
249
|
+
|
|
250
|
+
## Tips & Tricks
|
|
251
|
+
|
|
252
|
+
1. **Use descriptive prefixes**: "city-skyline" is better than "img"
|
|
253
|
+
2. **Process in order**: intro → content → outro
|
|
254
|
+
3. **Batch similar images**: Download all for one section, move them together
|
|
255
|
+
4. **Check results**: Verify folder structure matches expectation
|
|
256
|
+
5. **Multiple images**: First move, then use for reference in video editing
|
|
257
|
+
|
|
258
|
+
## Example Workflow
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
# Step 1: Download images (using browser, auto-saves to smart-downloads)
|
|
262
|
+
# Images saved as image-001.jpg, image-002.jpg, etc.
|
|
263
|
+
|
|
264
|
+
# Step 2: Organize for intro
|
|
265
|
+
move_images -f appydave-b60 intro "opening-scene"
|
|
266
|
+
|
|
267
|
+
# Step 3: Download more images, organize for content
|
|
268
|
+
move_images -f appydave-b60 content "landscape"
|
|
269
|
+
|
|
270
|
+
# Step 4: Download final images, organize for outro
|
|
271
|
+
move_images -f appydave-b60 outro "sunset"
|
|
272
|
+
|
|
273
|
+
# Result:
|
|
274
|
+
# appydave-b60/assets/
|
|
275
|
+
# ├── intro/
|
|
276
|
+
# │ ├── opening-scene-intro-1.jpg
|
|
277
|
+
# │ ├── opening-scene-intro-2.jpg
|
|
278
|
+
# │ └── opening-scene-intro-3.jpg
|
|
279
|
+
# ├── content/
|
|
280
|
+
# │ ├── landscape-content-1.jpg
|
|
281
|
+
# │ ├── landscape-content-2.jpg
|
|
282
|
+
# │ └── landscape-content-3.jpg
|
|
283
|
+
# └── outro/
|
|
284
|
+
# ├── sunset-outro-1.jpg
|
|
285
|
+
# └── sunset-outro-2.jpg
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
**Related Tools**:
|
|
291
|
+
- `configuration` - Project folder setup
|
|
292
|
+
- FliVideo - Uses organized assets in video production
|
|
293
|
+
- Video editing software - Selects images from organized assets
|
|
294
|
+
|
|
295
|
+
**Integration**: Part of AppyDave video production pipeline
|