chore: harden gitignore and add commit hygiene rules

This commit is contained in:
AgentSeal 2026-04-14 09:03:23 -07:00
parent fc7387f427
commit 9ca866fe43
2 changed files with 38 additions and 0 deletions

30
.gitignore vendored
View file

@ -1,4 +1,34 @@
node_modules/
dist/
*.tgz
# OS
.DS_Store
Thumbs.db
# Editor / IDE
.vscode/
.idea/
*.swp
*.swo
*~
# Planning artifacts (internal, not shipped)
docs/superpowers/
# Config / secrets
.env
.env.*
*.pem
*.key
# Debug / logs
*.log
npm-debug.log*
# Cache
.cache/
*.sqlite
# Build artifacts
*.tsbuildinfo

View file

@ -57,6 +57,14 @@ git push origin main
gh pr comment <number> --body "Merged, thanks!"
```
### What gets committed
- Source code: `src/`, `tests/`
- Config: `package.json`, `tsconfig.json`, `tsup.config.ts`, `.gitignore`
- Docs: `README.md`, `CHANGELOG.md`, `LICENSE`, `CLAUDE.md`
- Assets: `assets/`
- NEVER commit: `.env`, secrets, keys, planning docs (`docs/superpowers/`), IDE config, logs, `.DS_Store`
- Check `git status` before every commit. Stage specific files, never `git add -A` or `git add .`
### Commit rules
- Commits from: AgentSeal <hello@agentseal.org>
- NEVER add Co-Authored-By lines