본문으로 건너뛰기
Skillpedia
보안8.0k · #12735

trailmark-summary

하는 일

프로젝트의 언어, 진입점, 의존성을 나열하는 빠른 구조 개요를 제공합니다. 낯선 코드베이스를 처음 보는 보안 검토자를 위한 것입니다.

사용하는 경우

  • ✓낯선 프로젝트를 열고 깊은 작업 전에 빠른 지도가 필요할 때.
  • ✓프로젝트가 어떤 언어를 쓰고 진입점이 몇 개인지 알아야 할 때.
  • ✓감사를 시작하기 전에 의존성 목록이 필요한 경우.

스킬 링크

https://github.com/trailofbits/skills/blob/main/plugins/trailmark/skills/trailmark-summary/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/trailofbits/skills/blob/main/plugins/trailmark/skills/trailmark-summary/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 프로젝트의 언어와 진입점을 포함해서 빠른 구조 개요를 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 폴더에서 요약 모드로 Trailmark 도구를 실행합니다. 언어를 자동으로 감지하고, 진입점과 의존성을 나열합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Trailmark Summary

Runs trailmark analyze --language auto --summary on a target directory. This is a v0.2-safe workflow; do not require Trailmark 0.4.0 just to produce a summary.

When to Use

  • Vivisect Phase 0 needs a quick structural overview before decomposition
  • Galvanize Phase 1 needs detected languages and entry point count
  • Quick orientation on an unfamiliar codebase before deeper analysis

When NOT to Use

  • Full structural analysis with all passes needed (use trailmark-structural)
  • Detailed code graph queries (use the main trailmark skill directly)
  • You need hotspot scores or taint data (use trailmark-structural)

Rationalizations to Reject

Rationalization Why It's Wrong Required Action
"I can read the code manually instead" Manual reading misses parser-based language detection, dependency data, and entry point enumeration Install and run trailmark
"Language detection doesn't matter" Wrong language selection produces empty or partial analysis Use Trailmark's parser-based detection or --language auto
"Partial output is good enough" Missing any of the three required outputs (detected languages, entry points, dependencies) means incomplete analysis Verify all three are present
"Tool isn't installed, I'll skip it" This skill exists specifically to run trailmark Report the installation gap instead of skipping

Usage

The target directory is passed via the args parameter.

Execution

Step 1: Check that trailmark is available.

trailmark analyze --help 2>/dev/null || \
  uv run trailmark analyze --help 2>/dev/null

If neither command works, report "trailmark is not installed" and return. Do NOT run pip install, uv pip install, git clone, or any install command. The user must install trailmark themselves.

Optionally record the version if the installed build supports it:

trailmark --version 2>/dev/null || uv run trailmark --version 2>/dev/null || true

Do not fail if the version command is missing; older v0.2.x builds may still support the summary workflow.

Step 2: Detect languages with Trailmark's parse API.

python3 - "{args}" <<'PY'
import json
import sys

try:
    from trailmark.parse import detect_languages  # canonical location since 0.3.x
except ModuleNotFoundError:
    # v0.2.x predates trailmark.parse; the same function lives in query.api
    from trailmark.query.api import detect_languages

print(json.dumps(detect_languages(sys.argv[1])))
PY

If the import fails, rerun the same snippet with uv run --with trailmark python - "{args}". If the result is [], report "Trailmark found no supported languages under target" and return.

Step 3: Run the summary with auto-detection.

trailmark analyze --language auto --summary {args} 2>&1 || \
  uv run trailmark analyze --language auto --summary {args} 2>&1

Step 4: Verify the output.

The output must include ALL THREE of:

  1. Detected languages from Step 2
  2. Entrypoints: line from the summary output
  3. Dependencies: line from the summary output

If any are missing, report the gap. Do not fabricate output.

Return the detected language list plus the full Trailmark summary output. If a version string was available, include it in the returned metadata.

자주 묻는 질문

위험 점수를 보여 주나요?

아니요. 개요만 줍니다. 자세한 핫스팟과 오염 데이터는 전체 구조 분석 스킬에서 나옵니다.

최신 Trailmark 버전이 필요한가요?

아니요. 이전 버전에서도 작동하도록 설계되었습니다.

감사에서 이것만 믿고 써도 되나요?

아니요. 전체 분석이 아니라 방향을 잡기 위한 출발점입니다.

상세 정보

작성자의 원본 설명

Runs a Trailmark summary analysis on a codebase. Returns auto-detected languages, entry point count, and dependency list. Use when vivisect or galvanize needs a quick structural overview. Triggers: trailmark summary, code summary, structural overview.

repo: trailofbits/skills

인기도

GitHub 스타
8.0k
순위
#12735
라이선스
CC-BY-SA-4.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬