rmyz/dotfiles/search-by-codeowner

Claude Code and agent skill by rmyz/dotfiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Search for a term in files owned by a specific GitHub team based on CODEOWNERS. Use when asked to find code within a team's ownership boundary.

Install

npx vskill@latest install rmyz/dotfiles/search-by-codeowner

SKILL.md

The same SKILL.md was published earlier as rmyz/dotfiles/search-by-codeowner.

Search by Code Owner

Overview

The .github/CODEOWNERS file in the Kibana checkout maps file paths to owning GitHub teams. This skill searches tracked .js, .jsx, .ts, .tsx, .json, .md, .yml, and .yaml files outside node_modules, build, and target directories whose last matching rule assigns them to the requested team.

The scan root is the current directory. The worktree needs kbnb to have run.

Helper script

The script lives with the skill (outside the Kibana repo). Because Node resolves modules relative to the script's location, NODE_PATH must point at Kibana's node_modules so @kbn/setup-node-env, @babel/runtime, etc. resolve correctly:

bash
cd "$(git rev-parse --show-toplevel)" && \
NODE_PATH="$PWD/node_modules" \
node --no-experimental-require-module -r @kbn/setup-node-env \
~/.agents/skills/search-by-codeowner/search_by_codeowner.ts \
--team <team> --search <term>

Options:

  • --team <team> -- GitHub team (e.g., @elastic/kibana-core). The @ prefix is added automatically if missing.
  • --search <term> -- term to search for (case-insensitive grep)

Output: JSON with team, searchTerm, totalScannedFiles, totalMatchingFiles, matchingFiles[], and analysisTimeMs.

How it works

  1. Parses .github/CODEOWNERS in rule order
  2. Lists tracked files and applies CODEOWNERS glob patterns; the last matching rule sets each file's owners
  3. Runs grep -il on files owned by the target team
  4. Returns relative file paths (relative to the scan root) sorted alphabetically

If the script fails, read .github/CODEOWNERS, drop paths that a later rule assigns to another team, and use Grep on the remaining paths.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rmyz/dotfiles/search-by-codeowner/badge)](https://verified-skill.com/skills/rmyz/dotfiles/search-by-codeowner)

Something wrong with this skill or its page? Tell us.