spine_learn_from_corpus
Analyze Spine .json and .spine project collections to extract naming, animation, and statistical features, then generate markdown and JSON knowledge files for the local Corpus Learning Layer.
Instructions
Use this to build the local Spine Corpus Learning Layer. It scans .json and .spine projects, exports .spine files to .cache/corpus-json when needed, extracts naming/animation/statistical features, and writes markdown/json knowledge files. It never modifies or deletes corpus source files. Single-project failures are recorded and do not stop the batch. Do not use it for live animation generation or UI automation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| corpusDir | Yes | Directory containing real Spine .spine and .json source projects to analyze. | |
| overwrite | No | Whether to overwrite existing knowledge files in outputKnowledgeDir. | |
| maxProjects | No | Optional maximum project count for test runs before analyzing a full corpus. | |
| exportSettingsPath | No | Path to a Spine export settings .json file used to export .spine corpus projects to JSON. Required for analyzing .spine files with Spine 3.8.75. | |
| outputKnowledgeDir | No | Directory where learned knowledge files should be written. Defaults to project knowledge/. |