cocosearch-add-grammar
CommunityExtend CocoSearch with custom grammar handlers.
AuthorVioletCranberry
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps teams add grammar handlers to CocoSearch for domain-specific file formats that share a base language extension. It guides through architecture choices, content validation, metadata extraction, tests, and registration.
Core Features & Use Cases
- Define a new grammar handler by specifying PATH_PATTERNS, implementing _has_content_markers and _extract_grammar_metadata, and leveraging YamlGrammarBase for common logic.
- Ensure safe, deterministic parsing by defining SEPARATOR_SPEC and hierarchical metadata blocks like job:build, step:deploy, or service:web.
- Verify compatibility with autodiscovery so new grammars are automatically registered on import.
Quick Start
Create a new grammar handler at src/cocosearch/handlers/grammars/<grammar>.py following the template and run the grammar tests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cocosearch-add-grammar Download link: https://github.com/VioletCranberry/coco-search/archive/main.zip#cocosearch-add-grammar Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.