شعار Night Market Docs And Writing

Night Market Docs And Writing

المجتمع
athola
night-market-docs-and-writing

Maintain docs of record, ADRs, changelog, and house style. Use when writing repo docs. Do not use for release steps; use night-market-operations instead.

Add to TypingMind

نظرة عامة

الناشرathola
المستودعclaude-night-market
اسم المهارةnight-market-docs-and-writing
النجوم
343
التفريعات
37
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها athola على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Night Market Docs And Writing في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/athola/claude-night-market/tree/master/.claude/skills/night-market-docs-and-writing
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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-docs-and-writing .claude/skills/night-market-docs-and-writing
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Night Market Docs And Writing في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Night Market Docs And Writing تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Night Market Docs And Writing بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Night Market Docs and Writing

This skill maps every document of record in claude-night-market, states which are hand-authored and which are generated, and gives the house prose style with the commands that enforce it. "Docs of record" means the files other contributors treat as canonical truth. Editing the wrong file (or a generated one) creates drift that CI then flags.

Docs-of-record map

FileCanonical forAuthored or generatedUpdate trigger
CONSTITUTION.mdSupreme law: 10 non-negotiable rulesHand-authoredAmendment PR titled constitution: amend rule N plus repo-owner sign-off
STEWARDSHIP.mdValues and virtues behind the rulesHand-authoredRarely; value-level shifts only
.claude/rules/ (8 files)Repo-wide behavioral rules loaded into every sessionHand-authoredA research finding or audit graduates into policy
docs/adr/ (0001-0017)Load-bearing decisions with status and supersessionHand-authoredNew architectural decision; supersede, never rewrite
docs/quality-gates.mdThree-layer gate system and skill gate compositionHand-authoredGate or threshold changes
docs/testing-guide.mdTest discipline and coverage practiceHand-authoredTesting policy changes
docs/plugin-development-guide.mdPlugin authoring, release checklist, Python tiersHand-authoredPlugin conventions change
docs/skill-description-guide.mdThe 160-char description contractHand-authoredDescription policy changes
docs/skill-integration-guide.mdSkill role taxonomy (entrypoint, library, hook-target)Hand-authoredSkill graph restructuring
docs/backlog/queue.md, docs/backlog/technical-debt.mdWork intake and debt registry. LOCAL ONLY, not a doc of record: docs/backlog/ is gitignored with zero tracked files, so these exist only on the authoring machine. The durable record of a deferred item is a GitHub issueHand-authored, gitignoredNew backlog item or debt entry
docs/research/Dated research syntheses feeding the rules pipeline. LOCAL ONLY, not a doc of record: gitignored, absent on fresh clones. Background material; put load-bearing citations into the rule or ADR itself (see night-market-research-methodology)Hand-authored, gitignoredNew research pass completes
CHANGELOG.mdRelease history, Keep a Changelog 1.1.0Hand-authoredEvery release and notable change
docs/api-overview.mdPlugin version table and CLI entry pointsHand-authoredEvery release (version table row per plugin)
book/src/Published mdBook (GitHub Pages)Mixed: see belowContent changes; deploys on push to book/**
book/src/reference/capabilities-*.mdSkill/command/agent/hook lookup tablesGENERATED via syncNever hand-edit; run /sanctum:sync-capabilities --fix
.claude-plugin/marketplace.jsonEcosystem version source of truthHand-authored (bumped by script)Release version bump
docs/tradeoffs.md, docs/lessons-learned.mdDecision journal (TR-NNN / LL-NNN entries)Hand-authored, append-onlyRecording a tradeoff or lesson (contract: leyline:decision-journal)
GitHub DiscussionsCollective memory ([Learning], [PR Finding], [War Room])Mixed (hooks post automatically)See night-market-collective-memory

Notes on the map:

  • mdBook is the mdbook static-site generator. The book builds from book/book.toml (src = "src", create-missing = false) and its table of contents is book/src/SUMMARY.md (Getting Started, then Plugins grouped by layer, then Reference).
  • The decision journal files do not exist in the working tree as of 2026-07-02. The leyline:decision-journal contract creates them on first append. Do not scaffold them empty.
  • docs/dependency-audit.md and other dated reports are point-in-time artifacts, not living docs of record.

Per-feature artifacts: overwritten each cycle

docs/project-brief.md, docs/specification.md, and docs/implementation-plan.md are per-feature working documents. Each feature cycle OVERWRITES them (current occupant as of 2026-07-02: the insight-palace bridge, spec v0.1.0 Draft). Never treat their content as permanent record. If a decision inside them must outlive the feature, promote it to an ADR or a decision journal entry before the next cycle.

House prose style

Full rules live in .claude/rules/markdown-formatting.md and .claude/rules/slop-scan-for-docs.md, with the detection catalog in Skill(scribe:slop-detector) modules. The load-bearing subset:

  • Wrap prose at 80 characters. Break at sentence boundaries first, then clauses, then before conjunctions. Never wrap tables, code blocks, headings, frontmatter, or URLs.
  • ATX headings only (# Title). Blank line before AND after every heading and every list.
  • Reference-style links when an inline link pushes a line past 80 characters.
  • Em-dash target is zero in new prose (0-2 absolute max per file). Use colons, periods, or parentheses. Never use a spaced double dash as punctuation (a repo hook flags it).
  • American spelling. No semicolon splices. No smart quotes outside code blocks.

The three slop layers

"Slop" is the repo term for machine-generated prose patterns that waste reader time or ship falsehoods. Every new or edited markdown file passes three layers before it is done:

  1. P0 critical (any hit fails outright): identity leaks ("As a large language model"), hallucinated identifiers, paths, packages, or URLs, and bare TODO/FIXME stubs without a tracked issue. Constitution rule 4 makes an identity leak an automatic revert.
  2. Document economy (scored 0-8, ship at 7+): thesis stated first, every sentence carries weight, thesis echoed rather than filler repeated, and one audience tier declared and served. Rubric: scribe:slop-detector module document-economy.md; tier table and extraction protocol: module audience-targeting.md.
  3. Sentence-level tiers: banned vocabulary, negative parallelism, throat-clearing openers, participial tails, and the 2026 pattern set. Catalog: scribe:slop-detector module vocabulary-patterns.md and the rule file's tier lists.

Slop-check CI

.github/workflows/slop-check.yml runs on any PR touching a .md file. It scans only files under docs/ and book/src/ and scores each file:

text
score = (tier1_hits * 3 + tier2_hits * 2 + em_dashes) / words * 100

Any file scoring above 3.0 fails the job and gets a PR comment. The workflow no longer holds its own word lists. It calls scripts/slop_score.py, which reads plugins/scribe/data/languages/en.yaml, so a category added there reaches CI with no workflow edit.

Three modes, one script. Gate mode answers whether this merges. Ratchet mode answers whether a changed file got worse than its committed version, which is what the pre-commit hook asks of staged markdown and what CI asks of a PR's markdown against the merge base. Audit mode answers where the slop is, which is the question you have while fixing it:

bash
uv run --with pyyaml python scripts/slop_score.py --audit <files>
uv run --with pyyaml python scripts/slop_score.py --threshold 3.0 docs book/src
uv run --with pyyaml python scripts/slop_score.py --ratchet HEAD <changed files>

Audit takes files or directories, prints a file and a line per finding, and exits 0. It also runs the categories the gate declines to score: semicolon splices, negative definition, over-explained fixes, contrastive scaffolds, and the per-document negation-density reading. Those are labeled (low) or (medium). A person judges them. Nothing auto-rewrites them.

Files outside docs/ and book/src/ (plugin skills, READMEs) skip this CI job but still fall under the rule file and review.

Reader-time budget (constitution rule 8)

Every doc is paid for in cumulative reader-time: audience size times read frequency times per-read time. Estimate that product BEFORE drafting and match your writing time to it. A skill loaded hundreds of times a day earns hours of polish. A one-off report earns minutes. If the budget is near zero, do not write the doc. Full framework: scribe:slop-detector module document-economy.md.

ADR conventions

An ADR (Architecture Decision Record) captures a decision that is expensive to reverse. They live in docs/adr/ as NNNN-kebab-slug.md with zero-padded sequential numbers (0001-0017 as of 2026-07-02).

Header template (verified against ADR-0001 and ADR-0017):

markdown
# ADR-NNNN: Title

**Date**: YYYY-MM-DD
**Status**: Accepted
**Deciders**: Claude Night Market maintainers
**Source**: Issue #NNN, Discussion #NNN
**Supersedes**: ADR-NNNN

## Context

## Decision

## Consequences

Rules:

  • Status values in use: Accepted, Superseded by ADR-NNNN. Never delete or rewrite a superseded ADR. Example chain: ADR-0012 and ADR-0013 both carry "Superseded by ADR-0017", and 0017 lists "Supersedes: ADR-0012, ADR-0013" in its header.
  • An ADR may supersede itself in place for a scoped correction (ADR-0008 swapped its mechanism and documented the change inline).
  • Source links the issue or discussion that forced the decision.

ADR vs journal entry vs discussion post

RecordUse forWhere
ADRLoad-bearing, hard-to-reverse design decisiondocs/adr/NNNN-*.md
Decision journalTradeoff taken or lesson learned, append-only, stable TR-NNN / LL-NNN idsdocs/tradeoffs.md, docs/lessons-learned.md per leyline:decision-journal
Discussion postAmbient collective memory: [Learning], [PR Finding], [War Room]GitHub Discussions via GraphQL (no gh discussion subcommand exists)

For the Discussions mechanics and promotion path, use the sibling skill night-market-collective-memory.

Changelog conventions

CHANGELOG.md follows Keep a Changelog 1.1.0 and SemVer:

  • ## [Unreleased] stays at the top; new entries land there and get moved under a ## [X.Y.Z] - YYYY-MM-DD heading at release.
  • Standard subsections: ### Added, ### Fixed, ### Changed.
  • Never retroactively de-slop or reword historical entries. The slop anti-goals (scribe:slop-detector module anti-goals.md) explicitly exempt changelog history: it is a record, not prose to polish.

Skill description contract

Every SKILL.md and command description: field is loaded into the model's skill-discovery budget, so length is policed:

  • Hard cap: 160 characters per description (hard fail).
  • Third person only. Template: [Verb phrase] [domain]. Use when [trigger]. Do not use when [negative]; use [alternative] instead.
  • Full guide: docs/skill-description-guide.md.

Two pre-commit hooks enforce it:

bash
python3 plugins/abstract/scripts/validate_budget.py
python3 scripts/fix_descriptions.py --check

validate_budget.py hard-fails any description over 160 chars and warns when the ecosystem total approaches its budget (default 90,000 chars, override via SLASH_COMMAND_TOOL_CHAR_BUDGET). Note: docs/skill-description-guide.md still cites an older 60,000-char ceiling; the script value is current (the script is the enforcer).

The book (mdBook)

  • Structure: edit book/src/SUMMARY.md to add pages; create-missing = false means a SUMMARY entry without a file breaks the build.
  • Local build: cd book && mdbook build (output in book/build/). mdbook is installed separately; CI uses the unpinned latest.
  • Deploy: .github/workflows/deploy-book.yml publishes to GitHub Pages on push to master touching book/**. PRs touching book/** get a build check.
  • book/src/reference/capabilities-*.md are generated from plugin manifests. Check drift with make docs-sync-check (runs scripts/capabilities-sync-check.sh); fix drift with the /sanctum:sync-capabilities --fix command, not by hand.

Doc gate command checklist

Run before committing markdown:

bash
python3 scripts/check-markdown-links.py path/to/file.md
python3 plugins/abstract/scripts/validate_budget.py   # if SKILL.md touched
make docs-sync-check                                  # if manifests touched

Then walk the three slop layers manually or via Skill(scribe:slop-detector). Every new or modified SKILL.md also needs a ## Exit Criteria section (.claude/rules/skill-exit-criteria.md, issue #454).

When NOT to use

  • Running tests, lint, releases, or the version bump: use night-market-operations.
  • Classifying whether a change needs an ADR-gated review at all: use night-market-change-control.
  • Posting to or querying GitHub Discussions, journal promotion paths, ADR-vs-memory routing details: use night-market-collective-memory.
  • Plugin/skill/hook file mechanics (frontmatter fields, discovery): use claude-code-plugin-reference.
  • Test evidence standards and coverage thresholds: use night-market-validation-and-qa.

Exit Criteria

  • Any doc edit touched the file the map marks as canonical, and no file marked GENERATED was hand-edited (verify: git diff --stat shows no book/src/reference/capabilities-* unless produced by the sync command).
  • New prose passes the local slop pre-check: zero P0 hits, zero new em dashes, no tier-1 vocabulary in the diff.
  • python3 scripts/check-markdown-links.py <file> exits 0 for each markdown file touched.
  • If a SKILL.md was touched: python3 plugins/abstract/scripts/validate_budget.py exits 0 and the file contains a ## Exit Criteria section.
  • If a decision was recorded: it landed as a numbered ADR, a TR-NNN/LL-NNN journal entry, or a Discussion post, and any superseded ADR's Status field was updated in place.
  • CHANGELOG.md still has ## [Unreleased] as its first version heading and no historical entry was reworded.

Provenance and maintenance

Compiled 2026-07-02 against repo v1.9.15 (branch discussions-fix-1.9.14). Volatile facts and how to re-verify:

  • ADR count (17) and statuses: ls docs/adr/ and rg -l "Superseded" docs/adr/.
  • Slop CI threshold (3.0) and scanned paths (docs/, book/src/): read .github/workflows/slop-check.yml.
  • Description cap (160) and total budget (90,000): rg "DESCRIPTION_MAX|DEFAULT_BUDGET" plugins/abstract/scripts/validate_budget.py.
  • Rules inventory (8 files): ls .claude/rules/.
  • Per-feature doc occupant: head -5 docs/project-brief.md.
  • Journal files existence: ls docs/tradeoffs.md docs/lessons-learned.md.
  • Book deploy trigger: read .github/workflows/deploy-book.yml.
  • Guide-vs-script budget drift (60K vs 90K): re-check docs/skill-description-guide.md in case the guide was updated.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Night Market Docs And Writing؟

Maintain docs of record, ADRs, changelog, and house style. Use when writing repo docs. Do not use for release steps; use night-market-operations instead.

لماذا تستخدم Night Market Docs And Writing على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Night Market Docs And Writing عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Night Market Docs And Writing في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/athola/claude-night-market/tree/master/.claude/skills/night-market-docs-and-writing. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Night Market Docs And Writing؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Night Market Docs And Writing؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Night Market Docs And Writing معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Night Market Docs And Writing مجانية؟

نعم. نشرها athola على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇