Six sigma challenge
Skill stempeck/agentfactory/.claude/skills/six-sigma-challenge
Multi-agent orchestration CLI for Claude Code — declarative TOML workflows, autonomous agents, context-compression recovery, inter-agent mail.
npx -y skills add stempeck/agentfactory --skill six-sigma-challengeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Challenges the quality of any completed review or assessment to determine what would achieve six-sigma (99.9999%) quality outcome. Works with scored reviews (X/10), qualitative reviews (PASS/FAIL), or unstructured assessments. Identifies gaps, independently discovers missed issues, stress-tests each proposed improvement for feasibility including logical impossibilities, and appends a "Six-Sigma Caveats" section. Use when a review is less than perfect, when the user asks "what would make this perfect," or after any quality gate completes.
SKILL.md
7.9 KB, as published. Nobody here has run it
Six-Sigma Challenge
Challenge any quality assessment to find the gap between current outcome and perfection.
Inputs
| Input | Required | Source |
|---|---|---|
| Review file | Yes | First argument, or todos/ultra-implement/blind_review.md |
| Target document | Yes | Second argument, or auto-detected (see below) |
Invocation: /six-sigma-challenge <review-file> <target-document>
Default: /six-sigma-challenge (uses ultra-implement defaults)
Auto-detection for target document (when no second argument):
- Read
todos/ultra-implement/investigation_report.mdand extract theProblem File:path - If that file exists, use it as the target document
- Fallback:
todos/ultra-implement/COMPLETION.md
This ensures the caveats append to the original problem file regardless of what /ultra-implement was invoked with.
Phase 1: Extract Quality Gaps
Read the review file. Identify every area where the outcome falls short of perfection.
For scored reviews (X/10 criteria): Record each criterion below 10/10, the deficit, and the reviewer's reasoning. Rank by deficit size.
For qualitative reviews (PASS/FAIL, APPROVED with notes): Extract every caveat, concern, minor finding, suggestion, and "PASS with notes" qualification. Each is a gap.
For unstructured assessments: Identify every hedging phrase ("mostly," "generally," "with the exception of"), every risk noted, every follow-up suggested. Each is a gap.
Phase 2: Analyze Each Gap
For each gap, determine:
| Field | Description |
|---|---|
| Current state | What was delivered (quote the review) |
| Ideal state | What perfection would concretely look like |
| Gap type | See table below |
Gap types (use the most specific that fits):
| Type | Applies to | Example |
|---|---|---|
| Fundamental constraint | Any domain | Logical impossibility prevents improvement |
| Implementation gap | Code, systems | Something could be built but wasn't |
| Test/verification gap | Code, processes | Verification is structural when it should be behavioral |
| Operational gap | Deployments, processes | Runtime/environment concern not addressed |
| Environmental gap | Infrastructure | External factor outside fix scope |
| Design gap | UI, architecture | Design decision leaves a weakness |
| Coverage gap | Docs, tests, reviews | Something is partially addressed |
Phase 3: Independent Gap Discovery
Do NOT rely solely on what the reviewer flagged. Investigate independently.
For code/system fixes, ask:
- Escape paths: Can the failure still occur through a path the fix doesn't cover?
- Test type mismatch: Are tests structural (file contains X) when behavioral (system does X) is needed?
- Sibling vulnerabilities: Does the same bug class exist in related code that wasn't fixed?
- Version/config drift: Are there hardcoded values that could silently drift?
- Scope gaps: Were any clauses in the original spec not implemented?
For any domain, ask:
- Unstated assumptions: What does the fix assume that could be wrong?
- Failure mode coverage: What failure modes exist beyond the one that was fixed?
- Dependency fragility: Does the fix depend on something that could change?
- Observability: If the fix silently fails, would anyone know?
Read the actual implementation (code, config, infrastructure) to understand enforcement boundaries. Do not reason purely from the review document — the review may have missed things or mischaracterized enforcement strength.
Phase 4: Feasibility Challenge
For EACH proposed "10/10 ideal," actively try to disprove it using this procedure:
Step 4.1: Describe the ideal concretely
Write out what the improvement would look like as a concrete implementation. What changes? What's the mechanism? What are the steps?
Step 4.2: Walk through the implementation step by step
For each step in the proposed implementation, ask:
- Does this step require something that doesn't exist yet?
- Does this step require the output of a later step?
- Does this step require the thing it's supposed to gate/prevent/validate?
If YES to any: logical impossibility detected. Common patterns:
- Chicken-and-egg: X requires Y, but Y requires X (e.g., validating a demo requires the demo to exist, so you can't gate demo existence on validation)
- Infinite regress: The solution requires its own output as input
- Observer effect: Measuring/gating the thing changes the thing
Step 4.3: Check architectural ceilings
- Can an LLM agent bypass this by simply not following the workflow?
- Can advisory text be ignored?
- Does runtime validation require the artifact to exist first?
- Is there an enforcement ceiling? (instruction can never reach interlock)
Step 4.4: Check diminishing returns
Does the improvement cost dramatically more than the residual risk it addresses?
Step 4.5: Classify
- Feasible: Implementable with reasonable effort
- Partially feasible: Achievable with caveats or architectural changes
- Infeasible: Logically impossible or fundamentally constrained (document the specific constraint)
Phase 5: Present to User
Present the full analysis conversationally BEFORE appending. Structure as:
- Table of where the outcome falls short
- Each gap with current state, ideal state, and feasibility verdict
- Summary table: gap / impact / feasibility / priority
- The philosophical pattern if one emerges (e.g., "workflow enforcement vs system enforcement")
Ask: "Does this analysis match your understanding? Any constraints or insights to add before I append?"
The user often has domain knowledge that catches logical impossibilities the analysis missed. This step is a critical safety net for Phase 4.
Phase 6: Append to Target Document
After user confirmation (incorporating any user insights), append:
---
# Six-Sigma Caveats
The implemented fix achieved [score/status]. The following analysis documents what
would be required for a theoretical 10/10 (six-sigma, 99.9999% quality outcome)
and why some improvements are fundamentally constrained.
## Gap N: [Title]
[What the current state is vs what perfection requires]
### Feasibility: [Feasible | Partially Feasible | Infeasible]
[For infeasible: the specific logical constraint. For feasible: what implementation
would look like.]
## Summary
| Gap | Impact | Feasibility | Priority |
|-----|--------|-------------|----------|
| ... | ... | ... | ... |
[Closing paragraph: the practical ceiling for this class of problem and what
residual risk must be accepted.]
Anti-Patterns
- Accepting the reviewer's frame uncritically — Challenge both directions: the reviewer may have missed gaps OR proposed infeasible ideals.
- Proposing improvements without walking through implementation — Phase 4 requires concrete step-by-step description, not just category labels.
- Reasoning only from the review document — Read the actual code/system to understand enforcement boundaries. Reviews can mischaracterize strength.
- Ignoring the practical ceiling — Some gaps are fundamental constraints. Name them explicitly rather than proposing impossible improvements.
- Skipping user presentation — The user often has domain insights that catch what automated analysis misses. Always present before appending.