You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(lint): document xpath_expressions() and parse_xpath() builtins in skill
Adds to write-lint-rules.md:
- xpath_expressions() in the query functions table
- parse_xpath(s) in the helper functions table
- xpath_expression object (13 fields)
- expr AST node schema (14 kind variants + type-specific fields)
- Leaf-kind list and tree-walking example
Closes the skill-docs gap flagged in PR #688 review.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R1yYeYn9rosf8UdAimdatt
@@ -298,6 +369,7 @@ Returned by `project_security()`. Returns `none` if no MPR reader is available.
298
369
|----------|-------------|
299
370
|`violation(message, location?, suggestion?)`| Create a violation to return |
300
371
|`location(module, document_type, document_name, document_id?)`| Create a location for a violation |
372
+
|`parse_xpath(s)`| Parse a raw XPath/expression string and return its AST as an `expr` struct tree. Outer `[ ]` are stripped automatically. Parse failures produce a `recovered` root node rather than raising. |
301
373
|`is_pascal_case(s)`| Returns True if string is PascalCase |
302
374
|`is_camel_case(s)`| Returns True if string is camelCase |
303
375
|`matches(s, pattern)`| Returns True if string matches regex |
0 commit comments