speclock: Instructions file for Claude Code

CLAUDE.md

speclock CLAUDE.md is an instructions file for Claude Code from sgroy10/speclock. It costs 521 tokens per session, scanned A, original, MIT.

Project instructions for developing and releasing the speclock package. They require version changes, publishing, deployment, and health checks after source changes.

In plain words
What is it for?
Use them when changing speclock source code and preparing a release through npm, Git, Railway, and the production health check.
Why use it?
They help prevent releases where public package files, the deployed service, and version information do not match.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is sgroy10/speclock's own configuration. It tells Claude Code how to work on speclock 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 speclock configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sgroy10/speclock. 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/sgroy10/speclock/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/sgroy10/speclock

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 speclock CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sgroy10/speclock/claude-md/github.svg)](https://agentmods.dev/instructions/sgroy10/speclock/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sgroy10/speclock/claude-md"><img src="https://agentmods.dev/badge/instructions/sgroy10/speclock/claude-md/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 speclock CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sgroy10/speclock/claude-md"><img src="https://agentmods.dev/badge/instructions/sgroy10/speclock/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 521 This file is loaded in full into every session.
When invoked 521 The same file — it is already loaded in full.
Security scan A 1 finding. 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.00521 $0.00521
Opus 5.5 $0.00208 $0.00208
Sonnet 5.5 $0.00104 $0.00104
Haiku 4.5 $0.00052 $0.00052

Measured 1mo ago against content hash db16488a9c95, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

speclock CLAUDE.md scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s https://speclock-mcp-production.up.railway.app/health
CLAUDE.md · 72 lines

What it actually says

SpecLock Development Rules

MANDATORY RELEASE PROCESS

EVERY code change that touches src/ files MUST follow this exact sequence. NO EXCEPTIONS. Do NOT push without completing ALL steps.

Step 1: Version Bump (ALL 7 files)

package.json
src/mcp/http-server.js      → const VERSION = "X.Y.Z"
src/mcp/server.js            → const VERSION = "X.Y.Z"
src/core/compliance.js       → const VERSION = "X.Y.Z"
src/cli/index.js             → SpecLock vX.Y.Z
src/dashboard/index.html     → TWO places (header + footer)

Step 2: Commit + Push

git add <files>
git commit -m "vX.Y.Z — description"
git push origin main

Step 3: npm Publish

npm publish

Step 4: Git Tag

git tag vX.Y.Z
git push origin vX.Y.Z

Step 5: Railway Deploy

railway up

Step 6: Verify

curl -s https://speclock-mcp-production.up.railway.app/health
# Must show new version
npm view speclock version
# Must show new version

If you skip ANY step, the release is INCOMPLETE and users will get stale code.

Version File Quick Reference

File What to change
package.json "version": "X.Y.Z"
src/mcp/http-server.js const VERSION = "X.Y.Z"
src/mcp/server.js const VERSION = "X.Y.Z"
src/core/compliance.js const VERSION = "X.Y.Z"
src/cli/index.js SpecLock vX.Y.Z in printHelp
src/dashboard/index.html vX.Y.Z in header AND footer

SpecLock Context

Always call speclock_session_briefing at start of session and speclock_session_summary before ending.

Key Facts

  • npm package: speclock
  • Railway: https://speclock-mcp-production.up.railway.app
  • GitHub: sgroy10/speclock
  • Smithery: sgroy10/speclock
  • Author: Sandeep Roy
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. 1mo ago First seen · 72 lines · 521 tokens per session scan A db16488a9c95

Subscribe to this mod's changes

speclock CLAUDE.md is an instructions file published in the GitHub repository sgroy10/speclock (25 stars, last pushed 2mo ago), licensed MIT. It adds 521 tokens to every session, about $0.0021 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.