synapse-result-schemas
Explains result schema classes for Synapse plugin actions. Use when the user mentions "TrainResult", "InferenceResult", "ExportResult", "UploadResult", "WeightsResult", "MetricsResult", "result_model", "result schema", or needs help with action return type validation.
Profile →npx skills add majiayu000/claude-skill-registry --skill result-schemas --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Result Schemas Synapse SDK provides standardized result schema classes for common action outputs. These provide type-safe, validated return types for actions. ## Available Result Schemas ```python from synapse_sdk.plugins.schemas import ( TrainResult, InferenceResult, ExportResult, UploadResult, WeightsResult, MetricsResult, ) ``` | Schema | Purpose | |--------|---------| | `TrainResult` | Training output with weights and metrics | | `InferenceResult` | Inference predictions | | `ExportResult` | Data export output | | `UploadResult` | File upload results | | `WeightsResult` | Model weights only | | `MetricsResult` | Evaluation metrics only | ## Quick Usage ### With Class-Based Actions ```python from synapse_sdk.plugins.actions.train import BaseTrainAction from synapse_sdk.plugins.schemas import TrainResult class MyTrainAction(BaseTrainAction[TrainParams]): result_model = TrainResult # Enable result validation def execute(self) -> TrainResult: # ... training ... return TrainResult( weights_path='/models/best.pt', final_epoch=100, train_metrics={'loss': 0.05}, val_metrics={'mAP50': 0.85}, ) ``` ### With Function-Based Actions ```python from synapse_sdk.plugins.decorators import act
- Available Result Schemas
- Quick Usage
- With Class-Based Actions
- With Function-Based Actions
- Schema Details
- TrainResult
- InferenceResult
- ExportResult
- UploadResult
- WeightsResult
- MetricsResult
- Detailed References
What does the synapse-result-schemas skill do?
Explains result schema classes for Synapse plugin actions. Use when the user mentions "TrainResult", "InferenceResult", "ExportResult", "UploadResult", "WeightsResult", "MetricsResult", "result_model", "result schema", or needs help with action return type validation.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill result-schemas --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.