Source profileQuality 92/100Review permissions

brucesongs/kali-claw/skills/terminal-ops/SKILL.md

terminal-ops

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.

Source repository stars
67
Declared platforms
2
Static risk flags
1
Last source update
2026-08-19
Source checked
2026-08-28

Decision brief

What it does: where it fits

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

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

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeDeclaredSource recordInstall path and trigger
CursorDeclaredSource recordInstall path and trigger
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/brucesongs/kali-claw --skill "skills/terminal-ops"
Safe inspection promptEditorial

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

What the source asks the agent to do

  1. 01

    Terminal Ops Five-Phase Process

    Phase 1: Resolve the Working Surface

    Target system / IP / URLCurrent network position (local, VPN, pivoted)Authorized scope
  2. 02

    Process Stealth

    Rename binary: Rename nmap to networkcheck; evades process-name detection.

    Rename binary: Rename nmap to networkcheck; evades process-name detection.Use absolute paths: /tmp/.cache/nmap over nmap; doesn't trigger PATH-based audit.Process injection: Inject into legitimate process (e.g., sshd, systemd); inherits trust.
  3. 03

    Summary

    This skill enforces a disciplined approach: inspect before acting, keep changes narrow, and report exact execution state.

    This skill enforces a disciplined approach: inspect before acting, keep changes narrow, and report exact execution state.
  4. 04

    Description

    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.

    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 cha…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.
  5. 05

    Use Cases

    Running reconnaissance and scanning commands with structured output capture

    Running reconnaissance and scanning commands with structured output captureDebugging failed exploits or tool errors during a pentestExecuting post-exploitation commands with careful state tracking

Permission review

Static risk signals and limitations

Runs scripts

medium · line 163

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 a

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score92/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars67SourceRepository attention, not individual Skill quality
Compatibility2 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
brucesongs/kali-claw
Skill path
skills/terminal-ops/SKILL.md
Commit
a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e
License
MIT
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Skill: Terminal Operations

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

Summary

This skill enforces a disciplined approach: inspect before acting, keep changes narrow, and report exact execution state.

Domain: workflow

Description

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.

Use Cases

  • 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
  • Making narrow configuration changes to testing environments
  • Verifying that exploits or patches actually work before moving on
  • Generating reproducible evidence chains for pentest reports

Core Tools

ToolPurposeCommand Example
nmapNetwork scanningnmap -sV -sC -oA scan_results target
curlHTTP requests with evidence capturecurl -v -o response.html http://target 2>&1 | tee curl_log.txt
tcpdumpPacket capture for evidencetcpdump -i eth0 -w capture.pcap host target
jqJSON output parsingcat scan.json | jq '.[] | select(.port == 443)'
teeDual output (screen + file)command | tee output.log
scriptFull terminal session recordingscript -q session_$(date +%Y%m%d_%H%M%S).log

Methodology

Terminal Ops Five-Phase Process

Phase 1: Resolve the Working Surface

Before executing, confirm:

  • Target system / IP / URL
  • Current network position (local, VPN, pivoted)
  • Authorized scope
  • Requested mode: inspect | exploit | verify | cleanup
  • Output destination for evidence

Phase 2: Read the Failing Surface First

If debugging or following up:

  • Inspect the error message or unexpected output
  • Inspect tool version and configuration
  • Inspect network state (connectivity, routing, firewalls)
  • Use any already-supplied logs before re-running blindly

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:

  • Use the smallest useful command first
  • Only escalate to broader scans after narrow commands succeed
  • If a command keeps failing, stop broad retries and investigate root cause
  • Never chain destructive commands without verification at each step

Phase 5: Report Exact Execution State

Use precise status words:

  • inspected — Read-only observation completed
  • executed — Command ran, output captured
  • verified — Result confirmed against expected outcome
  • changed — System state modified
  • reverted — Change rolled back
  • blocked — Cannot proceed (state reason)

Evidence Chain Protocol

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

Defense Perspective

  • Audit trail: Every command should be reproducible from logged evidence
  • Minimal footprint: Use the least intrusive command that achieves the goal
  • Cleanup: Remove temporary files, test accounts, or artifacts after testing
  • Scope compliance: Never execute against out-of-scope targets

Output Format

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]

Detection Methods

Terminal Activity Audit

  • Anomalous command sequences: Commands typical of attacker recon (whoami, uname, id in sequence).
  • Privilege escalation patterns: Sudo attempts; SUID binary execution.
  • Persistence signatures: Crontab modification; service creation.

SIEM Detection Rules

  • Splunk SPL: index=linux sourcetype=auditd type=EXECVE | search a0 IN ("whoami","uname","id")
  • auditd rules: Per-syscall auditing.
  • Sysmon for Linux: Process creation logging.

Defense Evasion Techniques

Shell Stealth

  • Avoid history: Use leading space (command) for commands not recorded in history.
  • History modification: Modify ~/.bash_history after operations.
  • Use script: Use script command to record session; appears as legitimate admin activity.
  • Custom shell: Use nsh or custom binary; not in auditd whitelist.

Process Stealth

  • Rename binary: Rename nmap to network_check; evades process-name detection.
  • Use absolute paths: /tmp/.cache/nmap over nmap; doesn't trigger PATH-based audit.
  • Process injection: Inject into legitimate process (e.g., sshd, systemd); inherits trust.

Orchestration

ECC Loop Pattern

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.

Integration

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.

Cross-Skill Pipeline

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.

Quality Gate

GateCheckCriteria
Pre-conditionScope confirmedTarget verified within authorized range
Post-conditionEvidence chain completeEvery action has START, metadata, STATUS, END markers
VerificationOutput files validAll output files exist and are non-empty

Pitfalls

  • Never work from stale memory when live state can be re-read
  • Never widen a narrow task into unscoped testing
  • Never use destructive commands without explicit confirmation
  • Never ignore unrelated findings discovered during execution (log them for follow-up)
  • Never assume a command succeeded without verifying its output

Automation and Scripting

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.

Error Handling

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.

Performance Optimization

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

What to verify before installation and use

What does the terminal-ops source document cover?

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

How do I install terminal-ops?

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.

Which Agent platforms does the source record declare?

The pinned source record declares support for: claude code, cursor.

Which permission-related actions were detected?

Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing