Agent Skills › btcpayserver/btcpayserver › btcpayserver-configuration

btcpayserver-configuration

GitHub

指导在 BTCPay Server 中添加或审查启动配置选项的规范。涵盖命令行注册、环境变量映射、默认值处理、测试更新及文档同步,确保配置变更在各层一致且安全。

.agents/skills/btcpayserver-configuration/SKILL.md btcpayserver/btcpayserver

Trigger Scenarios

添加新的启动配置选项 审查现有配置选项的实现

Install

npx skills add btcpayserver/btcpayserver --skill btcpayserver-configuration -g -y
More Options

Non-standard path

npx skills add https://github.com/btcpayserver/btcpayserver/tree/master/.agents/skills/btcpayserver-configuration -g -y

Use without installing

npx skills use btcpayserver/btcpayserver@btcpayserver-configuration

指定 Agent (Claude Code)

npx skills add btcpayserver/btcpayserver --skill btcpayserver-configuration -a claude-code -g -y

安装 repo 全部 skill

npx skills add btcpayserver/btcpayserver --all -g -y

预览 repo 内 skill

npx skills add btcpayserver/btcpayserver --list

SKILL.md

Frontmatter
{
    "name": "btcpayserver-configuration",
    "description": "Use when adding or reviewing BTCPay Server startup configuration options. Covers command-line registration, defaults, environment variables, tests, and documentation."
}

BTCPay Server Configuration Options

When adding a public startup configuration option, treat every supported configuration source as part of the feature.

Implementation Checklist

  • Choose one canonical lowercase key consistent with existing settings.
  • Register the option in DefaultConfiguration.CreateCommandLineApplicationCore() so the command line accepts it and --help documents it. Use the appropriate CommandOptionType, such as BoolValue or SingleValue, and include the default in the help text.
  • Add the setting and its default as a commented example in DefaultConfiguration.GetDefaultConfigurationFileTemplate() when it is useful to operators.
  • Read the setting through IConfiguration, normally with GetOrDefault<T>(key, defaultValue), and make the default explicit at the point where behavior is selected.
  • Use the existing configuration providers rather than reading an environment variable directly. DefaultConfiguration.EnvironmentVariablePrefix maps a setting such as exampleenabled to BTCPAY_EXAMPLEENABLED.
  • Check every consumer of the affected feature. A disabled-by-default option must prevent background work and hide or disable UI that would otherwise expose an unavailable feature.
  • Update test configuration explicitly when a fixture depends on behavior that is no longer the default. Do not weaken the production default to preserve a test assumption.
  • Document all operator-facing forms that are supported: configuration-file key, BTCPAY_ environment variable, and command-line option. Update deployment manifests separately when a deployment intentionally opts in.

Verification

  • Build the affected project.
  • Run focused tests for configuration parsing and every behavior gated by the option.
  • Run the application with --help and confirm the new command-line option is listed with an accurate description and default.

Version History

  • a305e95 Current 2026-09-23 02:14

Same Skill Collection

.agents/skills/bem-conventions/SKILL.md
.agents/skills/btcpayserver-changelog/SKILL.md
.agents/skills/btcpayserver-migrations/SKILL.md
.agents/skills/btcpayserver-pr-descriptions/SKILL.md
.agents/skills/playwright-test-patterns/SKILL.md
.agents/skills/razor-localization/SKILL.md

Metadata

Files
0
Version
51f6cf0
Hash
f886680e
Indexed
2026-09-23 02:14

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-28 20:39
浙ICP备14020137号-1