@sujal-kb007/copilot-setup
v1.0.3
Published
Auto-installs team GitHub Copilot instructions, skills, and VS Code settings on npm install
Downloads
19
Maintainers
Readme
@sujal-kb007/copilot-setup
One npm install to share GitHub Copilot instructions across your entire team — no manual file copying, no repo clutter.
What it does
On install, this package automatically:
- Copies shared instruction files into your project's
.github/directory - Merges Copilot configuration into
.vscode/settings.json
Files installed
your-project/
├── .github/
│ ├── copilot-instructions.md ← shared coding instructions
│ └── test-instructions.md ← test generation instructions
└── .vscode/
└── settings.json ← Copilot settings (merged, not overwritten)Installation
As a dev dependency (recommended)
npm install @sujal-kb007/copilot-setup --save-devThe postinstall hook runs automatically and sets everything up.
One-time setup via npx
npx @sujal-kb007/copilot-setupForce overwrite existing files
npx @sujal-kb007/copilot-setup --forceCustomizing instructions
After install, edit the files in .github/ to match your team's conventions. The package will not overwrite files that already exist (unless you use --force).
To update the shared defaults for your org, update the templates in this package and publish a new version.
Publishing to your org
# 1. Update templates in templates/.github/
# 2. Bump version
npm version patch
# 3. Publish (to npm or your private registry)
npm publish --access publicUsing GitHub Packages instead of npm
Add to package.json:
{
"publishConfig": {
"@sujal-kb007:registry": "https://npm.pkg.github.com"
}
}Then:
npm login --scope=@sujal-kb007 --registry=https://npm.pkg.github.com
npm publishHow it works
postinstallhook — runssetup.jsafternpm install, which copies templates into the consuming project- Existing files are preserved — won't overwrite your customized files unless
--forceis used .vscode/settings.jsonis merged — only adds Copilot keys if they don't already exist- Works with scoped packages — correctly resolves the project root from
node_modules/@sujal-kb007/copilot-setup/
License
MIT
