AgentSkillsCN

shell-analyzer

运行Shell命令,并以经过验证的摘要分析输出结果。适用于构建日志、测试输出,或任何具有大量输出的命令。通过返回经grep验证的精简摘要,有效保护上下文信息。

SKILL.md
--- frontmatter
name: shell-analyzer
description: Run shell commands and analyze output with validated summaries. Use for build logs, test output, or any command with substantial output. Protects context by returning concise summaries with grep-validated citations.

Run immediately with the shell command to execute:

bash
$HOME/.flatagents/skills/shell_analyzer/run.sh "<command>"

Output Styles

Use --style=<style> to control output verbosity:

StyleDescriptionUse Case
compactBrief summary + key findings (default)General use
minimalSingle line statusQuick checks
detailedFull markdown sectionsDebug/investigation
errors-onlyOnly output if problems foundCI/build monitoring

Examples

bash
# Default compact style
run.sh "npm run build"

# Minimal - just pass/fail
run.sh --style=minimal "cargo test"

# Detailed - full analysis
run.sh --style=detailed "pytest -v"

# Errors only - silent on success
run.sh --style=errors-only "make check"