/audit-init Setup Initialize organization context for the audit workspace. Interactive setup wizard that generates org.yaml and documentation files.
Audit Init
You are configuring a CTO's audit workspace. This is an interactive setup wizard.
Pre-flight Checks
- Verify we're in a valid workspace (not inside checklist repo)
- Check if
org.yamlalready exists - if so, ask if they want to reconfigure - Ensure
checklist/submodule exists or can be added
Setup Flow
Ask these questions ONE AT A TIME. After each answer, acknowledge and move to the next.
Step 1: Organization Name
What's your organization name? (This is just for labeling)
Step 2: Cloud Providers
Which cloud providers do you use? (Select all that apply, or "tell later")
- AWS
- GCP
- Azure
- Other (specify)
- Tell me later
Step 3: Source Control
What's your source control setup?
- GitHub Cloud
- GitHub Enterprise
- GitLab Cloud
- GitLab Self-hosted
- Bitbucket
- Other
If GitHub, ask: What's your GitHub org name?
Step 4: Infrastructure as Code
How do you manage infrastructure? (Select all that apply, or "tell later")
- Terraform
- Pulumi
- CloudFormation
- CDK
- None / Manual
- Tell me later
Step 5: Compute Platform
What compute platforms do you use? (Select all that apply)
- Kubernetes
- ECS / Fargate
- Lambda / Cloud Functions
- VMs (EC2, Compute Engine)
- PaaS (Heroku, Railway, Render)
- Tell me later
Step 6: Observability
What monitoring tools do you use? (Select all, or "tell later")
Monitoring:
- Datadog
- New Relic
- Prometheus/Grafana
- CloudWatch
- Other
Error Tracking:
- Sentry
- Bugsnag
- Rollbar
- Other
(You can answer both, or "tell later" for either)
Step 7: Secrets Management
How do you manage secrets?
- HashiCorp Vault
- AWS Secrets Manager
- GCP Secret Manager
- 1Password / Doppler
- Environment variables only
- Tell me later
Step 8: CI/CD
What CI/CD system do you use?
- GitHub Actions
- GitLab CI
- CircleCI
- Jenkins
- Other
Step 9: Authentication
What auth system do you use for your applications?
- Auth0
- Okta
- Cognito
- Firebase Auth
- Custom / Self-built
- Tell me later
Generate Configuration
After collecting answers, generate these files:
org.yaml
name: [org name]
created_at: [ISO date]
configured_by: claude-audit-init
cloud_providers:
- [answered or empty list]
source_control:
provider: [github/gitlab/bitbucket]
type: [cloud/enterprise/self-hosted]
org: [org name if provided]
infrastructure:
iac: [terraform/pulumi/etc or null]
compute:
- [list of compute platforms]
observability:
monitoring: [tool or null]
errors: [tool or null]
logging: [tool or null]
secrets: [tool or null]
ci_cd: [tool]
auth: [tool or null]
# Items marked "tell later" - Claude will ask when relevant
deferred:
- [list of deferred items]
docs/org-context.md
Write a prose description of the organization's setup based on answers.
docs/audit-workflow.md
Generate instructions specific to their tooling:
- How to run audits
- Which sections are most relevant
- Tool-specific commands they'll use
docs/commands.md
List all available /audit-* commands with descriptions.
docs/preferences.md
# Audit Preferences
## Defaults
- Verbosity: normal
- Auto-run checks: ask first
## Custom Preferences
(Add your preferences here as you work)
CLAUDE.md
# [Org Name] Audit Workspace
This workspace is configured for auditing [org name]'s technical infrastructure.
## Quick Reference
See `org.yaml` for structured configuration.
## Documentation
- `docs/org-context.md` - Organization context and setup
- `docs/audit-workflow.md` - How to run audits
- `docs/commands.md` - Available commands
- `docs/preferences.md` - Your preferences
## Getting Started
1. Add a project: `/audit-add-project`
2. Start an audit: `/audit-start <project-name>`
3. Check progress: `/audit-status`
## Checklist Reference
The checklist is in `checklist/` (submodule). Browse items at:
- `checklist/checklist/` - All sections
- `checklist/dashboard/` - Web UI (run `pnpm dev`)
STATUS.md
# Workspace Status
**Last updated:** [date]
## Projects
| Project | Last Audit | Pass Rate |
|---------|------------|-----------|
| (none configured) | - | - |
## Recent Activity
(No audits yet)
After Generation
Show:
Your workspace is configured! Files created:
- org.yaml
- CLAUDE.md
- STATUS.md
- docs/org-context.md
- docs/audit-workflow.md
- docs/commands.md
- docs/preferences.md
Next steps:
- Review the generated files
- Run
/audit-add-projectto add your first project- Run
/audit-start <project>to begin auditingWould you like to add a project now?
Error Handling
- If user cancels mid-setup, save partial progress to
org.yaml.partial - If org.yaml exists, offer to backup before overwriting
- If checklist submodule missing, offer to add it