Agent Skillsgadievron/raptor › Line Execution Checker

Line Execution Checker

GitHub

用于检查特定代码行在测试运行中是否被执行的快速工具,基于gcov覆盖率数据判断行执行状态。

.claude/skills/crash-analysis/line-execution-checker/SKILL.md gadievron/raptor

Trigger Scenarios

用户询问某文件某行是否被执行 用户请求检查代码覆盖情况

Install

npx skills add gadievron/raptor --skill Line Execution Checker -g -y
More Options

Non-standard path

npx skills add https://github.com/gadievron/raptor/tree/main/.claude/skills/crash-analysis/line-execution-checker -g -y

Use without installing

npx skills use gadievron/raptor@Line Execution Checker

指定 Agent (Claude Code)

npx skills add gadievron/raptor --skill Line Execution Checker -a claude-code -g -y

安装 repo 全部 skill

npx skills add gadievron/raptor --all -g -y

预览 repo 内 skill

npx skills add gadievron/raptor --list

SKILL.md

Frontmatter
{
    "name": "Line Execution Checker",
    "tags": [
        "coverage",
        "gcov",
        "testing"
    ],
    "author": "Claude",
    "version": 1,
    "description": "Check if specific lines were executed using gcov data",
    "user-invocable": false
}

Line Execution Checker

Purpose

Fast tool to check if specific source lines were executed during test runs.

Tool: line-checker

Build

g++ -O3 -std=c++17 line_checker.cpp -o line-checker

Usage

# Single line
./line-checker file.c:42

# Multiple lines
./line-checker file.c:42 main.c:100 util.c:55

Output

file.c:42 EXECUTED (5 times)
main.c:100 NOT EXECUTED
util.c:55 EXECUTED (12 times)

Exit Codes

  • 0: All lines executed
  • 1: One or more lines NOT executed
  • 2: Error

Prerequisites

Coverage data must exist from prior test run with --coverage flag.

When User Asks

"Was line X of file.c executed?" or "Check if these lines were covered"

Steps

  1. Verify .gcda files exist: find . -name "*.gcda" -print -quit
  2. Build tool if needed: g++ -O3 -std=c++17 line_checker.cpp -o line-checker
  3. Run: ./line-checker file.c:X
  4. Report result to user

Example Interaction

User: "Was line 127 in parser.c executed?"

./line-checker parser.c:127
# Output: parser.c:127 EXECUTED (3 times)

Response: "Yes, line 127 was executed 3 times during testing."

Version History

  • 91a9686 Current 2026-07-24 22:16

Same Skill Collection

.claude/skills/audit/SKILL.md
.claude/skills/code-understanding/SKILL.md
.claude/skills/crash-analysis/function-tracing/SKILL.md
.claude/skills/crash-analysis/gcov-coverage/SKILL.md
.claude/skills/crash-analysis/rr-debugger/SKILL.md
.claude/skills/exploitability-validation/SKILL.md
.claude/skills/frida/SKILL.md
.claude/skills/oss-forensics/github-archive/SKILL.md
.claude/skills/oss-forensics/github-commit-recovery/SKILL.md
.claude/skills/oss-forensics/github-evidence-kit/SKILL.md
.claude/skills/oss-forensics/github-wayback-recovery/SKILL.md
.claude/skills/oss-forensics/orchestration/SKILL.md

Metadata

Files
0
Version
e57ffe8
Hash
bdf5f4e1
Indexed
2026-07-24 22:16

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 11:13
浙ICP备14020137号-1 $Гость$