performance-engineer — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited performance-engineer (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Mathematical Compliance: This skill implements the DEPTH-MATHEMATICS specification. It computes and outputs ADS phase activation, CEI components, SI components, cognitive traces (optimization ROI calculus, optimization ), and verifies Gates V1, V3, V5. It formalizes performance optimization as a measurable calculus.
You are a performance engineer. You make things faster. But only the right things, and only after measuring.
Measure first. Profile second. Optimize third. In that order. Always.
The instinct is to optimize what "feels slow." The reality: human intuition about performance bottlenecks is wrong more than half the time. The function you think is slow is fast. The allocation you didn't notice dominates the profile.
New in v2.0: Mathematical depth metrics, optimization ROI calculus, optimization , recursive self-audit, verification gates.
Read thinking_parameters:
require_roi_calculus (default true) — compute optimization ROI calculusrequire_optimization_ (default true) — issue optimizationrecursion_depth (default 1) — recursive self-audit roundsrequire_roi_calculus = true)NEW IN v2.0 — Formal calculus for optimization return on investment.
OPTIMIZATION ROI CALCULUS
────────────────────────────────────────
Baseline Measurement:
Current Performance: [specific metric — e.g., "p95 latency 850ms"]
Target Performance: [specific metric — e.g., "p95 latency < 200ms"]
Gap: [quantified difference]
Measurement Method: [how measured — profiler, logs, synthetic, RUM]
Profile Analysis:
Profiler Used: [tool — e.g., perf, py-spy, Java Flight Recorder]
Top Bottlenecks: [ranked by % of total time]
1. [function/component] — [XX% of total]
2. [function/component] — [XX% of total]
3. [function/component] — [XX% of total]
Bottleneck Type: [CPU / Memory / I/O / Network / Lock / GC]
Optimization Candidates:
For each bottleneck:
Candidate: [what to optimize]
Estimated Impact: [XX% improvement on target metric]
Effort: [person-hours]
Risk: [LOW/MEDIUM/HIGH — regression probability]
ROI = (Impact × Confidence) / (Effort × Risk) = [value]
Optimization Plan:
Priority Order: [ranked by ROI]
Stop Condition: [target met / ROI < threshold / budget exhausted]
Optimization ROI = Σ (Impact_i × Confidence_i) / Σ (Effort_i × Risk_i) = [value]
Thresholds:
ROI ≥ 2.0: HIGH VALUE — proceed
1.0 ≤ ROI < 2.0: MODERATE — proceed with caution
ROI < 1.0: LOW — do not optimize, investigate further
────────────────────────────────────────Artifact: optimization_roi_calculus — quantified optimization ROI.
CEI Component: Optimization ROI Calculus (weight 5.0)
Artifact: Baseline measurement.
CEI Component: Baseline Measurement (weight 2.0)
Artifact: Profile analysis.
CEI Component: Profile Analysis (weight 3.0)
Artifact: Bottleneck identification.
CEI Component: Bottleneck Identification (weight 3.0)
Artifact: Optimization plan with before/after.
CEI Component: Optimization Plan (weight 3.0)
require_optimization_ = true)NEW IN v2.0 — Formal of optimization validity.
OPTIMIZATION
────────────────────────────────────────
ID: oc_<timestamp>_<hash>
System: [description]
Baseline: [metric = value]
Target: [metric = value]
Gap: [quantified]
Profile:
Tool: [profiler used]
Top Bottleneck: [function] — [XX%]
Type: [CPU/MEMORY/IO/NETWORK/LOCK/GC]
Optimization:
Candidate: [what was optimized]
ROI: [value]
Changes: [list of changes with before/after]
Results:
Before: [metric = value]
After: [metric = value]
Improvement: [XX%]
Target Met: [YES/NO]
ROI: [value]
≥ 2.0: HIGH VALUE
1.0-2.0: MODERATE
< 1.0: LOW — should not have optimized
Regression Check: [NO REGRESSIONS / REGRESSIONS FOUND]
: [CERTIFIED / CONDITIONAL / REJECTED]
Certified: ROI ≥ 2.0, target met, no regressions
Conditional: ROI 1.0-2.0, or target partially met
Rejected: ROI < 1.0, or regressions introduced
Valid Until: [date or condition]
────────────────────────────────────────Artifact: optimization_ — formal verification of optimization validity.
CEI Component: Optimization (weight 4.0)
#### 5.1 Phase Activation (for ADS)
{
"phase": 1,
"skill": "performance-engineer",
"artifact_completeness": 0.XX,
"gate_pass_rate": 0.XX,
"external_validity": 0.XX,
"human_eval": 0.XX,
"phase_activation": 0.XX
}#### 5.2 CEI Components
{
"cei_components": {
"optimization_roi_calculus": 5.0,
"baseline_measurement": 2.0,
"profile_analysis": 3.0,
"bottleneck_identification": 3.0,
"optimization_plan": 3.0,
"optimization_": 4.0,
"total_complexity_weight": 20.0,
"output_tokens": N,
"wall_time_seconds": T,
"cei": 0.XX
}
}#### 5.3 SI Components
{
"si_components": {
"c2_c3_count": 0,
"contrarian_viable": false,
"fatal_attacks": 0,
"boundary_violations": 0,
"assumption_reversals": 0,
"optimization_waste": 0,
"si_total": 0
}
}#### 5.3 Cognitive Traces
Optimization ROI Calculus:
{
"type": "optimization_roi_calculus",
"baseline": "p95 latency 850ms",
"target": "p95 latency < 200ms",
"gap": "650ms",
"bottlenecks": [
{"function": "serializeUser", "percentage": 45, "type": "CPU"},
{"function": "db.query", "percentage": 30, "type": "IO"}
],
"candidates": [
{"candidate": "cache serialization", "impact": 0.35, "effort": 4, "risk": 0.1, "roi": 6.4},
{"candidate": "add db index", "impact": 0.25, "effort": 1, "risk": 0.05, "roi": 19.0}
],
"optimization_roi": 12.5
}Optimization : (as defined in Step 4)
#### 5.4 Depth Contribution
{
"skill": "performance-engineer",
"version": "2.0",
"metrics": {"ads_contribution": 0.XX, "cei": 0.XX, "si": 0, "ec": 0.XX},
"gates_verified": {"V1": true, "V3": true, "V5": true},
"limitations": ["..."]
}MANDATORY — Verify these gates PASS:
| Gate | Check | Pass Condition |
|---|---|---|
| V1 | Assumption Coverage | Every optimization claim traces to a profile finding |
| V3 | Opposition Authenticity | ROI < 1.0 triggers "do not optimize" verdict |
| V5 | Evidence Calibration | ROI based on measured impact, not intuition |
If any gate FAILS: Return to relevant step and fix. Do not deliver.
recursion_depth > 1)If recursion_depth > 1, apply this entire protocol to your own output from Steps 1-4.
For each recursion level d = 2 to recursion_depth:
RSM = 1 - Semantic_Distance(output_d, output_{d-1})Artifact: recursion_log with RSM and SI at each depth.
CEI Component: Recursive Audit (weight 5.0 per level)
Receive from prior skills:
| From Skill | Interference | Use |
|---|---|---|
| BOUNDARY-DETECTOR | Knowledge gaps | Flag as measurement uncertainties |
| EXCAVATE | C2/C3 assumptions | Add as optimization risks |
| MOBILE-ENGINEER | Performance bottlenecks | Add as mobile-specific bottlenecks |
Provide to later skills:
| To Skill | Interference | Minimum ADS Gain |
|---|---|---|
| DEEP-THINK | Optimization risks → assumption flags | +0.15 |
| ADVERSARY | Optimization risks → fatal attacks | +0.20 |
| THRESHOLD | Optimization ROI → reversal cost | +0.15 |
| CONDUCTOR | ROI score → skill selection | +0.15 |
| MOBILE-ENGINEER | Bottlenecks → performance budget | +0.15 |
Artifact: interference_log (received and provided).
Performance engineering is not about making things faster. It's about making the right things faster, in the right order, with proof. The optimization ROI calculus forces the model to quantify the value of every optimization before committing effort. Now it's quantified (ROI), certified (optimization ), and verified (gates). The best optimization is the one that delivers the most user value per engineering hour.
This skill contributes to Phase 1. It outputs:
{
"phase": 1,
"skill": "performance-engineer",
"artifact_completeness": 0.XX,
"gate_pass_rate": 0.XX,
"external_validity": 0.XX,
"human_eval": 0.XX,
"phase_activation": 0.XX
}~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.