configure

configure is a command for coding agents from HeminWon/claude-code-marketplace. It costs 28 tokens per session (778 once invoked), scanned A, original, MIT.

A command for setting the preferred language of Git commit messages in the current repository. It accepts a language name or a locale code, such as en or zh-CN.

In plain words
What is it for?
Use it when starting work in a repository or changing its commit-message language. It normalizes language inputs and asks for clarification when a language could mean more than one locale.
Why use it?
It avoids manually editing Git settings and helps keep commit-message language preferences consistent for one repository. It can also reset the setting so the language is inferred automatically.

Command

Part of the commit plugin — 1 skill, 1 command shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/heminwon/claude-code-marketplace/configure
Clone the repo
git clone --depth 1 https://github.com/HeminWon/claude-code-marketplace

Or install commit, the plugin that ships this one along with the rest of its 1 skill, 1 command.

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 configure

README.md
[![agentmods](https://agentmods.dev/badge/commands/heminwon/claude-code-marketplace/configure.svg)](https://agentmods.dev/commands/heminwon/claude-code-marketplace/configure)
Your own site
<a href="https://agentmods.dev/commands/heminwon/claude-code-marketplace/configure"><img src="https://agentmods.dev/badge/commands/heminwon/claude-code-marketplace/configure.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 778 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.00778
Opus 5 $0.00014 $0.00389
Sonnet 5 $0.00006 $0.00156
Haiku 4.5 $0.00003 $0.00078

Measured 4d ago against content hash e6f556dc7e14, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

configure 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 4d 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/commit/commands/configure.md · 67 lines

What it actually says

Configure Commit Language

Goal

为当前 git 仓库设置 commit message 语言优先项:claude.commit.lang(local scope)。

Inputs

  • 原始参数:$ARGUMENTS
  • 支持两类输入:
    • locale code(如 en, fr-CA, pt_BR, zh-Hant-TW
    • 自然语言名称(如 中文, English, 日本語, Português
  • auto / default / 自动 表示重置为自动推断(unset local config)

Workflow

  1. 校验仓库上下文:

    • 执行 git rev-parse --is-inside-work-tree
    • 若不在 git 仓库中,提示用户切换到仓库后重试。
  2. 读取当前值:

    • 执行 git config --local --default auto --get claude.commit.lang
    • 返回 auto 代表未设置本地值(正常场景,不是错误)。
  3. 解析目标语言:

    • 优先读取 $ARGUMENTS
    • $ARGUMENTS 为空,必须先用 AskUserQuestion 提供单选列表:
      • 中文(zh-CN)
      • English(en)
      • 日本語(ja)
      • 한국어(ko)
      • Auto(重置为自动推断)
    • 若用户选择 Other,再让用户自由输入目标语言(支持 code 或自然语言)。
    • 将输入范化:
      • trim + collapse spaces
      • _ 统一替换为 -
      • locale 分段规范化:语言段小写、地区段大写、脚本段首字母大写(如 EN_us -> en-US, zh-hant-tw -> zh-Hant-TW
    • 语义映射策略:
      • 若输入已是有效 locale code 形态,直接采用范化结果。
      • 若输入是自然语言,转换为对应 locale code(尽量保留用户语义;必要时补全默认地区)。
      • 若存在歧义(如 Portuguese 可能是 pt-PTpt-BR),通过追问让用户二选一,不做硬错误终止。
      • 仅在用户明确表示自动推断(auto/default/自动)时走重置分支。
  4. 写入配置:

    • 若目标为自动:执行 git config --local --unset claude.commit.lang(key 不存在也按成功处理)。
    • 否则执行 git config --local claude.commit.lang <normalized_code>
  5. 结果回显:

    • 再次读取 git config --local --get claude.commit.lang
    • 无值回显 auto,有值回显最终 code。
    • 提示后续 commit 命令会优先使用该配置。

Output Template

  • 当前值:<current|auto>
  • 目标输入:<user_input>
  • 应用结果:<final_code|auto>
  • 说明:commit 将优先读取 git config --local claude.commit.lang
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. 4d ago First seen · 67 lines · 28 tokens per session scan A e6f556dc7e14

Subscribe to this mod's changes

configure is a command published in the GitHub repository HeminWon/claude-code-marketplace (2 stars, last pushed 3mo ago), licensed MIT. It adds 28 tokens to every session and 778 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-08-31.