cost-of-quality-analyzer

Cost of Quality analysis skill with prevention, appraisal, internal failure, and external failure cost tracking

509 stars

Best use case

cost-of-quality-analyzer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Cost of Quality analysis skill with prevention, appraisal, internal failure, and external failure cost tracking

Teams using cost-of-quality-analyzer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/cost-of-quality-analyzer/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/domains/business/operations/skills/cost-of-quality-analyzer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/cost-of-quality-analyzer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How cost-of-quality-analyzer Compares

Feature / Agentcost-of-quality-analyzerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Cost of Quality analysis skill with prevention, appraisal, internal failure, and external failure cost tracking

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Cost of Quality Analyzer

## Overview

The Cost of Quality Analyzer skill provides comprehensive capabilities for analyzing and tracking quality costs. It supports PAF (Prevention, Appraisal, Failure) model analysis, hidden factory cost identification, and quality investment ROI calculation.

## Capabilities

- Prevention cost identification
- Appraisal cost tracking
- Internal failure cost calculation
- External failure cost estimation
- COQ ratio analysis
- Hidden factory costs
- Quality investment ROI
- Improvement prioritization

## Used By Processes

- QMS-004: Cost of Quality Analysis
- QMS-002: TQM Program Development
- CI-001: Operational Excellence Program Design

## Tools and Libraries

- Cost accounting systems
- Quality cost databases
- Financial analysis tools
- Reporting dashboards

## Usage

```yaml
skill: cost-of-quality-analyzer
inputs:
  period: "2025-Q4"
  revenue: 10000000
  cost_data:
    prevention:
      - category: "Training"
        amount: 50000
      - category: "Quality planning"
        amount: 30000
      - category: "Process control"
        amount: 40000
    appraisal:
      - category: "Inspection"
        amount: 80000
      - category: "Testing"
        amount: 60000
      - category: "Audits"
        amount: 20000
    internal_failure:
      - category: "Scrap"
        amount: 100000
      - category: "Rework"
        amount: 75000
      - category: "Downtime"
        amount: 50000
    external_failure:
      - category: "Warranty"
        amount: 120000
      - category: "Returns"
        amount: 40000
      - category: "Complaints"
        amount: 25000
outputs:
  - coq_summary
  - coq_ratios
  - trend_analysis
  - pareto_analysis
  - improvement_opportunities
  - roi_projections
```

## Cost of Quality Categories

### Prevention Costs (Investing to prevent defects)
- Quality planning
- Training and education
- Process control
- Supplier evaluation
- Design reviews
- Preventive maintenance

### Appraisal Costs (Detecting defects)
- Incoming inspection
- In-process inspection
- Final inspection
- Testing and calibration
- Quality audits
- Supplier monitoring

### Internal Failure Costs (Defects found before shipping)
- Scrap
- Rework
- Re-inspection
- Downtime
- Failure analysis
- Yield losses

### External Failure Costs (Defects found by customers)
- Warranty claims
- Returns and replacements
- Complaint handling
- Product liability
- Recalls
- Lost sales/reputation

## COQ Benchmarks

| Metric | World Class | Average | Poor |
|--------|-------------|---------|------|
| COQ as % of Revenue | 2-4% | 10-15% | 20-25% |
| Prevention % of COQ | 20-30% | 10-15% | < 5% |
| Failure % of COQ | 30-40% | 60-70% | > 80% |

## Optimal COQ Model

```
Total COQ = Prevention + Appraisal + Failure

As Prevention increases:
- Appraisal stays relatively flat
- Failure costs decrease significantly
- Total COQ decreases until optimal point
```

## Hidden Factory Costs

Often unmeasured costs:
- Expediting
- Sorting
- Engineering changes
- Excess inventory
- Extended cycle times
- Customer service escalations

## Integration Points

- ERP financial modules
- Quality Management Systems
- Cost accounting systems
- Business intelligence tools

Related Skills

terraform-analyzer

509
from a5c-ai/babysitter

Specialized skill for analyzing Terraform configurations. Supports parsing, security scanning (tfsec, checkov), cost estimation (infracost), drift detection, and plan visualization across AWS, Azure, and GCP.

db-query-analyzer

509
from a5c-ai/babysitter

Analyze database query performance with execution plans and index recommendations

code-complexity-analyzer

509
from a5c-ai/babysitter

Analyze code complexity metrics including cyclomatic complexity, code smells, and technical debt

cloudformation-analyzer

509
from a5c-ai/babysitter

Validate and analyze AWS CloudFormation templates for security and best practices

semantic-code-analyzer

509
from a5c-ai/babysitter

LLM-powered semantic analysis of code diffs to detect business-logic trojans

sast-analyzer

509
from a5c-ai/babysitter

Static Application Security Testing orchestration and analysis. Execute Semgrep, Bandit, ESLint security plugins, CodeQL, and other SAST tools. Parse, prioritize, and deduplicate findings across multiple tools with remediation guidance.

crypto-analyzer

509
from a5c-ai/babysitter

Cryptographic implementation analysis and validation for encryption algorithms, key sizes, and certificate management

semver-analyzer

509
from a5c-ai/babysitter

Analyze code changes and determine semantic version bumps. Detect breaking changes automatically, suggest version bump (major/minor/patch), generate changelog entries, and validate version consistency.

api-diff-analyzer

509
from a5c-ai/babysitter

Compare API specifications to detect breaking changes. Compare OpenAPI spec versions, categorize changes by severity, generate migration guides, and block breaking changes in CI.

process-analyzer

509
from a5c-ai/babysitter

Analyze processes, identify workflows, define boundaries and scope, and map process requirements for specialization creation.

scope-logic-analyzer

509
from a5c-ai/babysitter

Test equipment integration for signal analysis (oscilloscope and logic analyzer)

protocol-analyzer

509
from a5c-ai/babysitter

Serial protocol analysis and debugging for common embedded interfaces (I2C, SPI, UART)