Loading...
Loading...
Automatically sync Agents.md, claude.md and gemini.md files in the project to maintain content consistency. Supports automatic monitoring and manual triggering.
npx skill4agent add littleben/awesomeagentskills doc-sync-toolAgents.mdclaude.mdgemini.mdcd /Users/ben/Downloads/go\ to\ wild/auto-website-system/_skills/doc-sync-tool
pnpm install# Execute in the project root directory
node /Users/ben/Downloads/go\ to\ wild/auto-website-system/_skills/doc-sync-tool/sync.js
# Or use npm script
pnpm run sync# Start the file monitoring service
node /Users/ben/Downloads/go\ to\ wild/auto-website-system/_skills/doc-sync-tool/watch.js
# Or use npm script
pnpm run watch# Run in background using PM2
pm2 start /Users/ben/Downloads/go\ to\ wild/auto-website-system/_skills/doc-sync-tool/watch.js --name doc-sync
# Check status
pm2 status
# Stop service
pm2 stop doc-syncAgents.mdclaude.mdgemini.mdsync.jsconst CONFIG = {
targetFiles: ['Agents.md', 'claude.md', 'gemini.md'], // Target file list
scanPath: process.cwd(), // Scan path (current directory by default)
excludeDirs: ['node_modules', '.git', '.next', 'dist'] // Excluded directories
};node_modules.git.nextdistchmod +x sync.js watch.jsrm -rf node_modules package-lock.json
pnpm install