custom_rules

Implement custom Treesitter parsing rules for Neovim code completions.

4.8k|256|Updated Nov 22, 2025
One-click install
npx skills add https://github.com/ThePrimeagen/99 --skill custom-rules-theprimeagen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: custom_rules
Source: https://github.com/ThePrimeagen/99/tree/main/scratch/custom_rules/vim.treesitter
Command: npx skills add https://github.com/ThePrimeagen/99 --skill custom-rules-theprimeagen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows you to integrate custom rules for Treesitter-based code completion, providing enhanced language understanding and code assist.

Core Features & Use Cases

  • Custom Parsing Rules: Implement your own syntax and semantic parsing for complex language structures.
  • Extend Completions: Modify and expand existing code completion suggestions.
  • Use Case: Improve completion in Go or other less-common languages with specific grammar structures that Treesitter doesn't fully understand.

Quick Start

Add custom completion rules for the Go language to enhance completion in Neovim.

Frequently Asked Questions about custom_rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add custom parsing rules for code completion in Neovim?

To add custom parsing rules for code completion in Neovim, you can implement specific syntax and semantic parsing logic to extend Treesitter capabilities. This allows you to enhance language understanding and modify existing completion suggestions for complex grammar structures.

Can I improve Go language support and completion using Treesitter?

Yes, you can improve Go language support using Treesitter by adding custom completion rules tailored to Go's specific grammar structures. This assists Neovim in providing accurate code completions where default Treesitter parsing might be insufficient.

What is Treesitter-based code completion customization?

Treesitter-based code completion customization is the process of implementing custom syntax and semantic parsing rules to expand existing completion suggestions. It solves the problem of inadequate language support in Neovim for languages with complex or less-common grammar structures.

Do I need advanced Neovim configuration knowledge to extend Treesitter completions?

Extending Treesitter completions requires advanced understanding of Neovim configuration and custom parsing logic. The Skill is designed for users who need to implement sophisticated syntax rules to enhance language support and code assist capabilities.

Why are my Treesitter code completions inaccurate for complex language structures?

Treesitter code completions are inaccurate for complex structures when default parsers lack full semantic understanding of specific grammar. You can resolve this by implementing custom parsing rules to modify and expand the existing completion suggestions.