Logo: Night Market Change Control

Night Market Change Control

Communautéit
athola
night-market-change-control

Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.

Add to TypingMind

Iwwersiicht

Editeurathola
Repositoryclaude-night-market
Skill-Nummnight-market-change-control
Stären
343
Forks
37
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    athola huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Night Market Change Control an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/athola/claude-night-market/tree/master/.claude/skills/night-market-change-control
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/athola/claude-night-market.git /tmp/claude-night-market
mkdir -p .claude/skills
cp -r /tmp/claude-night-market/.claude/skills/night-market-change-control .claude/skills/night-market-change-control
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Night Market Change Control an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Night Market Change Control automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Night Market Change Control net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Night Market Change Control

Every change to this repo passes through a fixed law stack, a classification step, and a gauntlet of automated gates. This skill tells you which class your change is, which gates it must pass, and which rules are non-negotiable because a past incident made them so. Nothing here may be routed around: if a gate fails, fix the cause, never the gate.

Jargon used below: a "gate" is any automated check that can block a commit, PR, or release. An "ADR" is an Architecture Decision Record in docs/adr/. The "Iron Law" is constitution rule 3: no implementation without a failing test first.

The law stack

When two documents conflict, the higher one wins.

RankSourceContents
1CONSTITUTION.md10 immutable rules, override and amendment process
2.claude/rules/8 project rules (markdown style, read budgets, slop gates, invariants)
3docs/adr/17 numbered decision records (0001 to 0017)
4Guides in docs/quality-gates, testing-guide, plugin-development-guide

A skill, hook, or agent instruction that says "skip rule N" without an explicit user grant or a merged amendment is itself a defect (CONSTITUTION.md, Override mechanism section).

The ten constitution rules

One line each. Where a rule was written in blood, the incident column names the blood.

#RuleMotivating incident
1Disclose AI involvement in every PR; never strip real or add fake AI attributionEnforced by hook plugins/imbue/hooks/vow_no_ai_attribution.py
2AI commits over 200 changed lines need a spec, ADR, or plan doc first (lockfiles, fixtures, snapshots excluded)Size = scrutiny principle; see the unbloat incident under non-negotiables
3Iron Law TDD: failing test before implementation for plugin Python. Skills and prose need structural tests (test_skill_<name>.py)Design principle, no single incident
4One identity leak ("As a large language model") in any committed artifact is an automatic revertPattern catalog in scribe slop-detector
5Quality claims ("fast", "production-ready") need in-repo evidence or deletionDesign principle
6No bypassing gates: no --no-verify, no SKIP=hook, no unauthorized force push, no bare suppression comments without a stated reasonNeutered-mypy incident (CHANGELOG 1.9.12); bulk-ignore revert 06b9b1db
7New dependencies need justification; 18 months unmaintained is presumed abandoned; verify AI-suggested package names against the registrySlopsquatting defense; hook guard_package_hallucination.py (imbue)
8Docs cost reader-time (audience x frequency x per-read time); writing effort must matchDesign principle
9Prefer deletion over rewriting; AI slop is overwhelmingly additiveDesign principle
10Errors are not optional: propagate by default, no bare except, safe-to-discard needs an inline "why" commentSilent-failure sweep 666171c3; ecosystem bare-except campaign

Change classification

Classify before the first commit. The class decides the paperwork.

ChangeRequired process
AI-generated diff, 200 changed lines or fewerPlain PR through the standard gates
AI-generated diff over 200 changed linesSpec, ADR, or planning doc BEFORE the code (rule 2)
Load-bearing design decisionNumbered ADR in docs/adr/ (next number after 0017)
New project-wide ruleNew file in .claude/rules/ via plain PR; existing rules cite an origin issue or discussion (#454, #457)
Constitution amendmentPR titled constitution: amend rule N, a summary of what changes and why, sign-off from the repo owner
ReleaseVersion bump, changelog section, v-prefixed tag (lifecycle below)

The change lifecycle

1. Branch

Branch from master (the main branch) using <topic>-<version>:

bash
git checkout master && git pull
git checkout -b my-topic-1.9.16

Live examples in git branch -a: ai-slop-1.9.4, bugfixes-1.9.5, discussions-fix-1.9.14. Never delete backup/unbloat-* branches. They are the recovery points for past deletion campaigns (backup/unbloat-20260328 is how the 2026-03-28 over-deletion was undone).

2. Local gates before committing

bash
make lint          # ruff format + ruff check --fix + bandit
make typecheck     # per-plugin strict mypy (all plugins)
make test          # per-plugin pytest via scripts/run-plugin-tests.sh
make validate-all  # plugin structure validation

Plugin tests MUST run per plugin (make <plugin>-test or make -C plugins/<plugin> test). Root pytest excludes plugins/* to avoid import-path collisions.

3. The pre-commit gauntlet

git commit runs .pre-commit-config.yaml hooks in this order (verified 2026-07-02):

  1. Suppression guards: check-noqa (blocks bare inline lint suppressions), check-docstring-quality, check-json-utils-drift, check-per-file-ignores.
  2. Hook registration: check-hook-registrations, check-plugin-hooks.
  3. Code gates: run-plugin-typecheck --all (strict mypy on every plugin, not just changed ones), run-plugin-tests --changed.
  4. Skill and plugin validation: validate-skill-descriptions, one validate-<plugin>-plugin hook per plugin, check-context-optimization, validate-description-budget, check-markdown-links, capabilities-sync-check, check-skill-graph-drift, check-skill-exit-criteria-drift.
  5. Standard file hygiene (trailing whitespace, YAML/TOML/JSON syntax, merge conflicts, debug statements).
  6. bandit security scan.
  7. ruff-format, ruff-fix, ruff-check.
  8. Pin freshness: check-ruff-version, check-pinned-versions.

The typecheck gate runs --all deliberately. It used to run --changed, and a global mirrors-mypy hook silently disabled 13 error codes. Both were fixed in 1.9.12 (CHANGELOG). Do not weaken either setting.

4. PR flow

Run in this order (all are sanctum slash commands):

  1. /sanctum:prepare-pr updates docs, runs tests, drafts the PR.
  2. /sanctum:pr-review reviews scope, requirements, and code.
  3. /sanctum:validate-pr builds and executes a diff-derived test plan, and proves revert-tests are genuine guards.
  4. /sanctum:fix-pr and /sanctum:resolve-threads handle feedback.

For plugin-touching changes, add abstract:plugin-review at the matching tier:

TierWhenScopeTime
branchDefault during workAffected and related plugins~2 min
prBefore mergeAffected and related plugins~5 min
releaseBefore version bumpEvery plugin~15 min

5. Release

  1. Bump the ecosystem version. .claude-plugin/marketplace.json is the source of truth; the bumper fans it out to every plugin's plugin.json, metadata.json, openpackage.yml, pyproject.toml, and __init__.py:

    bash
    python3 plugins/sanctum/scripts/update_versions.py 1.9.16

    Or use the sanctum:version-updates skill, which runs a git-workspace-review preflight first.

  2. Move [Unreleased] entries in CHANGELOG.md into a dated version section (Keep a Changelog 1.1.0, SemVer). Never rewrite or de-slop historical entries.

  3. Update the docs of record: docs/api-overview.md version reference, plugin READMEs, and the generated capabilities reference via /sanctum:sync-capabilities.

  4. Run abstract:plugin-review --tier release.

  5. /sanctum:create-tag pushes a v-prefixed tag. The tag matching v* triggers .github/workflows/cross-framework-publish.yml (semver validation, cross-framework build, tarballs, GitHub release). Pushes to master separately trigger trust-attestation.yml (full test run plus SLSA attestation).

Landing a change: checklist

StepActionGate satisfied
ClassifyMatch the change against the classification tableRule 2, amendment process
Branch<topic>-<version> off masterConvention
Test firstFailing test before implementationRule 3 (Iron Law)
Local gatesmake lint && make typecheck && make testRule 6
CommitPlain commit, no bypass flags, honest attributionRules 1 and 6
PRprepare-pr, pr-review, validate-pr; disclose AI involvementRule 1
Plugin reviewabstract:plugin-review at branch or pr tierPlugin quality
MergeAll CI checks green, review threads resolvedCI

Non-negotiables

Each row is a settled battle. Re-litigating one requires new evidence stronger than the incident that settled it.

Non-negotiableRationaleIncidentEvidence
Never bypass or weaken a gateA green gate that skips checks is worse than no gate: it certifies broken codemirrors-mypy silently disabled 13 error codes; typecheck ran changed-only; bulk ruff ignores hid 73 real violationsCHANGELOG 1.9.12; commit 06b9b1db
No swallowed errors, evercatch-and-continue in a scanner drops findings silently and reports cleanScanners B1-B4 returned clean results on malformed input for monthscommit 666171c3 (PR #521, issue #575)
Deletion campaigns need a backup branch and a markdown-reference scanPython import graphs miss scripts referenced only from skills and commandsTier-3 unbloat deleted 182 files (66K lines); skill-referenced scripts had to be restoredcommits a3f11323 (delete), 3f280334 (restore); branch backup/unbloat-20260328
No DRY consolidation across plugin boundariesPlugins are independent deployables, and shared code couples their release cyclestasks_manager consolidated to a shared script, reverted, then differentiated per plugincommits 054e2679, 29961cd2, d89a55c7
No speculative infrastructureUnused abstraction is pure carrying costLSP proxy landed without a consumer and was reverted in PR #193 reviewcommit bc318947
Identity leaks are an automatic revertOne leaked phrase proves unreviewed AI text shippedConstitution rule 4CONSTITUTION.md
Historical CHANGELOG entries are never editedThe changelog is a record, not prose to polishCodified as an anti-goal in the slop rules.claude/rules/slop-scan-for-docs.md (anti-goals)

When NOT to use

  • A gate is failing and you need to diagnose why: use night-market-debugging-playbook.
  • You want the full story behind an incident named above: use night-market-failure-archaeology.
  • You need the mechanics of running tests, lint, or the release scripts (flags, artifacts, environments): use night-market-operations.
  • You are judging whether a design fits the architecture: use night-market-architecture-contract.
  • You are deciding what evidence a test must provide: use night-market-validation-and-qa.

Exit Criteria

  • The change is classified against the classification table, and any over-200-line AI diff has a spec, ADR, or plan doc committed before the implementation.
  • make lint, make typecheck, and make test pass locally, and no bypass flag (--no-verify, SKIP=, force push) appears in the branch history.
  • The branch name matches <topic>-<version> and is based on master.
  • The PR description discloses AI involvement (authored, co-authored, or reviewed).
  • For a release: marketplace.json, the dated CHANGELOG.md section, and the pushed v* tag all carry the same version.
  • Any constitution change is in a PR titled constitution: amend rule N with repo-owner sign-off.

Provenance and maintenance

Compiled 2026-07-02 against repo v1.9.15 (10 constitution rules, 8 project rules, 17 ADRs). Re-verify volatile facts before relying on them:

bash
rg -c '^### [0-9]' CONSTITUTION.md          # expect 10
ls .claude/rules/ | wc -l                    # expect 8
ls docs/adr/ | wc -l                         # expect 17
rg -n '"version"' .claude-plugin/marketplace.json | head -1
rg -n '      - id:' .pre-commit-config.yaml  # current gate order
rg -n 'v\*' .github/workflows/cross-framework-publish.yml
rg -n 'amend rule' CONSTITUTION.md           # amendment title convention

Commit hashes cited above were verified with git log --oneline -1 <hash> on 2026-07-02. Unverified/candidate: the exact count of files restored after the unbloat incident (commit subjects confirm the delete and restore, not the restored-file count), and whether docs/api-overview.md holds a version table or a single version reference (one version mention verified).

Heefeg gestallte Froen

Wat mécht de KI-Skill Night Market Change Control?

Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.

Firwat Night Market Change Control op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Night Market Change Control besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Night Market Change Control an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/athola/claude-night-market/tree/master/.claude/skills/night-market-change-control an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Night Market Change Control benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Night Market Change Control benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Night Market Change Control domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Night Market Change Control gratis?

Jo. athola huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇