[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CWJWDGXMC4GNG1RN9CNRNQ":3,"skill-same:01M6CWJWDGXMC4GNG1RN9CNRNQ":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6CWJWDGXMC4GNG1RN9CNRNQ","experiment-log",null,"Record a model training run — log parameters, metrics, and artifact paths, then append a structured row to the experiments ledger. Use when a training run completes, when asked to \"log this experiment\", or when comparing runs to decide which model to promote.","zakelfassi\u002Fskills-driven-development","zakelfassi","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1274085?v=4","01M6CWHB4BNG8NYGSW0YS08B7E","Zak El Fassi","01M6CWHB8QCK700M6B2S6Y1QPD",18,"MIT","https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development\u002Fblob\u002Fmain\u002Fexamples\u002Fdata-pipeline\u002Fskills\u002Fexperiment-log\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"experiment log","log","experiment","use","structured","time","artifact","three","record","schema","experiments","session","cursor","append","decide","model","format","promote","run","training","2026-11-10 10:12:30",false,"---\nname: experiment-log\ndescription: Record a model training run — log parameters, metrics, and artifact paths, then append a structured row to the experiments ledger. Use when a training run completes, when asked to \"log this experiment\", or when comparing runs to decide which model to promote.\nmetadata:\n  forged-by: cursor-agent\n  forged-from: session-2026-03-10\n  forged-reason: \"Logged 3 training runs in three days; each time the ledger entry format was different and comparison was impossible — encoded a consistent schema\"\n  usage-count: \"26\"\n  last-used: \"2026-06-10\"\n---\n\n# Experiment Log\n\nRecord a training run's parameters, metrics, and artifact paths in the experiments ledger.\n\n## Inputs\n- Experiment name (e.g., `churn-v3-lgbm`)\n- Run ID (auto-generated if omitted: `{name}-{YYYYMMDD-HHmmss}`)\n- Parameters (key-value pairs, e.g., `learning_rate=0.05 n_estimators=500`)\n- Metrics (key-value pairs, e.g., `auc=0.83 f1=0.71 precision=0.79 recall=0.64`)\n- Artifact path (model checkpoint, serialized pipeline, etc.)\n- Notes (free-form, optional)\n\n## Steps\n\n1. **Collect run metadata**\n   ```python\n   import datetime, hashlib, json, os\n\n   run_id = \"{name}-\" + datetime.datetime.utcnow().strftime(\"%Y%m%d-%H%M%S\")\n   git_sha = os.popen(\"git rev-parse --short HEAD\").read().strip()\n   dataset_version = open(\"data\u002F.version\").read().strip()  # semver or hash\n   ```\n\n2. **Capture parameters and metrics**\n   If using a training script that outputs JSON:\n   ```bash\n   python train.py --config config\u002F{name}.yaml --output-metrics \u002Ftmp\u002Fmetrics.json\n   ```\n   Otherwise, capture values directly from the trainer object:\n   ```python\n   params = model.get_params()\n   metrics = {\"auc\": roc_auc_score(y_test, y_pred), \"f1\": f1_score(y_test, y_pred)}\n   ```\n\n3. **Save artifacts**\n   ```python\n   import joblib\n   artifact_path = f\"artifacts\u002F{run_id}\u002Fmodel.pkl\"\n   os.makedirs(os.path.dirname(artifact_path), exist_ok=True)\n   joblib.dump(model, artifact_path)\n   ```\n\n4. **Append to the experiments ledger**\n   ```bash\n   scripts\u002Flog-experiment.sh \\\n     --name \"{name}\" \\\n     --run-id \"{run_id}\" \\\n     --params '{\"learning_rate\": 0.05}' \\\n     --metrics '{\"auc\": 0.83, \"f1\": 0.71}' \\\n     --artifact \"{artifact_path}\" \\\n     --notes \"{notes}\"\n   ```\n   The ledger is `experiments\u002Flog.csv` — a flat CSV with one row per run.\n\n5. **Verify the entry**\n   ```bash\n   tail -n 5 experiments\u002Flog.csv\n   ```\n   Confirm: run_id is unique, metrics are numeric, artifact path exists.\n\n6. **Compare with previous runs** (optional)\n   ```bash\n   python scripts\u002Fcompare-runs.py --metric auc --top 5\n   ```\n\n7. **Promote if best** (invoke `pipeline-stage` skill to wire the new model into serving)\n   Only promote after peer review of the metrics and a sanity-check on the holdout set.\n\n## Conventions\n- Ledger location: `experiments\u002Flog.csv` — never delete rows; mark superseded runs with `status=superseded`\n- Artifact naming: `artifacts\u002F{run_id}\u002F` — one directory per run\n- Required fields: `run_id`, `experiment_name`, `timestamp`, `git_sha`, `auc` (or primary metric), `artifact_path`\n- All metrics are floats; parameters are JSON strings\n- Every run references the dataset version it trained on (`dataset_version` column)\n\n## Edge Cases\n- **Duplicate run_id:** Append a counter suffix (`-2`, `-3`) rather than overwriting; log a warning.\n- **Training failed mid-run:** Log the entry with `status=failed` and the error message in `notes`; don't leave the ledger entry absent.\n- **Very large artifact:** Store only the path; add a `artifact_size_mb` column for reference.\n- **Remote artifact store (S3\u002FGCS):** Use the full URI as `artifact_path`; the log script accepts both local paths and URIs.\n","# Experiment Log\n\nRecord a training run's parameters, metrics, and artifact paths in the experiments ledger.\n\n## Inputs\n- Experiment name (e.g., `churn-v3-lgbm`)\n- Run ID (auto-generated if omitted: `{name}-{YYYYMMDD-HHmmss}`)\n- Parameters (key-value pairs, e.g., `learning_rate=0.05 n_estimators=500`)\n- Metrics (key-value pairs, e.g., `auc=0.83 f1=0.71 precision=0.79 recall=0.64`)\n- Artifact path (model checkpoint, serialized pipeline, etc.)\n- Notes (free-form, optional)\n\n## Steps\n\n1. **Collect run metadata**\n   ```python\n   import datetime, hashlib, json, os\n\n   run_id = \"{name}-\" + datetime.datetime.utcnow().strftime(\"%Y%m%d-%H%M%S\")\n   git_sha = os.popen(\"git rev-parse --short HEAD\").read().strip()\n   dataset_version = open(\"data\u002F.version\").read().strip()  # semver or hash\n   ```\n\n2. **Capture parameters and metrics**\n   If using a training script that outputs JSON:\n   ```bash\n   python train.py --config config\u002F{name}.yaml --output-metrics \u002Ftmp\u002Fmetrics.json\n   ```\n   Otherwise, capture values directly from the trainer object:\n   ```python\n   params = model.get_params()\n   metrics = {\"auc\": roc_auc_score(y_test, y_pred), \"f1\": f1_score(y_test, y_pred)}\n   ```\n\n3. **Save artifacts**\n   ```python\n   import joblib\n   artifact_path = f\"artifacts\u002F{run_id}\u002Fmodel.pkl\"\n   os.makedirs(os.path.dirname(artifact_path), exist_ok=True)\n   joblib.dump(model, artifact_path)\n   ```\n\n4. **Append to the experiments ledger**\n   ```bash\n   scripts\u002Flog-experiment.sh \\\n     --name \"{name}\" \\\n     --run-id \"{run_id}\" \\\n     --params '{\"learning_rate\": 0.05}' \\\n     --metrics '{\"auc\": 0.83, \"f1\": 0.71}' \\\n     --artifact \"{artifact_path}\" \\\n     --notes \"{notes}\"\n   ```\n   The ledger is `experiments\u002Flog.csv` — a flat CSV with one row per run.\n\n5. **Verify the entry**\n   ```bash\n   tail -n 5 experiments\u002Flog.csv\n   ```\n   Confirm: run_id is unique, metrics are numeric, artifact path exists.\n\n6. **Compare with previous runs** (optional)\n   ```bash\n   python scripts\u002Fcompare-runs.py --metric auc --top 5\n   ```\n\n7. **Promote if best** (invoke `pipeline-stage` skill to wire the new model into serving)\n   Only promote after peer review of the metrics and a sanity-check on the holdout set.\n\n## Conventions\n- Ledger location: `experiments\u002Flog.csv` — never delete rows; mark superseded runs with `status=superseded`\n- Artifact naming: `artifacts\u002F{run_id}\u002F` — one directory per run\n- Required fields: `run_id`, `experiment_name`, `timestamp`, `git_sha`, `auc` (or primary metric), `artifact_path`\n- All metrics are floats; parameters are JSON strings\n- Every run references the dataset version it trained on (`dataset_version` column)\n\n## Edge Cases\n- **Duplicate run_id:** Append a counter suffix (`-2`, `-3`) rather than overwriting; log a warning.\n- **Training failed mid-run:** Log the entry with `status=failed` and the error message in `notes`; don't leave the ledger entry absent.\n- **Very large artifact:** Store only the path; add a `artifact_size_mb` column for reference.\n- **Remote artifact store (S3\u002FGCS):** Use the full URI as `artifact_path`; the log script accepts both local paths and URIs.\n",{"name":5,"metadata":44,"description":7},{"forged-by":45,"last-used":46,"forged-from":47,"usage-count":48,"forged-reason":49},"cursor-agent","2026-06-10","session-2026-03-10","26","Logged 3 training runs in three days; each time the ledger entry format was different and comparison was impossible — encoded a consistent schema","main","e959db0147cafe70b738efbd5a128985763fd0df","examples\u002Fdata-pipeline\u002Fskills\u002Fexperiment-log",1,"https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development","https:\u002F\u002Fskdd.dev","https:\u002F\u002Fgithub.com\u002Fzakelfassi","https:\u002F\u002Fzakelfassi.com","I build systems and write about what they do to us. Founder @TalkAndComment.","2026-11-06 14:19:15",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add zakelfassi\u002Fskills-driven-development --skill experiment-log",{"tool":66,"command":67},"bunx","bunx skills add zakelfassi\u002Fskills-driven-development --skill experiment-log",{"tool":69,"command":70},"pnpm","pnpm dlx skills add zakelfassi\u002Fskills-driven-development --skill experiment-log","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development\u002Fblob\u002Fmain\u002Fexamples\u002Fdata-pipeline\u002Fskills\u002Fexperiment-log\u002FSKILL.md",true,[74],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Flog-experiment.sh","SCRIPT","脚本",2552,"https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development\u002Fblob\u002Fmain\u002Fexamples\u002Fdata-pipeline\u002Fskills\u002Fexperiment-log\u002Fscripts\u002Flog-experiment.sh",[81,98,103,122,139,160],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":39},"01M6CWKMXZDBQ8TK30ZV1X2KM7","skillforge","Create or update a reusable agent skill. Use when you notice a repeated pattern, when a workflow should be persisted for future sessions, or when asked to forge\u002Fcreate\u002Fscaffold a new skill.","https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development\u002Fblob\u002Fmain\u002Fskillforge\u002FSKILL.md",[],[83,88,89,90,91,92,22,93,94,95,96,97],"workflow","agentskills","pattern","new skill","reusable","forge","update","create","scaffold","sessions",{"skillNo":99,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":39},"01M6CWKJF5Y1PQBZ4QWA9DDES1","https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development\u002Fblob\u002Fmain\u002Fplugins\u002Fskdd-claude\u002Fskills\u002Fskillforge\u002FSKILL.md",[],[83,88,93,97,89,90,91,92,22,94,95,96],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6CWKFTNP9RBAD9SBEKRVMR2","deploy-preview","Deploy a preview branch to the staging environment for review. Use when a feature branch is ready for visual review, when someone asks to \"deploy this for review\", or before opening a PR.","https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development\u002Fblob\u002Fmain\u002Fexamples\u002Fwebapp-starter\u002Fskills\u002Fdeploy-preview\u002FSKILL.md",[],[110,111,112,113,114,24,115,116,22,30,117,118,119,120,121],"deploy preview","deploy","preview","visual","branches","ready","opening a pr","environment","branch","pr","codex","review",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":39},"01M6CWKCSCQ6PV8TVKV2MDRAHH","component-scaffold","Create a new React component with co-located test, story, and styles. Use when creating new UI components, when asked to scaffold\u002Fgenerate a component, or when building new pages.","https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development\u002Fblob\u002Fmain\u002Fexamples\u002Fwebapp-starter\u002Fskills\u002Fcomponent-scaffold\u002FSKILL.md",[],[129,130,96,22,131,132,133,30,134,135,136,95,137,24,138],"component scaffold","component","components","structure","Story","ui","file","generate","react","test",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":39},"01M6CWKA7S16TW2KZZ7ADK9YSA","bug-triage","Triage a bug report into an actionable GitHub issue with severity, reproduction steps, and assignment. Use when a bug is reported, when error logs need investigation, or when asked to file\u002Ftriage an issue.","https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development\u002Fblob\u002Fmain\u002Fexamples\u002Fwebapp-starter\u002Fskills\u002Fbug-triage\u002FSKILL.md",[],[146,147,148,149,135,150,151,152,153,154,155,156,157,22,158,30,159],"triage","bug","bug triage","logs","report","toolkit","bug report","github","severity","project","issue","github issue","ops","investigation",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":39},"01M6CWK6Y4VB6HFNKP84WA3C6G","api-endpoint","Scaffold a REST API endpoint with route, controller, validation, and tests. Use when creating new API endpoints, adding resources, or when asked to build a new backend route.","https:\u002F\u002Fgithub.com\u002Fzakelfassi\u002Fskills-driven-development\u002Fblob\u002Fmain\u002Fexamples\u002Fwebapp-starter\u002Fskills\u002Fapi-endpoint\u002FSKILL.md",[],[167,168,169,170,90,24,132,171,172,173,22,30,174,175,176,96,120],"endpoint","api","api endpoint","route","build","endpoints","backend","controller","REST","validation"]