xiaohongshu
xiaohongshu
gitignore-hygiene
Automatic gitignore maintenance and cleanup. Use when: (1) after commits, (2) new file types appear in project, (3) build artifacts get committed, (4) before pushing to remote. Scans for unwanted files and suggests gitignore additions.
Full skill instructions
Maintains gitignore patterns and cleans cached files from git tracking.
Invoke when:
Also invoke explicitly with:
/gitignore-hygieneCheck for common patterns that should be ignored:
# Check for tracked files that should be ignored
git ls-files | grep -E '\.(log|env|pem|key)$'
git ls-files | grep -E '^(node_modules|dist|build|coverage)/'
Read .gitignore and identify missing patterns:
| Category | Patterns to Check |
|---|---|
| Dependencies | node_modules/, .pnpm-store/, vendor/ |
| Build | dist/, build/, .svelte-kit/, .next/, .nuxt/ |
| Test | coverage/, test-results/, playwright-report/ |
| IDE | .idea/, .vscode/, *.swp |
| OS | .DS_Store, Thumbs.db |
| Environment | .env, .env.local, .env.*.local |
| Logs | .log, npm-debug.log |
| Cache | .cache/, .turbo/, .eslintcache |
| Credentials | *.pem, *.key, credentials.json |
Adjust patterns based on detected stack:
Node.js / TypeScript:
node_modules/
dist/
.turbo/
Svelte / SvelteKit:
.svelte-kit/
build/
Next.js:
.next/
out/
Python:
__pycache__/
*.pyc
.venv/
.pytest_cache/
Rust:
target/
Cargo.lock # for libraries
If issues found:
Gitignore hygiene check:
Missing patterns:
+ coverage/ (test artifacts)
+ playwright-report/ (test artifacts)
+ .turbo/ (cache)
Tracked files that should be ignored:
- coverage/lcov.info
- test-results/results.xml
Recommended actions:
1. Add missing patterns to .gitignore
2. Remove cached files from tracking
Run: git rm -r --cached coverage/ test-results/
If no issues:
Gitignore hygiene check: All clear
No unwanted files tracked.
All common patterns present.
Add missing patterns:
echo "coverage/" >> .gitignore
echo "test-results/" >> .gitignore
Remove cached files:
git rm -r --cached coverage/
git rm -r --cached test-results/
Commit the cleanup:
git add .gitignore
git commit -m "chore: update gitignore patterns
Added:
- coverage/
- test-results/
- playwright-report/
Removed from tracking:
- coverage/lcov.info
- test-results/results.xml
Co-Authored-By: Claude <[email protected]>"
These patterns should be in every project:
# OS files
.DS_Store
Thumbs.db
# IDE
.idea/
.vscode/
*.swp
*.swo
# Environment
.env
.env.local
.env.*.local
# Logs
*.log
Node.js:
node_modules/
.pnpm-store/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
TypeScript:
dist/
*.tsbuildinfo
Testing:
coverage/
.nyc_output/
test-results/
playwright-report/
SvelteKit:
.svelte-kit/
build/
Next.js:
.next/
out/
Vite:
dist/
.vite/
Never ignore these (warn if present):
| Pattern | Risk |
|---|---|
src/ | Ignoring source code |
*.ts | Ignoring all TypeScript |
package.json | Ignoring manifest |
.gitignore | Recursive ignore |
Run hygiene check after commits to catch:
Run hygiene check before pushing:
project-init creates comprehensive .gitignore. This skill maintains it over time.
After any commit session: repo-hygiene (final cleanup)
| Rationalization | Why It's Wrong | Required Action |
|---|---|---|
| "Just one file" | One file becomes many | Add pattern |
| "I'll clean later" | Later is never | Clean now |
| "It's not sensitive" | Build artifacts bloat repo | Remove from tracking |
| "Gitignore is fine" | Projects evolve | Verify regularly |
/gitignore-hygiene
Scanning project...
Found issues:
1. Missing patterns:
+ .turbo/ (detected turbo usage)
+ playwright-report/ (detected playwright)
2. Tracked files to remove:
- .turbo/cache/abc123
- playwright-report/index.html
Actions:
[1] Add patterns to .gitignore
[2] Remove cached files
[3] Skip
> 1
Updated .gitignore with:
+ .turbo/
+ playwright-report/
> 2
Removed from tracking:
- .turbo/cache/ (42 files)
- playwright-report/ (15 files)
Ready to commit? [y/n]
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience