Understanding Workflows
Packmind MCP provides workflow tools that guide AI agents through a structured process for creating high-quality standards and commands. These workflows ensure consistency and completeness by providing step-by-step instructions that the AI agent follows to:- Gather appropriate context from your codebase
- Draft initial content with user collaboration
- Iterate and refine based on feedback
- Finalize and submit to Packmind
Available Tools
Onboarding Workflows
Tool:onboarding
Provides guided workflows for creating coding standards based on different information sources. This is particularly useful when first setting up standards for your organization.
Parameters:
workflow(optional) - The workflow name to retrieve. Available workflows:codebase-analysis- Guide for analyzing existing codebase to extract standardsgit-history- Guide for deriving standards from git commit patternsdocumentation- Guide for converting existing documentation to standardsai-instructions- Guide for transforming AI agent instructions into standardsweb-research- Guide for incorporating best practices from external sources
Standards Tools
List Standards
Tool:list_standards
Retrieves all coding standards created in your organization. Returns up to 20 standards sorted alphabetically by slug.
Parameters: None
Returns: A formatted list showing • slug: name for each standard
Get Standard Details
Tool:get_standard_details
Retrieves the full content of a specific standard including all its rules and code examples by its slug identifier.
Parameters:
standardSlug(required) - The slug identifier of the standard
Standard Creation Workflow
Tool:create_standard
Provides step-by-step guidance for creating a new coding standard. This workflow ensures the AI agent gathers appropriate context, collaborates with you to draft the standard, and prepares it properly for submission.
Parameters:
step(optional) - Workflow step identifier. Defaults toinitial-requestwhen omitted.initial-request- Initial guidance for understanding the user’s intent and gathering contextclarify- Instructions for clarifying requirements and scopedrafting- Instructions for creating the standard draft and iterating with the userfinalization- Final checks and instructions before callingsave_standard
Save Standard
Tool:save_standard
Creates a new coding standard with multiple rules and code examples in a single operation.
Parameters:
name(required) - Name of the standard (e.g., “Error Handling”, “Unit Test Conventions”)description(required) - Comprehensive description explaining the standard’s purpose, context, and when it applies. Must NOT contain code examples (those go in rule examples). Maximum one paragraph.summary(optional) - A concise one-sentence description of the standard’s intent and when to apply its rulesrules(optional) - Array of rules, each containing:content(required) - Clear, concise rule description starting with a verb (e.g., “Use assertive names in test descriptions”)examples(optional) - Array of code examples, each with:positive(required) - Code snippet showing correct implementationnegative(required) - Code snippet showing incorrect implementationlanguage(required) - Programming language of the snippet (e.g., “typescript”, “javascript”, “python”)
Add Rule to Standard Workflow
Tool:create_standard_rule
Provides step-by-step guidance for adding a new rule to an existing standard. Ensures the rule is well-formed, includes appropriate examples, and fits within the standard’s context.
Parameters:
step(optional) - Workflow step identifier. Defaults toinitial-requestwhen omitted.initial-request- Guidance for understanding what rule to add and to which standarddrafting- Instructions for drafting the rule content and examplesfinalization- Final checks before callingsave_standard_rule
Save Standard Rule
Tool:save_standard_rule
Adds a new coding rule to an existing standard in your organization. Creates a new version of the standard.
Parameters:
standardSlug(required) - Slug of the existing standard (uselist_standardsto find it)ruleContent(required) - Descriptive rule starting with a verb explaining its intention and how/when to use itpositiveExample(optional) - Code snippet showing correct implementation of the rulenegativeExample(optional) - Code snippet showing incorrect implementationlanguage(optional) - Programming language of the code snippets
Commands Tools
List Commands
Tool:list_commands
Retrieves all commands created in your organization. Returns up to 20 commands sorted alphabetically by slug.
Parameters: None
Returns: A formatted list showing • slug: name for each command
Get Command Details
Tool:get_command_details
Retrieves the full content of a specific command by its slug identifier.
Parameters:
slug(required) - The slug identifier of the command
Command Creation Workflow
Tool:create_command
Provides step-by-step guidance for creating a new command. This workflow ensures the AI agent properly structures the command with clear steps, appropriate context validation checkpoints, and usage scenarios.
Parameters:
step(optional) - Workflow step identifier. Defaults toinitial-requestwhen omitted.initial-request- Initial guidance for understanding the process to capture as a commanddrafting- Instructions for structuring the command with steps, checkpoints, and scenariosfinalization- Final validation before callingsave_command
Save Command
Tool:save_command
Captures a reusable development process or procedure as a structured Packmind command with clear, actionable steps.
Parameters:
name(required) - The name of the command (e.g., “Add REST Endpoint”, “Create Domain Model”)summary(required) - A concise sentence describing the intent (what it does), value (why useful), and relevance (when to use)whenToUse(required) - Array of specific, actionable scenarios when this command appliescontextValidationCheckpoints(required) - Array of checkpoints (questions or validation points) to ensure context is clarified before implementing stepssteps(required) - Array of atomic, actionable steps, each containing:name(required) - The step title (e.g., “Setup Dependencies”, “Create Database Schema”)description(required) - Sentence describing the step’s intent and how to implement it (supports Markdown)codeSnippet(optional) - Brief, focused code example demonstrating the step (Markdown with language-specific code blocks)
Packages Tools
List Packages
Tool:list_packages
Retrieves all packages created in your organization. Packages are collections of commands, standards, and skills that can be distributed together.
Parameters: None
Returns: A formatted list showing package slugs and their descriptions
Usage Example:
Get Package Details
Tool:get_package_details
Retrieves the full content of a specific package including all its commands, standards, and skills.
Parameters:
packageSlug(required) - The slug identifier of the package
- Package name, slug, and description
- List of all commands in the package with their summaries
- List of all standards in the package with their summaries
- List of all skills in the package with their descriptions
Install Package
Tool:install_package
Provides installation instructions for Packmind packages. This tool returns guidance that directs the AI agent to either use the packmind-cli (if available) or call the render_package tool to generate file updates.
Parameters:
packageSlug(required) - The slug of the package to install. Uselist_packagesto find available packages.relativePath(required) - The target directory where files should be installed (e.g.,"/"for project root,"/packages/my-app/"for a monorepo subfolder)
- Check if
packmind-cliis installed - Use the CLI if available, or call
render_packageif not
Render Package
Tool:render_package
Generates file updates for the AI agent to apply when installing a Packmind package. This tool is called by the AI agent after install_package when the packmind-cli is not available.
Parameters:
packageSlug(required) - The slug of the package to render. Uselist_packagesto find available packages.installedPackages(optional) - Array of already installed package slugs from yourpackmind.jsonfile. Read the file and extract the package slugs from thepackagessection to preserve existing installations.relativePath(required) - The target directory where files should be installed (e.g.,"/"for project root,"/packages/my-app/"for a monorepo subfolder)gitRemoteUrl(required) - The git remote URL of your repository. Rungit remote get-url originto obtain it. Use an empty string if unable to retrieve.gitBranch(required) - The current git branch name. Rungit branch --show-currentto obtain it. Use an empty string if unable to retrieve.
- Files to create or update with their content
- Files to delete
- Section-based updates for files like
CLAUDE.md
You typically don’t call this tool directly. The AI agent will automatically
use it based on the instructions from
install_package when packmind-cli is
not available.