Some skills may need to be set up with context from the user. A good pattern is to store this setup information in a config.json file in the skill directory. If the config is not set up, the agent can then ask the user for information. You can instruct Claude to use the AskUserQuestion tool for structured, multiple choice questions.
Tip 5: Think through the Setup
When this pattern helps
Use this as a pattern to evaluate, not a universal rule. Check the current Claude Code documentation and your own workflow constraints, then keep the parts that measurably improve reliability, clarity, or delivery time.
这是一种值得评估的实践,不是放之四海皆准的规则。结合当前 Claude Code 文档和自己的工作约束验证,只保留确实改善可靠性、清晰度或交付时间的部分。