githits-code
Installation
SKILL.md
Use GitHits for evidence from real open-source code instead of guessing from model memory.
CLI Invocation
- Run commands as
githits .... - If
githitsis not found, retry the same command asnpx -y githits@latest .... - Use
--jsonwhen you need stable fields to parse or chain into another command. - Do not expose credentials. If auth is required interactively, run
githits login; usegithits login --no-browseronly when the user can complete the printed URL flow. In noninteractive eval/CI, do not start OAuth; report thatGITHITS_API_TOKENor prior login is required.
Decision Flow
- Need a canonical cross-project example or pattern:
githits example "<focused question>"; include source repositories/citations from GitHits' generated references/provenance section whenever present. - Need package metadata, vulnerability/advisory status, dependency graphs, or release notes: stop and use the
githits-packageskill instead. - Exact language name uncertain for
example --lang: rungithits languages <query>first. - Inspecting a known dependency or GitHub repo: start with
githits searchscoped by--in. - Need file/path enumeration: use
githits code files; do not probe directories withcode read. - Know the exact text or regex to match: use
githits code grep; usegithits searchfor discovery. - Need documentation pages: use
githits search "<topic>" --source docs --in <target>for topic search, orgithits docs list <spec>to browse available pages.