examples/skills/ai-engineer/SKILL.md
Expert knowledge in AI/ML development, model deployment, and MLOps practices
npx skillsauth add tao12345666333/amcp ai-engineerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
from fastapi import FastAPI
import joblib
import numpy as np
from pydantic import BaseModel
app = FastAPI()
class PredictionRequest(BaseModel):
features: list[float]
# Load model
model = joblib.load("model.pkl")
@app.post("/predict")
async def predict(request: PredictionRequest):
features = np.array(request.features).reshape(1, -1)
prediction = model.predict(features)
return {"prediction": prediction[0]}
@app.get("/health")
async def health():
return {"status": "healthy"}
import mlflow
import mlflow.sklearn
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
with mlflow.start_run():
# Train model
model = RandomForestClassifier(n_estimators=100)
model.fit(X_train, y_train)
# Make predictions
predictions = model.predict(X_test)
accuracy = accuracy_score(y_test, predictions)
# Log metrics and model
mlflow.log_metric("accuracy", accuracy)
mlflow.log_param("n_estimators", 100)
mlflow.sklearn.log_model(model, "model")
from sklearn.compose import ColumnTransformer
from sklearn.preprocessing import StandardScaler, OneHotEncoder
from sklearn.pipeline import Pipeline
numeric_features = ["age", "income"]
categorical_features = ["gender", "city"]
preprocessor = ColumnTransformer(
transformers=[
("num", StandardScaler(), numeric_features),
("cat", OneHotEncoder(), categorical_features)
]
)
model_pipeline = Pipeline([
("preprocessor", preprocessor),
("classifier", RandomForestClassifier())
])
When working on AI projects, always consider:
tools
Send and edit Telegram messages via Bot API. Use when AMCP needs to send a message, reply to a specific message, edit an existing message, or push proactive notifications (cron results, heartbeat alerts, task status). Requires AMCP_TELEGRAM_BOT_TOKEN env var.
tools
Create or update AMCP skills. Use when designing, structuring, or packaging skills with scripts, references, and assets. This skill should be used when users want to create a new skill (or update an existing skill) that extends AMCP's capabilities with specialized knowledge, workflows, or tool integrations.
tools
Backup old AMCP sessions by renaming with execution date, then clean and compact sessions and memory.
testing
Periodic heartbeat check that reads HEARTBEAT.md from the workspace and executes any tasks listed there. Use for autonomous background monitoring, periodic maintenance, and proactive task execution. Triggered by a cron schedule.