--- name: goose-recipe-analysis description: Create Goose recipes for document analysis and transformation tasks. Use when creating recipes that analyze saved reports, transform markdown files, or perform analysis on existing data without needing MCP server access. --- # Goose Recipe Analysis Skill Create Goose recipes for document analysis and transformation - recipes that work with saved data rather than querying live data sources. ## When to Use This Skill Use this skill when creating recipes that: - Analyze previously generated reports (markdown, JSON, CSV) - Transform or enrich existing documents - Extract insights from saved data - Generate actionable recommendations from reports - Perform follow-up analysis on data extracts **Do NOT use this skill for:** - Recipes that need to query live data sources (use `goose-recipes` skill instead) - Recipes that require MCP server access - Recipes that need structured JSON validation ## Quick Start To create an analysis recipe from a spec file: ``` Use the goose-recipe-analysis skill to create a recipe for mill/spec/your-analysis-spec.md ``` The skill will: 1. Read the markdown spec file 2. Generate a simplified recipe YAML (no MCP auth, no JSON schema) 3. Create a shell script runner for easy execution 4. Save files to the appropriate locations (recipe in `mill/recipes/`, script in `scripts/mill/`) ## Recipe Creation Workflow ### 1. Read the Spec File The skill reads from `mill/spec/*.md` files that describe document analysis workflows. ### 2. Extract Key Information From the spec, extract: - **Title**: Recipe name (from frontmatter) - **Description**: What the recipe accomplishes (from frontmatter) - **Workflow steps**: The analysis process to follow - **Output requirements**: What the final report should include ### 3. Generate Recipe YAML Create a simplified recipe with: ```yaml version: "1.0.0" title: "Recipe Title from Spec" description: "Description from spec frontmatter" parameters: - key: input_file input_type: file requirement: required description: "Path to the report file to analyze" - key: output_file input_type: string requirement: optional default: "analysis-output.md" description: "Path where analysis report should be saved" instructions: | # Analysis Instructions You are analyzing a saved fundraising report to extract actionable insights. ## Input The report to analyze: {{ input_file }} ## Analysis Framework [Include framework from spec - sections, steps, validations] ## Output Requirements Create a comprehensive analysis report including: [Include output structure from spec] Save the analysis to: {{ output_file }} prompt: "Analyze the fundraising report and generate actionable recommendations following the framework above." settings: goose_provider: "anthropic" goose_model: "claude-sonnet-4-20250514" temperature: 0.5 ``` ### 4. Generate Shell Script Runner Create a convenient runner script: ```bash #!/bin/bash # run-[recipe-name].sh RECIPE_NAME="recipe-name" RECIPE_PATH="mill/recipes/${RECIPE_NAME}.yaml" # Default values INPUT_FILE="" OUTPUT_FILE="analysis-output.md" # Usage function usage() { cat <