This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics using Abstract Syntax Tree (AST) matching. It guides on writing ast-grep rules for structural code search and analysis to perform complex queries that go beyond simple text search.