interpolation — скилл для Claude Code: что делает и как установить
Скилл interpolation помогает выбрать и реализовать численный метод интерполяции данных в Claude Code, от полиномов Лагранжа до сплайнов в SciPy.
MIT ★ 3 951 обновлён 2026-01-26
npx skills add parcadei/Continuous-Claude-v3 --skill interpolation -a claude-codeЧто делает interpolation
Скилл задаёт алгоритм выбора метода интерполяции под конкретный набор данных. Для малого числа точек (<10) он предлагает многочлены Лагранжа или Ньютона, для гладких массивов — кубические сплайны, а для зашумлённых значений — сглаживающие сплайны или метод наименьших квадратов. В многомерных случаях скилл направляет агента на симплексные подходы, триангуляцию Коксетера — Фройденталя — Куна и барицентрическое разбиение.
Внутри заложены готовые сниппеты для вызова через uv run python с библиотеками scipy.interpolate (CubicSpline, make_interp_spline, interp1d) и символьных вычислений через скрипт sympy_compute.py. Для проверки точности скилл предписывает оценивать краевой эффект Рунге и проводить перекрёстную проверку с исключением по одной точке.
Для непосредственного запуска предложенных команд окружению потребуется установленный менеджер пакетов uv вместе с библиотеками numpy, scipy и sympy.
Какие задачи решает
- подобрать численный метод интерполяции под размер и гладкость массива точек
- построить кубический сплайн через
scipy.interpolate.CubicSpline - проверить полиномиальную аппроксимацию на краевой феномен Рунге
- интерполировать зашумлённые измерения сглаживающими сплайнами
Примеры запросов агенту
- Подбери метод интерполяции для 8 гладких точек и напиши код на SciPy
- Интерполируй зашумлённый одномерный массив с помощью сглаживающего сплайна
- Проверь интерполяционный многочлен на краевой эффект Рунге
Как установить interpolation
1Через Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill interpolation -a claude-code2Вручную: положить файлы
~/.claude/skills/interpolation/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/interpolation/
1Через Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill interpolation -a codex2Вручную: положить файлы
.agents/skills/interpolation/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill interpolation -a cursor2Вручную: положить файлы
.cursor/skills/interpolation/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install parcadei/Continuous-Claude-v3 .claude/skills/math/numerical-methods/interpolation2Вручную: положить файлы
.github/skills/interpolation/SKILL.md1Через Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill interpolation -a gemini-cli2Командой платформы
gemini skills install https://github.com/parcadei/Continuous-Claude-v3 --path .claude/skills/math/numerical-methods/interpolationВручную: положить файлы
.devin/skills/interpolation/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об interpolation
Как установить interpolation в Claude Code?
Выполните команду npx skills add parcadei/Continuous-Claude-v3 --skill interpolation -a claude-code.
Что делает скилл interpolation?
Он предоставляет агенту логику выбора метода интерполяции в зависимости от плотности данных, шума и размерности, а также готовые вызовы SciPy.
Какие зависимости нужны для команд из скилла?
Примеры запуска опираются на менеджер uv и установленные в среде пакеты numpy, scipy и sympy.
Исходный текст
SKILL.md · MIT
--- name: interpolation description: "Problem-solving strategies for interpolation in numerical methods" allowed-tools: [Bash, Read] --- # Interpolation ## When to Use Use this skill when working on interpolation problems in numerical methods. ## Decision Tree 1. **Assess Data Characteristics** - How many data points? Spacing uniform or non-uniform? - Is data smooth or noisy? - Need derivatives at endpoints? 2. **Select Interpolation Method** - Few points (<10): Polynomial (Lagrange, Newton) - Many points, smooth data: Cubic splines - Noisy data: Smoothing splines or least squares - High dimensions: Use simplex-based (n+1 neighbors vs 2^n) 3. **Implement with SciPy** - `scipy.interpolate.CubicSpline(x, y)` - natural cubic spline - `scipy.interpolate.make_interp_spline(x, y, k=3)` - B-spline - `scipy.interpolate.interp1d(x, y, kind='cubic')` - 1D interpolation 4. **Validate Results** - Check for Runge's phenomenon at boundaries (high-degree polynomials) - Cross-validate: leave-one-out error estimation - Visual inspection of interpolated curve - `sympy_compute.py limit "interp_error" --at boundaries` 5. **High-Dimensional Considerations** - Coxeter-Freudenthal-Kuhn triangulation for O(n log n) point location - Barycentric subdivision for balanced performance ## Tool Commands ### Scipy_Cubic_Spline ```bash uv run python -c "from scipy.interpolate import CubicSpline; import numpy as np; x = np.array([0,1,2,3]); y = np.array([0,1,4,9]); cs = CubicSpline(x, y); print(cs(1.5))" ``` ### Scipy_Bspline ```bash uv run python -c "from scipy.interpolate import make_interp_spline; import numpy as np; x = np.array([0,1,2,3]); y = np.array([0,1,4,9]); bspl = make_interp_spline(x, y, k=3); print(bspl(1.5))" ``` ### Sympy_Lagrange ```bash uv run python -m runtime.harness scripts/sympy_compute.py interpolate "[(0,0),(1,1),(2,4)]" --var x ``` ## Key Techniques *From indexed textbooks:* - [An Introduction to Numerical Analysis... (Z-Library)] DISCUSSION OF THE LITERATURE Discussion of the Literature As noted in the introduction, interpolation theory is a foundation for the development of methods in numerical integration and differentiation, approxima tion theory, and the numerical solution of differential equations. Each of these· topics is developed in the following chapters, and the associated literature is discussed at that point. Additional results on interpolation theory are given in de Boor (1978), Davis (1963), Henrici (1982, chaps. - [Numerical analysis (Burden R.L., Fair... (Z-Library)] The most commonly used form of interpolation is piecewise-polynomial interpolation. If function and derivative values are available, piecewise cubic Hermite interpolation is recommended. This is the preferred method for interpolating values of a function that is the solution to a differential equation. - [Numerical analysis (Burden R.L., Fair... (Z-Library)] Copyright 2010 Cengage Learning. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). - [Numerical analysis (Burden R.L., Fair... (Z-Library)] Galerkin and Rayleigh-Ritz methods are both determined by Eq. However, this is not the case for an arbitrary boundary-value problem. A treatment of the similarities and differences in the two methods and a discussion of the wide application of the Galerkin method can be found in [Schul] and in [SF]. - [An Introduction to Numerical Analysis... (Z-Library)] Polynomial interpolation theory has a number of important uses. In this text, its primary use is to furnish some mathematical tools that are used in developing methods in the areas of approximation theory, numerical integration, and the numerical solution of differential equations. A second use is in developing means - for working with functions that are stored in tabular form. ## Cognitive Tools Reference See `.claude/skills/math-mode/SKILL.md` for full tool documentation.
© parcadei · MIT · parcadei/Continuous-Claude-v3