docs-brand

docs-brand is a command for Claude Code from ihudak/ihudak-claude-plugins. It costs 166 tokens per session (13,126 once invoked), scanned A, original, MIT.

A command that finds a product's logo and brand colours in its source code and applies them to a Material for MkDocs documentation site. Material for MkDocs is a website theme and publishing tool for Markdown documentation.

In plain words
What is it for?
Use it to give a documentation site a product's existing visual identity. It can work on its own or as part of documentation-site setup.
Why use it?
It avoids manually searching a codebase and changing the documentation theme by hand. It also reports when branding cannot be applied and checks the resulting colour contrast.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions .claude-plugin.

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 docs-workflows plugin — 1 skill, 6 commands, 11 agents shipped together

Good fit Use it to give a documentation site a product's existing visual identity. It can work on its own or as part of documentation-site setup.

Compare 6 commands 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 ihudak/ihudak-claude-plugins
Claude Code
/plugin install docs-workflows

Made for: Claude Code.

Or install docs-workflows, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 11 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 docs-brand

README.md
[![agentmods](https://agentmods.dev/badge/commands/ihudak/ihudak-claude-plugins/docs-brand/github.svg)](https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/docs-brand)
Your own site
<a href="https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/docs-brand"><img src="https://agentmods.dev/badge/commands/ihudak/ihudak-claude-plugins/docs-brand/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 docs-brand

Your own site · 80×15
<a href="https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/docs-brand"><img src="https://agentmods.dev/badge/commands/ihudak/ihudak-claude-plugins/docs-brand.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 13,126 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.00166 $0.13126
Opus 5.5 $0.00066 $0.05250
Sonnet 5.5 $0.00033 $0.02625
Haiku 4.5 $0.00017 $0.01313

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

Security

Grade A, and why

docs-brand 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 2mo 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/docs-workflows/commands/docs-brand.md · 365 lines

How it starts

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

Brand the documentation site: $ARGUMENTS

Core references. A citation of the form workflows-core:<name> names a shared reference in the workflows-core plugin. Load it with Skill(skill: "workflows-core:reference", args: "<name>") — never by path: ${CLAUDE_PLUGIN_ROOT} resolves to this plugin, which does not carry it.

/docs-brand extracts a logo and a rough primary/accent colour pair from a product's own code and applies them to a documentation site's Material for MkDocs theme. Expectations are deliberately modest: a mark and a colour pair, not a design system. It runs two ways: standalone, reviewing its own diff and finishing on a branch with a drafted pull request the same way /docs-workflows:docs-profile does; and --inline, dispatched by /docs-workflows:docs-init Phase 5, where it skips its own preflight, its own review gate, its own pull request, and its own emitter tail entirely, and returns its diff plus its contrast finding for the caller's single review and single PR to absorb, or — where it cannot brand — no branding applied: <reason> under the failure contract below, which never ends the caller's run. Rebrands happen, and re-scaffolding a whole docs site to pick up a new logo would be absurd (D14).

Signature: /docs-brand [<docs-repo-path>] [--from <code-repo-path>] [--inline]

The --inline contract. A caller passes the docs-repo path it just scaffolded as the positional token, explicitly — it is not required to, since Phase 0's resolve-docs-repo ladder below would otherwise resolve one on its own, but a ladder resolving independently of what the caller already has open is exactly the kind of drift this contract exists to prevent. /docs-workflows:docs-init is this contract's one consumer today.

The --inline failure contract — an --inline run never ends its caller's run. It returns exactly one of two results. Branding applied: the Phase 8 diff and the Phase 6 contrast finding. No branding applied: every stop an --inline run can reach — DOCS_BRAND_NOT_A_GIT_WORKTREE, DOCS_BRAND_REPO_NOT_WRITEABLE, DOCS_BRAND_NOT_MKDOCS, DOCS_BRAND_NO_CODE_REPO, DOCS_BRAND_NOTHING_TO_APPLY — and a Cancel at any of its prompts (Phases 3 through 6 each offer one) returns to the caller as no branding applied: <reason>, the reason being the stop's own ID and message or the prompt the operator cancelled at, with an empty diff and no contrast finding. Every one of those exits precedes Phase 8, so nothing was written and there is nothing to undo. DOCS_BRAND_UNRESOLVED_BLOCKER is not among them: it belongs to Phase 9's review gate, which an --inline run skips, and it fires only after Phase 8 has written. Under --inline the stop is reported, not raised: what the caller does with it is the caller's contract — /docs-workflows:docs-init Phase 5 continues its scaffold as if --no-brand had been passed and records the reason — and an API or CLI product with no frontend reaches DOCS_BRAND_NOTHING_TO_APPLY routinely, which must not cost anyone a scaffold. On a standalone run each stop ends the run exactly as written below.


Phase 0 — Resolve and validate

  1. Flags. Strip --from <code-repo-path> (together with the path token immediately after it) and --inline from $ARGUMENTS wherever they appear, before reading a positional token. Record inline = true when --inline was present, and from_repo when --from was. What remains is the optional <docs-repo-path>.

  2. Execute resolve-docs-repo from ${CLAUDE_PLUGIN_ROOT}/references/docs-workflow/repo-resolution.md §1 — the signal-positive form, since branding applies to a site that already exists. Do not restate its ladder here; the entry point owns it. Report which rung answered, per its own hard rule — a command that quietly works in an unexpected directory is expensive to unpick afterwards. Record the resolved absolute path as <repo>. An --inline caller's positional token is this ladder's rung 1 — see the --inline contract above — so this ladder only ever runs its own independent search on a standalone invocation, or on an --inline caller that violated the contract.

Read the full file on GitHub · 365 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. 2mo ago Changed 18ed68635cbc
  2. 2mo ago Changed · +4 lines 04967b4e99be
  3. 2mo ago First seen · 361 lines · 166 tokens per session scan A 2264a39d8c9e

Subscribe to this mod's changes

docs-brand is a command published in the GitHub repository ihudak/ihudak-claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 166 tokens to every session and 13,126 once invoked, about $0.0007 per session on Opus 5.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-19.

Related

docs-brand compared with commands from other repositories

docs-brand next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-brandihudak/ihudak-claude-pluginsCommand22mo agoMITA166Claude Code
document-appphuryn/pm-skillsCommand28k23d agoMITA43Claude Code
print-auditAdityaraj0421/naksha-studioCommand3591mo agoMITA36Claude Code
frankx-infogeniusfrankxai/agentic-creator-osCommand14todayApache-2.0A0Claude Code
review-all-gddsstriderZA/OpenCodeGameStudiosCommand13218d agoMITA13Claude Code
slidesNikiforovAll/claude-code-rulesCommand14329d agoApache-2.0A10Claude Code
stitch-generatejoaquimscosta/arkhe-claude-pluginsCommand241mo agoMITA16Claude Code