| name | devflow-audit |
| description | Use when recording an interaction or decision to the devflow audit log during orchestrator execution. |
| metadata | {"version":"0.3.0","author":"Jay","category":"ai-dlc-workflow","invoke_mode":"orchestrator-only","return_behavior":"stop-no-gate","skill_nature":null,"lifecycle":"active"} |
devflow-audit
Purpose
Append interaction logs to devflow-docs/audit.md. This file is APPEND-ONLY — never overwrite its contents.
Critical Rules
- ALWAYS append — never use tools that overwrite the entire file
- Read first, then edit — use Edit tool to append, never Write tool on the full file
- Raw input only — never summarize or paraphrase user input
- ISO 8601 timestamps — always include full timestamp
Log Entry Format
Each entry must follow this exact format:
## [Stage Name]
**Timestamp**: [YYYY-MM-DDTHH:MM:SSZ]
**User Input**: "[Complete raw user input — never summarized]"
**AI Response**: "[Action taken or response given]"
**Context**: [Stage name, decision made, or notable event]
---
When to Log
Log at these moments:
- When user sends any message during a devflow workflow
- When a stage completes (log the completion)
- When a stage is skipped (log the skip + reason)
- When user approves or requests changes at a gate
How to Append
- Check if
devflow-docs/audit.md exists
- If not: create with header
# devflow Audit Log\n\n
- Append the new entry using Edit tool at end of file
- NEVER use Write tool to rewrite the entire file
Correct Tool Usage
✅ CORRECT:
- Read
devflow-docs/audit.md
- Use Edit tool to append new entry at end
❌ WRONG:
- Read
devflow-docs/audit.md
- Use Write tool with old content + new content (this is a full overwrite)