Python Packaging Security Auditのロゴ

Python Packaging Security Audit

組織
opendatahub-io
python-packaging-security-audit

Use this skill to evaluate the security of a Python package repository by orchestrating static analysis, binary scanning, and git history inspection sub-skills in parallel, then combining their results into a unified security report with a risk rating.

概要

公開者opendatahub-io
リポジトリai-helpers
スキル名python-packaging-security-audit
スター
39
フォーク
76
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    opendatahub-ioがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルPython Packaging Security AuditをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-python-packaging/skills/python-packaging-security-audit
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-python-packaging/skills/python-packaging-security-audit .claude/skills/python-packaging-security-audit
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPython Packaging Security Auditを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にPython Packaging Security Auditを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Python Packaging Security Auditは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Python Packaging Security Audit

Orchestrates a comprehensive pre-onboarding security evaluation of Python packages by dispatching three specialized sub-skills as parallel background agents. Each agent writes its report section to an individual file; the orchestrator reads all files and assembles the unified report.

Inputs

  • repo_path (optional): Local filesystem path to an already-cloned repository
  • package_name (optional): Python package name — the skill will locate and clone the repository
  • hexora_results (optional): File path to pre-computed hexora JSON output (hexora-results.json). Forwarded to the python-packaging-static-audit sub-skill.
  • binary_scan (optional): File path to pre-computed binary scanner JSON output (binary-scan.json). Forwarded to the python-packaging-binary-audit sub-skill.
  • malcontent_results (optional): File path to pre-computed malcontent JSON output (malcontent-results.json). Forwarded to the python-packaging-binary-audit sub-skill.

At least one of repo_path or package_name must be provided. If repo_path is given and points to an existing directory, skip straight to Step 2. Otherwise, use package_name to discover and clone the repository.

When pre-computed scan inputs are provided, repo_path is still needed for triage context (reading source files to understand findings). Always use --depth 50 for cloning because the git-audit sub-skill runs its own git history commands and needs sufficient commit history.

Step 1: Resolve Repository

If you already have a local repository path, skip to Step 2.

Otherwise, use the python-packaging-source-finder skill to locate the upstream repository URL:

text
Skill: python-packaging-source-finder
Args: <package_name>

If the skill returns a URL with high or medium confidence, clone it locally with enough history for the git scan:

bash
CLONE_DIR=$(mktemp -d -t security-audit-XXXXXX)
git clone --depth 50 -- "<repository_url>" "$CLONE_DIR/repo"

Use $CLONE_DIR/repo as the repo path for Step 2.

If source-finder returns low confidence or no URL, stop and return a report with risk rating needs_review stating that the source repository could not be located.

Step 2: Dispatch Parallel Audits

Create a working directory for the report files:

bash
AUDIT_DIR=$(mktemp -d -t security-audit-results-XXXXXX)

Dispatch three background agents in parallel. Each agent invokes one sub-skill and writes its findings to an individual file. The orchestrator does not need the intermediate reasoning context — only the final report sections matter.

When pre-computed scan inputs are available, forward them to the corresponding sub-skill so it skips tool execution and goes straight to triage.

Agent 1 — Static Analysis:

text
Dispatch a background Agent that invokes the python-packaging-static-audit skill
with repo_path=<repo-path> and output_file=$AUDIT_DIR/static-audit.md.
If hexora_results is provided, also pass hexora_results=<path>.
Then exits.

Agent 2 — Binary Scan:

text
Dispatch a background Agent that invokes the python-packaging-binary-audit skill
with repo_path=<repo-path> and output_file=$AUDIT_DIR/binary-audit.md.
If binary_scan is provided, also pass binary_scan=<path>.
If malcontent_results is provided, also pass malcontent_results=<path>.
Then exits.

Agent 3 — Git History:

text
Dispatch a background Agent that invokes the python-packaging-git-audit skill
with repo_path=<repo-path> and output_file=$AUDIT_DIR/git-audit.md, then exits.

Wait for all three agents to complete before proceeding.

Step 3: Combine Results

Read each output file. The first line of each file contains RISK_RATING:<value>. Extract the risk rating and the markdown report section from each file.

If a file is missing or empty, treat that phase as risk_rating = needs_review and state in the report section that the sub-skill did not produce output.

Assign the overall risk rating as the worst (most severe) rating across all phases:

  • no_issues — All sub-skills returned no_issues
  • low_risk — Worst sub-skill rating is low_risk
  • needs_review — At least one sub-skill returned needs_review
  • critical — At least one sub-skill returned critical

Precedence: critical > needs_review > low_risk > no_issues

Step 4: Cleanup

Clean up temporary directories:

bash
rm -rf -- "${AUDIT_DIR}"

if [ -n "${CLONE_DIR}" ] && [[ "${CLONE_DIR}" == "${TMPDIR:-/tmp}"/* ]]; then
  rm -rf -- "${CLONE_DIR}"
else
  echo "ERROR: refusing to delete '${CLONE_DIR}' -- not under temp dir" >&2
fi

Output Format

Produce the following markdown report. When there are no findings, collapse to just the header, risk rating (no_issues), summary, and a statement that no issues were found.

markdown
# Security Assessment: {package-name}

**Risk Rating:** {no_issues | low_risk | needs_review | critical}
**Summary:** {1-2 sentence summary}

{Hexora Static Analysis section from static-audit.md}

{Binary Scan section from binary-audit.md}

{Git History Analysis section from git-audit.md}

## Recommendations

- {Bulleted list of specific actions based on findings across all phases}

Error Handling

Never abort the audit because a single tool is missing. Each sub-skill handles missing tools (hexora, malcontent) by returning a degraded report section with risk_rating = needs_review instead of failing. The orchestrator must always dispatch all three agents and combine whatever results are available.

ScenarioBehavior
Source-finder returns low confidence or no URLStop; report needs_review stating source repo could not be located
git clone failsStop; report needs_review stating repo could not be cloned
A sub-skill output file is missing or emptyInclude a note in that section; treat that phase as needs_review
A sub-skill reports tool unavailableInclude its degraded output in the report; treat that phase as needs_review
All sub-skills return no_issuesReport overall no_issues

よくある質問

AIスキル「Python Packaging Security Audit」では何ができますか?

Use this skill to evaluate the security of a Python package repository by orchestrating static analysis, binary scanning, and git history inspection sub-skills in parallel, then combining their results into a unified security report with a risk rating.

TypingMindでPython Packaging Security Auditを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Python Packaging Security Auditはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPython Packaging Security Auditをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-python-packaging/skills/python-packaging-security-auditを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Python Packaging Security Auditを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Python Packaging Security Auditは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPython Packaging Security Auditを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Python Packaging Security Audit」は無料ですか?

はい。opendatahub-ioがGitHubでApache-2.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇