nestjs-mcp-server: Command for Claude Code

.claude/commands/constitution.md

constitution is a command for Claude Code from adrian-d-hidalgo/nestjs-mcp-server. It costs 59 tokens per session (1,909 once invoked), scanned A, original, MIT.

A command that turns a requirement, GitHub Discussion, or incoming report into a proposed GitHub issue. GitHub issues are records used to track bugs and planned work.

In plain words
What is it for?
Use it to prepare issue proposals for new capabilities or reported problems. It proposes issues but does not create them without explicit authorization.
Why use it?
It helps clarify vague requests, check for duplicates, and define acceptance criteria—the conditions that show the work is complete—before an issue is created.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

This is adrian-d-hidalgo/nestjs-mcp-server's own configuration. It tells Claude Code how to work on nestjs-mcp-server 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 nestjs-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to adrian-d-hidalgo/nestjs-mcp-server. 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/adrian-d-hidalgo/nestjs-mcp-server/main/.claude/commands/constitution.md
Clone the repo
git clone --depth 1 https://github.com/adrian-d-hidalgo/nestjs-mcp-server

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 constitution

README.md
[![agentmods](https://agentmods.dev/badge/commands/adrian-d-hidalgo/nestjs-mcp-server/constitution.svg)](https://agentmods.dev/commands/adrian-d-hidalgo/nestjs-mcp-server/constitution)
Your own site
<a href="https://agentmods.dev/commands/adrian-d-hidalgo/nestjs-mcp-server/constitution"><img src="https://agentmods.dev/badge/commands/adrian-d-hidalgo/nestjs-mcp-server/constitution.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 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,909 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.00059 $0.01909
Opus 5 $0.00030 $0.00955
Sonnet 5 $0.00012 $0.00382
Haiku 4.5 $0.00006 $0.00191

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

Security

Grade A, and why

constitution 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 8d 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.

.claude/commands/constitution.md · 116 lines

How it starts

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

This command produces an issue and nothing else. Issue creation stays high-level: the technical SPEC (code, approach, the Public API and SemVer calls) is authored later by /specification. You load the github-issues skill for the modes, labels, templates, duplicate check, and the authorization contract — you never fork its rules.

Always propose; never create without explicit authorization.

Routes 4 and 5 are the pair most often confused. The test: does something already exist and behave wrongly (→ /debug), or does something not exist yet (→ Route B)? "The retry logic is wrong" is a bug; "there is no retry logic" is a capability.

Once met, continue and propose. Anything the source leaves unresolved (an exact option name, a default value) is carried as an acceptance criterion to verify, not invented as a fact. For anything unclear, ask; never invent scope, coverage, a relationship, or the closure condition.

Maturity gate. A requirement too vague to derive verifiable acceptance criteria from is not a requirement yet — STOP and ask the specific question that would make it one. Never invent the missing layer to produce a well-formed issue: a well-formed issue built on an invented premise is worse than no issue, because it looks decided.

Code inspection is allowed and often required — for a technical task (Mode T) or a refactor (Mode R), the truth of the current state lives in the code. Use codegraph. But the file-level approach still belongs to /specification, not here.

Route B — the requirement (free text, or the content of a discussion) → ONE issue.

  1. Understand the work. State the real current state → target state → why at the requirement level. For Mode T / Mode R, read the actual code with codegraph to state the current state accurately — never from memory.

  2. Duplicate check FIRST, before drafting. Run the github-issues skill's duplicate-check query, open and closed. Drafting before checking wastes the draft and biases you toward creating it. On any plausible match → the conflict gate (step 5).

Read the full file on GitHub · 116 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. 8d ago First seen · 116 lines · 59 tokens per session scan A 6cadbb114c1c

Subscribe to this mod's changes

constitution is a command published in the GitHub repository adrian-d-hidalgo/nestjs-mcp-server (38 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 1,909 once invoked, about $0.0003 per session on Opus 5. 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-08-30.