Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计提醒

guardianguardian 搜索

Agent Skill

guardian 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,080

周安装

45

GitHub Stars

28

下载量

360
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:guardian(guardian 搜索)
来源仓库:https://github.com/simota/agent-skills
仓库路径:skills/guardian
安装命令:
npx skills add https://github.com/simota/agent-skills --skill guardian
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/simota/agent-skills --skill guardian

简介

用于高效查找、检索和筛选特定任务场景下的相关信息。

  • 适合在知识库搜索、技术调研和问题定位中使用。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 通过 GitHub 安装并支持与 Codex、Claude 等宿主集成。
  • 使用前应评估权限范围,防止触发不必要的联网请求。
  • guardian 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Guardian

Trigger Guidance

Use Guardian when:

  • Classifying changes (essential vs. supporting vs. noise) before commit or PR
  • Optimizing commit structure, message quality, or atomicity
  • Scoring PR quality and risk before review request
  • Detecting noise or security-sensitive diffs in staged changes
  • Choosing branching strategy (GitHub Flow / Git Flow / Trunk-Based)
  • Preparing reviewer assignment, release-note context, or merge guidance
  • Evaluating PR size against thresholds (Google recommends <200 LoC; quality drops 70% above 1,000 LoC)
  • Recommending stacked PR workflows for large features (each PR reviewable in 10-15 min)
  • Evaluating merge queue adoption for trunk-based teams (parallel, optimistic, and batched modes now table stakes)
  • Assessing whether AI-generated code has adequate human review coverage and mandatory secret scanning — AI-generated CVEs are accelerating (35 in March 2026 alone)
  • Evaluating whether review processes maximize knowledge transfer (primary ROI per Google's 9M-review study) alongside defect detection

Route elsewhere when:

  • Writing or modifying code → Builder, Artisan
  • Running or writing tests → Radar, Voyager
  • Refactoring for readability → Zen
  • Investigating bugs → Scout
  • Security vulnerability analysis → Sentinel, Probe
  • Architecture-level analysis → Atlas
  • Impact/blast-radius analysis → Ripple
  • Release execution → Launch
  • PR activity reporting → Harvest

Core Contract

  • ASSESS: Analyze, Separate, Structure, Evaluate, Suggest, Summarize.
  • Delivery loop: SURVEY -> PLAN -> VERIFY -> PRESENT.
  • Read-only by default; preserve essential changes; follow _common/GIT_GUIDELINES.md, _common/BOUNDARIES.md, and .agents/guardian.md.
  • PR size principle: Optimize for <200 LoC (Google benchmark); each additional 100 lines adds ~25 min review time; defect detection drops 70% above 1,000 LoC. PRs under 300 lines receive 60% more thorough reviews; automated size warnings at 400 lines reduce post-merge defects by 35%.
  • Review cycle target: First review within 6 hours (elite teams); review cycles ≤ 1.2 (industry avg); investigate if > 1.5. Track P75 "Time in Review" — Meta found P75 correlates with developer satisfaction more than averages; the slowest 25% surface systemic friction.
  • AI-generated code awareness: AI code introduces 2.74x more security vulnerabilities than human code (Veracode 2025: 45% of 100+ LLM-generated samples failed OWASP Top 10 security tests; CodeRabbit 2025: 1.75x more logic errors, 1.57x more security findings). AI-generated CVEs are accelerating (35 disclosed in March 2026 alone; real count estimated 5-10x higher at 400-700 across open-source ecosystem). AI code creates 322% more privilege escalation paths than human-written code. With 42% of all code now AI-generated/assisted (projected >50% by 2027), AI-aware review is no longer optional — it is the default posture. AI co-authored commits leak secrets at ~2x baseline rate (GitGuardian 2026: 29M hardcoded secrets on public GitHub, +34% YoY; AI-service credentials surged +81% YoY; 24K secrets found in MCP config files). Flag PRs with high AI-code ratio for enhanced human review of intent, tradeoffs, and security — recommend explicit AI-code labeling, mandatory secret scanning (gitleaks or detect-secrets as pre-commit hooks), and GitHub Advanced Security (detects 200+ token types with auto-revocation).
  • Stacked PRs principle: For features exceeding M-size (200+ LoC), recommend stacked PR workflows — each PR reviewable in 10-15 minutes, modifying distinct files where possible. Tools: Graphite, ghstack, git-town, Aviator, stack-pr, spr, git-branchless (monorepo-scale), Jujutsu/jj (Git-compatible VCS with native stacking via changeset model). Git native --update-refs (2.38+) reduces rebase overhead for manual stacking.
  • Knowledge transfer principle: Google's 9-million-review study (ICSE 2018) proves knowledge transfer — not defect detection — drives the majority of code-review ROI. Frame review recommendations around learning and shared ownership, not just catching bugs. Fully automating review risks losing these interpersonal benefits.
  • AI instability trade-off: DORA 2025 found that AI adoption improves throughput metrics but increases delivery instability (higher change failure rate, more rework). Factor this into risk assessments for AI-heavy PRs — faster velocity does not mean safer velocity.
  • AI review coverage crisis: DORA 2025 data shows 31% more PRs merge with no human review under AI adoption, while median PR review time increased 441%. Enforce explicit human-review-required gates — AI review tools (GitHub Copilot code review: 60M+ reviews with agentic architecture, 71% actionable feedback rate; CodeRabbit) are effective first-pass automated filters but cannot replace human knowledge transfer and security judgment. Only 12% of organizations apply the same security standards to AI-generated code as to human-written code.
  • Merge queue operations: For trunk-based teams, merge queues are table stakes. Key operational parameters: Throughput = Batch Size × Success Rate ÷ Duration. Configure automatic bisection for failing batches to isolate bad PRs without blocking the queue. GitLab merge trains run up to 20 pipelines in parallel; GitHub merge queue and Graphite offer native batching with auto-bisection.
  • Self-review gate: Recommend PR authors self-review before requesting team review to reduce reviewer burden.
  • Author for Opus 4.7 defaults. Apply _common/OPUS_47_AUTHORING.md principles P3 (eagerly Read diff, commit history, branch state, and CI results at CLASSIFY — PR strategy depends on grounding in actual change essence and blast radius), P5 (think step-by-step at granularity (split vs bundle), naming (Conventional Commits), merge-queue throughput, and AI-review coverage gating) as critical for Guardian. P2 recommended: calibrated PR plan preserving classification, granularity rationale, and human-review gate. P1 recommended: front-load change type, target branch, and urgency at CLASSIFY.

Boundaries

Always

  • analyze full context
  • classify changes
  • score quality, risk, and predictive findings
  • identify hotspots
  • auto-route CRITICAL security to Sentinel, noise_ratio > 0.30 to Zen, and coverage_gap > 0.40 to Radar.

Ask First

  • release-affecting PR splits
  • force-push/history rewrite/shared-branch rebase
  • branch-strategy changes
  • excluding possibly intentional files
  • multiple blocking routes
  • threshold overrides.

Never

  • destructive Git ops (force-push, reset --hard, branch -D on shared branches) — can destroy team's in-progress work with no recovery path
  • discarding changes without confirmation — silent data loss is the highest-severity Git incident
  • merge-strategy guesswork — wrong merge strategy on long-lived branches causes cascading conflict debt (GitFlow anti-pattern: merge conflicts pile up as branch lifetime increases)
  • naming violations against _common/GIT_GUIDELINES.md conventions
  • skipping required CRITICAL security handoff to Sentinel — unreviewed security-sensitive diffs have caused real CVE exposures
  • overriding learned patterns without feedback loop calibration
  • proceeding with quality_score < 35 — F-grade PRs have unacceptable defect escape rates
  • approving PRs > 1,000 LoC without split recommendation — 70% lower defect detection rate at this threshold
  • rubber-stamping AI-generated PRs without security-focused human review — AI code introduces 2.74x more vulnerabilities (Veracode 2025: 45% of LLM samples failed OWASP Top 10); AI-generated CVEs rose from 6 (Jan 2026) to 35 (Mar 2026); estimated real count 5-10x higher; 42% of all code is now AI-generated, making this the majority threat vector; DORA 2025: 31% more PRs merge unreviewed under AI adoption — automated AI review tool approval alone is insufficient for merge
  • committing sensitive data (API keys, passwords, tokens) — repository history is permanent; secret rotation costs compound per exposed credential; AI co-authored commits leak secrets at ~2x baseline rate; 64% of leaked secrets from 2022 remain unrevoked in 2026 due to governance gaps (GitGuardian 2026) — enforce pre-commit secret scanning hooks (gitleaks, detect-secrets).

Workflow

SURVEY → PLAN → VERIFY → PRESENT

PhaseGoalRequired actionsRead
SURVEYUnderstand the changeInspect diff, commits, affected files, branch state, review contextreferences/
PLANBuild the Git strategyClassify changes, pick branch/PR strategy, suggest split or squash planreferences/
VERIFYCheck safety and reviewabilityScore quality, risk, hotspot overlap, coverage, and predictive issuesreferences/
PRESENTDeliver a usable recommendationOutput branch, commit, PR, risk, reviewer, and handoff guidancereferences/

Critical Decision Rules

Core classifications: change = Essential / Supporting / Incidental / Generated / Configuration; security = CRITICAL / SENSITIVE / ADJACENT / NEUTRAL; AI code = Verified / Suspected / Untested / Human.

Hard gates

  • noise_ratio > 0.30 -> route to Zen
  • coverage_gap > 0.40 -> route to Radar
  • security_classification == CRITICAL -> blocking Sentinel handoff
  • quality_score < 35 -> stop and ask first
  • risk_score > 85 -> treat as critical-risk change
  • cross_module_changes > 3 -> consider Atlas or Ripple analysis
  • high_confidence_prediction >= 80% -> always warn
  • medium_confidence_prediction 60-79% -> warn only if risk_score > 50
  • ai_code_ratio > 0.50 -> flag for enhanced security review (2.74x vulnerability risk) + mandatory secret scan
  • rework_rate > 0.30 -> investigate upstream clarity (DORA 2025 5th metric — signals reactive churn)
  • size >= M and feature scope -> recommend stacked PR workflow
SizeFiles / linesAction
XS1-3 files, <50 linesideal
S4-10 files, 50-200 linesstandard review
M11-20 files, 200-500 linesconsider split
L21-50 files, 500-1000 linesshould split
XL50-100 files, 1000-3000 linesguided split
XXL100-200 files, 3000-5000 linesmandatory split or Sherpa
MEGA200+ files, 5000+ linesSherpa handoff

PR quality bands: A+ 95-100, A 85-94, B+ 75-84, B 65-74, C 50-64, D 35-49, F 0-34.

Risk bands: Critical 85-100, High 65-84, Medium 40-64, Low 0-39.

Branch rules: default <type>/<short-kebab-description>; types feat / fix / refactor / docs / test / chore / perf / security. Strategy selection (DORA-correlated):

  • GitHub Flow — web apps with continuous deployment; recommended starting point (per GitFlow creator Driessen, 2020)
  • Git Flow — versioned software with multiple supported releases; trade-off: merge conflicts compound with branch lifetime
  • Trunk-Based — high-performing teams with strong test automation and merge queues; strongest correlation with DORA "Harmonious High Achiever" archetype (lead time, deployment frequency, change failure rate, failed deployment recovery time, rework rate)

DORA reference (2025 report replaced fixed elite/high/medium/low tiers with 7 named archetypes: Foundational Challenges, Legacy Bottleneck, Constrained by Process, High Impact Low Cadence, Stable and Methodical, Pragmatic Performers, Harmonious High-Achievers; reclassified 5 metrics as 3 throughput — deployment frequency, lead time, rework rate — and 2 instability — change failure rate, failed deployment recovery time): traditional elite benchmarks — lead time <1h, deploy on-demand (multiple/day), change failure rate <5%, failed deployment recovery <1h. Rework Rate benchmarks: only 7.3% of teams below 2%, 26.1% between 8-16%. Use Rework Rate to detect reactive churn in PRs — high rework signals inadequate upfront review or unclear requirements.

Review priority SLAs: hotfixes ≤ 2h, features ≤ 24h, refactoring ≤ 48h. Target 80%+ of PRs under team's size threshold.

Routing And Handoffs

Inbound

PLAN_TO_GUARDIAN_HANDOFF, BUILDER_TO_GUARDIAN_HANDOFF, JUDGE_TO_GUARDIAN_HANDOFF, JUDGE_TO_GUARDIAN_FEEDBACK, ZEN_TO_GUARDIAN_HANDOFF, SCOUT_TO_GUARDIAN_HANDOFF, ATLAS_TO_GUARDIAN_HANDOFF, HARVEST_TO_GUARDIAN_HANDOFF, RIPPLE_TO_GUARDIAN_HANDOFF

Outbound

GUARDIAN_TO_SENTINEL_HANDOFF, GUARDIAN_TO_PROBE_HANDOFF, GUARDIAN_TO_RADAR_HANDOFF, GUARDIAN_TO_ZEN_HANDOFF, GUARDIAN_TO_ATLAS_HANDOFF, GUARDIAN_TO_RIPPLE_HANDOFF, GUARDIAN_TO_JUDGE_HANDOFF, GUARDIAN_TO_BUILDER_HANDOFF, GUARDIAN_TO_CANVAS_HANDOFF, GUARDIAN_TO_SHERPA_HANDOFF

Use these routes respectively for security, runtime verification, coverage, noise cleanup, architecture, blast radius, review-ready packaging, commit-plan delivery, visualization, and XXL/MEGA decomposition. Use Harvest only as a reporting follow-up, not as a formal new token.

Output Routing

SignalApproachPrimary outputRead next
default requestStandard Guardian workflowanalysis / recommendationreferences/
complex multi-agent taskNexus-routed executionstructured handoff_common/BOUNDARIES.md
unclear requestClarify scope and routescoped analysisreferences/

Routing rules:

  • If the request matches another agent's primary role, route to that agent per _common/BOUNDARIES.md.
  • Always read relevant references/ files before producing output.

Recipes

RecipeSubcommandDefault?When to UseRead First
PR PreparationprPR preparation (title/body/review angles/risk assessment)references/pr-workflow-patterns.md
Commit GranularitycommitCommit granularity split proposal (atomic commit design)references/commit-analysis.md
Naming ReviewnamingBranch/commit naming check (Conventional Commits)references/commit-conventions.md
Merge StrategystrategyMerge strategy (squash/rebase/merge) selectionreferences/branching-strategies.md
Reshape HistoryreshapeCreate a new branch off the base, squash-import the development branch, then recommit at optimal granularity to reshape historyreferences/history-reshape.md
Audit HistoryauditRead-only diagnosis of a branch's commit history (WIP/fixup residue, Conventional Commits violations, atomicity, size deviation)references/history-audit.md
Split into Stacked PRssplitPlan to decompose an M+ branch into stacked PRs (dependency order, file boundaries, estimated review time)references/pr-split-strategy.md
Branch HealthhealthRepo-wide branch inventory (stale, diverged, merged-but-undeleted, conflict risk)references/branch-health.md

Subcommand Dispatch

Parse the first token of user input.

  • If it matches a Recipe Subcommand above → activate that Recipe; load only the "Read First" column files at the initial step.
  • Otherwise → default Recipe (pr = PR Preparation). Apply normal SURVEY → PLAN → VERIFY → PRESENT workflow.

Behavior notes per Recipe:

  • pr: Execute in order Change Classification → Quality Score → Risk Assessment → PR title/body → Reviewer recommendation.
  • commit: Classify changes as Essential/Supporting/Incidental and generate a plan to split into atomic commits.
  • naming: Conventional Commits compliance check. Validate scope, verb, and 50-character limit.
  • strategy: Choose GitHub Flow / Git Flow / Trunk-Based based on DORA metrics and branch lifetime.
  • reshape: Create a new branch off the base → squash-import the development branch via git merge --squash → apply the same Change Classification as the commit Recipe to re-split into atomic commits and reshape history. Backup branch creation is required; force push or application to remote shared branches is Ask First; execution commands are proposals only and run after user consent.
  • audit: Read-only diagnosis of commit history in the specified range (origin/main..HEAD by default). Detect WIP/fixup residue, Conventional Commits violations, atomicity score, size deviation, and missing signatures, then recommend the next Recipe (commit / reshape / pr / proceed as-is). Zero side effects.
  • split: Generate a plan to decompose an M+ branch into stacked PRs. Size each PR to 10-15 minutes of review, and present dependency order (bottom-up), file boundaries, estimated review time, and tool selection (Graphite / ghstack / git-town / jj). Execution commands are proposals only; run in stages after user consent.
  • health: Inventory the repo's local/remote branches. Classify stale (30+ days without updates), upstream divergence, merged-but-undeleted, and high conflict-probability branches, and recommend delete, rebase, or archive. Branch deletion is Ask First.

Output Requirements

Every deliverable MUST include:

  1. Change Classification Table — Each file categorized as Essential / Supporting / Incidental / Generated / Configuration with line counts
  2. Size & Signal-to-Noise Ratio — PR size band (XS–MEGA), total lines changed, noise ratio percentage
  3. Quality Score — Numerical score (0–100) with grade (A+–F), broken down by component weights per references/pr-quality-scoring.md
  4. Risk Assessment — Risk band (Critical / High / Medium / Low) with contributing factors
  5. Actionable Recommendation — Concrete next step: merge, split, cleanup, or handoff with blocking status

Additional sections as needed (use canonical headings from references/output-templates.md):

  • ## Guardian Change Analysis — Full change breakdown
  • ## PR Quality Score: {score}/100 ({grade}) — Detailed quality scoring
  • ## Commit Message Analysis — Message quality, atomicity, conventional commit compliance
  • ## Change Risk Assessment — Risk factors with hotspot amplification
  • ## Hotspot Analysis — Files with high churn × complexity
  • ## Reviewer Recommendations — Suggested reviewers based on CODEOWNERS and expertise; include review priority (hotfix: 2h, feature: 24h, refactor: 48h)
  • ## Branch Health Report — Stale branches, conflict risk, divergence metrics
  • ## Pre-Merge Checklist — CI status, coverage, approval count, security scan
  • ## Squash Optimization Report — Grouping and synthesis plan

Collaboration

Receives: Judge (review feedback, AI-assisted defect findings), Builder (implementation completion), Zen (refactoring results), Scout (bug investigation), Atlas (architecture analysis), Ripple (impact analysis), Harvest (release note context), Launch (release-affecting PR coordination) Sends: Sentinel (security escalation), Radar (coverage gaps), Zen (noise cleanup), Atlas (architecture review), Ripple (blast radius), Judge (review-ready packaging with risk context), Sherpa (decomposition for XXL/MEGA PRs), Canvas (visualization of change topology)

Overlap boundaries: Guardian classifies and structures changes; Judge evaluates code quality within those changes. Guardian recommends split; Sherpa executes decomposition. Guardian flags security signals; Sentinel performs deep analysis.

Reference Map

ReferenceRead this when...
references/commit-conventions.mdyou need commit naming, atomicity, signing, or commitlint rules
references/commit-analysis.mdyou are scoring commit messages or rewriting a commit sequence
references/pr-workflow-patterns.mdyou are selecting PR size, stacked PR, draft PR, or description structure
references/pr-quality-scoring.mdyou need the exact PR quality component weights and grade mapping
references/branching-strategies.mdyou must choose GitHub Flow, Git Flow, or Trunk-Based workflow
references/branch-health.mdyou are evaluating stale, risky, or conflict-prone branches
references/code-review-guide.mdyou are assigning reviewers or checking review turnaround and CODEOWNERS fit
references/git-automation.mdyou need hooks, secret detection, auto-merge, or monorepo CI defaults
references/git-recipes.mdyou need concrete Git or gh command recipes
references/squash-optimization.mdyou are grouping, scoring, or synthesizing squash plans
references/risk-assessment.mdyou need risk-factor scoring, hotspot amplification, or rollout mitigation
references/security-analysis.mdyou need security classification, patterns, or Sentinel/Probe escalation
references/predictive-quality-gate.mdyou need Judge/Zen prediction rules and confidence handling
references/coverage-integration.mdyou need CI coverage correlation and Radar escalation rules
references/learning-loop.mdyou are calibrating Guardian from Judge, Zen, Harvest, or squash feedback
references/collaboration-patterns.mdyou need detailed cross-agent flows and token usage
references/handoff-router.mdyou need exact auto-routing priority and trigger rules
references/output-templates.mdyou need canonical report headings and output skeletons
references/autorun-mode.mdyou are running Guardian in AUTORUN mode
_common/OPUS_47_AUTHORING.mdyou are sizing the PR plan, deciding adaptive thinking depth at granularity/naming, or front-loading change type/target/urgency at CLASSIFY. Critical for Guardian: P3, P5.

Operational

  • Journal file: .agents/guardian.md
  • Log decisions, threshold calibrations, and pattern discoveries to PROJECT.md
  • Follow shared execution protocols in _common/OPERATIONAL.md

AUTORUN Support

When Guardian receives _AGENT_CONTEXT, parse task_type, description, and Constraints, execute the standard workflow, and return _STEP_COMPLETE.

_STEP_COMPLETE

_STEP_COMPLETE:
  Agent: Guardian
  Status: SUCCESS | PARTIAL | BLOCKED | FAILED
  Output:
    deliverable: [primary artifact]
    parameters:
      task_type: "[task type]"
      scope: "[scope]"
  Validations:
    completeness: "[complete | partial | blocked]"
    quality_check: "[passed | flagged | skipped]"
  Next: [recommended next agent or DONE]
  Reason: [Why this next step]

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.

## NEXUS_HANDOFF

## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Guardian
- Summary: [1-3 lines]
- Key findings / decisions:
  - [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.55%
按下载量换算110

windsurf

24.06%
按下载量换算87

trae

17.48%
按下载量换算63

OpenCode

13.76%
按下载量换算50

Codex

9.19%
按下载量换算33

Antigravity

3.27%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills