generate-claude-md

generate-claude-md is a skill for Claude Code from navapbc/digital-service-orchestra. It costs 29 tokens per session (1,391 once invoked), scanned A, original, Apache-2.0.

A generator for creating or updating a project-specific CLAUDE.md file from project settings and a shared template. CLAUDE.md is a file containing instructions for an AI coding agent working in the project.

In plain words
What is it for?
Use it to generate CLAUDE.md for the current project or another project directory from its configuration.
Why use it?
It avoids manually copying project commands and rules into the agent instruction file. The generated file can use configured commands for validation, formatting, testing, and linting.

Skill for Claude Code

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

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dso plugin — 37 skills, 4 commands, 53 agents shipped together

Good fit Use it to generate CLAUDE.md for the current project or another project directory from its configuration.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add navapbc/digital-service-orchestra
Claude Code
/plugin install dso

Made for: Claude Code.

Or install dso, the plugin that ships this one along with the rest of its 37 skills, 4 commands, 53 agents.

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 generate-claude-md

README.md
[![agentmods](https://agentmods.dev/badge/skills/navapbc/digital-service-orchestra/generate-claude-md/github.svg)](https://agentmods.dev/skills/navapbc/digital-service-orchestra/generate-claude-md)
Your own site
<a href="https://agentmods.dev/skills/navapbc/digital-service-orchestra/generate-claude-md"><img src="https://agentmods.dev/badge/skills/navapbc/digital-service-orchestra/generate-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 generate-claude-md

Your own site · 80×15
<a href="https://agentmods.dev/skills/navapbc/digital-service-orchestra/generate-claude-md"><img src="https://agentmods.dev/badge/skills/navapbc/digital-service-orchestra/generate-claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,391 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.00029 $0.01391
Opus 5 $0.00015 $0.00696
Sonnet 5 $0.00006 $0.00278
Haiku 4.5 $0.00003 $0.00139

Measured 9d ago against content hash f19146b32d34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

generate-claude-md 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 9d 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.

plugins/dso/skills/generate-claude-md/SKILL.md · 137 lines

How it starts

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

Generate CLAUDE.md

Generate or update a project's CLAUDE.md by rendering the Digital Service Orchestra template with project-specific command values from .claude/dso-config.conf.

Usage

/dso:generate-claude-md              # Generate CLAUDE.md for current directory
/dso:generate-claude-md [project-dir] # Generate for a specific project directory

Steps

Step 1: Read Config

Load the project's command values via read-config.sh (located at .claude/scripts/dso read-config.sh):

PLUGIN_SCRIPTS="${CLAUDE_PLUGIN_ROOT}/scripts"

VALIDATE_CMD=$(bash "$PLUGIN_SCRIPTS/read-config.sh" commands.validate)  # shim-exempt: internal orchestration script
FORMAT_CMD=$(bash "$PLUGIN_SCRIPTS/read-config.sh" commands.format)  # shim-exempt: internal orchestration script
TEST_CMD=$(bash "$PLUGIN_SCRIPTS/read-config.sh" commands.test)  # shim-exempt: internal orchestration script
LINT_CMD=$(bash "$PLUGIN_SCRIPTS/read-config.sh" commands.lint)  # shim-exempt: internal orchestration script

Resolution order used by read-config.sh:

  1. .claude/dso-config.conf at $(pwd)/.claude/dso-config.conf (project root — canonical path)
  2. Make target fallback: if config is absent or key is empty, fall back to make <target> convention
  3. Skip with warning if neither config nor make target found

Step 2: Load Template

Read the CLAUDE.md template from the plugin:

TEMPLATE_FILE="${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.md.template"
TEMPLATE_CONTENT=$(cat "$TEMPLATE_FILE")

Step 3: Substitute Placeholders

Replace {{key}} placeholders with resolved config values using sed or bash parameter expansion:

GENERATED=$(echo "$TEMPLATE_CONTENT" \
  | sed "s|{{commands.validate}}|${VALIDATE_CMD}|g" \
  | sed "s|{{commands.format}}|${FORMAT_CMD}|g" \
  | sed "s|{{commands.test}}|${TEST_CMD}|g" \
  | sed "s|{{commands.lint}}|${LINT_CMD}|g")

All placeholder tokens use the {{commands.validate}}, {{commands.format}}, {{commands.test}}, and {{commands.lint}} format (mustache-style double braces).

Read the full file on GitHub · 137 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. 9d ago First seen · 137 lines · 29 tokens per session scan A f19146b32d34

Subscribe to this mod's changes

generate-claude-md is a skill published in the GitHub repository navapbc/digital-service-orchestra (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 29 tokens to every session and 1,391 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories