Logo Pixee Scan

Pixee Scan

Tổ chức
pixee
pixee-scan

List, view, analyze, cancel, create, and delete Pixee scans filtered by repository, branch, detector tool, and analysis state.

Tổng quan

Nhà phát hànhpixee
Kho mãpixee-cli
Tên kỹ năngpixee-scan
Sao
31
Bản fork
12
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được pixee công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Pixee Scan trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/pixee/pixee-cli/tree/main/skills/pixee-scan
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pixee/pixee-cli.git /tmp/pixee-cli
mkdir -p .claude/skills
cp -r /tmp/pixee-cli/skills/pixee-scan .claude/skills/pixee-scan
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Pixee Scan trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Pixee Scan ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Pixee Scan không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

pixee scan

PREREQUISITES: Read ../pixee-shared/SKILL.md for global flags, exit codes, and error handling, ../pixee-auth/SKILL.md if authentication needs to be configured, and ../pixee-repo/SKILL.md for the --repo resolution protocol. See ../pixee-analysis/SKILL.md for the analysis UUID pixee scan analyze returns, and ../pixee-integration/SKILL.md for the --integration-id discovery flow used by create.

pixee scan manages scans imported into the Pixee platform: list, view, kick off or cancel an analysis, upload a new scan, and delete. A scan is the raw output of one detector tool (sonar, appscan, dependabot, datadog_sast, semgrep, codeql, etc.) imported on a specific branch and commit; analyses, findings, and downstream patches all attach back to a scan. Most production scans land via the platform's CI integrations; pixee scan create is the manual import path for bulk-loading historical scans, smoke-testing detector formats, or one-shot uploads. Scans expire roughly seven days after import, and fetching an expired UUID returns a not-found error.

pixee scan list

pixee scan list [filter flags...]

All flags are optional. With none, every scan visible to the token is returned. Pagination is transparent: the CLI walks every page in one call. There is no --paginate flag here; --paginate only lives on pixee api.

Text output is tab-separated with columns id, detector, branch, sha, imported_at. The branch column is empty for detectors that import scans without a branch context (e.g., appscan); JSON output omits the branch field entirely in that case rather than emitting an empty string.

Filter flags:

  • --repo <name-or-uuid> — repeatable. Restrict to one or more repositories. Names resolve via the protocol documented in pixee-repo. Multiple --repo flags OR together; a scan is returned if it matches any of them.
  • --branch <name> — exact branch name (case-sensitive). Works with or without --repo.
  • --tool <name> — repeatable. Filter by detector. Multiple --tool flags OR together.
  • --analysis-state <state> — one of completed, in-progress, not-analyzed. Filters by the state of the scan's downstream analysis pipeline, not the scan import itself.
  • --has-analysis <true|false> — narrow to scans that have at least one analysis associated (true) or none (false).

--analysis-state not-analyzed and --has-analysis false overlap but are not interchangeable: --has-analysis filters on existence, while --analysis-state filters on pipeline state. Pick whichever matches the question being asked.

pixee scan view

pixee scan view <scan-id>

Fetch a single scan by UUID. <scan-id> is the value shown in the first column of pixee scan list.

Default text mode prints a sectioned Key: value block of the scan's headline fields — Id, Detector, Branch, Sha, Imported at, Expires at — colon-separated, one field per line. The Branch line is omitted for detectors that import scans without a branch context (e.g., appscan) rather than emitting an empty value. Use --output json (or --json) for the full HAL representation: _links to the scan's analyses, findings, repository, and scale, plus the body fields id, detector, sha, imported_at, branch (omitted when blank), and expires_at. A non-existent or expired UUID returns the standard not-found error and exits 3.

pixee scan analyze

pixee scan analyze <scan-id> [--finding <finding-id>...] [--watch] [--interval <seconds>]

Start an analysis on a scan. On success the CLI prints Started analysis <analysis-id> on scan <scan-id> and exits 0. The analysis runs asynchronously on the server — capture the UUID from stdout and hand it to pixee analysis view --watch (see pixee-analysis) to poll until terminal state.

Flags:

  • --finding <finding-id> — repeatable. Scope the analysis to one or more specific findings. When omitted, every finding in the scan is analyzed (the common case after an import).
  • --watch — after starting the analysis, poll until it reaches a terminal state. Equivalent to chaining the start call into pixee analysis view --watch on the returned UUID; reach for it when the agent's next step depends on completion.
  • --interval <seconds> — polling cadence with --watch (default 5). Has no effect without --watch.

A scan that's not analyzable (e.g., already deleted, or a scan kind the server cannot run analyses on) returns a 422-shaped problem document and exits non-zero — pixee-shared documents the rendering.

pixee scan cancel

pixee scan cancel <scan-id>

Cancel all in-flight analyses on a scan. Distinct from pixee scan delete: the scan and its analyses remain visible afterward, with each canceled analysis left in a terminal canceled state rather than removed. Reach for cancel to stop a runaway or mis-scoped analysis while keeping the scan and its history around; reach for delete when the scan itself should go away.

pixee scan create

pixee scan create <repository> --tool <tool> [--file <path>...] [scan metadata flags...]

Upload a scan to a repository. <repository> is name-or-UUID resolved via the protocol in pixee-repo. On success the CLI prints Created scan <scan-id> and exits 0; the upload is multipart, so each --file is attached to the same POST.

Not idempotent. The platform creates a new scan on every successful POST. If a call fails after the upload may have reached the server (timeout, dropped connection), run pixee scan list --repo <id> to check for a freshly-imported scan before retrying.

Flags:

  • --tool <tool> — required. Scanner tool that produced the scan. One of codeql, sonar, semgrep, polaris_sast, polaris_sca, appscan, datadog_sast, dependabot, contrast, gitlab_sast, gitlab_dependency_scanning, snyk, checkmarx, veracode, fortify, arnica_sast. The CLI validates against the enum before sending.
  • --file <path> — repeatable. Attach a scan output file (SARIF, SCA report, etc.) to the multipart upload. Most detector tools require at least one file; integration-driven tools whose data the platform pulls from the integration directly (e.g., sonar, snyk) can omit it.
  • --sha <sha> — commit SHA scanned (40 hex chars).
  • --branch <name> — branch scanned.
  • --integration-id <id> — integration identifier to attribute the upload to. Discover valid values with pixee integration list (see pixee-integration).
  • --workflow-execution-policy <policy> — execute (default — fire matching workflows on the new scan) or prevent-execution (import the scan but skip any matching workflows). Use prevent-execution when bulk-loading historical scans so a backfill doesn't fan out a wave of patches.
  • --pr-number <int> — pull request number for PR-scoped scans.
  • --gitlab-pipeline-id <int> — GitLab pipeline id when the scan came from a GitLab CI run.
  • --base-branch <name> / --base-sha <sha> — base branch and base commit for a PR-scoped scan. --base-sha requires --base-branch.

Pair with pixee scan analyze (or --watch it directly) to kick off triage/fix/sca immediately after the upload — see the chained example below.

pixee scan delete

pixee scan delete <scan-id>

Delete a scan by UUID. On success the CLI prints Deleted scan <id> and exits 0; a missing scan exits 3. There is no --repo flag — deletion targets the scan ID directly — and no client-side confirmation prompt, matching pixee workflow delete and pixee repo delete.

Examples

bash
# Every scan visible to the token (paginated transparently)
pixee scan list

# Cross-repo OR query, JSON piped to jq for downstream processing
pixee scan list --repo pixee/pixee-platform --repo analysis-service --json \
  | jq '.[] | {id, detector, branch, repo: ._links.repository.title}'

# Sonar scans on main that have not been analyzed yet
pixee scan list --branch main --tool sonar --has-analysis false

# Fetch one scan as JSON
pixee scan view e5e1ebe6-93f3-4426-a98a-6dc6af41b468 --json

# Walk from a scan to its findings via HAL — never hardcode the path
scan_id=$(pixee scan list --repo pixee/pixee-platform --branch main --json | jq -r '.[0].id')
findings_href=$(pixee scan view "$scan_id" --json | jq -r '._links.findings.href')
pixee api "$findings_href" --paginate

# Kick off an analysis on every finding in a scan and block until it finishes
pixee scan analyze e5e1ebe6-93f3-4426-a98a-6dc6af41b468 --watch

# Re-analyze just two findings in an existing scan, with a longer poll interval
pixee scan analyze e5e1ebe6-93f3-4426-a98a-6dc6af41b468 \
  --finding AZ4JOwsipJDH8099SpHt --finding AZ4JOwsipJDH8099TqIu \
  --watch --interval 15

# Capture the analysis UUID and watch it separately (e.g., to detach into another task)
analysis_id=$(pixee scan analyze e5e1ebe6-93f3-4426-a98a-6dc6af41b468 \
  | sed -n 's/^Started analysis \([^ ]*\) on scan .*/\1/p')
pixee analysis view "$analysis_id" --watch

# Cancel all in-flight analyses on a scan without deleting the scan itself
pixee scan cancel e5e1ebe6-93f3-4426-a98a-6dc6af41b468

# Delete a scan by UUID
pixee scan delete e5e1ebe6-93f3-4426-a98a-6dc6af41b468

# Import a CodeQL SARIF as a new scan on pixee-platform, then analyze it to completion
scan_id=$(pixee scan create pixee/pixee-platform \
  --tool codeql --file ./codeql.sarif.json \
  --branch main --sha "$(git rev-parse HEAD)" \
  | sed -n 's/^Created scan \(.*\)$/\1/p')
pixee scan analyze "$scan_id" --watch

# Bulk-load a historical Sonar scan without firing matching workflows
pixee scan create pixee/pixee-platform \
  --tool sonar --integration-id sonar-default \
  --branch main --sha abcdef1234567890abcdef1234567890abcdef12 \
  --workflow-execution-policy prevent-execution

# Upload a PR-scoped scan from a GitLab CI job
pixee scan create pixee/pixee-platform \
  --tool gitlab_sast --file ./gl-sast-report.json \
  --branch "feature/sso" --sha "$CI_COMMIT_SHA" \
  --base-branch main --base-sha "$CI_MERGE_REQUEST_DIFF_BASE_SHA" \
  --pr-number "$CI_MERGE_REQUEST_IID" \
  --gitlab-pipeline-id "$CI_PIPELINE_ID"

Best practices

  • Filter aggressively. The unfiltered scan list grows with every imported scan; combining --repo, --branch, and --tool keeps payloads small enough to reason about.
  • Pass UUIDs in scripts for both --repo and the <id> argument; names work for humans but carry the rename and multi-match risks documented in pixee-repo.
  • For full per-scan detail (HAL links to analyses, findings, repository, scale), use pixee scan view <id> --json. The list JSON contains the same per-element shape, so a single list --json call often replaces a list-then-N-views pattern.
  • To traverse from a scan to its analyses, findings, or owning repository, follow the _links returned by pixee scan view <id> --json with pixee api <href> rather than hardcoding paths. See pixee-api for HAL conventions and --paginate.
  • Treat scan UUIDs as short-lived: cache them only as long as the active workflow needs them, and expect lookups to start failing once a scan ages past its expires_at.
  • Prefer pixee scan analyze --watch over a hand-rolled poll loop. The flag chains the start call into the same poll-and-narrate behavior pixee analysis view --watch provides and preserves the start-time analysis UUID on stdout so scripts can still reuse it.
  • Scoping pixee scan analyze with --finding is the right answer when re-running just a subset of findings after a triage adjustment. Omit --finding for the initial analysis pass on a freshly imported scan.
  • pixee scan create is not idempotent, so a network-layer retry can duplicate a scan. When a call fails ambiguously (timeout, dropped connection), reach for pixee scan list --repo <id> to look for a freshly-imported scan before retrying.
  • For backfill imports (loading historical scans into a fresh repo), pass --workflow-execution-policy prevent-execution to avoid a wave of patch PRs the team did not expect. Re-run analysis on individual scans later via pixee scan analyze once you're ready.
  • The --integration-id flag and pixee integration list together let an agent attribute an upload to a known integration without hand-rolling the id; reach for the discovery flow before falling back to pixee api /api/v1/integrations.
  • Prefer pixee scan cancel over pixee scan delete when the goal is to stop a runaway or mis-scoped analysis, not erase the scan's history. cancel leaves the scan and its now-canceled analyses visible for later review; delete removes the scan outright.

Câu hỏi thường gặp

Kỹ năng AI Pixee Scan làm được gì?

List, view, analyze, cancel, create, and delete Pixee scans filtered by repository, branch, detector tool, and analysis state.

Vì sao nên dùng Pixee Scan trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Pixee Scan là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Pixee Scan trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/pixee/pixee-cli/tree/main/skills/pixee-scan. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Pixee Scan?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Pixee Scan với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Pixee Scan với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Pixee Scan có miễn phí không?

Có. Kỹ năng này được pixee phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇