Manage AI prompts as local markdown files.
Program all the things, just by writing markdown. Really.
š Complete Documentation & Guides š
SwissArmyHammer transforms AI prompt and workflow management by treating them as simple markdown files.
Working with AI assistants involves repetitive prompt crafting, context loss, inconsistent results, limited automation, and poor organization of prompts scattered across different tools.
SwissArmyHammer provides a unified, file-based approach with three integrated components:
Install and get started:
cargo install --git https://github.com/swissarmyhammer/swissarmyhammer swissarmyhammer-cli
claude mcp add --scope user sah sah serve
# Get help
sah --help
# Run as MCP server (default when invoked via stdio)
sah serve
# Check configuration and diagnose issues
sah doctor
# Manage prompts
sah prompt list
sah prompt test my-prompt --var task="help me"
# Execute workflows
sah flow run my-workflow
# Issue management
sah issue list
sah issue create --name "feature-xyz" --content "# Feature XYZ\n\nImplement new feature"
sah issue work feature-xyz
# Memoranda (notes) management
sah memo list
sah memo create --title "Meeting Notes" --content "# Team Meeting\n\n- Discussed roadmap"
# Semantic search
sah search index "**/*.rs"
sah search query "error handling"
# Validate configurations
sah validate
Builtin - Embedded in the SwissArmyHammer binary
User - Your personal collection
~/.swissarmyhammer/prompts/
~/.swissarmyhammer/workflows/
Local - Project-specific files
./.swissarmyhammer/prompts/
./.swissarmyhammer/workflows/
~/.swissarmyhammer/ # User directory
āāā prompts/
ā āāā code-review.md # Personal code review prompt
ā āāā daily-standup.md # Your daily standup template
āāā workflows/
ā āāā release-process.md # Your release workflow
āāā memoranda/ # Personal notes and documentation
ā āāā project-notes.md
ā āāā meeting-logs.md
āāā issues/ # Issue tracking (managed automatically)
ā āāā active/
ā āāā complete/
āāā search.db # Semantic search index (auto-generated)
./my-project/ # Project directory
āāā .swissarmyhammer/ # Local directory
āāā prompts/
ā āāā api-docs.md # Project-specific API documentation prompt
āāā workflows/
ā āāā ci-cd.md # Project CI/CD workflow
āāā memoranda/ # Project-specific notes
ā āāā architecture.md
āāā issues/ # Project issues
āāā active/
āāā complete/
cargo install --git https://github.com/swissarmyhammer/swissarmyhammer swissarmyhammer-cli
See installation guide for detailed instructions.
Add to your Claude Code MCP configuration
claude mcp add --scope user sah sah serve
mkdir -p ~/.swissarmyhammer/prompts
cat > ~/.swissarmyhammer/prompts/helper.md << 'EOF'
---
title: Task Helper
description: Helps with various tasks
arguments:
- name: task
description: What you need help with
required: true
---
Please help me with: {{task}}
Provide clear, actionable advice.
EOF
That's it! Your prompt is now available in Claude Code. You can use it via MCP with /helper
.
SwissArmyHammer comes with built-in workflows. Try the hello-world example:
sah flow run hello-world
This simple workflow demonstrates:
You can also run it through Claude Code using the MCP integration to see how workflows integrate with AI interactions.
SwissArmyHammer provides a comprehensive suite of MCP tools for Claude Code:
All tools integrate seamlessly with Claude Code's MCP protocol and provide structured, typed responses. The abort tool provides robust workflow control, replacing legacy string-based detection with a reliable file-based approach.
A proxy server that combines multiple MCP servers into a single endpoint, routing requests to the appropriate underlying server.
A server for a structured, LLM-based coding workflow, from feature clarification and planning to phased development and progress tracking.
Beautiful HTML and PNG diff visualization using diff2html, designed for filesystem edit_file dry-run output with high-performance Bun runtime.
Popular MCP server that enables AI agents to scaffold, build, run and test iOS, macOS, visionOS and watchOS apps or simulators and wired and wireless devices. It has powerful UI-automation capabilities like controlling the simulator, capturing run-time logs, as well as taking screenshots and viewing the accessibility hierarchy.
Explore and analyze OpenAPI specifications from local files or remote URLs.
Executes secure shell commands with configurable directory, shell, and timeout validation.
A Model Context Protocol (MCP) server for tool integration, configured using a tools.yaml file.
Embeds intelligent guidance into AI workflows to organize development and ensure quality.
Tools for Xcode project management, building, testing, archiving, code signing, and iOS development utilities.
Manages Infrastructure as Code (IaC) operations using Ansible and Terraform. Requires external tools and manual setup.