@timschoch/writing-rules

>

View in AI SkillSafe app
Scanned · no findings
0 stars
SKILL.md
namewriting-rules
description>

Writing rules

One list, one copy, synced from the hub — rules update here, never in a consumer. Enforcement varies per repo; the rules do not.

The rules live in sidecar files, one per style, so only what applies gets injected:

  • rules/all.md — every file: audience, words and links, the never list, where a statement lives
  • rules/plain.md — a person reads it: README, docs, code comments
  • rules/dense.md — only an agent reads it: CLAUDE.md, AGENTS.md, skill files, agent docs; where both could apply, dense wins
  • rules/git.md — commits, PRs, issues; the format is enforced by the workflow Bundle's commit-msg hook

Reviewing or writing prose by hand? Read the sidecars above — this file holds no rule.

Injection on write actions

scripts/inject-writing-rules.mjs is a PreToolUse hook: on every file-writing tool call it prints the matching rules (all + plain|dense by path) as additional context, so the writer sees them without loading this skill. /setup-repo wires it into .claude/settings.json. Markdown files only; node_modules, .temp/ and the synced .claude/skills/.claude/rules trees are skipped.

Mermaid check

scripts/check-mermaid.mjs parses every mermaid diagram in the .md, .mdx and .mmd files a branch changes. The verify skill's push stage runs it. It needs the repo's mermaid and jsdom devDependencies; /setup-repo installs them.

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@timschoch/writing-rules/verified)](https://skillsafe.ai/skill/@timschoch/writing-rules/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@timschoch/writing-rules/installs)](https://skillsafe.ai/skill/@timschoch/writing-rules/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@timschoch/writing-rules/scan)](https://skillsafe.ai/skill/@timschoch/writing-rules/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@timschoch/writing-rules/eval)](https://skillsafe.ai/skill/@timschoch/writing-rules/)