Prompt file imported from DharmaDoll/product-security-controls (
.codex/prompts/01-implement-control.md). Copyright stays with the author.
Implement One Product Security Control
Read AGENTS.md and all relevant project documents first.
Input
Control ID: <CONTROL_ID>
Control title: <TITLE>
Domain: <DOMAIN>
Security problem: <PROBLEM>
Task
Implement this control as one complete vertical slice.
Required steps
- Confirm the control belongs in the specified domain.
- Describe the threat or failure scenario.
- Define measurable acceptance criteria.
- Create the control package.
- Make
## このcontrolを一枚で理解するthe first README H2 and complete all six required rows defined indocs/CONTROL_MODEL.md. - Add an insecure example where safe and useful.
- Add a secure example.
- Add automated verification.
- Add expected results.
- Add operational guidance and limitations.
- Add provisional framework mappings.
- Regenerate indexes.
- Run all relevant tests.
Required package structure
controls/<domain>/<slug>/
├── README.md
├── control.yaml
├── insecure/
├── secure/
├── tests/
├── expected-results/
└── scripts/
Omit irrelevant directories, but explain why.
Security requirements
- Do not use real secrets.
- Do not deploy insecure examples.
- Pin external dependencies and actions.
- Verify downloaded artifacts.
- Keep permissions minimal.
- Distinguish scan failure from clean results.
- Do not suppress findings to obtain a green test.
- Do not claim compliance.
- Include residual risk.
Completion report
Report:
- behavior implemented;
- insecure versus secure difference;
- verification commands;
- test evidence;
- framework mappings;
- limitations;
- files changed.
Do not implement unrelated controls.