model-code-analyzer
Translates math models into actionable coding plans.
Install
mkdir -p .claude/skills/model-code-analyzer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12749" && unzip -o skill.zip -d .claude/skills/model-code-analyzer && rm skill.zipInstalls to .claude/skills/model-code-analyzer
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Translate a validated method plan into language-neutral code logic, folder layout, and handoff notes before Python or MATLAB code generation.Key capabilities
- →Translate mathematical plans into code logic
- →Identify required inputs for candidate methods
- →Define the experiments/roundN/ output structure
- →Specify the run_summary.json schema
- →Plan computation pipelines for each method
- →Stop if a blocker prevents code generation
How it works
This skill converts a validated mathematical modeling plan into a language-neutral coding plan by defining code logic, output structures, and data handling for experiments.
Inputs & outputs
When to use model-code-analyzer
- →Planning a model implementation
- →Defining experiment output structures
- →Preparing code logic for modeling
About this skill
Purpose
Define exactly what code must implement and save. Do not expand the approved experiment scope or fully plan a dormant fallback.
Preconditions
methods/Qx/qx_method_card.mdand probe summary exist.methods/Qx/qx_decisions.jsonlcontains a humanDECIDEDmethod choice.- A usable baseline is identified.
- Cleaned data and
data_profile.jsonare ready when data is required. - Implementation target and round are known.
Read legacy candidate/decision artifacts only when the new artifacts are absent.
Workflow
- Read the approved choice, method card, probe conditions, and experiment budget.
- Plan only:
- approved
main; - approved
usable_baseline; - shared helpers and comparison logic.
- approved
- Record the fallback ID and trigger, but do not plan its full implementation unless the trigger is already evidenced and the human chose activation.
- Map mathematical definitions to inputs, processing steps, intermediate evidence, outputs, and validation checks.
- Define a directly comparable metric/output contract for main and baseline.
- Define the round output:
results/Qx/experiments/roundN/
├── figures/
├── tables/
├── metrics/
└── run_summary.json
Create logs/ only for failures, warnings, or reproducibility needs.
7. Write code/Qx/qx_code_plan.md for Python or code/matlab/Qx/qx_code_plan.md for MATLAB.
8. Hand off to the matching language generator.
Run Summary Contract
Require:
{
"schema_version": 1,
"question": "Q1",
"round": "round1",
"implementation_target": "python",
"random_seed": 2026,
"approved_decision_id": "q1_method_choice",
"methods": [
{
"method_id": "M1",
"role": "usable_baseline",
"script": "code/Q1/q1_baseline.py",
"status": "success",
"execution_time_seconds": 0,
"input_files": [],
"output_files": [],
"figure_files": [],
"metrics_summary": {},
"warnings": [],
"errors": []
}
],
"comparison": {},
"fallback_trigger": {
"fallback_id": null,
"condition": null,
"observed": false,
"evidence": null
},
"environment": {}
}
Code Plan Contents
- target language and round purpose;
- approved decision ID;
- main and baseline IDs and roles;
- input fields and units;
- per-method computation steps;
- comparable outputs and metrics;
- risk-probe conditions that implementation must monitor;
- fallback trigger evaluation;
- paths, seed, dependencies, and expected runtime;
- named review checks expected downstream.
Rules
- Do not write executable model code.
- Do not add candidates or change model meaning.
- Do not plan a diagnostic reference as the official baseline.
- Do not implement a fallback before activation.
- Do not require success logs.
- Do not create a README when the code plan already provides the same instructions.
- Stop if a human choice, required parameter, input field, or comparable baseline output is missing.
Verification
- Plan scope is exactly main plus usable baseline unless fallback activation is recorded.
- Outputs are directly comparable.
- Probe risks and fallback trigger are represented in
run_summary.json. - Paths follow the experiment contract.
- Handoff targets the correct language generator.
When not to use it
- →Before data-auditor-cleaner has confirmed data readiness
- →Before method-selector has produced the candidate method pool
- →When the goal is to write runnable code directly
Prerequisites
Limitations
- →Does not write runnable code itself
- →Does not change the method list from the candidate pool
- →Stops if a blocker prevents code generation
How it compares
This workflow creates a detailed, language-agnostic blueprint for model implementation and output organization, ensuring reproducibility and comparability, unlike directly generating code without a structured plan.
Compared to similar skills
model-code-analyzer side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| model-code-analyzer (this skill) | 0 | 3mo | No flags | Advanced |
| llava | 7 | 8mo | Review | Advanced |
| cocoindex | 6 | 9mo | Review | Intermediate |
| ai-multimodal | 9 | 6mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
llava
zechenzhangAGI
Large Language and Vision Assistant. Enables visual instruction tuning and image-based conversations. Combines CLIP vision encoder with Vicuna/LLaMA language models. Supports multi-turn image chat, visual question answering, and instruction following. Use for vision-language chatbots or image understanding tasks. Best for conversational image analysis.
cocoindex
cocoindex-io
Comprehensive toolkit for developing with the CocoIndex library. Use when users need to create data transformation pipelines (flows), write custom functions, or operate flows via CLI or API. Covers building ETL workflows for AI data processing, including embedding documents into vector databases, building knowledge graphs, creating search indexes, or processing data streams with incremental updates.
ai-multimodal
mrgoonie
Process and generate multimedia content using Google Gemini API. Capabilities include analyze audio files (transcription with timestamps, summarization, speech understanding, music/sound analysis up to 9.5 hours), understand images (captioning, object detection, OCR, visual Q&A, segmentation), process videos (scene detection, Q&A, temporal analysis, YouTube URLs, up to 6 hours), extract from documents (PDF tables, forms, charts, diagrams, multi-page), generate images (text-to-image, editing, composition, refinement). Use when working with audio/video files, analyzing images or screenshots, processing PDF documents, extracting structured data from media, creating images from text prompts, or implementing multimodal AI features. Supports multiple models (Gemini 2.5/2.0) with context windows up to 2M tokens.
rag-implementation
wshobson
Build Retrieval-Augmented Generation (RAG) systems for LLM applications with vector databases and semantic search. Use when implementing knowledge-grounded AI, building document Q&A systems, or integrating LLMs with external knowledge bases.
langchain-architecture
wshobson
Design LLM applications using the LangChain framework with agents, memory, and tool integration patterns. Use when building LangChain applications, implementing AI agents, or creating complex LLM workflows.
rdkit
K-Dense-AI
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.