agentleFS
hmctshmcts/claude/CLAUDE.md

claude

CLAUDE.md1 starsChanged 7 months agoMITView on GitHub

Always load the following before any pipeline stage: - context/tech-stack.md - context/hmcts-standards.md - context/azure-cloud-native.md — Cloud-Native posture and Shared Responsibility Model on Azure. - context/logging-standards.md — mandatory JSON logging for Spring Boot services. Load on demand when relevant: - context/azure-sdk-guide.md — when working on any Azure service integration. - context/cloud-adoption-rationale.md — only when lock-in or cloud-cost objections surface, or when an ADR weighs those trade-offs. Do not auto-load. Run stages in order. Do not skip or reorder. Halt at every…

The file

We split this CLAUDE.md into the rules it gives an agent

9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always load the following before any pipeline stage:

    line 7
  2. Distinctive:

    Run stages in order. Do not skip or reorder.

    line 21
  3. Very specific:

    All pipeline artefacts are written to /docs/pipeline/ in the repo:

    line 55
  4. Distinctive:

    Never proceed past a human gate without explicit confirmation.

    line 73
  5. Distinctive:

    Never invent requirements, ACs, or test data — flag unknowns as open questions.

    line 74
  6. Distinctive:

    Every story must have a linked Jira ticket before the test stage begins.

    line 75
  7. Distinctive:

    All code must pass the review checklist before CI is triggered.

    line 76
  8. Distinctive:

    Do not store PII, case data, or court reference numbers in artefacts or prompts.

    line 78
  9. Distinctive:

    If confidence in a decision is low, write an ADR and surface it for review.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

HMCTS SDLC Pipeline — Orchestrator

Project context

This is an HMCTS engineering project. All work must comply with HMCTS engineering standards, GDS Service Manual principles, and MOJ security and accessibility requirements.

Always load the following before any pipeline stage:

  • context/tech-stack.md
  • context/hmcts-standards.md
  • context/azure-cloud-native.md — Cloud-Native posture and Shared Responsibility Model on Azure.
  • context/logging-standards.md — mandatory JSON logging for Spring Boot services.

Load on demand when relevant:

  • context/azure-sdk-guide.md — when working on any Azure service integration.
  • context/cloud-adoption-rationale.md — only when lock-in or cloud-cost objections surface, or when an ADR weighs those trade-offs. Do not auto-load.

Pipeline stages

Run stages in order. Do not skip or reorder. Halt at every human gate before proceeding.

#StageAgent fileGate
1Requirementsagents/requirements-analyst.mdHuman
2Architecture & Designagents/architecture-designer.mdHuman
3User Storyagents/story-writer.mdHuman
4Test Specsagents/test-engineer.mdHuman
5Codeagents/implementation.mdAuto
6Code Reviewagents/code-reviewer.mdHuman
7Build & Testagents/ci-orchestrator.mdAuto
8Deploy Sandboxagents/deployer.mdHuman

Shared skills (available to all agents)

Skills split across the marketplace and this repo. Install the marketplace plugins once (see the plugin README Prerequisites section) — the file paths below resolve to pointer stubs or HMCTS overlays that reference the installed plugins.

Skill fileSourceUse when
skills/write-acceptance-criteria.mdmarketplace: bdd-workflowDeriving testable ACs from any requirement
skills/generate-bdd-specs.mdmarketplace: bdd-workflowWriting Cucumber/Gherkin feature files
skills/accessibility-check.mdmarketplace: accessibility-check + HMCTS overlayWCAG 2.1 AA review + GOV.UK Frontend guidance
skills/review-checklist.mdmarketplace: review-checklist + HMCTS overlayCode review checklist + Spring Boot / Azure / logging
skills/adr-template.mdmarketplace: adr-templateRecording any architecture decision
skills/springboot-service-from-template/local (HMCTS-specific)Standing up a new Spring Boot service from the HMCTS template
skills/springboot-api-from-template/local (HMCTS-specific)Standing up a new HMCTS Marketplace API spec repo
skills/cpp-test-authoring/local (HMCTS-specific)Writing or extending tests in cpp-ui-e2e-serenity (Serenity BDD/Cucumber) or cpp-apitests (JUnit 5 + REST Assured)

Artefact output convention

All pipeline artefacts are written to /docs/pipeline/ in the repo:

docs/pipeline/
├── requirements.md
├── user-stories/
│   └── <story-id>.md
├── test-specs/
│   └── <story-id>.feature
├── adrs/
│   └── <NNN>-<title>.md
└── deploy-notes.md

Hard rules

  • Never proceed past a human gate without explicit confirmation.
  • Never invent requirements, ACs, or test data — flag unknowns as open questions.
  • Every story must have a linked Jira ticket before the test stage begins.
  • All code must pass the review checklist before CI is triggered.
  • Accessibility (WCAG 2.1 AA) is non-negotiable for any user-facing output.
  • Do not store PII, case data, or court reference numbers in artefacts or prompts.
  • If confidence in a decision is low, write an ADR and surface it for review.
  • For Spring Boot services: the HMCTS templates (service-hmcts-crime-springboot-template, api-hmcts-crime-template) are the master source. Use skills/springboot-service-from-template/ or skills/springboot-api-from-template/ to adopt them — do not scaffold build files, Dockerfile, or logback config from scratch. Deviations require an ADR.
  • JSON logging to stdout is mandatory for Spring Boot services. See context/logging-standards.md.
  • Azure integrations use the Azure SDK via Managed Identity. Connection strings, SAS tokens, and account keys are not permitted in code, config, env vars, or Helm values. See context/azure-sdk-guide.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.