Agent skill

syntax-tree

Print the Roslyn syntax tree for C# code. Use to discover which SyntaxNode types and properties to match in an analyzer.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/syntax-tree

SKILL.md

Print Syntax Tree

Arguments: $ARGUMENTS

  1. If $ARGUMENTS is a path to an existing .cs file, run directly:

    dotnet run --project tools/SyntaxTreeViewer -- "$ARGUMENTS"
    
  2. If $ARGUMENTS is inline C# code, pipe it via stdin:

    bash
    cat <<'CSHARP_EOF' | dotnet run --project tools/SyntaxTreeViewer -- --stdin
    $ARGUMENTS
    CSHARP_EOF
    
  3. Return the formatted AST output.

Constraints

  • Do NOT interpret, analyze, or summarize the output — return the raw AST as-is
  • Do NOT modify any project files
  • Do NOT modify the SyntaxTreeViewer tool

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results