Logo van Night Market Build And Env

Night Market Build And Env

Community
athola
night-market-build-and-env

Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.

Add to TypingMind

Overzicht

Uitgeverathola
Repositoryclaude-night-market
Skillnaamnight-market-build-and-env
Sterren
343
Forks
37
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door athola op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Night Market Build And Env in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/athola/claude-night-market/tree/master/.claude/skills/night-market-build-and-env
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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-build-and-env .claude/skills/night-market-build-and-env
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Night Market Build And Env in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Night Market Build And Env automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Night Market Build And Env niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

night-market-build-and-env

Recreate a working claude-night-market development environment from a bare machine, verify it in under an hour, and avoid the traps that have broken it before. Everything below was verified against the repo on 2026-07-02 (v1.9.15).

One rule dominates: every Python tool runs through uv run. uv is Astral's Python package and environment manager. On first uv run it creates .venv/ and syncs it from uv.lock. Never install repo dependencies with bare pip.

Toolchain setup

Install in this order. "via uv" means the tool resolves from uv.lock automatically. There is no manual install step for those rows.

#ToolRequired?Install hintVerify command
1uvREQUIREDofficial installer at astral.sh/uvuv --version
2Python 3.12REQUIREDuv python install 3.12python3 --version
3make + bashREQUIREDGNU make 3.82+ (Xcode CLT ships 3.81, which ignores .SHELLFLAGS; brew install make, run gmake)make --version
4ruff >=0.14.13via uvnone (dev dependency in uv.lock)uv run ruff --version
5banditvia uvnone (pre-commit env is pinned separately, see traps)uv run bandit --version
6mypy >=1.13via uvnoneuv run mypy --version
7pre-commit >=4via uvuv run pre-commit installuv run pre-commit --version
8Python 3.9optionaluv python install 3.9uv venv --python 3.9 /tmp/py39-check
9node + npmoptionalneeded for conjure Gemini delegationnode --version
10Rust + cargooptionalrustup (only for make skrills-build)cargo --version
11skrills binaryoptionalmake skrills-build or make skrills-installmake skrills-verify
12mdbookoptionalcargo install mdbook; builds book/mdbook --version
13gh CLIoptionalcli.github.com (releases and Discussions)gh --version

Notes on the optional rows:

  • Python 3.9 is ONLY for local hook-compatibility testing. Hooks are scripts Claude Code runs on tool events under the host system Python (macOS ships 3.9.6), outside any virtual environment. CI enforces this in .github/workflows/python39-compat.yml.
  • The conjure plugin delegates to Gemini. The root package.json pins @google/gemini-cli at ^0.25.1. Run npm install at the repo root only if you use conjure delegation.
  • skrills is a Rust CLI that validates and analyzes skill files. Every Makefile target that uses it (make validate-skills, make analyze-skills) has a Python fallback, so you can skip Rust entirely.
  • gh is needed for releases and for GitHub Discussions. Discussions have no gh discussion subcommand. They are reachable only through gh api graphql.

Version numbers observed on the reference machine (2026-07-02): uv 0.8.22, Python 3.12.3, ruff 0.14.13, mypy 1.19.1, bandit 1.9.2, pre-commit 4.5.1. Newer versions of uv are fine. The ruff version must match uv.lock (see traps).

First-hour verification sequence

Run these in order after installing rows 1-3 above. Each step lists the output shape that means success.

Step 1: clone and check uv.

bash
git clone git@github.com:athola/claude-night-market.git
cd claude-night-market
uv --version

Expected: a single line like uv 0.8.22. Any 0.8+ version works. CI pins astral-sh/setup-uv@v8.2.0.

Step 2: validate all plugin structures (also proves the venv syncs).

bash
make validate-all

Expected: one block per plugin (26 directories) shaped like:

text
>>> Validating plugins/abstract:
Plugin Validation Report: abstract
...
OK Plugin validation passed

Blue "Recommendations" lines are advisory and fine. A red failure line or (validation failed) is not.

Step 3: run one fast plugin test suite.

bash
make -C plugins/leyline test

Expected: verbose pytest output ending with a coverage table and a summary like 710 passed, 6 warnings in 9.96s (counts and timing drift, but zero failures is the invariant). This proves uv run, pytest, and per-plugin coverage thresholds all work.

Step 4: install the git hooks.

bash
uv run pre-commit install

Expected: pre-commit installed at .git/hooks/pre-commit. From now on commits run the full hook chain (file validation, bandit, ruff, mypy, changed-plugin tests, structure validation). Never bypass it with --no-verify; CONSTITUTION.md forbids that.

If any step fails, load night-market-debugging-playbook.

Python version tiers

This is the number-one onboarding misconception. The README says "Python 3.9+ for hooks", and newcomers read that as "the repo runs on 3.9". It does not. There are three tiers:

TierVersionEnforced byWhy
Root tooling (pytest, ruff, mypy)3.12root pyproject.toml requires-python = ">=3.12", ruff target-version = "py312", mypy python_version = "3.12"dev toolchain runs inside the uv venv
Plugin packagesvaries, 3.9 to 3.12each plugins/<name>/pyproject.tomlplugins are independent deployables (ADR-0001)
Hook import chains3.9.github/workflows/python39-compat.ymlhooks run under the HOST system Python (macOS 3.9.6), outside any venv

Per-plugin requires-python as of 2026-07-02 (22 of 26 plugin dirs have a pyproject.toml):

  • 3.12: abstract, conjure (also <3.14), imbue, leyline, minister, sanctum, scry
  • 3.10: attune, conserve, hookify, memory-palace, parseltongue, pensive, scribe, spec-kit
  • 3.9: archetypes, egregore, gauntlet, herald, oracle, phantom, tome

Why the hook tier exists: Claude Code executes hook scripts with whatever interpreter the host provides, not the repo venv. A hook file AND everything it transitively imports must therefore stay 3.9-compatible, even inside a plugin whose package requires 3.12. CI enforces this with two gates in python39-compat.yml: gate 1 runs ruff check --select UP007 --target-version py39 on hook files (bare X | Y union annotations), gate 2 builds a real 3.9 venv with uv venv --python 3.9 and runs hook tests with --override-ini="addopts=".

Consequences you must respect in hook-reachable code:

  • Use timezone.utc, never datetime.UTC (a 3.11+ alias). The root ruff config extend-ignores UP017 specifically so autofix does not reintroduce the alias. This break recurred three times before the ignore plus an AST guard test held the line.
  • Guard third-party imports (yaml, anthropic) in hook entrypoints. The system interpreter has none of the repo's dependencies, and an unguarded import makes every git commit emit ModuleNotFoundError.

Known traps

TrapSymptomFix or guard
setup-uv@v8 bare tagCI fails: the bare v8 tag does not exist upstreampin exact tag astral-sh/setup-uv@v8.2.0 (commit f81d89a5). Guard: scripts/check_pinned_versions.py
bandit 1.9+ under system 3.9pre-commit bandit hook env fails to install.pre-commit-config.yaml pins rev: 1.8.6, the last release supporting 3.9 (commit 25bf5a9d). The project-venv bandit (1.9.x via uv run) is a different install and is fine
stale .uv-tools binary shadows ruffbare ruff reports an old version (0.7.3 observed) and disagrees with CIroot Makefile sets UV_TOOL_DIR ?= $(abspath .)/.uv-tools and prepends .uv-tools/ruff/bin to PATH. Always lint via make lint or uv run ruff, never bare ruff. Guard: scripts/check_ruff_version.py compares uv.lock to PyPI
root pytest silently skips pluginsuv run pytest at the root collects only tests/, never plugin testsroot pyproject.toml sets norecursedirs = ["plugins/*", ...] on purpose (root conftest.py documents ImportPathMismatchError). Run make -C plugins/<name> test or make <name>-test
imbue coverage artifactsevery pytest run in plugins/imbue writes htmlcov/, coverage.xmlimbue's pytest addopts force --cov=scripts with term, html, and xml reports. Artifacts are gitignored. Expect them and never commit them
make skrills-build failsError: skrills repo not found at $HOME/skrillsSKRILLS_REPO defaults to $(HOME)/skrills. Set SKRILLS_REPO=/path/to/skrills or skip: make validate-skills falls back to a Python checker when no skrills binary exists
plugins run from a cache dirplugin hook cannot find a file by relative pathinstalled plugins execute from the Claude Code cache dir, not the repo. Hooks must never use paths relative to the current working directory

When NOT to use

  • Daily test, lint, release, and publish commands: use night-market-operations. This skill only bootstraps the machine.
  • A previously working environment started failing: use night-market-debugging-playbook first to triage the symptom.
  • Configuration axes, env vars, and their defaults beyond setup (VOW_SHADOW_MODE, quality gates): use night-market-config-catalog.
  • Plugin, skill, and hook mechanics (how the pieces work rather than how to install the tools): use claude-code-plugin-reference.

Exit Criteria

  • uv --version prints a version at the repo root.
  • uv run ruff --version prints the uv.lock version (0.14.13 as of 2026-07-02), not the .uv-tools version.
  • make validate-all prints Plugin validation passed for every plugin and no (validation failed) lines.
  • make -C plugins/leyline test ends with N passed and zero failures, plus a coverage table.
  • uv run pre-commit install created .git/hooks/pre-commit.
  • The reader can state why hook code is 3.9-constrained while root tooling requires 3.12 (hooks run under the host system Python).

Provenance and maintenance

Compiled 2026-07-02 against repo v1.9.15 (branch discussions-fix-1.9.14). Observed tool versions and test counts in this file are snapshots and will drift. Re-verify with:

  • Root Python floor: rg -n "requires-python" pyproject.toml
  • Per-plugin floors: rg -n "requires-python" plugins/*/pyproject.toml
  • Locked ruff version: rg -n -A1 'name = "ruff"$' uv.lock
  • setup-uv pin: rg -n "setup-uv" .github/workflows/*.yml
  • bandit pin: rg -n -B2 "id: bandit" .pre-commit-config.yaml
  • Makefile defaults: rg -n "UV_TOOL_DIR|SKRILLS_REPO \?=" Makefile
  • Root pytest exclusion: rg -n "norecursedirs" pyproject.toml
  • imbue coverage addopts: rg -n -A8 "addopts" plugins/imbue/pyproject.toml
  • gemini-cli pin: rg -n "gemini-cli" package.json
  • Leyline test count drift: make -C plugins/leyline test

Veelgestelde vragen

Wat doet de AI-skill Night Market Build And Env?

Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.

Waarom Night Market Build And Env gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Night Market Build And Env bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Night Market Build And Env in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/athola/claude-night-market/tree/master/.claude/skills/night-market-build-and-env. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Night Market Build And Env gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Night Market Build And Env gebruiken?

Zoveel als je wilt. Je kunt Night Market Build And Env gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Night Market Build And Env gratis?

Ja. Deze skill is door athola op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇