Optional tooling for development workflow automation.
Foundation provides configuration and guidelines for common development tools:
- Secrets Manager - Encrypted secrets storage
- Environment Management - Dev/prod environment separation
- Agent Setup - Automated agent environment setup
- README Generator - Automated README maintenance
All tools are optional and configurable via foundation-config.yaml.
Encrypted file-based secrets storage for credentials.
tooling:
secrets:
enabled: true
storage_path: ".secrets/secrets.enc"
key_path: ".secrets/.key"
algorithm: "aes-256-gcm"
master_key_env: "SECRETS_MASTER_KEY"Implement a secrets manager in your repository:
# Store secret
node scripts/secrets-manager.js set API_KEY "value"
# Retrieve secret
node scripts/secrets-manager.js get API_KEY
# List secrets
node scripts/secrets-manager.js listSee foundation/security/credential-management.md for best practices.
Handles environment file copying for git worktrees and dev/prod separation.
tooling:
env_management:
enabled: true
env_file_priority:
- ".env.dev"
- ".env"
worktree_detection:
cursor_worktrees: true
environment_separation:
enabled: true
dev_prefix: "DEV_"
prod_prefix: "PROD_"
require_explicit_env: falseImplement environment handlers in your repository:
Worktree env handler:
# Copy .env to new worktree
node scripts/copy-env-to-worktree.jsEnvironment separation:
# .env with prefixed variables
DEV_DATABASE_URL=postgres://localhost:5432/db_dev
PROD_DATABASE_URL=postgres://prod:5432/db_prod
# Code reads appropriate prefix based on NODE_ENVAutomated infrastructure setup for cloud agents.
tooling:
agent_setup:
enabled: true
database:
type: "supabase"
migration_command: "supabase db push"
fallback_script: "scripts/apply_migrations.js"
tools:
- name: "playwright"
install_command: "npx playwright install --with-deps chromium"Create a setup script in your repository:
#!/bin/bash
# scripts/setup-agent-environment.sh
# Load env
source .env
# Apply migrations
npm run migrate
# Install tools
npx playwright install --with-deps chromium
# Verify setup
npm testSee Neotoma's scripts/setup_agent_environment.sh for reference implementation.
Automated README maintenance from source documentation.
tooling:
readme_generation:
enabled: true
source_documents:
- "docs/overview.md"
- "docs/features.md"
structure_template: "templates/readme-structure.md"
regenerate_triggers:
- "docs/**/*.md"Implement a README generator in your repository:
# Generate README from docs
node scripts/generate-readme.js
# Triggered on doc changes
# - Extracts content from source docs
# - Applies template structure
# - Generates README.md- Keep tooling optional - Not all projects need all tools
- Make it configurable - Use foundation-config.yaml
- Document usage - Include examples and setup instructions
- Test thoroughly - Verify tools work across environments
- Provide fallbacks - Handle missing dependencies gracefully
Add custom tools specific to your project:
tooling:
custom_tools:
my_tool:
enabled: true
config: "..."Implement in your repository's scripts/ directory.