repository-cli-efficiency
Skill3 starsChanged 35 days agoMITView on GitHub
Perform repository searches, grep, diff, and inspections with controlled scope and low verbosity. Mandatory when using rg, Select-String, git grep, git diff, gh api, recursive searches, or reviewing many files.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-ready-fixSkill
- ai-ready-scoreSkill
- architectural-analysisSkill
- commitSkill
- deep-reviewSkill
- domain-modelingSkill
- dotnet-efficient-validationSkill
- herdr-orchestrationSkill
- no-workaroundsSkill
- sdd-create-prdSkill
- sdd-create-techspecSkill
- sdd-execute-correctionsSkill
- sdd-execute-taskSkill
- sdd-orchestrate-flowSkill
- sdd-orchestrate-prdsSkill
- sdd-orchestrate-tasksSkill
- sdd-plan-auditSkill
- sdd-plan-correctionsSkill
- sdd-plan-refactoringSkill
- sdd-plan-tasksSkill
- sdd-review-codeSkill
- sdd-snapshotSkill
- sdd-triageSkill
- update-nuget-packagesSkill
- writing-agents-mdSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use this skill before recursive searches, rg, Select-String, git grep, git diff, gh api, or inspections of many files.
- Very specific: line 17
Prefer rg to Get-ChildItem -Recurse | Select-String:
- Very specific: line 29
If only file names are needed, use -l.
- Very specific: line 31
Use view_range for known files.
- Very specific: line 32
Do not reread a large temporary file with a full PowerShell pipeline.
- Very specific: line 34
Use rtk proxy only when complete output is genuinely necessary for diagnosis.
- Very specific: line 38
Always prefix shell commands with rtk, as required by the global instructions.
- Distinctive: line 40
Do not run multiple serial repository-wide searches for patterns that can be combined.
- Very specific: line 41
Do not use Select-Object -Last N as a substitute for a scoped or appropriately quiet command.
- Distinctive: line 42
Do not hide errors; reduce noise without discarding necessary context.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Efficient repository inspection
When to use
Use this skill before recursive searches, rg, Select-String, git grep, git diff, gh api, or inspections of many files.
Procedure
- Restrict the search to the relevant directory or project.
Prefer
rgtoGet-ChildItem -Recurse | Select-String:rtk rg -n -g '*.cs' -g '!**/bin/**' -g '!**/obj/**' 'pattern' <directory>Combine related patterns in one pass:
rtk git --no-pager grep -n -I -E "ServidorCis|PortaDConnect|Historico|Observacao" -- "*.cs"- If only file names are needed, use
-l. If few results are needed, limit output without rereading the entire repository. - For diffs, start with
rtk git diff --stat,--name-status, and--check. Read the complete diff only for relevant files or sections. - Use
view_rangefor known files. Do not format and print an entire file line by line when a range is sufficient. - Do not reread a large temporary file with a full PowerShell pipeline. Use
rgwith error patterns and result limits. - For
gh api, prefer a known path, code search, or local data.--jqreduces output delivered to the agent, but a recursive endpoint still downloads and processes the entire tree. - Use
rtk proxyonly when complete output is genuinely necessary for diagnosis.
Rules
- Always prefix shell commands with
rtk, as required by the global instructions. - Exclude at least
bin,obj,.git,packages, and generated artifacts when the search does not need them. - Do not run multiple serial repository-wide searches for patterns that can be combined.
- Do not use
Select-Object -Last Nas a substitute for a scoped or appropriately quiet command. - Do not hide errors; reduce noise without discarding necessary context.
Completion criteria
- The search traversed only the necessary scope.
- Related patterns were combined when possible.
- The first diff inspection was statistical and concise.
- Complete output was loaded only for relevant files or failures.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

