Title: Fix copilot setup when skills install fails by Copilot · Pull Request #1783 · usethis-python/usethis-python · GitHub
Open Graph Title: Fix copilot setup when skills install fails by Copilot · Pull Request #1783 · usethis-python/usethis-python
X Title: Fix copilot setup when skills install fails by Copilot · Pull Request #1783 · usethis-python/usethis-python
Description: When skills-lock.json is out of date, npx skills experimental_install mutates the lockfile, and git diff --exit-code fails the entire setup step. This blocks Copilot from working at all, when it should degrade gracefully. Graceful recovery on dirty worktree: Instead of failing, detect the dirty state, delete .agents/skills (stale external skills), revert all changes, and emit a ::warning:: annotation. Local skills (tracked in git) are restored by git checkout .; gitignored external skills stay removed. Add GIT_CONFIG_* env vars: Set core.autocrlf=false per the usethis-skills-external-install skill docs to produce reproducible hashes, reducing false lockfile diffs from the skills CLI bug. - name: Install external agent skills env: GIT_CONFIG_COUNT: "1" GIT_CONFIG_KEY_0: core.autocrlf GIT_CONFIG_VALUE_0: "false" run: | npx skills experimental_install if ! git diff --exit-code --quiet; then echo "::warning::skills-lock.json is out of date. Removing installed skills and reverting changes." rm -rf .agents/skills git checkout . fi
Open Graph Description: When skills-lock.json is out of date, npx skills experimental_install mutates the lockfile, and git diff --exit-code fails the entire setup step. This blocks Copilot from working at all, when it sh...
X Description: When skills-lock.json is out of date, npx skills experimental_install mutates the lockfile, and git diff --exit-code fails the entire setup step. This blocks Copilot from working at all, when it sh...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1783
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:93490fcb-0a75-3f2d-f921-33764330e147 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9EDA:89EF1:3C0986:51975D:6A4D5D7D |
| html-safe-nonce | 580aedce029401b2748cf58542ceb51d52712dee5af19750b866c191a76f6f9a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RURBOjg5RUYxOjNDMDk4Njo1MTk3NUQ6NkE0RDVEN0QiLCJ2aXNpdG9yX2lkIjoiODUxOTQwMDY1NjU3MzY1MjM0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 37c746c72f86517add78f2202a13b4af5507e9a7a21a1505d09e64e2bce20d8d |
| hovercard-subject-tag | pull_request:3487448171 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1783/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | When skills-lock.json is out of date, npx skills experimental_install mutates the lockfile, and git diff --exit-code fails the entire setup step. This blocks Copilot from working at all, when it sh... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width