Repository navigation
v6.1.1
v6.1.1 is a security fix for the compose-architecture guard scripts, replacing v6.1.0 as Latest. Skill guidance is unchanged from v6.1.0; only the guard scripts, the feature scaffold script (new-feature.sh), the project audit and one line of adoption guidance changed.
What was wrong
- The guard scripts ran
.composekit.confas shell code. Everycheck-*.shloaded the project's config with., so running the guards on a project you don't control (a cloned repo, a contributor's branch) would run any command written in its.composekit.conf. - One config value reached a
sedprogram. Incheck-layering.sh, a craftedBASE_PACKAGEcould makesedwrite a file outside the project, and on GNU sed run a command. - On your own project, with a config you wrote, neither was a practical risk.
What changed
- The config is read as data, never executed (#19). The new
scripts/lib/composekit-conf.shreads only the 9 knownKEY=valuesettings and checks each value:BASE_PACKAGEis a package name (dot-separated identifiers, so a typo likecom.example.is caught);- folder settings are paths inside the project;
UI_MODELisalways,when-neededor empty (the default).
- A config line the guards can't use fails the run (#21). The check prints a warning naming the line and stops with exit 2, so
run-checks.shreports FAIL. Before, it could fall back to the default folders and pass while checking nothing. - Warnings never echo control characters from the config, so a hostile config can't send escape sequences to your terminal (#21).
check-layering.shmatches imports as plain text instead of building asedprogram.new-feature.shreadsUI_MODELin the same forms as the guards ('always', trailing# comments,export). The last valid line wins, and an invalid one prints a warning (#21).audit-project.shflags guards installed before this release asinstalled, OUTDATED(#20).- Adopting an existing project: check a project you didn't set up with the kit's own
run-checks.sh, not the project'sscripts/composekit/copy (#20).
Behaviour change
- Valid configs work unchanged. Every config shipped with the kit loads cleanly.
- A config that relied on shell features now fails the guard run until the line is fixed:
+=,$VAR, a value spread over several lines, tab-separated lists, or an unknown key. The warning names the file and line. Put each setting on one line, asKEY="item1 item2".
Upgrade
- Update the skills:
npx skills:npx skills update.gh skill:gh skill update --unpin --all.--unpinis needed once if you installed with--pin, as our install docs said until now:gh skill updateskips pinned skills. After that,gh skill update --allis enough.
- Update the installed guards in each project: run the
compose-architectureskill'sscripts/install-guards.sh <project-root>. Your.composekit.confis kept. - Check:
audit-project.sh <project-root>should no longer reportOUTDATED.run-checks.shshould pass with no config warnings; if a check fails with "unusable line", fix the line it names in.composekit.conf.
Install
See the README or https://compose.avinya.dev/install/. The install commands there no longer pin a version, so they always install the latest release.