xiaohongshu
xiaohongshu
housekeeping
Automatically maintain repository cleanliness and organization by scanning for misplaced files, organizing loose scripts, and ensuring professional folder structure
Full skill instructions
Automatically maintain repository cleanliness and organization by scanning for misplaced files, organizing loose scripts, cleaning up temporary files, and ensuring professional folder structure throughout the codebase.
Invoke with: housekeeping (no parameters required)
Example:
"Hey Claude, read the housekeeping guide and analyze our repo for any cleanup needed."
This skill implements the workflow defined in:
/resources/docs/HOUSEKEEPING.md
Read this file first to understand the comprehensive organization protocol.
Analyze the current state of the repository across all critical areas.
First, load the ALLOWED ROOT FILES WHITELIST (see below)
Key Rule: If a file is NOT on the whitelist, it needs to be organized or deleted.
Categorize all findings into severity levels:
Small, obvious fixes that can be done immediately:
Larger changes that need user confirmation:
For items categorized as "Auto-Fix":
Delete unnecessary files:
# System files
find . -name ".DS_Store" -delete
find . -name "Thumbs.db" -delete
# Backup files
find . -name "*.bak" -delete
find . -name "*.backup" -delete
find . -name "*~" -delete
Move 1-2 clearly misplaced files:
resources/utilities/scripts/python/[category]/resources/utilities/scripts/shell/[category]/Silent execution - just do it, no need to announce
If there are items requiring approval:
Present current state:
Propose solution:
Wait for user approval before proceeding
Use TodoWrite tool to track all planned changes
Execute approved changes in this order:
Create new folder structure (if needed)
Delete approved files (backups, duplicates, temp files)
Move files in logical groups:
resources/utilities/scripts/python/[category]/resources/utilities/scripts/shell/[category]/resources/examples/Rename folders (if needed) following conventions
Verify nothing lost - check that all important files were moved, not deleted
Stage all changes:
git add .
Review changes:
git status
Commit with descriptive message:
git commit -m "$(cat <<'EOF'
chore: Daily housekeeping - organize repository structure
• Cleaned up loose files from root directory
• Organized scripts into proper utility folders
• Deleted temporary and backup files
• Maintained professional folder structure
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
EOF
)"
Push to remote (only if user explicitly requests)
Send brief update to Academy channel:
Get Academy channel ID:
Use mcp__slack__slack_list_channels to find Academy channel
Send notification:
Use mcp__slack__slack_send_message with:
- Channel: Academy channel ID
- Message: "🧹 Daily housekeeping completed for transportation-insight repository! Organized loose files, cleaned up context folder, and maintained proper folder structure for optimal development workflow."
Keep it brief - 2 sentences max, professional tone
CRITICAL: Only these files are allowed at the repository root. Everything else must be organized or deleted.
package.json - NPM package configurationpackage-lock.json - NPM lock filetsconfig.json - TypeScript configurationtsconfig.tsbuildinfo - TypeScript build cachenext.config.js - Next.js configurationnext.config.mjs - Next.js configuration (ESM)next-env.d.ts - Next.js type definitionsmiddleware.ts - Next.js middlewaremiddleware.js - Next.js middleware (JS)amplify.yml - Amplify build configurationamplify_outputs.json - Amplify runtime configuration.gitignore - Git ignore rules.gitattributes - Git attributes.env - Environment variables (if exists).env.local - Local environment variables.env.production - Production environment variables.env.development - Development environment variablesREADME.md - Main project documentation (ONLY .md file allowed at root)CLAUDE.md - Symlink to Claude config (if exists).eslintrc.js - ESLint configuration.eslintrc.json - ESLint configuration.prettierrc - Prettier configuration.prettierignore - Prettier ignore rules.editorconfig - Editor configurationDockerfile - Docker configuration (if exists).dockerignore - Docker ignore rules (if exists)postcss.config.js - PostCSS configuration (if exists)tailwind.config.js - Tailwind configuration (if exists)jest.config.js - Jest configuration (if exists)vitest.config.ts - Vitest configuration (if exists)Everything else = ORGANIZE or DELETE
sync_databricks.py → resources/utilities/scripts/python/databricks/setup_auth.sh → resources/utilities/scripts/shell/auth/TESTING_NOTES.md → context/qa-test-scenarios/architecture.md → context/technical-docs/old_config.json → DELETE or move to resources/.DS_Store - macOS system filesThumbs.db - Windows system files*.bak - Backup files*.backup - Backup files*~ - Temp files*.tmp - Temp files*.log - Log files (unless in /logs folder)transportation-insight/
├── .amplify/ # Amplify framework
├── .claude/ # Claude Code config
├── .git/ # Git version control
├── .github/ # GitHub config
├── .next/ # Next.js build
├── amplify/ # Amplify backend
├── context/ # Project context (user-specified keep)
├── logs/ # Application logs (user-specified keep)
├── node_modules/ # NPM dependencies
├── public/ # Next.js public assets
├── resources/ # All supporting materials
├── src/ # Application source code
├── .env.local # Environment config
├── .gitignore # Git ignore rules
├── amplify_outputs.json # Amplify outputs
├── amplify.yml # Amplify build config
├── middleware.ts # Next.js middleware
├── next-env.d.ts # Next.js types
├── next.config.js # Next.js config
├── package.json # NPM package config
├── package-lock.json # NPM lock file
├── README.md # Main documentation
├── tsconfig.json # TypeScript config
└── tsconfig.tsbuildinfo # TypeScript build info
context/
├── README.md # ONLY file at root level
├── legacy-codebase/ # Previous platform code
├── qa-test-scenarios/ # Testing scenarios
├── setup-guides/ # Auth and setup docs
├── team-communications/ # Slack conversations
├── technical-docs/ # Architecture docs
└── ui-specifications/ # Design specs
resources/utilities/
├── scripts/
│ ├── python/
│ │ ├── slack/ # Slack integration scripts
│ │ ├── databricks/ # Database scripts
│ │ └── [category]/ # Other categorized scripts
│ └── shell/
│ ├── auth/ # Authentication setup
│ ├── sync/ # Synchronization scripts
│ └── deployment/ # Deployment scripts
└── resources/ # Text files, links, references
team-communications, qa-test-scenariosui-specifications not designsetup-guides for all auth/config docslegacy-codebase not legacyFrom tsconfig.json, these folders are excluded and should be ignored:
node_modules - Dependencies, don't touchsrc_original - Archived code, leave alonesrc/warehouse - Excluded from build, leave aloneOldSource - Legacy code, leave aloneamplify/**/* - Don't reorganize Amplify structurescripts/**/* - If this exists, leave it alone✅ Root directory contains only essential framework files + context + logs + resources ✅ Context folder has only README.md at root, all docs properly categorized ✅ Resources folder has deep organization with clear categorization ✅ No loose files - everything has a logical, discoverable location ✅ Consistent naming throughout (lowercase-with-hyphens) ✅ All changes committed with descriptive message ✅ Academy channel notified of completion ✅ Developer can find any file within 30 seconds
Morning invocation:
User: "Hey Claude, read the housekeeping guide and analyze our repo for any cleanup needed."
Claude's workflow:
/resources/docs/HOUSEKEEPING.mdpackage.json, tsconfig.json, README.md, middleware.ts, etc.sync_databricks.py, old_script.shAUTH_NOTES.md, TESTING.md (docs not on whitelist).DS_Store filessync_databricks.py (NOT on whitelist → needs categorization)AUTH_NOTES.md, TESTING.md (need proper folders)Found 3 files at root that are NOT on the whitelist:
📂 Root Directory Violations:
❌ sync_databricks.py (Python script - should be in resources/utilities/)
❌ AUTH_NOTES.md (Documentation - should be in context/setup-guides/)
❌ TESTING.md (Documentation - should be in context/qa-test-scenarios/)
Proposed actions:
• Move sync_databricks.py → resources/utilities/scripts/python/databricks/
• Move AUTH_NOTES.md → context/setup-guides/
• Move TESTING.md → context/qa-test-scenarios/
[Shows ASCII tree of proposed changes]
sync_databricks.py → resources/utilities/scripts/python/databricks/AUTH_NOTES.md → context/setup-guides/TESTING.md → context/qa-test-scenarios/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