Best for
- Running reconnaissance and scanning commands with structured output capture
- Debugging failed exploits or tool errors during a pentest
- Executing post-exploitation commands with careful state tracking
brucesongs/kali-claw/skills/terminal-ops/SKILL.md
Evidence-first execution workflow for running security commands, inspecting system state, debugging tool failures, and making verified changes. This skill enforces a disciplined approach: inspect before acting, keep changes narrow, and report exact execution state.
Decision brief
Supplementary Files: - payloads.md — Common pentest terminal command patterns organized by task (recon, exploitation, post-exploitation, reporting) - test-cases.md — Structured test scenarios for terminal operations workflow
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Declared | Source record | Install path and trigger |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/brucesongs/kali-claw --skill "skills/terminal-ops"Inspect the Agent Skill "terminal-ops" from https://github.com/brucesongs/kali-claw/blob/a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e/skills/terminal-ops/SKILL.md at commit a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Phase 1: Resolve the Working Surface
Rename binary: Rename nmap to networkcheck; evades process-name detection.
This skill enforces a disciplined approach: inspect before acting, keep changes narrow, and report exact execution state.
Evidence-first execution workflow for running security commands, inspecting system state, debugging tool failures, and making verified changes. This skill enforces a disciplined approach: inspect before acting, keep changes narrow, and report exact execution state.
Running reconnaissance and scanning commands with structured output capture
Permission review
The documentation asks the agent to run terminal commands or scripts.
All skills that execute terminal commands use terminal-ops for evidence capture. When any skill (network-pentest, web-xss, post-exploitation, etc.) runs a command, it follows the Evidence Chain Protocol defined here to ensure traceability aEvidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 67 | Source | Repository attention, not individual Skill quality |
| Compatibility | 2 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Supplementary Files:
payloads.md— Common pentest terminal command patterns organized by task (recon, exploitation, post-exploitation, reporting)test-cases.md— Structured test scenarios for terminal operations workflow
This skill enforces a disciplined approach: inspect before acting, keep changes narrow, and report exact execution state.
Domain: workflow
Evidence-first execution workflow for running security commands, inspecting system state, debugging tool failures, and making verified changes. This skill enforces a disciplined approach: inspect before acting, keep changes narrow, and report exact execution state.
This is an operator workflow — it governs how kali-claw executes any terminal task during penetration testing, ensuring every action is traceable, reversible, and verified.
| Tool | Purpose | Command Example |
|---|---|---|
| nmap | Network scanning | nmap -sV -sC -oA scan_results target |
| curl | HTTP requests with evidence capture | curl -v -o response.html http://target 2>&1 | tee curl_log.txt |
| tcpdump | Packet capture for evidence | tcpdump -i eth0 -w capture.pcap host target |
| jq | JSON output parsing | cat scan.json | jq '.[] | select(.port == 443)' |
| tee | Dual output (screen + file) | command | tee output.log |
| script | Full terminal session recording | script -q session_$(date +%Y%m%d_%H%M%S).log |
Phase 1: Resolve the Working Surface
Before executing, confirm:
inspect | exploit | verify | cleanupPhase 2: Read the Failing Surface First
If debugging or following up:
Phase 3: Execute with Evidence Capture
Every command produces verifiable evidence:
echo "=== $(date -u +%Y-%m-%dT%H:%M:%SZ) ===" | tee -a evidence.log
nmap -sV -sC -oA scans/nmap_$(date +%Y%m%d_%H%M%S) target | tee -a evidence.log
Phase 4: Keep Changes Narrow
Solve one task at a time:
Phase 5: Report Exact Execution State
Use precise status words:
inspected — Read-only observation completedexecuted — Command ran, output capturedverified — Result confirmed against expected outcomechanged — System state modifiedreverted — Change rolled backblocked — Cannot proceed (state reason)For every action during a pentest:
TIMESTAMP: 2026-05-04T14:30:00Z
ACTION: nmap TCP SYN scan
TARGET: 192.168.1.100 (authorized scope: 192.168.1.0/24)
COMMAND: nmap -sS -sV -p- -oA full_scan 192.168.1.100
RESULT: 22/open/tcp/ssh/OpenSSH 8.9, 80/open/tcp/http/nginx 1.24
STATUS: executed
FILES: full_scan.nmap, full_scan.xml, full_scan.gnmap
SURFACE
- target: [IP/domain/system]
- scope: [authorized range]
- mode: [inspect/exploit/verify/cleanup]
EVIDENCE
- command: [exact command run]
- output: [key findings or error]
- timestamp: [ISO 8601]
STATUS
- [inspected / executed / verified / changed / reverted / blocked]
FILES
- [any output files generated]
index=linux sourcetype=auditd type=EXECVE | search a0 IN ("whoami","uname","id")command) for commands not recorded in history.~/.bash_history after operations.script command to record session; appears as legitimate admin activity.nsh or custom binary; not in auditd whitelist.nmap to network_check; evades process-name detection./tmp/.cache/nmap over nmap; doesn't trigger PATH-based audit.Sequential Pipeline: execute -> capture evidence -> verify -> report
Terminal operations are inherently sequential — each command builds on the previous result. The pipeline does not proceed to the next step until the current step's evidence is captured and verified.
All skills that execute terminal commands use terminal-ops for evidence capture. When any skill (network-pentest, web-xss, post-exploitation, etc.) runs a command, it follows the Evidence Chain Protocol defined here to ensure traceability and reproducibility.
Terminal-ops provides the evidence protocol consumed by all other skills:
[terminal-ops] -- evidence protocol --> [all skills executing commands]
--> [network-pentest, web-xss, web-sqli,
post-exploitation, password-attack,
cloud-security, ...]
Every skill that runs shell commands uses the timestamp, output file, and hash conventions defined in this skill.
| Gate | Check | Criteria |
|---|---|---|
| Pre-condition | Scope confirmed | Target verified within authorized range |
| Post-condition | Evidence chain complete | Every action has START, metadata, STATUS, END markers |
| Verification | Output files valid | All output files exist and are non-empty |
Terminal automation transforms repetitive pentest tasks into reproducible, evidence-generating pipelines. Shell functions wrapping common scan patterns with automatic timestamp injection and output file management ensure consistency across engagements. Python orchestration scripts can chain multi-stage attacks (recon -> exploit -> post-exploitation) while maintaining complete evidence logs at each step, enabling one-command execution of complex test sequences with full traceability.
Terminal command failures during pentests must be diagnosed systematically rather than retried blindly. Inspect exit codes ($?) and stderr output before retrying; many tool failures result from environmental issues (missing dependencies, permission denials, network connectivity) that no amount of re-execution will resolve. When a tool fails, capture the exact error output, verify the environment (tool version, target reachability, permission level), and document the root cause before attempting alternative approaches.
Efficient terminal operations minimize wasted time during time-sensitive pentest engagements. Parallelize independent scans using background processes (&) and GNU parallel, but avoid overloading the target or local network interface. Use targeted port lists (-p 22,80,443,8080) instead of full port scans when only specific services are relevant. Cache scan results in structured files (JSON, XML) to avoid re-scanning when multiple tools need the same reconnaissance data.
Frequently asked questions
Supplementary Files: - payloads.md — Common pentest terminal command patterns organized by task (recon, exploitation, post-exploitation, reporting) - test-cases.md — Structured test scenarios for terminal operations workflow
The source record exposes this install command: npx skills add https://github.com/brucesongs/kali-claw --skill "skills/terminal-ops". Inspect the command and pinned source before running it.
The pinned source record declares support for: claude code, cursor.
Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.
Alternatives
brucesongs/kali-claw
Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.
brucesongs/kali-claw
Binary reverse engineering covers the complete chain from static analysis, dynamic debugging, to vulnerability discovery, exploit development, and malware analysis.
PramodDutta/qaskills
Gate RAG pipelines in CI with versioned golden eval sets, per-metric thresholds, baseline drift detection, and a build that fails when retrieval or answer quality regresses.
brucesongs/kali-claw
Exploit development covers the full chain from vulnerability discovery through crash analysis to working exploit code, spanning buffer overflows, ROP chains, format string bugs, and shellcode injection across x86 and ARM architectures.