shark-autotune
Analyse shark timing history and recommend optimal SHARK_LOOP_TIMEOUT and SHARK_MAX_LOOPS settings
Best use case
shark-autotune is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Analyse shark timing history and recommend optimal SHARK_LOOP_TIMEOUT and SHARK_MAX_LOOPS settings
Teams using shark-autotune should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/shark-autotune/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How shark-autotune Compares
| Feature / Agent | shark-autotune | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Analyse shark timing history and recommend optimal SHARK_LOOP_TIMEOUT and SHARK_MAX_LOOPS settings
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Shark Autotune
Analyse recorded shark timing data and recommend optimal settings.
## Instructions
1. Read `$SKILL_DIR/../state/timings.jsonl` — each line is a JSON object:
```json
{"ts":1710000000,"loop":1,"elapsed_s":12.3,"timeout_s":25,"result":"ok|timeout|done","task_hash":"abc123"}
```
2. If the file doesn't exist or is empty, report "No timing data yet. Run tasks with /shark first to collect data."
3. Compute and report:
- **Total runs** (unique task_hash values) and **total loops**
- **Median turn time** (p50) and **p95 turn time**
- **Timeout rate** — % of turns with result "timeout"
- **Loops to completion** — median and max (count loops per task_hash that has a "done" entry)
- **Wasted headroom** — sum of (timeout_s - elapsed_s) for result "ok" turns
- **Optimal timeout** — p95 turn time + 3s buffer, rounded up to nearest 5s
- **Optimal max_loops** — p95 loops-to-completion + 2
4. Show recommendations:
```
Current: SHARK_LOOP_TIMEOUT=25 SHARK_MAX_LOOPS=50
Recommended: SHARK_LOOP_TIMEOUT=N SHARK_MAX_LOOPS=M
Rationale:
- p95 turn time is Xs, so timeout of Ns covers 95% with buffer
- p95 completion is N loops, so max_loops of M gives safe margin
- Timeout rate is X% — [>15%: consider splitting tasks | healthy]
- Wasted headroom: Xs total
```
5. If timeout rate > 30%: "Consider breaking tasks into smaller steps."
6. If median turn time < 5s: "Most turns complete fast. Consider lowering timeout."Related Skills
shark-exec
No description provided.
shark-status
Check status of shark-exec background jobs, .shark-done, and SHARK_LOG.md
shark-loop
Run shark.ps1/shark.sh loop enforcer with OS-level timeout per turn
shark-clean
Clean up shark state files (.shark-done, SHARK_LOG.md, pending.json, timings.jsonl)
shark
No description provided.
performing-network-traffic-analysis-with-tshark
使用 tshark 和 pyshark 自动化网络流量分析,进行协议统计、可疑流量检测、DNS 异常识别以及从 PCAP 文件中提取威胁指标(IOC)
performing-network-forensics-with-wireshark
使用 Wireshark 和 tshark 捕获并分析网络流量,重建网络事件、提取制品并识别恶意通信。
analyzing-network-traffic-with-wireshark
使用 Wireshark 和 tshark 捕获并分析网络数据包,识别恶意流量模式、诊断协议问题、提取工件, 并支持对授权网络分段进行事件响应调查。
wireshark-analysis
This skill should be used when the user asks to "analyze network traffic with Wireshark", "capture packets for troubleshooting", "filter PCAP files", "follow TCP/UDP streams", "dete...
wireshark-analysis
This skill should be used when the user asks to "analyze network traffic with Wireshark", "capture packets for troubleshooting", "filter PCAP files", "follow TCP/UDP streams", "dete...
wireshark-analysis
This skill should be used when the user asks to "analyze network traffic with Wireshark", "capture packets for troubleshooting", "filter PCAP files", "follow TCP/UDP streams", "dete...
wireshark-analysis
Execute comprehensive network traffic analysis using Wireshark to capture, filter, and examine network packets for security investigations, performance optimization, and troubleshooting.