一键导入
gradient
ML-specific patterns for data pipelines, model training, MLOps, and evaluation — domain expertise for machine learning engineers
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
ML-specific patterns for data pipelines, model training, MLOps, and evaluation — domain expertise for machine learning engineers
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Store and retrieve patterns from past work using semantic search; adds self-learning capability to Superpowers
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
Select optimal subagent topology (hierarchical, mesh, ring, star) based on task structure; adds Ruflo-style swarm intelligence to Superpowers
Structured first-pass exploration of an unfamiliar codebase — what to read, in what order, what to map, what traps to find. Use when entering any new or inherited project before writing code.
Select optimal AI model by task complexity — route to cheap/fast models for simple tasks, capable models for complex reasoning
Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
| name | gradient |
| description | ML-specific patterns for data pipelines, model training, MLOps, and evaluation — domain expertise for machine learning engineers |
| type | domain |
GRADIENT — In ML, the gradient is the directional signal that tells you exactly how to improve. When invoked: assesses pipeline stage (data / training / serving / MLOps), loads the relevant pattern file, and applies ML-specific validation — schema checks, drift detection, training-serving skew guards, latency budgets.
Core principle: ML systems have unique failure modes — data drift, training-serving skew, silent degradation. Test data and models, not just code.
Announce at start: "Running GRADIENT for ML-specific patterns."
STAGE ASSESSMENT:
"What stage are you at?"
A) Data collection / ingestion
B) Feature engineering / preprocessing
C) Model training / experimentation
D) Model evaluation / validation
E) Model serving / inference
F) Production monitoring / MLOps
G) Debugging an ML failure
Stage → Section mapping:
hunter first, then return with evidenceAfter identifying stage, ask: "What's the primary constraint — accuracy, latency, cost, or reliability?"
Load patterns: patterns/data-pipeline.md
Key tests to implement:
Rule: Write pipeline tests before writing model code.
Load patterns: patterns/model-training.md
Before training complex models:
Load patterns: patterns/model-serving.md
Tests required before deployment:
Load patterns: patterns/mlops.md
Required components:
| Task | Metrics |
|---|---|
| Classification | accuracy, precision, recall, F1, AUC-ROC, AUC-PR |
| Regression | MAE, MSE, RMSE, R², MAPE |
| Ranking | NDCG, MAP, MRR |
Cost/latency budgets (set before training, enforce in CI):
Never:
Always:
| Skill | Integration |
|---|---|
forge | Write data tests before pipeline, model tests before training |
hunter | Use for training failures, accuracy drops |
sentinel | Verify metrics before claiming model works |
chronicle | Store patterns from failed experiments |