Ask the guidelines¶
Answer the question from the guidelines, not from memory. Every recommendation you give must trace back to a rule or reference in the guideline files.
Locate the guidelines¶
The guidelines root is ${CLAUDE_PLUGIN_ROOT}. If that placeholder wasn't replaced with a path, the root is two directories above this SKILL.md. Useful entry points:
<root>/RULES.md: every rule with its ID, score, level, main source and the tools that check it<root>/general/README.mdand<root>/specific/README.md: indexes of the guideline files<root>/checklists/<area>.md: all rules for one area, sorted by level
1. Find the relevant rules¶
- Work out the platform (if any) and the topic, such as data ownership, secrets, testing or asset loading.
- Start with
RULES.md: it lists every rule by ID and file in one place, with its main source. Search it for the topic's terms (for examplesecret), or read it if searching isn't available. Try synonyms if the first search finds nothing. - Read the matching section of each guideline file, including its "Adopted references" and "How to enforce" entries, because the rule's sources and tools are there. Open the files by path from
RULES.mdor the indexes; you don't need to search the whole folder.
General rules state a principle, and platform rules give the platform's how-to and name the general rule they apply. When both apply, cite both: the platform rule for what to do, and the general rule for why.
2. Answer¶
Lead with a direct answer in two or three sentences. Then list the supporting rules, highest score first:
- `DOTNET-1` (9, strongly recommended) **Load secrets through configuration providers: user secrets (the Secret Manager) in development, and Azure Key Vault or another vault in production, never `appsettings.json` or source code.** Source: [Microsoft, Safe storage of app secrets](https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets)
Then, where they exist:
- Read next: the one or two highest-scored adopted references for the topic.
- Automate it: tools from the "How to enforce" section that check these rules.
Copy rule IDs, scores and links exactly from the files. Use the score to say how strongly to follow a rule: 9โ10 strongly recommended, 6โ8 recommended, 1โ5 conditional.
3. When the guidelines don't cover it¶
Say plainly that no guideline covers the question. You may add general advice, but label it as your own opinion and don't attach rule IDs to it. Suggest adding a guideline (maintainers can use the add-guideline skill in the guidelines repository).