NoizuPromptLingo: Command for Claude Code

.claude/commands/update-schema-doc.md

update-schema-doc is a command for Claude Code from noizu-labs-ml/NoizuPromptLingo. It costs 0 tokens per session (1,336 once invoked), scanned A, original, MIT.

A documentation command for maintaining entity-relationship diagrams in a project schema file. It keeps both Mermaid and PlantUML versions in the full document, while the summary uses Mermaid only.

In plain words
What is it for?
Use it when updating tables, primary keys, foreign keys, relationship types, and grouped database domains in the schema documentation.
Why use it?
It gives database structure a consistent, reviewable visual form instead of leaving relationships to prose or hand-drawn diagrams.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is noizu-labs-ml/NoizuPromptLingo's own configuration. It tells Claude Code how to work on NoizuPromptLingo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything NoizuPromptLingo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to noizu-labs-ml/NoizuPromptLingo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/noizu-labs-ml/NoizuPromptLingo/main/.claude/commands/update-schema-doc.md
Clone the repo
git clone --depth 1 https://github.com/noizu-labs-ml/NoizuPromptLingo

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for update-schema-doc

README.md
[![agentmods](https://agentmods.dev/badge/commands/noizu-labs-ml/noizupromptlingo/update-schema-doc/github.svg)](https://agentmods.dev/commands/noizu-labs-ml/noizupromptlingo/update-schema-doc)
Your own site
<a href="https://agentmods.dev/commands/noizu-labs-ml/noizupromptlingo/update-schema-doc"><img src="https://agentmods.dev/badge/commands/noizu-labs-ml/noizupromptlingo/update-schema-doc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for update-schema-doc

Your own site · 80×15
<a href="https://agentmods.dev/commands/noizu-labs-ml/noizupromptlingo/update-schema-doc"><img src="https://agentmods.dev/badge/commands/noizu-labs-ml/noizupromptlingo/update-schema-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01336
Opus 5 $0.00000 $0.00668
Sonnet 5 $0.00000 $0.00267
Haiku 4.5 $0.00000 $0.00134

Measured 6d ago against content hash 47ed2158e9c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

update-schema-doc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/update-schema-doc.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PROJ-SCHEMA.md — Maintenance Guide

Diagram Formats

Include both Mermaid and PlantUML ERD diagrams in docs/PROJ-SCHEMA.md. The summary file (docs/PROJ-SCHEMA.summary.md) uses Mermaid only (for brevity).

Mermaid Conventions

  • Use ```mermaid fenced blocks with erDiagram
  • Underscores replace parentheses in types (e.g. VARCHAR_255 not VARCHAR(255))
  • Mark PK/FK after type
  • Relationship cardinality: ||--o{ (one-to-many), ||--|| (one-to-one), }o--o{ (many-to-many)

PlantUML Conventions

  • Use ```plantuml fenced blocks with @startuml / @enduml
  • Use * prefix for NOT NULL columns
  • Mark <<PK>> and <<FK>> inline
  • Use -- separator between PK section and other columns
  • Use skinparam linetype ortho for clean routing
  • Group related tables with package "Domain Name" { } blocks

Mermaid ERD Template

erDiagram
    parent ||--o{ child : "has many"

    parent {
        UUID id PK
        VARCHAR_255 name
    }

    child {
        UUID id PK
        UUID parent_id FK
    }

PlantUML ERD Template

@startuml
!define TABLE(name) entity name <<(T,#FFAAAA)>>
skinparam linetype ortho

TABLE(parent) {
  * id : UUID <<PK>>
  --
  * name : VARCHAR(255)
}

TABLE(child) {
  * id : UUID <<PK>>
  --
  * parent_id : UUID <<FK>>
}

parent ||--o{ child : "has many"
@enduml

Timestamp Conventions

All tables use TIMESTAMP WITHOUT TIME ZONE with NOW() defaults. Application code manages UTC.

All tables use updated_at as the modification timestamp column. This is the standardized convention — do not use modified_at.

Purpose

docs/PROJ-SCHEMA.md provides a database schema reference with ERD diagrams, table details, and relationship documentation. It should remain the single source of truth for understanding the project's data model.

Structure

docs/
├── PROJ-SCHEMA.md          # Main schema reference (keep small)
├── PROJ-SCHEMA.summary.md  # Condensed quick-reference (Mermaid only)
└── schema/
    ├── npl-content.md      # Detailed breakdowns by domain
    ├── sessions.md
    └── ...

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 168 lines · 0 tokens per session scan A 47ed2158e9c7

Subscribe to this mod's changes

update-schema-doc is a command published in the GitHub repository noizu-labs-ml/NoizuPromptLingo (13 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,336 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.