Generate AI-friendly repository documentation with the SourceSage CLI. Use when Codex needs to run `sage` or `sourcesage` to create `.SourceSageAssets/Repository_summary.md`, analyze the current repository or another local repository, switch the output language between English and Japanese, use `--lite` to keep the summary small, change the output directory, or optionally create a deprecated tag-diff release report with `--diff`.
Use the SourceSage CLI from this repository checkout to generate repository summaries for the current repo or another local repo.
Prefer the local checkout over assuming sourcesage is globally installed. In this repository layout, the SourceSage tool root is the directory that contains this SKILL.md.
Resolve the SourceSage tool root and the target repository.
uv run --directory <sourcesage-root> sage ....Pick the smallest command that satisfies the request.
uv run sageuv run sage --liteuv run sage -l jauv run --directory <sourcesage-root> sage --repo "<target-repo>"uv run --directory <sourcesage-root> sage --repo "<target-repo>" --liteuv run --directory <sourcesage-root> sage --repo "<target-repo>" -o "<output-dir>"uv run --directory <sourcesage-root> sage --repo "<target-repo>" --diffVerify the generated artifacts after every run.
<output-dir>/.SourceSageAssets/Repository_summary.md<output-dir>/.SourceSageAssets/RELEASE_REPORT/Report_<latest-tag>.md--lite mode, confirm the summary keeps the tree, Git info, statistics, and root README files while omitting the ## File Contents section.Report side effects and command mismatches.
<repo>/.SourceSageignore if it does not exist.--ignore-file as the supported ignore override.--use-ignore unless the CLI is updated and re-verified, because the current CLI does not expose that flag.uv run sage inside the SourceSage repo because pyproject.toml defines both sage and sourcesage entry points.uv run --directory <sourcesage-root> sage ... outside the SourceSage repo so the command uses this checkout without requiring a global install.sourcesage or sage directly only when the package is already installed and uv is unavailable.-l ja or -l en for output language.--lite for first-pass exploration when ignore rules are not tuned yet or when full file excerpts would make the summary too large.-o when the user wants artifacts outside the repo root.--repo to analyze another repository from this checkout.sourcesage/cli.py.pyproject.toml and sourcesage/cli.py in this repo.Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/SourceSage · pinned to the source commit
git clone https://github.com/Sunwood-ai-labs/SourceSage.git
cd SourceSage
git checkout c10b14234239de6248a0347bf9051507e8b2eb2a
mkdir -p ".claude/skills/SourceSage"
cp -r . ".claude/skills/SourceSage"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit c10b14234239. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.