Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers patterns for checking the availability of ripgrep. Trigger: When verifying if ripgrep is installed and accessible.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -52% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -53% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -63% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -47% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -52% | 0% |
Use rg_available to determine if ripgrep is installed.
pythonfrom repoforge.ripgrep import rg_available if rg_available(): print("Ripgrep is available.") else: print("Ripgrep is not available.")
Retrieve the version of the installed ripgrep using rg_version.
pythonfrom repoforge.ripgrep import rg_version print(f"Ripgrep version: {rg_version()}")
bashpython -m repoforge.cli
Assuming ripgrep is installed without checking can lead to runtime errors.
python# BAD from repoforge.ripgrep import rg_version print(f"Ripgrep version: {rg_version()}")
| Task | Pattern | |--------------------------|-----------------------------| | Check if ripgrep is available | rg_available() | | Get ripgrep version | rg_version() |
Other measured skills in the registry, with their headline benchmark lift.