@@ -456,90 +456,19 @@ Common reasons to fall back to a full rebuild:
456456- cached state was generated for a different repository root
457457
458458Recommended GitHub Actions workflow:
459-
460- ``` yaml
461- name : code2skill
462-
463- on :
464- pull_request :
465- push :
466- branches :
467- - main
468-
469- jobs :
470- build-skills :
471- runs-on : ubuntu-latest
472-
473- steps :
474- - name : Checkout
475- uses : actions/checkout@v4
476- with :
477- fetch-depth : 0
478-
479- - name : Setup Python
480- uses : actions/setup-python@v5
481- with :
482- python-version : " 3.11"
483-
484- - name : Restore code2skill cache
485- uses : actions/cache@v4
486- with :
487- path : .code2skill
488- key : code2skill-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }}
489- restore-keys : |
490- code2skill-${{ runner.os }}-${{ github.ref_name }}-
491- code2skill-${{ runner.os }}-
492-
493- - name : Install
494- run : pip install code2skill
495-
496- - name : Run code2skill
497- env :
498- QWEN_API_KEY : ${{ secrets.QWEN_API_KEY }}
499- CODE2SKILL_LLM : qwen
500- CODE2SKILL_MODEL : qwen-plus-latest
501- run : |
502- code2skill ci \
503- --mode auto \
504- --base-ref origin/${{ github.base_ref || 'main' }} \
505- --head-ref HEAD
506-
507- - name : Upload artifacts
508- uses : actions/upload-artifact@v4
509- with :
510- name : code2skill-output
511- path : .code2skill
512- ` ` `
459+ See [ CI Guide] ( ./docs/ci.md ) for a consumer workflow example and the checked-in repository workflows.
513460
514461Notes:
515462
516463- ` fetch-depth: 0 ` matters, otherwise the base ref may not exist locally.
517464- Caching ` .code2skill ` is what enables fast incremental reuse.
518465- The first CI run on a branch usually behaves like a full build because there is no prior state.
519466- If you want a no-LLM CI sanity check, use ` code2skill ci --mode auto --structure-only ` .
520- - This repository now includes checked-in workflows under `.github/workflows/` for CI and tagged releases .
467+ - This repository now includes checked-in workflows under ` .github/workflows/ ` for CI, GitHub Releases, and manual PyPI publication .
521468
522469## Output Layout
523470
524- Typical output :
525-
526- ` ` ` text
527- .code2skill/
528- project-summary.md
529- skill-blueprint.json
530- skill-plan.json
531- report.json
532- references/
533- architecture.md
534- code-style.md
535- workflows.md
536- api-usage.md
537- skills/
538- index.md
539- *.md
540- state/
541- analysis-state.json
542- ` ` `
471+ See [ Output Layout] ( ./docs/output-layout.md ) for the command-by-command artifact matrix and adapted target files.
543472
544473## Typical Use Cases
545474
0 commit comments