agentleFS
roronoazoroshao369roronoazoroshao369/vibe-coding-os/skills/core/quality-engine/SKILL.md

quality-engine

Skill1 starsChanged 5 months agoMITView on GitHub

Run a configurable quality engine that executes relevant quality gates on a task or repository and returns structured results, actionable recommendations, and a human-readable report. Use after implementation, before a PR or merge, during periodic quality audits, or when onboarding or reassessing a repository. Choose this skill when you need a coordinated pass across multiple quality gates instead of running individual checks manually. Use these Core Web Vitals targets and the MEASURE → IDENTIFY → FIX → VERIFY → GUARD…

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a configurable quality engine that executes relevant quality gates on a task or repository and returns structured results, actionable …

    line 17
  2. Distinctive:

    Use after implementation, before a PR or merge, during periodic quality audits, or when onboarding or reassessing a repository.

    line 21
  3. Distinctive:

    Use these Core Web Vitals targets and the MEASURE → IDENTIFY → FIX → VERIFY → GUARD loop when the quality engine is evaluating user-facing …

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: Quality Engine

Purpose

Run a configurable quality engine that executes relevant quality gates on a task or repository and returns structured results, actionable recommendations, and a human-readable report.

When to use

Use after implementation, before a PR or merge, during periodic quality audits, or when onboarding or reassessing a repository. Choose this skill when you need a coordinated pass across multiple quality gates instead of running individual checks manually.

Inputs

  • Task description and scope (what changed, what is affected)
  • Model profile selection (lean, standard, or heavy)
  • Repository path or working context
  • Optional config path for project-specific settings
  • Optional gate selection to force or exclude certain checks

Workflow

  1. Load configuration from the project config path if available, otherwise use the default quality engine defaults.
  2. Determine the model profile and translate it into execution constraints, depth, and evidence expectations.
  3. Select relevant gates based on task type, changed areas, and the chosen profile.
  4. Execute the quality engine with the selected gates in a predictable order.
  5. Capture pass, warn, and fail results with supporting evidence or remediation pointers.
  6. Review failures and warnings, then group them into root causes and actionable fixes.
  7. Generate a structured result set plus a markdown report with timing, summary, and recommendations.

Outputs

  • Structured results object with gate names, statuses, messages, and timing
  • Markdown report summarizing findings, risk, and recommended next steps
  • Ranked fix recommendations grouped by severity and confidence

Failure modes

  • Running a heavy profile on trivial work and wasting review bandwidth.
  • Running a lean profile on high-risk changes and missing important signals.
  • Skipping config and losing project-specific thresholds or exclusion rules.
  • Mixing evidence from unrelated tasks or files.
  • Treating warnings as blockers without reviewing confidence and impact.

Verification checklist

  • validate:all exits 0 (config + gates loaded; --json shape matches schemas/).
  • Selected profile (lean|standard|heavy) is recorded in the report header.
  • Every failing gate cites a file path, command, or captured output (not just "X failed").
  • Recommendation count == failing-gate count; no orphan recommendations.
  • Report file size > 1 KB and < 200 KB (sanity bounds; flags empty or runaway reports).
  • Report distinguishes FAIL from WARN in the summary table.

Performance budgets (frontend & API)

Use these Core Web Vitals targets and the MEASURE → IDENTIFY → FIX → VERIFY → GUARD loop when the quality engine is evaluating user-facing or latency-sensitive changes.

Core Web Vitals target table

MetricGoodNeeds improvementPoorVibe target (p75)
LCP (Largest Contentful Paint)≤ 2.5s2.5s – 4.0s> 4.0s≤ 2.0s
INP (Interaction to Next Paint)≤ 200ms200ms – 500ms> 500ms≤ 150ms
CLS (Cumulative Layout Shift)≤ 0.10.1 – 0.25> 0.25≤ 0.05
TTFB (Time to First Byte)≤ 800ms800ms – 1800ms> 1800ms≤ 500ms
API p99 (for latency-sensitive endpoints)≤ 300ms300ms – 1000ms> 1000ms≤ 200ms

MEASURE → IDENTIFY → FIX → VERIFY → GUARD loop

For any user-facing or latency-sensitive change:

  1. MEASURE — capture the baseline metric at p75 (LCP, INP, CLS, TTFB, or p99 for APIs). Use the project's existing observability signal or a synthetic test.
  2. IDENTIFY — if the metric exceeds the "Good" threshold, identify the dominant contributor (long task, render-blocking resource, layout shift source, DB query plan, N+1). Cite the source.
  3. FIX — make the smallest change that moves the metric into the "Good" range. Prefer fixes that benefit the worst decile, not just the median.
  4. VERIFY — re-measure at p75. Confirm the metric moved into "Good". If not, iterate from step 2.
  5. GUARD — wire a quality gate that fails the merge if the metric regresses beyond the "Good" threshold. Document the gate in the project's quality config.

Failure modes (performance)

  • Optimizing median while worst decile is unchanged (tail latency ignored).
  • "Looks fast on my machine" — local measurements are not p75.
  • Optimizing for synthetic Lighthouse while users hit real-world network throttling.
  • Adding a guard gate without a stable measurement source (noisy alerts).

Related skills

  • skills/core/quality-execution-contract/SKILL.md
  • skills/core/adversarial-code-review/SKILL.md
  • skills/core/adaptive-prompt-selection/SKILL.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.