| name | openwrt-feed-package-sync |
| description | Audit feed pins, local package checkouts, and .config dependencies before building. Trigger when asked to sync or update feeds (sync feeds, update feeds, 同步 feed, 更新 feed), inspect feeds.conf.default or update.sh, verify local packages such as OpenClash, HomeProxy, or ChinaDNS-NG, or catch missing dependencies between .config and local package Makefiles. |
OpenWrt Feed Package Sync
Use this skill before a build that depends on feeds or repo-local packages. The goal is to catch drift before the build fails deep in the tree.
Workflow
- Inspect
feeds.conf.default and note whether feeds are pinned to exact revisions.
- Inspect
update.sh and any repo-local package checkouts under package/.
- Run
scripts/audit_sync.py against the current .config.
- Fix missing dependencies, broken local git checkouts, or unexpected feed drift before compiling.
- Use
openwrt-build-runner for the actual compile after the audit is clean enough.
Commands
skills/openwrt-feed-package-sync/scripts/audit_sync.py
skills/openwrt-feed-package-sync/scripts/audit_sync.py --strict
skills/openwrt-feed-package-sync/scripts/audit_sync.py \
--config config/.config.GL-iNet-MT6000_23.05.5
Guardrails
- Do not blindly run
./scripts/feeds update -a if the repository intentionally pins feeds to commits.
- Treat repo-local package directories separately from upstream feeds. A pinned feed and a floating local checkout can drift independently.
- Check enabled local packages against their direct dependencies before editing package selections.
- If the audit points to stale target outputs rather than dependency drift, switch to
openwrt-target-switch-hygiene.
References
Read references/audit-checklist.md for repo-specific packages and dependency hotspots.