Skip to main content
prompt GP ChatGPT

01_claudemd_summarise — Claude Code prompt

01_claudemd_summarise — a Claude Code prompt that compresses CLAUDE.md documentation into exactly 120 words in a single paragraph, without headings or lists. Use it to standardize project architecture summaries for AI coding context.

MIT ★ 2,744 updated 2026-10-08

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/01_claudemd_summarise.md
Open on GitHub

What 01_claudemd_summarise does

The prompt runs in Claude Code and validates output with a built-in Python check: the text must be exactly 120 words, no more, no fewer. It rejects results that miss the target count.

Designed to unify CLAUDE.md documentation across projects where compact agent context matters. Takes a full CLAUDE.md with architecture, pipeline, gotchas and deployment; produces one continuous paragraph without formatting. Works as a command in .claude/commands/ and invokes from the Claude Code interface.

What it helps with

  • standardize technical documentation summaries for agent context
  • compress microservice architecture into a strict word budget
  • validate that summaries meet exact length requirements

Example prompts for the agent

  • Run 01_claudemd_summarise with your CLAUDE.md content
  • Use the prompt to get a 120-word summary of your project docs
  • Execute the command and confirm the word count passes validation

How to install 01_claudemd_summarise

Manually: put the files in place

.claude/commands/01_claudemd_summarise.md

Questions about 01_claudemd_summarise

How do I install 01_claudemd_summarise in Claude Code?

Save the prompt file to .claude/commands/01_claudemd_summarise.md at your project root. Claude Code will auto-discover and load the command on next project open.

What does 01_claudemd_summarise do?

Compresses CLAUDE.md documentation into exactly 120 words as a single paragraph without headings or lists. A Python validator ensures the output meets the exact word count.

Why exactly 120 words?

It's a standard length for concise project context that fits AI assistant context windows efficiently. The strict limit helps standardize microservice descriptions across systems.

Source text

01_claudemd_summarise.md · MIT
---
name: claudemd_summarise
content_shape: prose-dense-claudemd
reference_tokens_per_char: 0.23
description: Summarise a CLAUDE.md-shaped doc in exactly 120 words.
---

[session-metrics:compare-suite:v2:prompt=claudemd_summarise]

Summarise the following project CLAUDE.md in EXACTLY 120 words. Do not write more or fewer. No headings, no lists — one continuous paragraph.

---

# Acme Billing Service — CLAUDE.md

## Overview

The Acme Billing Service is a Go-based microservice that handles invoice generation, payment reconciliation, and dunning workflows for roughly 40,000 active B2B customers. It runs on Kubernetes in three regions (us-east-1, eu-west-1, ap-southeast-2) with active-active multi-region Postgres via Aurora Global Database. Monthly GMV processed: ~$180M.

## Architecture highlights

- REST API on port 8080, gRPC on 9090 for internal services.
- Write path goes through a Kafka topic (`billing.events.v3`) with idempotency keys derived from `(tenant_id, external_ref, version)`.
- Read path is Postgres-backed with a write-through cache in Redis Cluster (6 nodes). Cache keys are namespaced by tenant and TTL'd at 5 minutes.
- All scheduled work runs via Temporal workflows — never plain cron. If you see a cron file, it's legacy and scheduled for removal.

## Common pitfalls

- **Idempotency is non-negotiable.** Every write endpoint must accept an `Idempotency-Key` header; duplicates return the original response with 200, never 409.
- **Tenant isolation is enforced at the DB layer** via row-level security. Do not bypass RLS even for admin tools — use the `billing_admin` role which has `SET ROW_SECURITY = on` enforced.
- **Don't add new top-level Kafka topics.** We're consolidating on `billing.events.v3`; add a discriminator column instead.
- **Reconciliation jobs must be idempotent and resumable.** Use Temporal's `ContinueAsNew` for long-running jobs.

## Testing

- Unit tests: `go test ./...` — must pass locally before PR.
- Integration tests: require `docker-compose up -d` for Postgres + Kafka + Redis + Temporal. Run with `make test-integration`.
- Contract tests against downstream services live under `tests/contracts/`; update them when the external shape changes, never on internal refactors.
- CI runs all three suites on every PR.

## Deployment

Canary rollout is 1% → 5% → 25% → 100% over 30 minutes per region, with SLO guards that auto-rollback on error-rate >0.5% or p99 latency >400ms for two consecutive 1-minute windows. Deploy via `./scripts/deploy.sh <env>`.

<!-- PREDICATE -->

````python
def check(text: str) -> bool:
    # Strict word-count check — IFEval-style.
    words = text.split()
    return len(words) == 120
````

© centminmod · MIT · centminmod/my-claude-code-setup

Similar prompts

All prompts for Writing and docs →

From the same set35

The whole set →
07_json_reshape 07_json_reshape — a prompt that rebuilds a JSON sample against a fixed rubric and returns nothing but parseable JSON. GP ChatGPT ★ 2,744repo stars 03_code_review 03_code_review — a prompt for reviewing Python diffs. It forces Claude to return exactly three concrete issues as a bulleted list without conversational filler. GP ChatGPT ★ 2,744repo stars ccusage-daily This command runs ccusage daily -b and turns Claude Code usage figures into a Markdown report. Use it to review costs, token totals, and daily spending. CX Codex +1 ★ 2,744repo stars create-readme-section The create-readme-section command for Claude Code generates README sections based on project files. Create installation instructions, API references, or contribution guides. CX Codex +1 ★ 2,744repo stars security-audit The security-audit command scans a codebase for vulnerabilities and unsafe patterns across a project or a specific module. CX Codex +1 ★ 2,744repo stars check-best-practices The check-best-practices command reviews code against language-specific standards, conventions, and best practices. It spots issues from critical bugs to style violations and suggests concrete improvements. CX Codex +1 ★ 2,744repo stars claude-docs-consultant claude-docs-consultant pulls official Claude Code documentation directly from code.claude.com on demand. Fetches only the markdown files needed for the active task. CX Codex +1 ★ 2,744repo stars explain-architecture-pattern The explain-architecture-pattern command identifies architecture and design patterns in a codebase, then explains the structure behind them. Use it when the project’s organization needs a clear rationale. CX Codex +1 ★ 2,744repo stars

Project sponsors

Companies that keep this analytics open