Executor: Gemini-CLI
Thank you for your interest in contributing! This project follows strict standards to maintain quality.
# 1. Fork and clone
git clone https://github.com/YOUR_USERNAME/defense-in-depth.git
cd defense-in-depth
# 2. Install dependencies
npm install
# 3. Build
npm run build
# 4. Run tests
npm testBefore writing any code, read this first:
.agents/philosophy/COGNITIVE_TREE.md— Understand our core beliefs and philosophy
Then, review these foundational rules:
.agents/rules/rule-consistency.md— Folder structure, naming, dependencies.agents/rules/rule-guard-lifecycle.md— How to add new guards.agents/rules/rule-contribution-workflow.md— PR flow.agents/rules/rule-coderabbit-integration.md— Automated PR Review Integration (Operational)
- TypeScript strict — No
any, no exceptions - Conventional commits —
feat(guards): add new guard - One guard = one file — in
src/guards/ - One test per guard — in
tests/guards/ - Zero external deps — stdlib +
yamlonly
- Create
src/guards/my-guard.tsimplementing theGuardinterface - Add to
src/guards/index.tsbarrel export - Add config type in
src/core/types.ts - Create
tests/guards/my-guard.test.ts - Update the guards table in
docs/user-guide/configuration.md - PR with title:
feat(guards): add my-guard
- Must be a pure function (no side effects beyond reading files)
- Must handle its own errors
- Must run in <100ms for typical workloads
- Must include
fixsuggestions for BLOCK findings
- Fork → Branch (
feat/my-feature) - Follow conventional commits
- Ensure
npm testpasses locally - Submit PR to
main - CI runs on 3 OS × 3 Node versions
- Automated Review Gateway (if configured)
- Maintainer review for breaking changes
Be respectful. Be constructive. Show evidence, not opinions.