xiaohongshu
xiaohongshu
goose-recipe-analysis
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.
Full skill instructions
Create Goose recipes for document analysis and transformation - recipes that work with saved data rather than querying live data sources.
Use this skill when creating recipes that:
Do NOT use this skill for:
goose-recipes skill instead)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:
mill/recipes/, script in scripts/mill/)The skill reads from mill/spec/*.md files that describe document analysis workflows.
From the spec, extract:
Create a simplified recipe with:
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
Create a convenient runner script:
#!/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 <<EOF
Usage: $0 [OPTIONS]
Analyze a saved fundraising report using Goose.
OPTIONS:
--input FILE Path to the report file to analyze (required)
--output FILE Path where analysis should be saved (default: analysis-output.md)
-h, --help Show this help message
EXAMPLES:
# Analyze a report
$0 --input reports/q4-2024/report.md
# Analyze with custom output
$0 --input reports/q4-2024/report.md --output analysis/q4-insights.md
EOF
exit 1
}
# Parse arguments
while [[ $# -gt 0 ]]; do
case $1 in
--input)
INPUT_FILE="$2"
shift 2
;;
--output)
OUTPUT_FILE="$2"
shift 2
;;
-h|--help)
usage
;;
*)
echo "Unknown option: $1"
usage
;;
esac
done
# Validate required parameters
if [ -z "$INPUT_FILE" ]; then
echo "Error: --input is required"
usage
fi
if [ ! -f "$INPUT_FILE" ]; then
echo "Error: Input file does not exist: $INPUT_FILE"
exit 1
fi
# Run the recipe
echo "Analyzing report: $INPUT_FILE"
echo "Output will be saved to: $OUTPUT_FILE"
echo ""
goose run --recipe "$RECIPE_PATH" \
--params input_file="$INPUT_FILE" \
--params output_file="$OUTPUT_FILE"
| Feature | goose-recipes | goose-recipe-analysis |
|---|---|---|
| Purpose | Query live data sources | Analyze saved documents |
| MCP Authentication | ✅ Included | ❌ Not needed |
| JSON Schema | ✅ For validation | ❌ Not needed |
| Input Type | Parameters + MCP tools | File input parameters |
| Output | Structured JSON | Markdown analysis |
| Retry Logic | Complex validation | Simple completion check |
| Use Case | Data extraction | Data analysis |
Analyze a previously generated report:
parameters:
- key: report_file
input_type: file
requirement: required
description: "The report markdown file to analyze"
instructions: |
Analyze the following report:
{{ report_file }}
Extract key metrics, identify trends, and provide recommendations.
Compare or combine multiple documents:
parameters:
- key: current_report
input_type: file
requirement: required
description: "Current period report"
- key: previous_report
input_type: file
requirement: required
description: "Previous period report"
instructions: |
Compare these two reports:
Current: {{ current_report }}
Previous: {{ previous_report }}
Identify changes, trends, and provide comparative analysis.
Add context or recommendations to existing data:
parameters:
- key: base_data
input_type: file
requirement: required
description: "Base data file to enrich"
- key: context_info
input_type: string
requirement: optional
default: ""
description: "Additional context to consider"
instructions: |
Enrich this data with actionable recommendations:
{{ base_data }}
Additional context: {{ context_info }}
Include current date context for time-aware recommendations:
instructions: |
Today's date: $(date +%Y-%m-%d)
Current quarter: Q$(( ($(date +%-m)-1)/3+1 ))
Analyze the report with time-sensitive recommendations:
{{ report_file }}
Consider the current fiscal position when prioritizing actions.
# Preview the recipe
goose run --recipe mill/recipes/your-recipe.yaml --explain
# Test with sample data
goose run --recipe mill/recipes/your-recipe.yaml \
--params input_file="test-data.md" \
--params output_file="test-output.md"
| Issue | Solution |
|---|---|
| "File not found" | Check input_file path is correct, use absolute paths if needed |
| "No output generated" | Ensure instructions are clear about saving to output_file |
| "Analysis too generic" | Add more specific framework sections in instructions |
| "Missing context" | Include current date, period info, or other context in instructions |
Analysis recipes follow this structure:
mill/
├── spec/
│ └── your-analysis-spec.md # Markdown spec describing analysis
└── recipes/
└── your-analysis-recipe.yaml # Generated recipe file
scripts/mill/
└── run-your-analysis.sh # Shell script runner
CLI for Production, Desktop for Development
goose run) for running analysis recipesFor complete Goose recipe field reference, see the goose-recipes skill:
.claude/skills/goose-recipes/references/recipe-structure.mdGiven a spec mill/spec/fundraising-data-analysis-followup.md:
---
title: fundraising-data-analysis-followup
description: Analyze saved fundraising report with actionable recommendations
---
# Fundraising Report Analysis Recipe
## Workflow
Analyze report to extract insights and generate action items...
## Output Structure
- Executive Summary
- Actionable Intelligence
- Performance Benchmarks
Run the skill:
Use the goose-recipe-analysis skill to create a recipe for mill/spec/fundraising-data-analysis-followup.md
This generates:
mill/recipes/fundraising-data-analysis-followup.yamlscripts/mill/run-fundraising-followup.shThen run it:
./scripts/mill/run-fundraising-followup.sh \
--input reports/fundraising-data-analysis/2024-10-31-1400/report.md \
--output reports/fundraising-data-analysis/2024-10-31-1400/analysis.md
Analysis recipes are designed to work as follow-ups to data extraction recipes:
Workflow 1 (Data Extraction):
goose-recipes skill → fundraising-data-analysis.yaml
Queries Salesforce → Generates report.md
Workflow 2 (Analysis):
goose-recipe-analysis skill → fundraising-data-analysis-followup.yaml
Reads report.md → Generates analysis.md with recommendations
This separation allows:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience