Chain Prompt for AI Agent Prompt Risk Assessment and Mitigation