Add environment variables, flags, and configuration options only when you can explain what concrete problem each one solves. Do not add settings on your own merely because they are conventional or seem safer to have; propose them with the reason and let the user decide. Use when adding environment variables, command-line flags, or configuration options to code, scripts, CI, or environment definitions.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Explain Setting?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ncaq-explain-setting)
---
name: explain-setting
description: Add environment variables, flags, and configuration options only when you can explain what concrete problem each one solves. Do not add settings on your own merely because they are conventional or seem safer to have; propose them with the reason and let the user decide. Use when adding environment variables, command-line flags, or configuration options to code, scripts, CI, or environment definitions.
user-invocable: false
---
# 設定は目的を説明できるものだけを足す
環境変数や設定のフラグを足すときは、
それぞれが具体的に何を解決するのかを、コメントで説明できるものだけを入れてください。
他のプロジェクトで慣習的に付けられている、念のために付けておくと安全そうだ、
という理由だけでは足しません。
そのような設定は、何を解決するのかが説明されないまま残り、
後から読む人には外してよいのかが判断できなくなるためです。
例えば.NETの開発環境を作るときに、
使用状況のテレメトリを止める`DOTNET_CLI_TELEMETRY_OPTOUT`を足したくなります。
しかしテレメトリが送られても困らないプロジェクトでは、この設定は何も解決していません。
## 説明できる設定
説明は、設定のそばにコメントで残します。
書くのは、その設定が何をするかではなく、このプロジェクトでなぜ必要なのかです。
その設定が無いと何が起きるのかを書けば、理由になります。
必要な理由が設定そのものから明らかな場合は、コメントを省いて構いません。
## 説明できない設定
役に立つかもしれないが、このプロジェクトで何を解決するのかを説明できない設定は、
自分の判断では足しません。
何のための設定で、どのような場合に必要になるのかを添えて提案するだけに留めて、
足すかどうかはユーザに決めてもらいます。
ユーザが足すように指示した設定は、そのまま足して構いません。