lidge-jun/codexclaw / plugins/codexclaw/skills/repo-map
cxc-repo-map
VerifiedUse for repo structure and symbol maps. Triggers: repo map, codebase overview, architecture map, 와꾸.
scripts/scm.py
View on GitHub"""
SCM file handling for RepoMap.
"""
from pathlib import Path
from typing import Optional
def get_scm_fname(lang: str) -> Optional[str]:
"""Get the SCM query file for a language."""
scm_files = {
'arduino': 'arduino-tags.scm',
'chatito': 'chatito-tags.scm',
'commonlisp': 'commonlisp-tags.scm',
'cpp': 'cpp-tags.scm',
'csharp': 'csharp-tags.scm',
'c': 'c-tags.scm',
'dart': 'dart-tags.scm',
'd': 'd-tags.scm',
'elisp': 'elisp-tags.scm',
'elixir': 'elixir-tags.scm',
'elm': 'elm-tags.scm',
'gleam': 'gleam-tags.scm',
'go': 'go-tags.scm',
'javascript': 'javascript-tags.scm',
'java': 'java-tags.scm',
'lua': 'lua-tags.scm',
'ocaml_interface': 'ocaml_interface-tags.scm',
'ocaml': 'ocaml-tags.scm',
'pony': 'pony-tags.scm',
'properties': 'properties-tags.scm',
'python': 'python-tags.scm',
'racket': 'racket-tags.scm',
'r': 'r-tags.scm',
'ruby': 'ruby-tags.scm',
'rust': 'rust-tags.scm',
'solidity': 'solidity-tags.scm',
'swift': 'swift-tags.scm',
'udev': 'udev-tags.scm',
'c_sharp': 'c_sharp-tags.scm',
'hcl': 'hcl-tags.scm',
'kotlin': 'kotlin-tags.scm',
'php': 'php-tags.scm',
'ql': 'ql-tags.scm',
'scala': 'scala-tags.scm',
'typescript': 'typescript-tags.scm',
}
if lang in scm_files:
scm_filename = scm_files[lang]
# Search in tree-sitter-language-pack
scm_path = Path(__file__).parent / "queries" / "tree-sitter-language-pack" / scm_filename
if scm_path.exists():
return str(scm_path)
# Search in tree-sitter-languages
scm_path = Path(__file__).parent / "queries" / "tree-sitter-languages" / scm_filename
if scm_path.exists():
return str(scm_path)
return None
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |