5.3 KiB
Task Templates
Copy the relevant section into a future Codex request and fill in the blanks.
Operational Bash Tool
Goal
Build or improve a Bash tool for:
Context
Affected platform, incident, or operational workflow:
Constraints
- Default to dry-run/read-only.
- Require
--executefor changes. - Use
OK,WARNING, andCRITICAL. - Exit
0OK,1operational issue,2invalid input or missing dependency.
Files/directories to inspect
infra-run/scripts/bash/- Relevant runbook or README:
Implementation steps
- Inspect neighboring scripts and shared helpers.
- Add or adjust usage/help output.
- Add discovery, pre-check, guarded change, post-check, and reporting sections where useful.
- Update README or runbook notes.
Validation commands
bash -n <script>
./scripts/check-bash.sh
Done when
The tool is readable, safe by default, validates inputs, reports clearly, and has updated docs.
Ansible Playbook/Role
Goal
Add or improve Ansible automation for:
Context
Target OS and inventory group:
Constraints
- Preserve check-mode friendliness.
- Prefer modules over shell/command.
- Keep playbooks short.
- Keep role defaults sanitized.
Files/directories to inspect
infra-run/ansible/README.mdinfra-run/ansible/inventory/infra-run/ansible/playbooks/infra-run/ansible/roles/
Implementation steps
- Inspect existing role/playbook patterns.
- Add defaults, tasks, handlers, and tags only where needed.
- Add validation or post-check tasks for operational evidence.
- Update role/playbook README.
Validation commands
./scripts/check-ansible.sh
cd infra-run/ansible && ansible-playbook --syntax-check -i inventory/hosts.yml playbooks/<playbook>.yml
Done when
The playbook targets the right hosts, is idempotent where practical, supports review with --check --diff, and docs explain limitations.
Runbook
Goal
Create or improve a runbook for:
Context
Incident signal, platform, and affected service:
Constraints
- Include pre-checks, decision points, rollback, post-checks, and evidence.
- Avoid pretending lab notes are production-certified.
Files/directories to inspect
infra-run/runbooks/infra-run/docs/- Related scripts/examples:
Implementation steps
- Define scope and assumptions.
- Add triage steps and command examples.
- Add safe execution gates.
- Add validation and handoff notes.
Validation commands
./scripts/check-docs.sh
Done when
An operator can follow the runbook without guessing the risk, inputs, or success criteria.
Lab Scenario
Goal
Add or improve a lab scenario for:
Context
Technology and local environment:
Constraints
- Mark lab-only behavior clearly.
- Keep prerequisites and cleanup explicit.
Files/directories to inspect
labs/labs/docs/lab-cheatsheet.md
Implementation steps
- Document prerequisites and topology.
- Add setup, validation, failure injection if relevant, and cleanup.
- Link related scripts or runbooks.
Validation commands
./scripts/check-docs.sh
Done when
The lab is reproducible enough to review and does not imply production readiness.
Platform Project
Goal
Add or improve a platform project for:
Context
Monitoring, storage, clustering, virtualization, observability, or related topic:
Constraints
- Keep status honest: planned, partial, lab-tested, or complete.
- Prefer operational notes over marketing language.
Files/directories to inspect
platform-projects/platform-projects/docs/platform-cheatsheet.md
Implementation steps
- Identify scope and current maturity.
- Add design notes, operational workflows, and validation.
- Link runbooks, examples, and known limitations.
Validation commands
./scripts/check-docs.sh
Done when
The project explains what exists, how to validate it, and what remains unproven.
Documentation Cleanup
Goal
Clean up documentation for:
Context
Current confusion, duplication, or missing links:
Constraints
- Preserve useful operational detail.
- Avoid tutorial-style filler.
Files/directories to inspect
- Root
README.md - Section README files
- Related docs/runbooks:
Implementation steps
- Remove duplication where it hurts navigation.
- Add links to canonical docs.
- Make limitations explicit.
- Update changelog if meaningful.
Validation commands
./scripts/check-docs.sh
Done when
Readers can find the right tool, runbook, or validation command quickly.
Repository Review
Goal
Review repository quality for:
Context
Areas of concern:
Constraints
- Findings first, ordered by severity.
- Include file/line references where possible.
- Do not rewrite unrelated content.
Files/directories to inspect
AGENTS.mdREADME.mdinfra-run/platform-projects/labs/scripts/
Implementation steps
- Inspect structure and conventions.
- Review safety, validation, docs, and maintainability.
- Patch only low-risk issues if requested.
- Report risks and follow-ups.
Validation commands
./scripts/validate-repo.sh
git diff --stat
Done when
The review identifies practical risks and leaves a clear next action list.