memristec-skill
AI-agent skill, verified Python toolkit and executed six-chapter book on compact memristor models (linear ion drift, Yakopcic, VTEAM, Stanford-PKU), cross-checked against the MemrisTec Model Library
Install / Use
npx skills add fabiocampolim-design/memristec-skillInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Project & Program ManagementSupported Platforms
Our assessment of memristec-skill
memristec-skill scores 80/100 on our quality scale, 62nd of 76 Project & Program Management skills we index.
Its SKILL.md is 13 KB long, well organised into 12 sections with 3 code examples: a thorough specification that gives an agent plenty to work with.
It has 2 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so memristec-skill is actively maintained.
- Our last check on 2026-10-19 found the source still online.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
memristec-skill compared with similar skills
All 4 of these similar skills score higher than memristec-skill; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| memristec-skill (this skill)by fabiocampolim-design | 80 | 2 | 2mo ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 109.6k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.0k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 98.8k | 1d ago | MCP Server |
| crawl4aiby unclecode | 100 | 87.0k | 2d ago | MCP Server |
Frequently asked questions
- How do I install memristec-skill?
- Run
npx skills add fabiocampolim-design/memristec-skill. The install tabs above show the steps for each supported agent. - Which AI agents does memristec-skill work with?
- It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is memristec-skill safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is Apache-2.0-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is memristec-skill still maintained?
- The repository was last updated about 2 months ago, so memristec-skill is actively maintained.
Skill content
View source on GitHubmemristec-skill
An AI-agent skill, a verified Python toolkit and an executed six-chapter book on compact memristor models, built by studying the MemrisTec Memristor Model Platform (DFG priority programme SPP 2262) end to end — every model written from its paper, every figure generated live, every claim checked.
<p align="center"> <a href="references/taxonomy.md"><img src="docs/figures/memristor-map.svg" alt="Map: memristor device classes on the left, nineteen public measurement data sets in the middle, the six compact-model families that fit them on the right" width="100%"></a> </p> <p align="center"><sub>Which device class a public data set belongs to, and which model family fits it. Every node is explained, with the links to the data, in <a href="references/taxonomy.md"><code>references/taxonomy.md</code></a>.</sub></p>This repository packages practical, executed knowledge about compact memristor models in a
form both humans and AI coding agents can use: a skill definition (SKILL.md)
with nine workflows, clean-room models on one ODE driver (scripts/), an adapter that runs
your own clone of the MemrisTec Model Library and compares numbers, distilled references
(references/), and a book of six chapter notebooks in which every physics claim is
executed and checked — from Chua's definition and the pinched loop to threshold and
filamentary switching, pulse programming for neuromorphic frameworks, and a fit whose
identifiability is measured rather than assumed.
The MemrisTec Model Library is developed by the SPP 2262 consortium (TU Dresden, RWTH Aachen and partners) and has no licence file. This is an unofficial, independent project: no line of the library is in this repository; the models are transcribed from the cited papers and cross-checked against the library in numbers through the adapter.
Feedback is highly appreciated. Open an issue for anything wrong, unclear or missing — especially: a physics check you believe asserts the wrong thing, a parameter table that disagrees with its paper, a device class or a public data set missing from the map, or a platform where the notebooks do not run.
Why this exists
Compact memristor models are the interface between device physics and every neuromorphic simulation, yet the models one finds in libraries disagree with their own names and papers: the MemrisTec folder called Biolek implements Joglekar's window, one runner ignores its voltage argument, another calls an undefined class, two folders cite the wrong paper. An AI agent asked to "simulate a memristor with the MemrisTec models" had nothing verified to stand on. This repository is the verified ground: models from the papers, one driver, a book that checks 84 claims when it runs, and a ledger of what was found upstream — kept in the study repository and reported to the maintainers by the author, never by an agent.
Quick start
scripts/install_memristec_windows.ps1 # or bash scripts/install_memristec.sh; both accept a dry run
python scripts/verify_memristec.py # exit 0 = environment and physics OK
python scripts/memristec_tools.py --selftest
python -m pytest tests -q # ~20 s; the cross-checks skip without a clone
With a local clone of the library, export MEMRISTEC_MODEL_LIBRARY=/path/to/memristec-model-library
adds the cross-checks (health check 5/5, python scripts/upstream_adapter.py).
Manual: docs/USER_MANUAL.md. For AI agents: SKILL.md,
AGENTS.md. Design notes: docs/DESIGN.md. Contributing:
CONTRIBUTING.md.
Features
- Four clean-room models on one driver (
scripts/memristec_tools.py): linear ion drift with the none / Joglekar / Biolek / Prodromakis windows (Strukov 2008 and the window papers), Yakopcic 2011/2013, VTEAM (Kvatinsky 2015) and the Stanford–PKU filamentary model with self-heating (Jiang 2016). One state variable in [0, 1], fixed-step RK4/Euler orsolve_ivp, I-V sweeps, lobe-wise loop metrics, dynamic route maps, pulse trains andpulse_response. Unknown parameter names raise; equations and parameter provenance are inreferences/models.md. - Measured independence.
scripts/upstream_adapter.pyimports a model folder from your clone, wraps it behind the same interface and compares derivative fields on a grid: the four shimmed folders agree with the clean-room models to 2e-16 … 4e-15, with tolerances in a schema-versioned record. The same comparison found the upstream defects listed below. - An executed book, one notebook per chapter (
chapters/, index inchapters/README.md): the memristor as a state-controlled resistor; linear ion drift and windows; threshold switching with VTEAM; filamentary switching with Stanford–PKU and Yakopcic; pulses, retention and neuromorphic hand-off; benchmarking, numerics, fitting and the library cross-check. 85 cells, 84 inline checks, 25 captioned figures, 0 failures, under two minutes to run, every notebook under 0.3 MB. - Reproducible by construction. The notebooks are generated from
build/*.py; a test fails if a committed notebook drifts from its source, carries a failed check or an uncaptioned figure, or leaks a personal path. - Guarded documentation. Every CLI flag and every
--model/--windowchoice is checked againstAGENTS.mdand the manual;VERSION,CITATION.cff,CHANGELOG.mdandSKILL.mdmust agree; every source file carries its SPDX header. - A device / data / model map (
references/taxonomy.md): seven device classes in the library's own vocabulary, six model families by state variable, and nineteen public measurement data sets with their licences and links. - Weekly upstream watch (
scripts/watch_upstream.py,scripts/register_watch_task.ps1): fetches your clone of the library, lists new commits per branch and changed model folders since the previous run, and writes a dated log.
Using it as an AI-agent skill
For Claude Code or any agent framework that understands skill directories:
git clone <this repository> ~/.claude/skills/memristec # user-level install
or per project into <project>/.claude/skills/memristec. The agent consults the skill
whenever a task involves memristors, RRAM compact models, window functions, pinched
hysteresis, pulse programming or the MemrisTec library. Other frameworks can ingest
SKILL.md as a system instruction and expose scripts/ on the path.
Using it as a plain Python toolkit
No AI required — ordinary Python (3.12+):
import sys; sys.path.insert(0, "scripts")
from memristec_tools import make_model, iv_sweep, loop_metrics, pulse_response
m = make_model("stanford_pku2016")
res = iv_sweep(m, amplitude=1.5, frequency=1e3, cycles=1, n_per_cycle=20000) # stiff: 20 000 points
print(loop_metrics(res)["r_max"] / loop_metrics(res)["r_min"]) # HRS/LRS ≈ 180
ltp = pulse_response(make_model("vteam2015", x0=0.8), -0.5, width=0.02, period=0.05, n_pulses=20)
python scripts/memristec_tools.py --model vteam2015 --amplitude 0.6 --cycles 2 --outdir out
writes a CSV and a JSON audit record. Full flag tables: AGENTS.md.
What the book covers
| Chapter | Sections | Highlights | |---|---|---| | 1 The memristor as a state-controlled resistor | §1–4 | Chua's definition, the pinched loop and its frequency dependence, Strukov's affine memristance law checked to 0.1 %, the dynamic route map | | 2 Linear ion drift and window functions | §5–8 | the terminal-state problem, Joglekar / Biolek / Prodromakis windows, stuck at the wall | | 3 Threshold switching: VTEAM | §9–12 | dead band, switching loop, exponents and asymmetry, 1 000 reads that write nothing | | 4 Filamentary switching | §13–16 | Stanford–PKU SET/RESET, sweep-rate dependence, self-heating measured (it follows the switch with the teaching parameters), Yakopcic's DRM, three families on one drive | | 5 Pulses, retention and neuromorphic use | §17–20 | potentiation / depression curves, update nonlinearity, retention, a 4×4 crossbar programmed by pulse count | | 6 Benchmarking, numerics, fitting and the library | §21–26 | four models on one stimulus, Euler vs RK4 convergence, a synthetic fit and its identifiability, the live cross-check against the library, the folders that are not compact models, how to contribute |
The checks caught the plan's own wrong assumptions while writing (self-heating does not move V_set with the teaching parameters; identical pulses moved the state by different amounts until a stimulus bug was fixed; a saturating drive carries no information about a rate parameter) and surfaced the upstream findings kept as drafts next to this repository.
Honest comparison with neighbours
| If you want… | Use | Why not this |
|---|---|---|
| The library itself, its website table and simulator | MemrisTec Model Platform | The canonical source; unlicensed as of 2026-09, so it cannot be redistributed or imported by a framework. This project studies it and cross-checks against it. |
| Device non-idealities inside a deep-learning framework | aihwkit (IBM), MemTorch | Production frameworks with fitted statistical device models; this project produces the pulse tables they consume (chapter 5 §20) and does not replace them. |
| Every published SPICE model in one place | memristor-models-4-all (Knowm) | A collection of SPICE decks, not executed or cross-checked; this project has four models, each verified. |
| Circuit-level memristor simulation in Verilog-A | JART (RWTH/Jülich) | The physics VCM model with variability; here only as a planned clean-room target and a library folder run through the adapter. |
| Real device data | the map above and references/taxonomy.md | This project links to public data sets, it hosts none. |
Roadmap
- Validated: full execution on Windows 10 / Python 3.12.14 / numpy 2.5 (2026-09-04),
cross-checks against clone
f13423fof the library (four folders), suite 191 passed with the clone; CI on Linux / Windows / macOS × Python 3.12 / 3.13 runs on every push (first run pending the first public push). - Parameter tables: the Yakopcic, VTEAM and Stanford–PKU defaults are marked "as
recalled" or "ours" in
references/models.mduntil they are checked line by line against the papers — planned next. - Planned: the JART VCM model as a clean-room target and a fitting workflow for pulse LTP/LTD data (the author's TaO$_x$ devices); the thermal threshold switches (Pickett–Williams, Kumar–Williams) once their papers are transcribed; an undergraduate course built from the book's figures; a PyPI package (name decision recorded, not yet taken).
How it was built
Written with Claude Code (Claude Fable 5.1) between 2026-09-01 and 2026-09-04 in a study repository that also holds the upstream audit, the findings ledger and the drafts: a foundation release (environment, licence and guards, the first two models, the adapter), a models-and-chapters plan executed task by task with a whole-project review
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
109.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
79.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Scrapling
98.8k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
crawl4ai
87.0kOfficial Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
