AutoSnippet Guard — When to Recommend
Use this skill when: The user wants to check whether the current file or code meets project standards (规范 / Audit). You decide whether to recommend; do not force.
When to recommend
- •User says: "审查一下这个文件" / "检查是否符合规范" / "Audit" / "用知识库检查".
- •User has just edited a file and wants automated review against Recipe standards.
How to recommend (you choose wording)
- •"Add
// as:audit(or// as:audit keyword) in the file; after save, watch runs AI review against Recipes, output to terminal." - •Ensure
asd watchorasd uiis running in the project root so watch can detect the save.
What Guard uses
- •The same Recipe content in
AutoSnippet/recipes/(andreferences/project-recipes-context.md) is what Guard uses as the standard. No separate config.
On-Demand Context (when asd ui is running)
Use MCP tool autosnippet_context_search for on-demand semantic search; pass query, limit?. Requires AutoSnippet MCP configured and asd ui running.
Relation
- •autosnippet-when: General "when to recommend what"; may point here for Guard.
- •autosnippet-recipes: Recipe content and context; Guard reads the same content.