بنقرة واحدة
lean-dist
Keep the published Composer archive lean by excluding dev/test/AI dirs via .gitattributes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Keep the published Composer archive lean by excluding dev/test/AI dirs via .gitattributes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Write boost-core skill files — frontmatter shape, skill tags, collision guards, source-dir selection, body content.
Implement a FileEmitter for boost-core to emit a custom file (e.g. .mcp.json, .editorconfig) into the host project during boost:sync.
| name | lean-dist |
| description | Keep the published Composer archive lean by excluding dev/test/AI dirs via .gitattributes. |
Every path NOT needed at runtime should be export-ignored so Composer's
dist installer skips it. Two layers produce that — and neither is a list
to hand-maintain in this skill:
vendor/bin/package-boost-php gitattributes
writes package-boost-php's canonical AI/agent entries into the
# >>> package-boost (managed) >>> block: the per-agent directories
(.ai/, .claude/, .cursor/, …) and the root agent files
(AGENTS.md, CLAUDE.md, GEMINI.md, plus the .cursorrules /
.windsurfrules dotfiles). The exact set is generated by the command —
read the live block, not a copy in this skill..lpv is the single source of truth for the
complete export-ignore set the validator checks: the managed AI/agent
entries above plus dev tooling, tests, and lock files (tests/,
composer.lock, phpstan.neon.dist, pint.json, …). Edit .lpv, not
a list here.Run vendor/bin/package-boost-php lean (this package) or directly via
vendor/bin/lean-package-validator validate. Both check the
.gitattributes against .lpv rules.
Add to CI:
- name: Validate lean dist
run: vendor/bin/package-boost-php lean
Two distinct tools, two roles — don't conflate them:
vendor/bin/package-boost-php gitattributes writes and refreshes the
managed block. This is what actually makes the archive lean; you run
it during setup and whenever a new top-level path needs excluding.
Baseline, not optional.vendor/bin/package-boost-php lean (the stolt/lean-package-validator
wrapper) only checks that the block stays complete. It is opt-in:
wire it into CI if you want enforcement, but a package whose managed
block is correct ships lean whether or not the validator ever runs.
There is no default .lpv / composer-script wiring — add it only if
you want the stricter gate.If your .gitattributes export-ignore is already covered by the managed
block (e.g. confirmed by a repo-init audit), the validator is
redundant-but-harmless, not a missing requirement.
.gitattributes outside the managed block to add boost-managed
entries — package-boost will rewrite the block on next syncexport-ignore on a new top-level dir → users get bloatexport-ignore with diff/merge attributes on the same line
(works, but visually noisy; separate the concerns).lpv file in this package's root for the canonical exclusion listreferences/gitattributes-managed-block.md in
sandermuller/repo-init for the multi-tool managed-block contract