---
title: "Configuration" component_type: hook version: "1.0.0" audience: contributor status: stable summary: " Strategy Brief Post-Generation Hook ====================================" keywords: ['analysis', 'brief', 'generation', 'post', 'strategy'] tokens: ~1500 created: 2025-12-22 updated: 2025-12-22
Strategy Brief Post-Generation Hook
Handles quality validation, output formatting, and artifact management after strategy brief generation completes.
Called by PostToolUse event when strategy-brief-generator agent completes.
Exit Codes: 0 - Success, post-processing complete 1 - Error, hook execution failed (non-blocking)
Input (stdin): JSON with tool_name, tool_input, tool_output, session_id Output (stdout): JSON with status and any modifications
File: strategy-brief-post-generation.py
Functions
calculate_quality_score(brief_content, metadata)
Calculate quality score for the strategy brief.
validate_recommendations(content)
Validate recommendations in the brief.
validate_executive_summary(content)
Validate executive summary length and structure.
generate_artifact_manifest(output_dir)
Generate manifest of all artifacts created.
create_quality_report(brief_content, quality_score, rec_issues, summary_issues)
Create quality validation report.
save_outputs(output_dir, brief_content, quality_report)
Save all outputs to the output directory.
main()
Main hook execution.
Usage
python strategy-brief-post-generation.py