Guidelines for generating validation/audit reports with UUID chains, progressive writing, and UTC+7 timestamps
Generate validation and audit reports following repository standards for naming, progressive writing, and UUID-based execution tracking.
This Skill auto-loads for checker and fixer agents that need to generate validation reports in generated-reports/.
All reports follow the 4-part pattern:
{agent-family}__{uuid-chain}__{YYYY-MM-DD--HH-MM}__{type}.md
Components:
{agent-family}: Agent name WITHOUT -checker suffix (e.g., docs, demo-fs-ts-nextjs, plan){uuid-chain}: Execution hierarchy as 6-char hex UUIDs separated by underscores{YYYY-MM-DD--HH-MM}: UTC+7 timestamp (double dash between date and time){type}: Report type (audit, validation, fix)Examples:
generated-reports/docs__a1b2c3__2026-01-03--14-30__audit.md
generated-reports/plan__d4e5f6__2026-01-03--15-00__validation.md
generated-reports/demo-facts__a1b2c3_d4e5f6__2026-01-03--16-45__audit.md
Generate 6-character hexadecimal UUID at agent startup:
MY_UUID=$(uuidgen | tr '[:upper:]' '[:lower:]' | head -c 6)
# Example output: a1b2c3
Why 6 characters?
Scope-based execution tracking enables parent-child hierarchy:
Tracking File Pattern: generated-reports/.execution-chain-{scope}
Startup Logic:
# 1. Generate own UUID
MY_UUID=$(uuidgen | tr '[:upper:]' '[:lower:]' | head -c 6)
# 2. Determine scope (from EXECUTION_SCOPE or default to agent-family)
SCOPE="${EXECUTION_SCOPE:-docs}"
# 3. Read parent chain from scope tracking file
CHAIN_FILE="generated-reports/.execution-chain-${SCOPE}"
if [ -f "$CHAIN_FILE" ]; then
read PARENT_TIME PARENT_CHAIN < "$CHAIN_FILE"
CURRENT_TIME=$(date +%s)
TIME_DIFF=$((CURRENT_TIME - PARENT_TIME))
# If parent is recent (< 5 min), append to chain
if [ $TIME_DIFF -lt 300 ]; then
UUID_CHAIN="${PARENT_CHAIN}_${MY_UUID}"
else
UUID_CHAIN="$MY_UUID" # Start new chain
fi
else
UUID_CHAIN="$MY_UUID" # First execution
fi
# 4. Write own chain to tracking file
echo "$(date +%s) $UUID_CHAIN" > "$CHAIN_FILE"
Chain Examples:
a1b2c3 - Root execution (no parent)a1b2c3_d4e5f6 - Child of a1b2c3a1b2c3_d4e5f6_g7h8i9 - Grandchild (2 levels deep)Generate timestamp in UTC+7 timezone:
TIMESTAMP=$(TZ='Asia/Jakarta' date +"%Y-%m-%d--%H-%M")
# Example output: 2026-01-03--14-30
Format: YYYY-MM-DD--HH-MM (double dash between date and time for filesystem compatibility)
CRITICAL REQUIREMENT: All checker agents MUST write findings progressively, not buffer and write once at end.
Why? Context compaction during long validation runs can lose buffered findings. Progressive writing ensures audit history survives.
Implementation Pattern:
Step 0: Initialize Report File
- Generate UUID and chain
- Create report file immediately
- Write header with "In Progress" status
Steps 1-N: Validate Content
- For each validation check:
1. Perform validation
2. Immediately write finding to report file (append mode)
3. Continue to next check
- DO NOT buffer findings in memory
Final Step: Finalize Report
- Update status from "In Progress" to "Complete"
- Add summary statistics
- File already contains all findings from progressive writing
Initial Header (Step 0):
# Validation Report: [Agent Name]
**Status**: In Progress
**Agent**: [agent-name]
**Scope**: [scope-description]
**Timestamp**: [YYYY-MM-DD--HH-MM UTC+7]
**UUID Chain**: [uuid-chain]
---
## Findings
[Findings will be written progressively during validation]
Progressive Findings (Steps 1-N):
### Finding [N]: [Title]
**File**: path/to/file.md
**Line**: 123
**Criticality**: HIGH
**Category**: [category-name]
**Issue**: [Description of what's wrong]
**Recommendation**: [How to fix it]
---
Final Summary (Last Step):
## Summary
**Total Findings**: [N]
- CRITICAL: [count]
- HIGH: [count]
- MEDIUM: [count]
- LOW: [count]
**Status**: Complete
**Completed**: [YYYY-MM-DD--HH-MM UTC+7]
Common scopes for execution tracking:
| Agent Family | Scope | Tracking File |
|---|---|---|
| repo-rules-checker | repo-rules | .execution-chain-repo-rules |
| docs-checker | docs | .execution-chain-docs |
| docs-tutorial-checker | docs-tutorial | .execution-chain-docs-tutorial |
| readme-checker | readme | .execution-chain-readme |
| plan-checker | plan | .execution-chain-plan |
| demo-fs-ts-nextjs-* | demo-[lang] | .execution-chain-demo-[lang] |
| demo-fs-ts-nextjs-* | ose-platform | .execution-chain-ose-platform |
Agents using this Skill MUST have:
Example frontmatter:
---