The skill validates a log-file path or inline log content, then coordinates agents to extract events, detect anomalies, assess risk, and generate an incident report. It specifies stage dependencies, error handling, expected outputs, and estimated token costs.
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Orchestrate a 4-agent pipeline that analyzes log files for security threats and produces an incident report.
[You] -> Team Lead (this skill)
|
|-[1]-> log-ingestor (haiku) -> cyber-defense-events.json
|
|-[2]-> anomaly-detector (sonnet) -> cyber-defense-anomalies.json
| (reads events.json)
|-[3]-> risk-classifier (sonnet) -> cyber-defense-risk.json
| (reads anomalies.json)
`-[4]-> threat-reporter (sonnet) -> cyber-defense-report.md
(reads all 3 JSON files)Stages 2 and 3 are sequential (each depends on previous output). Stage 4 runs after all data is ready.
The log file path is the skill argument. Check that the file exists (or that log content was provided inline). If the path doesn't exist, tell the user immediately and don't proceed.
Use the Agent tool to spawn the log-ingestor agent:
Task: Parse the log file at [log_path] and write structured events to cyber-defense-events.json.
Log path: [log_path]Wait for completion. Confirm cyber-defense-events.json was created.
Use the Agent tool to spawn the anomaly-detector agent:
Task: Read cyber-defense-events.json and detect anomalies. Write results to cyber-defense-anomalies.json.Wait for completion. If anomalies_found: 0, skip to Step 5 (reporter still runs).
Use the Agent tool to spawn the risk-classifier agent:
Task: Read cyber-defense-anomalies.json and classify overall risk. Write result to cyber-defense-risk.json.Use the Agent tool to spawn the threat-reporter agent:
Task: Read cyber-defense-events.json, cyber-defense-anomalies.json, and cyber-defense-risk.json. Generate a complete incident report and save it to cyber-defense-report.md.Read cyber-defense-risk.json and present:
Analysis complete
Risk Level : HIGH
Score : 74/100
Threats : 2 anomalies detected
Report : cyber-defense-report.md
Primary threat: Brute force attack from 192.168.1.105
Immediate action required: [first recommended_action]| Stage | Model | Typical tokens |
|---|---|---|
| log-ingestor | haiku | ~2K |
| anomaly-detector | sonnet | ~3K |
| risk-classifier | sonnet | ~2K |
| threat-reporter | sonnet | ~3K |
| Total | ~10K |
For large log files (>10K lines), log-ingestor may use up to 20K tokens.
/cyber-defense-team /var/log/nginx/access.log
/cyber-defense-team /tmp/auth.logf97e4f7
AgentReadIf 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.