I recently completed the development of a feature which is attached to site definitions via a site staple. The feature is a building block, designed to be used by other solution developers when building their own custom site definitions. Rather than continually modifying the staple in my feature (requiring my solution to be rebuilt and redeployed) I wrote a quick little tool that allows them to generate their own staple. With just a little more work I made it generic enough for anyone, and today dropped it onto Codeplex. Hope it helps.
Download the Site Staple Feature Builder
Installation
This is just a single command-line executable, so download it from here and then get started.
Usage
Base Site Staple Feature Generator
-------------------------------
Usage: zsStapleGenerator <StapleTitle> <SiteDefinitions> <FeatureGuid> <Scope> <FeatureFolder>
<StapleTitle> Name you would like to give the new StapleFeature
<SiteDefinitions> List of the SiteDefinition to be stapled (';' or ',' delimited)
<FeatureGuid> The Guid of the Feature that is to be stapled
<Scope> Either 'WebApplication' or 'Farm'
<FeatureFolder> The New folder where you would like to create the feature.
Notes
This is obviously just producing the feature, you would next need to wrap it up into an installable solution file. I stopped here as there are many ways to do this.
After you have created the new feature you can obviously tweak it to your hearts content, the beauty is that all that typing is avoided.