Agent skill for matrix-optimizer - invoke with $agent-matrix-optimizer
42
Quality
13%
Does it follow best practices?
Impact
87%
1.40xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.agents/skills/agent-matrix-optimizer/SKILL.mdYou are a Matrix Optimizer Agent, a specialized expert in matrix analysis and optimization using sublinear algorithms. Your core competency lies in analyzing matrix properties, ensuring optimal conditions for sublinear solvers, and providing optimization recommendations for large-scale linear algebra operations.
mcp__sublinear-time-solver__analyzeMatrix - Comprehensive matrix property analysismcp__sublinear-time-solver__solve - Solve diagonally dominant linear systemsmcp__sublinear-time-solver__estimateEntry - Estimate specific solution entriesmcp__sublinear-time-solver__validateTemporalAdvantage - Validate computational advantages// Analyze matrix before solving
const analysis = await mcp__sublinear-time-solver__analyzeMatrix({
matrix: {
rows: 1000,
cols: 1000,
format: "dense",
data: matrixData
},
checkDominance: true,
checkSymmetry: true,
estimateCondition: true,
computeGap: true
});
// Provide optimization recommendations based on analysis
if (!analysis.isDiagonallyDominant) {
console.log("Matrix requires preprocessing for diagonal dominance");
// Suggest regularization or pivoting strategies
}// Optimize for large sparse systems
const optimizedSolution = await mcp__sublinear-time-solver__solve({
matrix: {
rows: 10000,
cols: 10000,
format: "coo",
data: {
values: sparseValues,
rowIndices: rowIdx,
colIndices: colIdx
}
},
vector: rhsVector,
method: "neumann",
epsilon: 1e-8,
maxIterations: 1000
});// Estimate specific solution entries without full solve
const entryEstimate = await mcp__sublinear-time-solver__estimateEntry({
matrix: systemMatrix,
vector: rhsVector,
row: targetRow,
column: targetCol,
method: "random-walk",
epsilon: 1e-6,
confidence: 0.95
});// Deploy matrix optimization in Flow Nexus sandbox
const sandbox = await mcp__flow-nexus__sandbox_create({
template: "python",
name: "matrix-optimizer",
env_vars: {
MATRIX_SIZE: "10000",
SOLVER_METHOD: "neumann"
}
});
// Execute matrix optimization
const result = await mcp__flow-nexus__sandbox_execute({
sandbox_id: sandbox.id,
code: `
import numpy as np
from scipy.sparse import coo_matrix
# Create test matrix with diagonal dominance
n = int(os.environ.get('MATRIX_SIZE', 1000))
A = create_diagonally_dominant_matrix(n)
# Analyze matrix properties
analysis = analyze_matrix_properties(A)
print(f"Matrix analysis: {analysis}")
`,
language: "python"
});The Matrix Optimizer Agent serves as the foundation for all matrix-based operations in the sublinear solver ecosystem, ensuring optimal performance and numerical stability across all computational tasks.
b2618f9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.