quality

quality is a skill for Claude Code from orwa-mahmoud/nightshift. It costs 0 tokens per session (2,490 once invoked), scanned A, original, MIT.

A project-quality workflow that finds applicable problems in tests, code, accessibility, contracts, documentation, dependencies, and security.

In plain words
What is it for?
Use it to identify and work through quality debt—the accumulated issues and maintenance tasks that make a project less reliable.
Why use it?
It helps turn scattered quality problems into selected work that can be reviewed or run directly.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the nightshift plugin — 13 skills, 4 hooks shipped together

Good fit Use it to identify and work through quality debt—the accumulated issues and maintenance tasks that make a project less reliable.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add orwa-mahmoud/nightshift
Claude Code
/plugin install nightshift

Made for: Claude Code.

Or install nightshift, the plugin that ships this one along with the rest of its 13 skills, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/orwa-mahmoud/nightshift/quality.svg)](https://agentmods.dev/skills/orwa-mahmoud/nightshift/quality)
Your own site
<a href="https://agentmods.dev/skills/orwa-mahmoud/nightshift/quality"><img src="https://agentmods.dev/badge/skills/orwa-mahmoud/nightshift/quality.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,490 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02490
Opus 5 $0.00000 $0.01245
Sonnet 5 $0.00000 $0.00498
Haiku 4.5 $0.00000 $0.00249

Measured today against content hash d1c78b243990, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

quality scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/nightshift/skills/quality/SKILL.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quality is the broad entry point for this project's quality work. It uses the same selection and launch modes as Hunt.

Resolve the installed plugin root to an absolute $NIGHTSHIFT_PLUGIN_ROOT${CLAUDE_PLUGIN_ROOT} on Claude Code, $PLUGIN_ROOT on Codex when set, otherwise the absolute path this skill was attached from (skills/quality/SKILL.md). Run every command below through "$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" — native Windows: & "$NIGHTSHIFT_PLUGIN_ROOT\runtime\windows\ns.ps1" in the PowerShell tool, same verbs — which resolves the host and the workspace; ns help lists the verbs, and ns bind prints the six resolved facts (TASK_ROOT, NIGHTSHIFT_WORKSPACE, NS, NIGHTSHIFT_PLUGIN_ROOT, HOST, SOURCE); $NS below is that NS. Never a bare relative path: the working directory persists between calls.

Before scanning, read $NIGHTSHIFT_PLUGIN_ROOT/skills/nightshift/references/compose/execution-modes.md — the state map, who selects work, when the clock starts, the tooling policy, and how several entries become one shift — and every applicable entry under $NIGHTSHIFT_PLUGIN_ROOT/skills/nightshift/references/compose/shifts/.

Quality includes: lint, types, tests, flaky tests, coverage, dead code, TODO/FIXME debt, accessibility, localization, API contract drift, documentation drift, CI warnings, direct dependencies, and vulnerability advisories. clear-quality-debt.md remains the generic finite core-tooling entry; specialized entries retain their own safety rules and definitions of done. GitHub issue hunts are catalogued under Hunt and start from imported drafts. Quality does not import, search, or work GitHub issues.

0. Read the sentence first

The owner's sentence is binding intent. There is no keyword list.

If the owner already stated feature, product, UI, or design work — even when they invoked Quality — continue as Hunt / Product Evolution. Do not show Quality catalog cards. Do not ask Guided-or-Automatic. Read $NIGHTSHIFT_PLUGIN_ROOT/skills/hunt/SKILL.md and follow it from its section 0.

If the owner asked for quality work (lint, tests, coverage, debt, accessibility, contracts, documentation drift, dependencies, advisories), stay in this skill.

A time budget, an actionable quality objective, and clear direct-execution intent are sufficient to run Automatic directly. Do not offer catalog cards. Do not ask who selects, when to start, or "same as last time."

  • If only a critical field is missing → Ask only a field that is still missing, then continue.
  • If the owner asked to pick from the menu, or named Guided → section 1.

The model runs the project's own tools — the ## Gates block and each selected entry's report-only commands — and ranks the results in prose. Unparsed tool output is unavailable, never "no findings" or passed.

Read the full file on GitHub · 183 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -12 lines · -39 tokens per session d1c78b243990
  2. yesterday Changed · +52 lines 34e4201cbc6f
  3. 8d ago First seen · 143 lines · 39 tokens per session scan A 3944f73843b9

Subscribe to this mod's changes

quality is a skill published in the GitHub repository orwa-mahmoud/nightshift (56 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,490 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.