Cursor rule
.cursor/rules/cli-github-search.mdcSearch GitHub for examples
Cursor rules
Quality
51/100
Scores the file, not the repository.Length
405 words
2 headings · 0 code blocksRepository
1.4k
— · pushed 5 days agoLast changed
3 days ago
First indexed 3 days ago.123456# How to Use the `ghx` CLI for GitHub Code Search78**Your task: When you need to find code examples, files, or specific patterns on GitHub, use the `ghx` command-line tool. This document provides its usage instructions and examples.**910## `ghx` Command Reference1112Find examples of files, code, etc on GitHub1314Usage: ghx [options]1516Commands:17 ghx config Manage configuration settings18 ghx [query] Search GitHub Code [default]1920Positionals:21 query Search query [string]2223Options:24 --version Show version number [boolean]25 -h, --help Show help [boolean]26 -p, --pipe Output results directly to stdout [boolean]27 -d, --debug Output code fence contents for testing [boolean]28 -L, --limit Maximum number of results to fetch [number] [default: 50]29 -f, --max-filename Maximum length of generated filenames30 [number] [default: 50]31 -c, --context Number of context lines around matches32 [number] [default: 20]33 -r, --repo Search in a specific repository (owner/repo) [string]34 -P, --path Search in a specific path [string]35 -l, --language Search for files in a specific language [string]36 -e, --extension Search for files with a specific extension [string]37 -n, --filename Search for files with a specific name [string]38 -s, --size Search for files of a specific size [string]39 -F, --fork Include or exclude forked repositories [boolean]4041Examples:42 ghx 'useState' Search for 'useState' across all ind43 exed code on GitHub44 ghx --repo facebook/react "useState" Search for 'useState' in the faceboo45 k/react repository46 ghx -l typescript -e tsx "useState" Search for 'useState' in TypeScript47 files with the .tsx extension48 ghx -n package.json "dependencies" Search for 'dependencies' specifical49 ly within package.json files50 ghx -P src/components "Button" Search for 'Button' within the src/c51 omponents path52 ghx -s '">10000" -l go "package main" Search for 'package main' in Go file53 s larger than 10KB54 ghx "async function" -l typescript Search for the exact phrase 'async f55 unction' in TypeScript files56 ghx "my search terms" --pipe > results.m Search and pipe the results directly57 d to a markdown file58 ghx -L 100 -c 30 "complex query" Fetch up to 100 results with 30 line59 s of context per match60 ghx -l typescript "import test" Search for lines containing both 'im61 port' AND 'test' in TypeScript files62 ghx -l javascript "const OR let" Search for lines containing either '63 const' OR 'let' in JavaScript files64 ghx -l css "color NOT background-color" Search for lines containing 'color'65 BUT NOT 'background-color' in CSS fi66 les6768**REMEMBER: Refer to these instructions and examples when constructing `ghx` commands to perform targeted and effective GitHub code searches.**69
Also in skillrecordings/egghead-next
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| skillrecordings/egghead-next.cursor/rules/project-todos-next.mdc · 1.4k | Cursor rules | docs | 45/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/_global.mdc · 1.4k | Cursor rules | teststyletypesgit+1 | 89/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/benchmarks-create.mdc · 1.4k | Cursor rules | no sections | 38/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/cli-pack.mdc · 1.4k | Cursor rules | arch | 52/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/cli-worktree.mdc · 1.4k | Cursor rules | setupgit | 56/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/cli-wrangler.mdc · 1.4k | Cursor rules | styledatabase | 52/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-diagram.mdc · 1.4k | Cursor rules | styledo-not | 65/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-openapi-spec.mdc · 1.4k | Cursor rules | archapi | 58/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-prd.mdc · 1.4k | Cursor rules | archagent-behaviourdocs | 58/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-structure.mdc · 1.4k | Cursor rules | archdocs | 49/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-sync.mdc · 1.4k | Cursor rules | docs | 45/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/docs-tech-stack.mdc · 1.4k | Cursor rules | testlint-formatarchagent-behaviour+1 | 58/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-docs-sync.mdc · 1.4k | Cursor rules | docs | 53/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-continue.mdc · 1.4k | Cursor rules | git | 65/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-execute.mdc · 1.4k | Cursor rules | gitagent-behaviour | 62/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4k | Cursor rules | teststylearchtypes+2 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/logging-session.mdc · 1.4k | Cursor rules | lint-formatstylearchgit | 62/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/pnpm-fixes.mdc · 1.4k | Cursor rules | setupbuildstyledependencies | 68/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago |
Diff against .cursor/rules/project-todos-next.mdc Diff against .cursor/rules/_global.mdc Diff against .cursor/rules/benchmarks-create.mdc Diff against .cursor/rules/cli-pack.mdc Diff against .cursor/rules/cli-worktree.mdc Diff against .cursor/rules/cli-wrangler.mdc Diff against .cursor/rules/docs-diagram.mdc Diff against .cursor/rules/docs-openapi-spec.mdc Diff against .cursor/rules/docs-prd.mdc Diff against .cursor/rules/docs-structure.mdc Diff against .cursor/rules/docs-sync.mdc Diff against .cursor/rules/docs-tech-stack.mdc Diff against .cursor/rules/gh-docs-sync.mdc Diff against .cursor/rules/gh-task-continue.mdc Diff against .cursor/rules/gh-task-execute.mdc Diff against .cursor/rules/gh-task-plan.mdc Diff against .cursor/rules/logging-session.mdc Diff against .cursor/rules/pnpm-fixes.mdc Diff against .cursor/rules/project-update-rules.mdc Diff against .cursor/rules/project-update-user-rules.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
