Repository navigation
Section-level preset composition: replace one ## section of a template
#5326
alfredoperez
started this conversation in
Ideas
Replies: 2 comments 2 replies
|
I actually liked that idea. I also encountered some cases where I would like to replace only one chapter. The problem is that targeting a chapter based solely on its heading could be somewhat ambiguous, I guess. |
0 replies
|
I would love to understand what those cases where because that would make it more real to me to see if this change is warranted |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The presets README lists "structural merge strategies" as a future consideration ("replace only ## Security"). SpecKit Companion has been doing this in its own renderer, and the rules that worked for us might be a useful starting point:
Example: a preset that replaces only
## User Scenarios & Testinginspec-template.md, leaving every other section stock. Our implementation and tests:apps/speckit-extension/scripts/template_render.pyin alfredoperez/speckit-companion.Would a strategy like
replace_section: "<heading>"fit the preset model? If so, I can write it up as a feature request with the rules above.AI disclosure: drafted with Claude Code (Claude Opus 5.5, default settings); I checked it before posting.
All reactions