AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

Night Market Architecture Contract

A citation-backed record of claude-night-market's load-bearing design decisions, enforced invariants, and accepted weak points, used when judging a proposed design change.

Dev & CodingAdvanced★ 356⑂ 43AI score 8/10Last updated: Nov 24, 2026

What it does

  • Documents six load-bearing decisions for the 23-plugin claude-night-market repo: plugins are self-contained deployables, hooks run under host Python 3.9 from a cache directory, one ecosystem version fans out to every manifest, skill-discovery budget is finite, collective memory lives in GitHub Discussions, and every skill has one of three roles.
  • Provides an invariants table mapping each rule to the CI workflow, test, or script that enforces it and to the exact failure mode if it is weakened.
  • States known weak points openly (silent skill-discovery overflow, unpinned mdbook, reliance on undocumented Stop-hook reinjection, per-plugin mypy, overwritten planning docs).
  • Every claim cites an ADR, commit hash, or checked-in file, plus git log / rg commands to re-verify volatile facts.
  • Ends with an Exit Criteria checklist so the model knows when it has actually absorbed the contract.

Who it's for

  • Contributors to claude-night-market who are adding a plugin, hook, or skill, or bumping a version.
  • Architects of plugin-style monorepos weighing "should we extract shared code?" decisions.
  • Anyone studying how to write evidence-backed architecture docs that an AI agent can act on.

Examples

  1. Rejecting a DRY refactor: a contributor proposes merging duplicated tasks_manager.py across three plugins; the skill cites ADR-0001 and the 054e2679 → revert 29961cd2 → d89a55c7 history to explain why duplication is the approved state.
  2. Pre-flight for a new hook: check that payloads are read from stdin, no relative paths are used, imports are deferred, and the subprocess timeout sits below the hooks.json budget.
  3. Version bump: run uv run python plugins/sanctum/scripts/update_versions.py <version> instead of hand-editing marketplace.json, plugin.json, metadata.json, and openpackage.yml.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/athola/claude-night-market/HEAD/.claude/skills/night-market-architecture-contract/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI Skill Mart.
Copy the .claude/skills/night-market-architecture-contract folder from the GitHub repo athola/claude-night-market into my ~/.claude/skills/night-market-architecture-contract/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/athola/claude-night-market.git && mkdir -p ~/.claude/skills && cp -r claude-night-market/.claude/skills/night-market-architecture-contract ~/.claude/skills/

⚠ This is a third-party skill. Check the source repository before installing.

  1. Install Claude Code and open a terminal.
  2. Clone the repository: git clone https://github.com/athola/claude-night-market.git
  3. Create the skills directory if needed: mkdir -p ~/.claude/skills
  4. Copy the skill folder: cp -r claude-night-market/.claude/skills/night-market-architecture-contract ~/.claude/skills/
  5. Verify: ls ~/.claude/skills/night-market-architecture-contract/SKILL.md
  6. Restart Claude Code and ask something like: "Per the architecture contract, does this change cross a plugin boundary?"
  7. Note: the skill references in-repo ADRs, scripts, and workflows, so it is most useful when you are working inside the claude-night-market checkout. Dated facts (v1.9.15, ADR counts) should be re-verified with the commands in the Provenance section.