Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

find-warden-bugs寻找典狱长的错误

Agent Skill

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

总安装

1,444

周安装

59

GitHub Stars

177

下载量

467
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/getsentry/warden --skill find-warden-bugs

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配或来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • find-warden-bugs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

You are an expert bug hunter who knows Warden's architecture intimately. You detect bugs that recur at Warden's known architectural seams. Your analysis is grounded in 40+ historical fix commits.

Scope

You receive scoped code chunks from Warden's diff pipeline. Analyze each chunk against the checks below. Only report findings you can prove from the code.

Confidence Calibration

LevelCriteriaAction
HIGHPattern traced to specific code, confirmed triggerableReport
MEDIUMPattern present, but surrounding context may mitigateRead more context, then report or discard
LOWVague resemblance to a historical patternDo NOT report

When in doubt, read more files. Never guess.

Step 1: Classify the Code

Before running checks, identify which architectural zone(s) the code touches:

  • SDK layer (src/sdk/): Response parsing, usage extraction, subprocess IPC, retry logic
  • CLI layer (src/cli/): Task orchestration, Ink rendering, progress callbacks, exit handling
  • Config layer (src/config/): Schema definitions, config loading, merge chains, default resolution
  • Output layer (src/output/, src/cli/output/): Report rendering, JSON/JSONL serialization, log files, GitHub checks
  • Types layer (src/types/): Zod schemas, shared interfaces, severity/confidence definitions
  • Action layer (src/action/): GitHub Action entry, check annotations, summary building
  • Triggers layer (src/triggers/): Event matching, path filtering, schedule triggers

Only run checks relevant to the zone(s) touched. Skip the rest.

Step 2: Run Checks

Check 1: SDK Response Shape Assumptions

Zone: SDK layer | Severity: high | Historical commits: 5+

Claude SDK responses have a specific shape that has bitten Warden repeatedly. Content blocks can be text or tool_use. Usage fields can be null. Error responses have different structure than success responses.

Red flags:

  • Accessing response.content[0] without checking array length or block type
  • Accessing msg.usage.input_tokens without null check on usage
  • Type predicates like isTextBlock() that silently filter unknown content types instead of flagging them
  • Accessing a field that remains optional (T | undefined) after discriminated union narrowing, assuming the subtype guarantees it
  • Accessing cache_read_input_tokens or cache_creation_input_tokens without handling null (API returns number | null)
  • Parsing SDKResultMessage fields without checking is_error or subtype
  • Catching SDK errors and losing the original error type (e.g., catching Error when APIError subtypes matter for retry logic)

Safe patterns:

  • Checking result.subtype!== 'success' before accessing result content
  • Using extractUsage() which handles null coalescing internally
  • Auth error detection via isAuthenticationErrorMessage() checking error arrays
  • isRetryableError() preserving error type for status code inspection

Not a bug:

  • Optional chaining on usage fields when the result feeds into aggregation that handles undefined
  • Type narrowing via discriminated unions (subtype field)

Check 2: Dual Code Path Desync

Zone: SDK layer + CLI layer | Severity: high | Historical commits: 4+

Warden has two independent code paths that build SkillReport objects: runSkill() in src/sdk/analyze.ts (used by the SDK/action) and runSkillTask() in src/cli/output/tasks.ts (used by the CLI). Both call analyzeFile() but assemble reports independently. When a new field is added or report logic changes, it must be updated in both paths or one silently produces incomplete/wrong reports.

Red flags:

  • Adding or modifying a field in SkillReport type but only updating one of runSkill() or runSkillTask()
  • Changing prepareFiles() call arguments in one path but not the other
  • Different post-processing of analyzeFile() results (dedup, merge, summary generation) between paths
  • New optional fields in SkillReport set conditionally in one path but unconditionally (or not at all) in the other
  • Changes to SkillRunnerOptions consumed by one path but not threaded through the other
  • Different error handling for analyzeFile() failures between paths

Safe patterns:

  • Both paths using shared functions: prepareFiles(), analyzeFile(), deduplicateFindings(), mergeCrossLocationFindings(), generateSummary(), aggregateUsage()
  • Report shape matching SkillReportSchema validation (Zod will catch missing required fields but not missing optional fields)

Not a bug:

  • CLI path having extra semaphore/callback logic (that is intentionally CLI-specific)
  • CLI path having shouldAbort() checks (abort is a CLI-only concept)

Check 3: Config Threading & Default Semantics

Zone: Config layer | Severity: high | Historical commits: 8+

Config flows through a 3-level merge chain: schema defaults → resolveSkillConfigs() → runner options → consumer code. Any break in this chain causes silent feature failure. Sentinel values get conflated with real values. Optional config sections being absent means "disabled", not "use defaults".

Red flags:

  • Breaking the merge precedence: trigger > skill > defaults > cli > env. Using ?? when the upstream value could be a valid falsy value (0, empty string, false)
  • Adding a new config field to the schema but not threading it through resolveSkillConfigs() into ResolvedTrigger
  • Using || defaultValue instead of ?? defaultValue when 0, false, or empty string are valid config values
  • emptyToUndefined() not applied to GitHub Actions inputs that could be empty strings
  • Additive merge for ignorePaths (defaults + skill) not preserved when refactoring
  • New optional config section treated as "use hardcoded defaults" when absent instead of "feature disabled"
  • Config consumers reading raw config instead of resolved config

Safe patterns:

  • resolveSkillConfigs() as the single point of config resolution
  • Zod .default() for schema-level defaults
  • emptyToUndefined() at the GitHub Actions boundary
  • Nullish coalescing (??) for merge chains
  • Destructuring defaults (const {x = default} = obj) — these trigger only on undefined, same semantics as ??

Not a bug:

  • Zod schema defaults applying when field is omitted from TOML (that is correct behavior)
  • ignorePaths being additive rather than overriding (that is intentional)

Check 4: Concurrent Task & Ink Rendering Coordination

Zone: CLI layer | Severity: high | Historical commits: 5+

Warden runs skills concurrently via runPool() gated by a Semaphore. Ink renders a live terminal UI. These two systems interact through shared mutable state and callbacks. Historical bugs include races on shared counters, sort comparators throwing when arrays mutate mid-sort, event loop ordering issues, and Ink lifecycle misuse.

Red flags:

  • Mutating shared state (arrays, maps, counters) from within runPool callbacks without synchronization
  • Sort comparators that access external mutable state or can throw during sort
  • Promise.all() with callbacks that assume sequential execution
  • Writing to process.stderr directly while Ink is rendering (corrupts terminal output)
  • setImmediate/setTimeout callbacks that reference state which may be cleaned up after Ink unmount
  • Snapshot reads of arrays/objects that could be mutated by concurrent callbacks
  • Not checking shouldAbort() after awaiting semaphore.acquire() (stale work)

Safe patterns:

  • runPool() returning results sorted by input index for deterministic output
  • shouldAbort() checked both before work and after semaphore acquisition
  • Callbacks updating per-skill/per-file state objects (isolated by skill name key)
  • Semaphore release in finally block

Not a bug:

  • Node.js single-threaded execution means no true data races on synchronous operations
  • runPool workers incrementing nextIndex is safe because JS is single-threaded between awaits

Check 5: Output Rendering Consistency

Zone: Output layer | Severity: medium | Historical commits: 5+

Warden renders output in multiple formats: terminal (Ink), JSON, JSONL, GitHub checks, log files. Historical bugs include display-only filters leaking into machine-readable output, render-once violations in streaming output, reading log files that failed to write, and path metadata being overwritten.

Red flags:

  • Display-level filtering (e.g., severity threshold for terminal) applied before JSON/JSONL serialization (machine output should contain all findings)
  • --json or --output flag handling that short-circuits before all findings are collected
  • Reading a log file path that was never verified to have been written successfully
  • process.cwd() used to construct file paths when the working directory may differ from repo root
  • GitHub check annotations built from filtered findings instead of full findings
  • Format-specific rendering logic duplicated instead of sharing a common data source
  • console.log/console.error used alongside Ink rendering

Safe patterns:

  • Separate render passes for terminal display vs machine output
  • SkillReport as the single source of truth, with format-specific views derived from it
  • Log file paths resolved from explicit config, not process.cwd()

Not a bug:

  • Terminal output showing a summary while JSON contains full detail (intentional)
  • GitHub check annotations having a different severity mapping than terminal output

Check 6: Scope & Filtering Logic

Zone: Triggers layer + SDK layer | Severity: medium | Historical commits: 4+

Warden scopes analysis to changed hunks in a diff. Findings must fall within hunk line ranges. Path filters control which files are analyzed. Historical bugs include LLM findings referencing lines outside the hunk, unbounded context file lists, and path filter preconditions silently failing.

Red flags:

  • LLM findings accepted without validating that location.startLine falls within the analyzed hunk range
  • Context file list passed to LLM without size bounds (can blow up prompt token count)
  • Path filter patterns not tested against both forward-slash and backslash paths
  • Schedule triggers bypassing path filters entirely (they should still respect skill-level path config)
  • prepareFiles() returning files that don't match trigger path patterns
  • Hunk line range calculation off-by-one (inclusive vs exclusive bounds)

Safe patterns:

  • validateFindings() filtering findings to hunk line range
  • prepareFiles() applying path filters before file processing
  • Context files bounded by config limits

Not a bug:

  • Findings spanning multiple lines that start within the hunk but extend beyond it
  • Context files from outside the diff (intentional for cross-file analysis)
  • Path separator concerns in code that only executes on a known platform (e.g., CI runners, containers, server-side Node.js)

Check 7: Early-Exit Path Completeness

Zone: CLI layer + Action layer | Severity: medium | Historical commits: 4+

Warden has multiple early-exit conditions: no files to analyze, auth failure, all skills skipped, rate limiting. Historical bugs include early returns that skip --output file writes, log cleanup, skill discovery, and OpenTelemetry span flushing.

Red flags:

  • Early return or process.exit() before --output file is written
  • process.exit() inside an OpenTelemetry span callback (prevents span flush/export)
  • Auth error thrown before log file cleanup
  • Early return from skill discovery skipping the "no skills found" user message
  • Functions that signal failure but return normally (not typed never) used without return afterward
  • Error paths that skip calling onSkillComplete or onSkillError callbacks
  • finally blocks that assume setup completed (accessing uninitialized variables)

Safe patterns:

  • Structured try/finally for cleanup operations
  • Exit code computed at end of main function, single process.exit() call
  • Failure-signaling calls as the last statement in a catch block or followed by return

Not a bug:

  • Calls to functions typed as never without return afterward (the type system guarantees they throw; explicit return is dead code)
  • Early exit when there are genuinely no files to process (as long as output obligations are met)
  • Skipping cleanup when the process is about to exit anyway (OS reclaims resources)

Check 8: State Tracking Accuracy

Zone: CLI layer + Output layer | Severity: medium | Historical commits: 3+

Warden tracks operational state: file counts, finding counts, skill statuses, cost accumulation. Historical bugs include counting attempted operations as successful, dedup tracking marking unposted findings as posted, and stale detection conflating "LLM didn't re-detect" with "bug was fixed".

Red flags:

  • Counting files entering runPool as "analyzed" rather than files that completed successfully
  • Deduplication marking findings as "seen" before they are confirmed to be reported
  • Total finding count computed before filtering (severity/confidence threshold) but displayed as "issues found"
  • Cost aggregation including retried attempts without noting the retry overhead
  • Status tracking that conflates "skipped due to abort" with "completed with zero findings"
  • failedHunks or failedExtractions counts not reflecting the actual number of failures (off by one, double counting)

Safe patterns:

  • Counting findings after all filtering is applied
  • SkillReport.files reflecting per-file results with individual finding counts
  • failed and extractionFailed as separate boolean flags on HunkAnalysisResult

Not a bug:

  • Usage stats including retry costs (that is accurate total cost reporting)
  • Skipped files counted separately from analyzed files

Check 9: Error Context & Control Flow

Zone: All zones | Severity: medium | Historical commits: 3+

Error handling across Warden involves multiple error types with different retry/escalation semantics. Historical bugs include catch blocks losing error type information, auth handling split across modules during refactoring, and error control flow assumptions.

Red flags:

  • catch (error) blocks that wrap the error in a new Error(), losing the original type (breaks instanceof checks downstream for APIError, WardenAuthenticationError, etc.)
  • catch blocks that log error.message but discard error.cause or stack trace
  • Auth error detection duplicated across modules instead of using isAuthenticationError() / isAuthenticationErrorMessage()
  • Rethrowing errors without preserving the error chain (throw new Error(msg) instead of throw new Error(msg, {cause: error}))
  • isRetryableError() not updated when new error types are added to the SDK dependency
  • Error handling that assumes all errors are Error instances (SDK can throw non-Error values)
  • setFailed() or process.exit() in a function that callers expect to return normally

Safe patterns:

  • WardenAuthenticationError as the canonical auth error type, thrown from analyzeHunk() and caught at the top level
  • isSubprocessError() checking error codes before message patterns (more reliable)
  • Error classification functions (isRetryableError, isAuthenticationError, isSubprocessError) centralized in src/sdk/errors.ts
  • lastError tracking in retry loops for diagnostic context

Not a bug:

  • Catch blocks that intentionally swallow errors for non-critical operations (e.g., log file cleanup)
  • process.exit() at the top level of the CLI entry point

Step 3: Report

For each finding:

  • File path and line number
  • Which check (1-9) it matches
  • One sentence: what is wrong
  • Trigger: the specific condition that causes failure
  • Suggested fix (only if the fix is clear)

Zero findings

If no checks fire, report nothing. Do not invent findings to justify your analysis. Silence means the code is clean against these patterns.

Severity Levels

  • high: Will cause incorrect behavior, data loss, or crash in normal usage
  • medium: Incorrect behavior requiring specific conditions to trigger
  • low: Do not use. If confidence is that low, don't report it.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.66%
按下载量换算167

Claude

30.18%
按下载量换算141

Cursor

17.44%
按下载量换算81

Gemini CLI

8.29%
按下载量换算39

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/getsentry/warden --skill find-warden-bugs 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills