بنقرة واحدة
saguaro-createrule
Generate a single Saguaro review rule using the AI pipeline with preview and approval
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate a single Saguaro review rule using the AI pipeline with preview and approval
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Auto-generate Saguaro review rules using the full AI pipeline with approval before writing
Switch the AI model used for Saguaro code reviews
Run Saguaro code review on current changes
| name | saguaro-createrule |
| description | Generate a single Saguaro review rule using the AI pipeline with preview and approval |
Gather inputs — Ask the user for:
Generate proposal — Call the saguaro_generate_rule MCP tool with the target and intent.
Tell the user this may take 15-30 seconds while the pipeline analyzes their code.
Present the proposal — Show the user:
Ask for approval — Use AskUserQuestion with structured options:
AskUserQuestion({
questions: [{
question: "How would you like to proceed with this rule?",
header: "Approval",
options: [
{ label: "Accept", description: "Write the rule as-is" },
{ label: "Edit", description: "Modify fields (title, severity, instructions, globs) before writing" },
{ label: "Cancel", description: "Discard the proposal" }
],
multiSelect: false
}]
})
Choose placement — If the user accepts, use AskUserQuestion to present the placement options from the proposal and ask which scope to use.
Write the rule — Call saguaro_create_rule with the final rule fields and the selected scope.
Report the created rule ID and file path.