Logo Pixee Preferences

Pixee Preferences

Tổ chức
pixee
pixee-preferences

Read and write Pixee organization preferences and choose when short policy belongs there rather than in coding guidelines.

Tổng quan

Nhà phát hànhpixee
Kho mãpixee-cli
Tên kỹ năngpixee-preferences
Sao
31
Bản fork
12
Tệp đi kèm
1
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 dùng hướng dẫn viết bằng Markdown thay vì 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ộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

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

Cài đặt

Cài đặt kỹ năng AI Pixee Preferences 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 của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/pixee/pixee-cli/tree/main/skills/pixee-preferences
  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-preferences .claude/skills/pixee-preferences
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 Preferences 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ự nạp Pixee Preferences 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 bạn có thể dùng Pixee Preferences với cả những mô hình khác ngoài mô hình ban đầu. 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 khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổ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 organization preferences

PREREQUISITES: Read ../pixee-shared/SKILL.md for global flags, exit codes, and error handling, and ../pixee-auth/SKILL.md if authentication needs to be configured.

Organization preferences are a freeform markdown blob (≤10,000 characters) that the Pixee platform applies to every analysis run for the organization. The content shapes both triage (is a given finding a real risk for this org?) and remediation (how should the fix look in this codebase?), and is stored as a single document with audit metadata: content, updated_at, updated_by, org_id. The MVP hardcodes org_id to default-organization; an --org-id flag is planned once the platform supports multi-org.

pixee organization preferences get

pixee organization preferences get [--content-only]
  • Default text output: a two-line Org: <id> / Updated: <iso> by <actor> header (colon separated, no tabs, because the markdown body is multiline and tabs are reserved for list commands), a blank line, then the content body emitted verbatim with no synthetic trailing newline.
  • --content-only prints the body alone, byte-for-byte. Designed for piping into a file, less, bat, or a diff tool. No header, no trailing newline added.
  • --output json (or --json) emits the full record including the HAL _links envelope. See ../pixee-api/SKILL.md for HAL conventions; do not restate them in scripts.
  • When no preferences have ever been set, the command exits 0 with no stdout and writes a single line to stderr: no organization preferences set. Branch on this for fresh-organization flows.

pixee organization preferences set

pixee organization preferences set (--from-file <path> | --content <string>)
  • Exactly one of --from-file or --content is required; passing both, or neither, is a parse error (exit 1) before any network call.
  • --from-file - reads content from stdin, enabling get-transform-set pipelines.
  • Content over 10,000 characters is rejected client-side before the round-trip with the observed character count in the error.
  • Optimistic concurrency is handled internally: the CLI performs a GET, then PUTs with If-Match: <etag> (or If-None-Match: * on first creation). Agents and scripts never touch ETag headers directly.
  • On HTTP 412, the CLI exits 1 with a friendly stderr line: concurrent modification: another writer updated organization preferences between read and write; re-run to refresh. Re-running typically succeeds; if multiple writers race repeatedly, refresh and re-author against the latest content.
  • On success, output mirrors get (default header + body in text mode, full record in JSON mode).

Precedence and scope

Pixee resolves preferences per-analysis with strict fallback, no merging:

  1. If the repository has PIXEE.md at its root (even if empty), it is used exclusively.
  2. Else if organization preferences exist with non-empty content, they are used.
  3. Else the analysis runs without preference guidance.

An empty PIXEE.md is a deliberate opt-out: a repo with one is treated as having preferences, which silently shadows org preferences for that repo. Agents working in a specific repo should check for PIXEE.md before assuming org preferences will apply.

Humans can author preferences in the Pixee web app under an organization's Settings → Preferences; the CLI and the web UI write the same resource.

Preferences or coding guidelines?

Pixee accepts two kinds of organization guidance, and they are not interchangeable. Preferences are policy Pixee applies on every analysis: Pixee considers the whole document for each finding. Coding-guidelines documents (see ../pixee-coding-guidelines/SKILL.md) are reference material: Pixee keeps the uploaded documents intact and consults matching passages when triaging and fixing SAST findings.

Put guidance in preferences when it is:

  • A decision about how Pixee behaves: which rules or vulnerability classes are in scope, rules to disable or mark remediable, paths to ignore. Only preferences configure these deterministically.
  • A short, org-wide choice a human has reviewed, such as "fix SQL injection with our JooqDao helper" or "services behind the internal mesh are not internet-reachable".
  • Guidance that must also reach SCA analysis, which does not consult coding guidelines.

Upload coding guidelines when the source is:

  • A long, formal document (a secure coding standard, an architecture handbook, a wiki export).
  • Owned by another team and revised on its own schedule; uploading the new revision and deleting the superseded one keeps Pixee current without re-deriving anything.
  • Something findings should be traceable to; retrieved passages stay labeled with their source document.

Uploads go through the Pixee web app or the API; the CLI only lists coding-guidelines documents.

When an organization has formal standards, use both: upload the documents as written, and keep preferences for the handful of always-on decisions. Don't condense a long standard into preferences to fit the 10,000-character cap. The summary drops detail the agent judged unimportant, goes stale when the standard changes, and is shadowed in any repository that has its own PIXEE.md, while uploaded guidelines apply to every repository.

Because guidelines are matched against passages rather than read in full, a preference is the more dependable choice for a rule that must apply to every relevant finding. Promote a critical rule from a guidelines document into preferences rather than relying on retrieval alone, and keep the two in sync when the standard changes. Repositories with their own PIXEE.md never see org preferences, so a promoted rule must also be added to those files to reach them.

Writing effective preferences

Preferences come in three flavors:

  • Remediation guidance. How the team prefers to fix specific vulnerability classes: preferred libraries, internal utility classes, code patterns to use or avoid.
  • Triage context. Why a finding may not be a real risk here: deployment architecture, compensating controls (WAF, network isolation, MFA), intentional patterns, false-positive zones.
  • Rule preferences. Enable or disable specific scanner rules by tool name and rule ID, including marking rules as remediable when Pixee should attempt an automatic fix.

For worked examples of each flavor, see references/preferences-authoring.md. Treat those examples as starting points and adapt them to the org's stack, tone, and compliance posture.

Examples

bash
# Print the body verbatim, suitable for piping into an editor or less
pixee organization preferences get --content-only

# Pretty-print the record as JSON, then pull a single field with jq
pixee organization preferences get --json | jq -r '.updated_by'

# Walk to the canonical resource via HAL (do not hardcode the path)
href=$(pixee organization preferences get --json | jq -r '._links.self.href')
pixee api "$href"

# Author offline and push from a file
pixee organization preferences set --from-file ./pixee-preferences.md

# Compose inline from a heredoc for a quick one-off
pixee organization preferences set --content "$(cat <<'EOF'
# Risk Guidance

## SQL Injection
Prefer Spring NamedParameterJdbcTemplate with :namedParameters.
EOF
)"

# Round-trip through stdin (byte-identical when the transform is a no-op)
pixee organization preferences get --content-only \
  | sed 's/old-vendor/new-vendor/g' \
  | pixee organization preferences set --from-file -

# Retry the set on concurrent-modification conflicts
until pixee organization preferences set --from-file ./pixee-preferences.md; do
  echo "retrying"
  sleep 1
done

Best practices

  • Author non-trivial preferences as a file (typically pixee-preferences.md in a repo root or an internal docs repo) and push with --from-file. Reserve --content for one-liners and shell heredocs.
  • Use --content-only when piping into editors, diffs, or less. Use --output json for programmatic inspection and HAL traversal.
  • When composing preferences with help from external context (Notion pages, internal wikis, MCP-connected knowledge bases), extract only the behavioral decisions described in Preferences or coding guidelines?; recommend uploading long-form standards as coding guidelines instead of summarizing them. Draft the candidate document, route it through a human owner if the agent does not have authority to set org-wide policy, then push via --from-file once approved.
  • Treat HTTP 412 as expected when multiple agents or humans edit concurrently. The friendly retry message is the contract; loop the set call or refresh and re-author against the latest content.
  • Repo-level PIXEE.md silently overrides org preferences for that repo. Agents working inside a specific repository should check for PIXEE.md before assuming the org-level document applies.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

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

Read and write Pixee organization preferences and choose when short policy belongs there rather than in coding guidelines.

Vì sao nên dùng Pixee Preferences 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 Preferences 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 Preferences 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-preferences. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng 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 Preferences?

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.

Có thể dùng Pixee Preferences 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 Preferences 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 Preferences 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 các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công 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à những tiêu chí mà kết quả cần đáp ứng. 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 👇