code2skill ci --mode auto is the automation-oriented entrypoint.
Auto mode decides between full and incremental execution from:
- the current repository root
- the presence or absence of
.code2skill/state/analysis-state.json - the presence or absence of
skill-plan.json - changed files discovered from Git refs or an explicit diff file
- fallback triggers such as changed core config files or too many modified files
This repository includes checked-in workflows under .github/workflows/:
ci.yml: test matrix, build, metadata check, and install smoke testrelease.yml: version validation, build, metadata check, and GitHub Release creation on version tagspublish-pypi.yml: manual PyPI publication workflow
The README includes a sample consumer workflow for running code2skill inside another repository.
Common CI arguments:
code2skill ci /path/to/repo --mode auto --base-ref origin/main --head-ref HEADOptional diff-file workflow:
code2skill ci /path/to/repo --mode auto --diff-file path/to/changes.diffIncremental reuse depends on:
- a previous
.code2skill/state/analysis-state.json - a previous
skill-plan.json - the saved state belonging to the same resolved repository root
If any of these conditions are missing or invalid, code2skill safely falls back to a full rebuild.
- first run with no saved state
- non-Git directory and no explicit diff file
pyproject.toml,requirements.txt, or another core config trigger changed- too many changed files for safe incremental execution
- cached state from a different repository root
If you want an artifact and structure sanity check without planning or generation, use:
code2skill ci /path/to/repo --mode auto --structure-only