Agent Skillsopensquilla/opensquilla › meta-security-review-bundle

meta-security-review-bundle

GitHub

组合式元技能,并行执行策略治理、密钥扫描和审计日志三个独立安全关卡,按严格优先级(治理拒绝>扫描警告>允许)仲裁结果。用于审查代码变更或脚本操作的安全性,生成可追溯的审计记录。

src/opensquilla/skills/exp/meta-security-review-bundle/SKILL.md opensquilla/opensquilla

Trigger Scenarios

审查拟议的代码变更 审查脚本 审查环境操控操作

Install

npx skills add opensquilla/opensquilla --skill meta-security-review-bundle -g -y
More Options

Non-standard path

npx skills add https://github.com/opensquilla/opensquilla/tree/main/src/opensquilla/skills/exp/meta-security-review-bundle -g -y

Use without installing

npx skills use opensquilla/opensquilla@meta-security-review-bundle

指定 Agent (Claude Code)

npx skills add opensquilla/opensquilla --skill meta-security-review-bundle -a claude-code -g -y

安装 repo 全部 skill

npx skills add opensquilla/opensquilla --all -g -y

预览 repo 内 skill

npx skills add opensquilla/opensquilla --list

SKILL.md

Frontmatter
{
    "kind": "meta",
    "name": "meta-security-review-bundle",
    "always": false,
    "metadata": {
        "opensquilla": {
            "risk": "high",
            "capabilities": [
                "filesystem-read",
                "network-read",
                "subprocess"
            ]
        }
    },
    "triggers": [
        "security review",
        "安全审查",
        "审查这段代码",
        "review for safety"
    ],
    "provenance": {
        "origin": "opensquilla-original",
        "license": "Apache-2.0"
    },
    "composition": {
        "steps": [
            {
                "id": "policy_review",
                "kind": "agent",
                "with": {
                    "task": "You are the *policy reviewer* for a security-review bundle.\nApply only the rules below; do not invent additional concerns.\n\nOperation under review:\n---\n{{ inputs.user_message | xml_escape | truncate(800) }}\n---\n\nRules (in priority order):\n  1. DENY if the operation would modify `\/etc\/`, `\/boot\/`, system\n     systemd units, `~\/.ssh\/authorized_keys`, or `\/etc\/sudoers`.\n  2. DENY if the operation would exfiltrate credentials\n     (read `.env`, `~\/.aws\/credentials`, `~\/.ssh\/id_*`, etc.)\n     to a remote destination.\n  3. DENY if the operation would disable or bypass sandbox \/\n     selinux \/ apparmor controls.\n  4. Otherwise ALLOW.\n\nReply with EXACTLY one line, no preamble:\n  DENY: <one-sentence reason>\n  ALLOW: ok\n"
                },
                "skill": "sub-agent"
            },
            {
                "id": "secret_scan",
                "kind": "agent",
                "with": {
                    "task": "You are the *secret scanner* for a security-review bundle. You\ndo NOT judge intent — only detect credential-shaped strings.\n\nInput:\n---\n{{ inputs.user_message | xml_escape | truncate(800) }}\n---\n\nLook for:\n  * API keys (sk-…, ghp_…, AKIA…, AIza…, …)\n  * JWT \/ OAuth bearer tokens\n  * Private keys (-----BEGIN … PRIVATE KEY-----)\n  * Database connection URIs with embedded passwords\n  * Plaintext passwords next to obvious labels (pwd=, password:)\n\nReply with EXACTLY one line, no preamble:\n  WARN: <count> <one-line summary of kinds detected>\n  CLEAR: no secrets found\n"
                },
                "skill": "sub-agent"
            },
            {
                "id": "arbitrate",
                "kind": "agent",
                "with": {
                    "task": "Three independent security gates ran on this operation:\n\n- policy_review: {{ outputs.policy_review }}\n- secret_scan:   {{ outputs.secret_scan }}\n\nApply the arbitration rule STRICTLY in this priority order\n(higher wins; do NOT mix or soften):\n\n  1. If policy_review begins with \"DENY\" → final verdict is DENY.\n     Pass through the policy reviewer's reason verbatim.\n  2. Else if secret_scan begins with \"WARN\" → final verdict is WARN.\n     Pass through the scanner's summary verbatim and require\n     explicit user acknowledgement before proceeding.\n  3. Else (policy_review ALLOW and secret_scan CLEAR) → ALLOW.\n\nReply with EXACTLY this structure on the first line, then\nadditional lines as needed:\n\n  DENY: <policy reason>\n  WARN: <scanner summary; user must confirm>\n  ALLOW: cleared by both gates"
                },
                "skill": "sub-agent",
                "depends_on": [
                    "policy_review",
                    "secret_scan"
                ]
            },
            {
                "id": "audit_emit",
                "kind": "tool_call",
                "tool": "memory_save",
                "tool_args": {
                    "mode": "append",
                    "path": "memory\/security-review.md",
                    "content": "=== security review audit ===\noperation: {{ inputs.user_message | xml_escape | truncate(400) }}\npolicy_review: {{ outputs.policy_review | truncate(200) }}\nsecret_scan: {{ outputs.secret_scan | truncate(200) }}\nverdict: {{ outputs.arbitrate | truncate(400) }}"
                },
                "depends_on": [
                    "arbitrate"
                ],
                "tool_allowlist": [
                    "memory_save"
                ]
            }
        ]
    },
    "description": "Compose three independent security gates over a candidate operation — policy\/governance review, secret\/credential scan, and audit-log emit — then arbitrate the verdicts with a strict priority rule (governance DENY > scanner WARN > ALLOW). Use when reviewing a proposed code change, script, or environment manipulation for safety.",
    "meta_priority": 75
}

Security Review Bundle (Combinator Meta-Skill)

A combinator-style meta-skill: three independent gates run in parallel over the candidate operation, then a fourth step arbitrates the verdicts with a strict priority rule. The fifth step emits an audit record so the run is recallable later.

This bundle is the OpenSquilla equivalent of pptx slide 7's combinator pattern: multiple rule sets active simultaneously, with the arbitration rule explicit in the SKILL.md rather than implicit in the LLM's good judgement.

Arbitration rule

The arbitrate step encodes the priority policy > scanner > allow verbatim in its task prompt. The rule is not soft-suggested ("consider whether…"); it's an enforceable check (startswith("DENY")). This follows the pptx slide 7 recommendation to combine extensive scenario testing with an explicit non-negotiable-rule fallback sentence.

Fallback

If any of the three primary gates fails (sub-agent error, timeout, empty deliverable), the orchestrator's existing failure cascade produces a structured failure payload. Operators should review the partial verdicts in step_outputs and decide manually.

Use sparingly

This pattern multiplies token cost by N (number of gates) for a single user turn. Don't reach for the combinator unless multiple independent rule sets genuinely must both apply — otherwise prefer an orchestrator with a single, well-defined sequence.

Version History

  • 7f72a32 Current 2026-07-05 18:41

Same Skill Collection

src/opensquilla/skills/bundled/advanced-dubbing-studio/SKILL.md
src/opensquilla/skills/bundled/ai-video-script/SKILL.md
src/opensquilla/skills/bundled/audio-cog/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-image-download/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-research/SKILL.md
src/opensquilla/skills/bundled/AwesomeWebpageMetaSkill/SKILL.md
src/opensquilla/skills/bundled/cron/SKILL.md
src/opensquilla/skills/bundled/docx/SKILL.md
src/opensquilla/skills/bundled/filesystem/SKILL.md
src/opensquilla/skills/bundled/git-diff/SKILL.md
src/opensquilla/skills/bundled/github/SKILL.md
src/opensquilla/skills/bundled/history-explorer/SKILL.md
src/opensquilla/skills/bundled/html-coder/SKILL.md
src/opensquilla/skills/bundled/html-to-pdf/SKILL.md
src/opensquilla/skills/bundled/http-fetch/SKILL.md
src/opensquilla/skills/bundled/latex-compile/SKILL.md
src/opensquilla/skills/bundled/memory/SKILL.md
src/opensquilla/skills/bundled/music-and-singing-studio/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro-openrouter/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro/SKILL.md
src/opensquilla/skills/bundled/nano-pdf/SKILL.md
src/opensquilla/skills/bundled/openrouter-video-generator/SKILL.md
src/opensquilla/skills/bundled/paper-abstract-author/SKILL.md
src/opensquilla/skills/bundled/paper-citation-planner/SKILL.md
src/opensquilla/skills/bundled/paper-experiment-stub/SKILL.md
src/opensquilla/skills/bundled/paper-outline-author/SKILL.md
src/opensquilla/skills/bundled/paper-preference-planner/SKILL.md
src/opensquilla/skills/bundled/paper-refbib-stub/SKILL.md
src/opensquilla/skills/bundled/paper-revision-author/SKILL.md
src/opensquilla/skills/bundled/paper-section-author/SKILL.md
src/opensquilla/skills/bundled/paper-source-curator/SKILL.md
src/opensquilla/skills/bundled/pptx/SKILL.md
src/opensquilla/skills/bundled/seedance-2-prompt/SKILL.md
src/opensquilla/skills/bundled/skill-creator-linter/SKILL.md
src/opensquilla/skills/bundled/skill-creator-proposals/SKILL.md
src/opensquilla/skills/bundled/skill-creator-smoke-test/SKILL.md
src/opensquilla/skills/bundled/srt-from-script/SKILL.md
src/opensquilla/skills/bundled/stack-trace-generic-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-go-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-js-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-python-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-rust-probe/SKILL.md
src/opensquilla/skills/bundled/subtitle-burner/SKILL.md
src/opensquilla/skills/bundled/swe-bench/SKILL.md
src/opensquilla/skills/bundled/text-file-read/SKILL.md
src/opensquilla/skills/bundled/title-card-image/SKILL.md
src/opensquilla/skills/bundled/video-merger/SKILL.md
src/opensquilla/skills/bundled/video-still-animator/SKILL.md
src/opensquilla/skills/bundled/voice-clone-lab/SKILL.md
src/opensquilla/skills/bundled/voice-conversion-studio/SKILL.md
src/opensquilla/skills/bundled/voiceover-studio/SKILL.md
src/opensquilla/skills/bundled/weather/SKILL.md
src/opensquilla/skills/bundled/web-search/SKILL.md
src/opensquilla/skills/bundled/xlsx/SKILL.md
src/opensquilla/skills/exp/meta-arxiv-daily-digest-deck/SKILL.md
src/opensquilla/skills/exp/meta-codereview-current-diff/SKILL.md
src/opensquilla/skills/exp/meta-compliance-audit-bundle/SKILL.md
src/opensquilla/skills/exp/meta-diagram-triangulation/SKILL.md
src/opensquilla/skills/exp/meta-github-pr-watch-digest/SKILL.md
src/opensquilla/skills/exp/meta-issue-to-pr-autopilot/SKILL.md
src/opensquilla/skills/exp/meta-knowledge-base-bootstrap/SKILL.md
src/opensquilla/skills/exp/meta-migration-assistant/SKILL.md
src/opensquilla/skills/exp/meta-multi-format-export-pack/SKILL.md
src/opensquilla/skills/exp/meta-pdf-intelligence/SKILL.md
src/opensquilla/skills/exp/meta-pdf-reformat-pipeline/SKILL.md
src/opensquilla/skills/exp/meta-pre-commit-quality-gate/SKILL.md
src/opensquilla/skills/exp/meta-scheduled-morning-digest/SKILL.md
src/opensquilla/skills/exp/meta-spreadsheet-insight/SKILL.md
src/opensquilla/skills/exp/meta-stack-trace-investigator/SKILL.md
src/opensquilla/skills/exp/meta-travel-planner/SKILL.md
src/opensquilla/skills/exp/meta-web-to-pdf-briefing/SKILL.md
tests/_fixtures/meta-paper-write-handwritten.SKILL.md
src/opensquilla/skills/bundled/code-task/SKILL.md
src/opensquilla/skills/bundled/deep-research/SKILL.md
src/opensquilla/skills/bundled/meta-kid-project-planner/SKILL.md
src/opensquilla/skills/bundled/meta-paper-write/SKILL.md
src/opensquilla/skills/bundled/meta-short-drama/SKILL.md
src/opensquilla/skills/bundled/meta-skill-creator/SKILL.md
src/opensquilla/skills/bundled/multi-search-engine/SKILL.md
src/opensquilla/skills/bundled/pdf-toolkit/SKILL.md
src/opensquilla/skills/bundled/skill-creator/SKILL.md
src/opensquilla/skills/bundled/sub-agent/SKILL.md
src/opensquilla/skills/bundled/summarize/SKILL.md
src/opensquilla/skills/bundled/tmux/SKILL.md
src/opensquilla/skills/exp/meta-long-running-build-watchdog/SKILL.md
src/opensquilla/skills/bundled/paper-plot-stub/SKILL.md
src/opensquilla/skills/exp/meta-content-publish-pipeline/SKILL.md
src/opensquilla/skills/exp/meta-home-it-rescue/SKILL.md
src/opensquilla/skills/exp/meta-meeting-to-workflow/SKILL.md
src/opensquilla/skills/exp/meta-research-to-slide-deck/SKILL.md
src/opensquilla/skills/exp/meta-sales-lead-researcher/SKILL.md

Metadata

Files
0
Version
7f72a32
Hash
44ede1ab
Indexed
2026-07-05 18:41

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-09 01:11
浙ICP备14020137号-1 $bản đồ khách truy cập$