Repository Guidelines
Project Structure & Module Organization
projects/holds project-specific orchestrations, with architecture notes, exported n8n workflows (*.json), and.mcp.jsonagent configs. Keep new project docs in PascalCase directories and updateprojects/PROJECT_SUMMARY.md.scripts/includes shell helpers for starting services and inspecting logs; keep additions POSIX compatible.workflows/is reserved for in-progress n8n exports prior to promotion intoprojects/.logs/caches session transcripts consumed byview-agent-logs.sh; scrub secrets before committing.
Build, Test, and Development Commands
./scripts/start_servers.shboots the local n8n container stack, prompts for or stores the API key, and waits for both services to report healthy.docker compose up -doffers a non-interactive start; pair withdocker compose downwhen shutting the stack down../scripts/view-agent-logs.shor./scripts/view-agent-logs-v2.shtails orchestrator output; run after workflow edits to confirm behavior../scripts/clear-agent-logs.shresetslogs/when capturing a fresh session.
Coding Style & Naming Conventions
- Markdown docs: prefer sentence-case headings, hard wrap near 100 characters, and surface task context early.
- n8n exports (
*.json): commit the pretty-printed files generated by n8n, preserving two-space indentation. - Directory names use PascalCase for client initiatives (
AdBridge/,EnergyHouse/) and lowercase kebab-case for shared utilities (scripts/,workflows/).
Testing Guidelines
- Validate workflows in the n8n UI with the built-in “Test” or “Execute Workflow” actions before exporting.
- When using MCP tools, run
n8n_list_workflowsandn8n_get_workflowto confirm deployments match expectations. - Update validation or deployment notes (e.g.,
projects/*/VALIDATION_REPORT.md) with observed results, failure handling, and next steps.
Commit & Pull Request Guidelines
- Follow Conventional Commits (
feat:,fix:,docs:,refactor:,chore:) as reflected in recent history. - Limit each commit to one logical change and include the affected agent or project in the subject when practical (
docs: update EnergyHouse validation report). - Pull requests should describe workflow impact, link supporting architecture docs, and attach n8n execution screenshots or tool output when UI changes apply.
- Ensure secrets are redacted from logs, JSON exports, and screenshots prior to review.
Agent-Specific Tips
- Keep
.mcp.jsonfiles aligned with the tool inventory exposed bystart_servers.sh. - Capture operational runbooks alongside new automations so Claude agents can surface them in future queries.