two-pass-analysis

Separate metric collection from pass/fail decisions in quality analysis.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/dhruvinrsoni/agentskills-garden --skill two-pass-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: two-pass-analysis
Source: https://github.com/dhruvinrsoni/agentskills-garden/tree/main/skills/40-quality/two-pass-analysis
Command: npx skills add https://github.com/dhruvinrsoni/agentskills-garden --skill two-pass-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the common issue where quality analysis conflates measuring metrics with enforcing standards, leading to blocked builds and lost historical data.

Core Features & Use Cases

  • Decoupled Analysis: Separates metric collection (Pass 1) from pass/fail decisions (Pass 2).
  • Trend Analysis: Enables tracking metric trends over time without blocking development.
  • Configurable Thresholds: Allows thresholds to be defined and versioned separately from the analysis logic.
  • Use Case: In a CI pipeline, use Pass 1 to collect all linting violations without failing the build. Then, Pass 2 applies a threshold (e.g., max 10 errors) to gate the build, while historical data is saved for trend analysis.

Quick Start

Run the two-pass-analysis skill to collect metrics using eslint and then apply a threshold of 5 errors.

Frequently Asked Questions about two-pass-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I separate metric collection from build gating in CI/CD?

To separate metric collection from build gating in CI/CD, use a two-pass analysis pattern where Pass 1 collects quality metrics like linting violations without failing the build, and Pass 2 applies configurable thresholds to gate it.

Why does quality analysis conflate measuring metrics with enforcing standards?

Quality analysis often conflates measuring metrics with enforcing standards because traditional CI gating fails builds immediately upon detecting issues, which blocks development and prevents saving historical data for trend analysis.

What is the best way to track quality metric trends without blocking development?

The best way to track quality metric trends without blocking development is decoupled analysis: collect metrics in a first pass, then apply versioned thresholds in a second pass while saving historical data for trend insights.

Can I use configurable thresholds for security scanning and performance testing?

Yes, you can use configurable thresholds for security scanning and performance testing. Thresholds are defined and versioned separately from the analysis logic, allowing flexible gating across various quality checks in your pipeline.

Do I need historical data for trend analysis in quality assurance metrics?

Yes, you need historical data for trend analysis in quality assurance metrics. The two-pass analysis pattern requires historical data to provide trend insights and track how metrics like linting violations change over time.

How to apply a threshold of max errors to gate a build after collecting eslint metrics?

To apply a threshold to gate a build after collecting eslint metrics, run a two-pass analysis: Pass 1 collects all linting violations without failing, then Pass 2 applies a configurable threshold like max 5 errors to gate the build.