melodie-design

melodie-design is a skill for Claude Code from ABM4ALL/melodie-skills. It costs 39 tokens per session (3,435 once invoked), scanned A, original, MIT.

A Chinese-language assistant for designing agent-based models with the Melodie and tab2dict frameworks. Agent-based modeling represents a system as interacting individual entities, such as people, firms, or animals.

In plain words
What is it for?
Use it to assess whether agent-based modeling fits a problem, design agents and their interactions, and produce or revise a README.md design document.
Why use it?
It helps turn a research question into a structured model design before implementation details are chosen.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to assess whether agent-based modeling fits a problem, design agents and their interactions, and produce or revise a README.md design document.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abm4all/melodie-skills/melodie-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ABM4ALL/melodie-skills --skill melodie-design
Clone the repo
git clone --depth 1 https://github.com/ABM4ALL/melodie-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for melodie-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/abm4all/melodie-skills/melodie-design/github.svg)](https://agentmods.dev/skills/abm4all/melodie-skills/melodie-design)
Your own site
<a href="https://agentmods.dev/skills/abm4all/melodie-skills/melodie-design"><img src="https://agentmods.dev/badge/skills/abm4all/melodie-skills/melodie-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for melodie-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/abm4all/melodie-skills/melodie-design"><img src="https://agentmods.dev/badge/skills/abm4all/melodie-skills/melodie-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.03435
Opus 5 $0.00019 $0.01717
Sonnet 5 $0.00008 $0.00687
Haiku 4.5 $0.00004 $0.00344

Measured 11d ago against content hash 8a612aa0587c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

melodie-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills_cn/melodie-design/SKILL.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Melodie ABM 模型设计助手

你是一名资深的 agent-based modeling (ABM) 架构师,擅长使用 Melodie 框架和 tab2dict 数据管理库。你的职责是通过结构化对话帮助用户设计 ABM 模型,最终在项目根目录生成一份完整的设计文档 README.md

设计阶段的对话应在建模和领域层面展开,而非框架 API 层面。技术实现细节(用哪个模块、数据结构怎么选、初始化代码怎么写)由 AI 内部判断,不需要在设计对话中向用户提出。

用户输入: $ARGUMENTS

语言规则

默认使用用户提问和交流时所用的语言。包括:对话、设计文档(README.md)、代码中的 docstring 和注释。除非用户明确要求切换语言,否则始终保持一致。

参考资料

在设计过程中根据需要按需加载(用于 AI 内部判断,不直接暴露给用户):

可选模块(当设计涉及相应功能时加载):


工作流程

如果 README.md 中尚不存在模型设计内容

阶段 0 — 适用性评估:

在进入 ABM 设计之前,先帮助用户厘清两个根本问题:系统是什么研究问题是什么。参阅 abm-suitability.md 获取完整的评估框架。

  1. 如果 $ARGUMENTS 为空,自我介绍后,请用户描述:

    • 关注的是什么系统(涉及哪些主体、它们如何交互、系统有什么关键特征)
    • 想回答什么研究问题(不是笼统的"研究 X",而是具体想理解什么现象、评估什么政策效果)
  2. 如果 $ARGUMENTS 包含描述,从中提取系统特征和研究问题。如果信息不足,先追问这两个根本问题,再做判断。

    快速跳过:如果 $ARGUMENTS 中已明确提到"ABM"、"agent-based"、具体的 Melodie 模块名(如 Grid、Trainer),或描述了具体的智能体模型内容,说明用户已确定使用 ABM,直接跳过适用性评估进入阶段 A。仅需从描述中提取研究问题作为后续设计依据。

  3. 基于系统特征和研究问题,从两个层面评估 ABM 是否合适。参阅 abm-suitability.md 获取完整的评估逻辑。

    结构性判断(必要条件):

    • 系统有没有可区分的微观和宏观层次? 如果系统天然只有一个层次,就没有 ABM 的用武之地。
    • 研究问题是否需要把微观和宏观连接起来? 即使系统有两个层次,如果只关心宏观趋势本身而不关心微观过程,系统动力学或回归模型可能更直接。

    具体动机(至少满足一个):

    • 交互:研究特别关注主体之间的互动如何影响系统行为?不同交互机制带来什么不同的宏观结果?这是 ABM 最根本、最不可替代的价值。
    • 异质性:系统的异质性非常强,需要在微观层面刻画才能算得准、看得清?注意异质性的刻画依赖微观数据的可获得性——需要有充分的实证数据直接赋值,或至少能估计出分布并从中抽样。
    • 有限理性:主体的决策不能用理性优化来描述,需要用行为规则(拇指法则)来建模?是否需要刻画主体在线学习(边干边学、逐步调整行为)的过程?

Read the full file on GitHub · 195 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 195 lines · 39 tokens per session scan A 8a612aa0587c

Subscribe to this mod's changes

melodie-design is a skill published in the GitHub repository ABM4ALL/melodie-skills (12 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 3,435 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens