From techsmith-pack
Provides PowerShell patterns for Snagit COM API screen captures and Camtasia batch rendering. Use for TechSmith screen capture and video editing automation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/techsmith-pack:techsmith-sdk-patternsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Production patterns for TechSmith COM API: capture factories, output configuration, and batch processing.
Production patterns for TechSmith COM API: capture factories, output configuration, and batch processing.
function New-SnagitCapture {
param(
[ValidateSet('Desktop', 'Window', 'Region')]
[string]$InputType = 'Window',
[ValidateSet('PNG', 'JPEG', 'BMP', 'GIF')]
[string]$Format = 'PNG',
[string]$OutputDir = "C:\Screenshots",
[bool]$Preview = $false
)
$inputMap = @{ Desktop = 0; Window = 4; Region = 2 }
$formatMap = @{ PNG = 3; JPEG = 4; BMP = 0; GIF = 2 }
$capture = New-Object -ComObject Snagit.ImageCapture
$capture.Input = $inputMap[$InputType]
$capture.Output = 2 # File
$capture.OutputImageFile.FileType = $formatMap[$Format]
$capture.OutputImageFile.Directory = $OutputDir
$capture.OutputImageFile.Filename = "capture_$(Get-Date -Format 'yyyyMMdd_HHmmss')"
$capture.EnablePreview = $Preview
return $capture
}
# Usage
$cap = New-SnagitCapture -InputType Window -Format PNG
$cap.Capture()
function Invoke-CamtasiaBatchRender {
param(
[string[]]$ProjectFiles,
[string]$OutputDir,
[string]$Preset = "MP4 - Smart Player (up to 1080p)"
)
$producer = "C:\Program Files\TechSmith\Camtasia 2025\CamtasiaProducer.exe"
$results = @()
foreach ($project in $ProjectFiles) {
$name = [System.IO.Path]::GetFileNameWithoutExtension($project)
$output = Join-Path $OutputDir "$name.mp4"
$proc = Start-Process -FilePath $producer -ArgumentList @(
"/i", "`"$project`"",
"/o", "`"$output`"",
"/preset", "`"$Preset`""
) -Wait -PassThru
$results += @{ File = $name; ExitCode = $proc.ExitCode }
}
return $results
}
| Pattern | Use Case | Benefit |
|---|---|---|
| Factory function | Different capture types | Consistent configuration |
| Batch rendering | Multiple projects | Automated pipeline |
| Timestamped names | Avoid overwrites | Unique filenames |
Apply patterns in techsmith-core-workflow-a.
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin techsmith-packAutomates Snagit screenshot/video capture via COM API and Camtasia rendering to MP4 using PowerShell/Python. For screen capture automation and documentation video pipelines.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.