rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
DeepSeek Harness (DSH) 的插件:数学可视化服务
基于JSXGraph的MCP协议服务器,提供13种数学可视化工具,适用于教育数学、工程和科学应用。
Use when the problem asks to plot or sketch y = f(x), compare curves, or show calculus features such as tangents, derivatives, or integrals.
⚠️⚠️⚠️ CRITICAL TYPE REQUIREMENTS ⚠️⚠️⚠️
Capabilities:
Examples:
Plot a single function: { "functions": [{ "expression": "x^2" }] }
Function with domain and open endpoints (for piecewise functions): { "functions": [ { "expression": "x^2", "domain": [-3, 2], "leftOpen": true, "rightOpen": false } ] } // leftOpen=true draws a hollow circle at x=-3, rightOpen=false draws a filled circle at x=2
Function with custom points (filled or open circles): { "functions": [{ "expression": "x^2" }], "points": [ { "x": 0, "y": 0, "name": "Origin", "fillColor": "red" }, { "x": 2, "y": 4, "fillColor": "white", "strokeColor": "blue" } // open circle ] }
Multiple functions with custom colors: { "functions": [ { "expression": "x^2", "color": "blue", "name": "f(x)" }, { "expression": "x^3", "color": "red", "name": "g(x)" } ] }
Common mistakes to AVOID:
Keywords: plot function, function graph, sketch curve, calculus visualization, compare functions
⚠️⚠️⚠️ CRITICAL TYPE REQUIREMENTS ⚠️⚠️⚠️
Use when the prompt describes parameterized motion, circles, cycloids, Lissajous patterns, or any curve specified as functions of t.
Capabilities:
Examples:
Circle (unit circle): { "curves": [{ "xExpression": "Math.cos(t)", "yExpression": "Math.sin(t)", "tMin": 0, "tMax": 6.283185307179586 }] }
Parabola in parametric form: { "curves": [{ "xExpression": "t", "yExpression": "t^2", "tMin": -5, "tMax": 5 }] }
Curve with points (x = 5sin(t), 0 ≤ t ≤ π/6): { "curves": [{ "xExpression": "5 * Math.sin(t)", "yExpression": "t", "tMin": 0, "tMax": 0.5236 }], "points": [{ "x": 0, "y": 0 }, { "x": 2.5, "y": 0.5236 }] }
Common mistakes to AVOID:
Keywords: parametric plot, x of t, y of t, motion path, curve animation
⚠️⚠️⚠️ CRITICAL TYPE REQUIREMENTS ⚠️⚠️⚠️
Examples:
Triangle with labeled vertices: { "points": [ { "x": 0, "y": 0, "name": "A" }, { "x": 3, "y": 0, "name": "B" }, { "x": 1.5, "y": 2.6, "name": "C" } ], "lines": [ { "point1": "A", "point2": "B" }, { "point1": "B", "point2": "C" }, { "point1": "C", "point2": "A" } ], "polygons": [{ "vertices": ["A", "B", "C"], "fillOpacity": 0.2 }] }
Square with custom angle label: { "points": [ { "x": 0, "y": 0, "name": "P1" }, { "x": 2, "y": 0, "name": "P2" }, { "x": 2, "y": 2, "name": "P3" }, { "x": 0, "y": 2, "name": "P4" } ], "polygons": [{ "vertices": ["P1", "P2", "P3", "P4"] }], "angles": [{ "point1": "P1", "vertex": "P2", "point2": "P3", "label": "90°" }] }
Vector diagram: { "points": [ { "x": 0, "y": 0, "name": "O" }, { "x": 3, "y": 2, "name": "A" }, { "x": -1, "y": 3, "name": "B" } ], "lines": [ { "point1": "O", "point2": "A", "type": "vector", "name": "v1", "color": "#ff0000" }, { "point1": "O", "point2": "B", "type": "vector", "name": "v2", "color": "#0000ff" } ] }
Common mistakes to AVOID:
REMEMBER: Always define points first, then reference them by name (string) in lines, polygons, angles!
Keywords: geometry, triangle, polygon, angle, vector, construction, geometric diagram
⚠️⚠️⚠️ CRITICAL TYPE REQUIREMENTS ⚠️⚠️⚠️
Examples:
Circular vector field F(x,y) = (-y, x): { "fieldFunction": { "dx": "-y", "dy": "x" } }
Direction field for y' = 9 + 9y: { "fieldFunction": { "dx": "1", "dy": "9 + 9*y" }, "streamlines": [{ "startX": 0, "startY": -1 }, { "startX": 0, "startY": 0 }] }
Radial field F(x,y) = (x, y): { "fieldFunction": { "dx": "x", "dy": "y" } }
Gradient field ∇f where f(x,y) = x² + y²: { "fieldFunction": { "dx": "2x", "dy": "2y" } }
Common mistakes to AVOID:
REMEMBER: Even constant numbers like 0, 1, -1 MUST be strings: "0", "1", "-1"
Use when the prompt asks to solve or visualise systems of linear equations, highlight intersection points, or show feasible regions for inequalities/objectives.
Capabilities:
Quick start example: { "equations": [{ "a": 1, "b": 1, "c": 5 }, { "a": 1, "b": -1, "c": 1 }] }
Keywords: linear system, intersection graph, inequality shading, objective line, simultaneous equations
Use when the question mentions translations, stretches, reflections, absolute values, inverses, or composite functions based on an original curve.
Capabilities:
IMPORTANT: transformation 'type' MUST be one of: 'translate', 'scale', 'reflect', 'absolute', 'inverse', 'composite'.
Examples:
Horizontal shift (translation): { "baseFunction": { "expression": "x^2" }, "transformations": [{ "type": "translate", "parameters": { "h": 2, "k": 1 } }] }
Vertical stretch (scaling): { "baseFunction": { "expression": "Math.sin(x)" }, "transformations": [{ "type": "scale", "parameters": { "a": 2 } }] }
Horizontal compression: { "baseFunction": { "expression": "x^2" }, "transformations": [{ "type": "scale", "parameters": { "b": 2 } }] }
Reflection across x-axis: { "baseFunction": { "expression": "x^2" }, "transformations": [{ "type": "reflect", "parameters": { "axis": "x" } }] }
Reflection across y=x (inverse function): { "baseFunction": { "expression": "x^3" }, "transformations": [{ "type": "reflect", "parameters": { "axis": "y=x" } }] }
Multiple transformations: { "baseFunction": { "expression": "x^2" }, "transformations": [ { "type": "translate", "parameters": { "h": 1 } }, { "type": "scale", "parameters": { "a": 2 } } ] }
Common mistakes:
Keywords: transform function, translate graph, stretch function, reflect curve, composition
Use when the prompt asks to analyse or sketch quadratic functions, compare parabolas, or explain vertex, intercepts, symmetry, or discriminant behavior.
Capabilities:
Quick start example: { "quadratics": [{ "a": 1, "b": 0, "c": 0 }] }
Keywords: quadratic graph, parabola analysis, vertex form, factor form, compare parabolas
Use when the problem references exponential or logarithmic expressions, asymptotes, inverse relationships, or needs comparisons between bases.
Capabilities:
IMPORTANT:
Examples:
Natural logarithm y = ln(x): { "functions": [{ "type": "logarithm" }] }
Common logarithm y = log₁₀(x): { "functions": [{ "type": "logarithm", "base": 10 }] }
Exponential growth y = 2^x: { "functions": [{ "type": "exponential", "base": 2 }] }
Natural exponential y = e^x: { "functions": [{ "type": "exponential" }] }
Exponential decay y = (0.5)^x: { "functions": [{ "type": "exponential", "base": 0.5 }] }
Compare ln(x) with log₂(x): { "functions": [ { "type": "logarithm", "name": "ln(x)", "color": "blue" }, { "type": "logarithm", "base": 2, "name": "log₂(x)", "color": "red" } ] }
Logarithm with special points and asymptote: { "functions": [{ "type": "logarithm", "base": 10 }], "showAsymptotes": true, "specialPoints": [{ "x": 1, "y": 0, "label": "(1, 0)" }, { "x": 10, "y": 1, "label": "(10, 1)" }] }
Common mistakes to avoid:
Keywords: exponential graph, logarithmic curve, growth rate, decay model, inverse functions
⚠️⚠️⚠️ CRITICAL TYPE REQUIREMENTS ⚠️⚠️⚠️
Examples:
Simple rational function f(x) = 1/x: { "rationalFunctions": [{ "numerator": "1", "denominator": "x" }] }
Rational function f(x) = (x² - 1)/(x - 2): { "rationalFunctions": [{ "numerator": "x^2 - 1", "denominator": "x - 2" }] }
Multiple rational functions: { "rationalFunctions": [ { "numerator": "x + 1", "denominator": "x^2 - 4", "color": "blue" }, { "numerator": "x^2", "denominator": "x - 1", "color": "red" } ] }
Irrational function f(x) = √x: { "irrationalFunctions": [{ "expression": "Math.sqrt(x)", "domain": [0, 10] }] }
Common mistakes to AVOID:
REMEMBER: ALL expressions MUST be strings with quotes, including simple numbers! Examples: "1" not 1, "0" not 0, "x" not x, "2x+1" not 2x+1
IMPORTANT: Each conic in the 'conics' array MUST have a 'type' field.
Examples:
Circle with radius 5: { "conics": [{ "type": "circle", "center": { "x": 0, "y": 0 }, "radius": 5 }] }
Parabola y² = 4px: { "conics": [{ "type": "parabola", "vertex": { "x": 0, "y": 0 }, "p": 1 }] }
Ellipse with semi-axes a=4, b=2: { "conics": [{ "type": "ellipse", "center": { "x": 0, "y": 0 }, "a": 4, "b": 2 }] }
Hyperbola: { "conics": [{ "type": "hyperbola", "center": { "x": 0, "y": 0 }, "a": 3, "b": 2 }] }
General conic Ax² + Bxy + Cy² + Dx + Ey + F = 0: { "generalConics": [{ "A": 1, "B": 0, "C": 1, "D": 0, "E": 0, "F": -25 }] }
Common mistakes:
Use when the task asks to plot inequality solutions, show interval notation, or visualise unions/intersections on a number line.
Capabilities:
IMPORTANT: Each inequality MUST have an 'expression' field (string). DO NOT use 'start/end' or 'includeStart/End' fields.
Examples:
Single inequality (x ≤ 3): { "inequalities": [{ "expression": "x <= 3" }] }
Union of intervals (x ≤ 3 or 4 ≤ x ≤ 5): { "inequalities": [ { "expression": "x <= 3", "color": "blue" }, { "expression": "4 <= x <= 5", "color": "blue" } ] }
Compound inequality with custom range: { "inequalities": [{ "expression": "-2 < x < 3" }], "boundingBox": [-5, 1, 5, -1] }
Multiple separate regions: { "inequalities": [ { "expression": "x < -1", "color": "red" }, { "expression": "2 <= x <= 4", "color": "green" }, { "expression": "x > 6", "color": "blue" } ] }
Expression format guide:
Keywords: number line, inequality graph, interval notation, solution set, one dimensional plot
IMPORTANT: 'isoquants' is a REQUIRED field. Each isoquant MUST have 'Q' and 'points' properties.
Examples:
Basic isoquant analysis: { "isoquants": [ { "Q": 100, "points": [[1, 4], [2, 2], [4, 1]] } ] }
Multiple isoquants with isocost: { "isoquants": [ { "Q": 100, "points": [[1, 4], [2, 2], [4, 1]] }, { "Q": 200, "points": [[2, 8], [4, 4], [8, 2]] } ], "isocosts": [{ "C": 100, "slope": -1 }] }
With optimal point: { "isoquants": [{ "Q": 100, "points": [[1, 4], [2, 2], [4, 1]] }], "optimum": { "K": 2, "L": 2 } }
Common mistakes:
Use when the prompt references a normal distribution, z-scores, shaded probability intervals, or hypothesis-testing thresholds.
⚠️⚠️⚠️ CRITICAL TYPE REQUIREMENTS ⚠️⚠️⚠️
Capabilities:
Examples:
Standard normal distribution N(0,1): { } // produces N(0, 1) with default settings
Custom normal with shaded area: { "mean": 5, "stddev": 2, "shade": [3, 7] }
With custom labels: { "mean": 0, "stddev": 1, "labels": { "mean": "μ", "stddev": "σ", "probability": "P(a ≤ X ≤ b)" } }
Common mistakes to AVOID:
REMEMBER: labels properties are STRINGS, not objects!
Keywords: normal curve, bell curve, z score, probability shading, statistics
Use when the prompt involves linear programming, feasible regions, constraint sets, or identifying optimal points for an objective.
Capabilities:
Quick start example: { "constraints": [{ "a": 1, "b": 1, "c": 10 }, { "a": 1, "b": 0, "c": 0, "type": ">=" }] }
Keywords: feasible region, linear programming, constraint graph, objective optimization, LP diagram
# 格式: dsh plugin --profile <profile> add github:<owner>/<repo>
dsh plugin --profile web add github:xby_skill/xby-mathematical-visualization
# 仅用于本地开发调试
dsh plugin --profile web add /absolute/path/to/xby-mathematical-visualization
dsh web --profile web --patch /absolute/path/to/dsh-ocr-plugin/cordis.patch.yml
前往 小笨羊官网 注册并获取 API 密钥。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp。