在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用truthguard-status
星标2
分支2
更新时间2026年3月8日 08:56
Show TruthGuard session statistics
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Show TruthGuard session statistics
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | truthguard-status |
| description | Show TruthGuard session statistics |
| allowed-tools | Bash |
Show the current TruthGuard session status by reading the session log.
Read the session log file at ~/.truthguard/session.log. If it doesn't exist, report "No events recorded this session."
Count events by type:
LOG="~/.truthguard/session.log"
if [ -f "$LOG" ]; then
BLOCKED=$(grep -c "blocked" "$LOG" 2>/dev/null || echo 0)
FILE_ALERTS=$(grep -c "phantom-edit" "$LOG" 2>/dev/null || echo 0)
EXIT_WARNINGS=$(grep -c "exit-code" "$LOG" 2>/dev/null || echo 0)
BUILD_FAILURES=$(grep -c "build-fail" "$LOG" 2>/dev/null || echo 0)
TEST_FAILURES=$(grep -c "test-fail" "$LOG" 2>/dev/null || echo 0)
COMMITS_BLOCKED=$(grep -c "commit-blocked" "$LOG" 2>/dev/null || echo 0)
VERIFICATIONS=$(grep -c "verify" "$LOG" 2>/dev/null || echo 0)
TOTAL=$(wc -l < "$LOG" | tr -d ' ')
echo "Log has $TOTAL entries"
else
echo "No session log found"
fi
Check if hooks are active by looking at the project's .claude/settings.json or user settings for TruthGuard hook entries.
Report in this format:
🛡️ TruthGuard Status
━━━━━━━━━━━━━━━━━━━━━━━
Hooks: ✅ PreToolUse (Bash, Write/Edit) | PostToolUse (Bash, Write/Edit)
Session Events:
🛑 Commands blocked: X
⚠️ Exit code warnings: Y
📝 Phantom edit alerts: Z
🔨 Build failures: A
🧪 Test failures: B
🚫 Commits blocked: C
✅ Verifications run: D
━━━━━━━━━━━━━━━━━━━━━━━
Total events: N
🛡️ TruthGuard Status
━━━━━━━━━━━━━━━━━━━━━━━
Hooks: ✅ Active
Session: Clean — no warnings or blocks this session.