aif-plan
Plan - Implementation Planning
Create an implementation plan for a feature or task. Two modes:
- Fast – quick plan, no git branch, saves to the configured fast plan path (default:
.ai-factory/PLAN.md) - Full — richer plan, asks preferences, saves to the configured full-plan directory, and optionally creates a git branch/worktree when git is enabled and branch creation is allowed
Workflow
Step 0 (pre): Detect Handoff Mode
Determine Handoff mode, task ID, and branch contract. Resolve each value independently so legacy callers that pass only HANDOFF_MODE and HANDOFF_TASK_ID still enter Handoff mode correctly:
HANDOFF_MODE: explicit prompt value if present; otherwise environment value; otherwise empty string.HANDOFF_TASK_ID: explicit prompt value if present; otherwise environment value; otherwise empty string.HANDOFF_BRANCH_PREPARED: explicit prompt value if present; otherwise environment value; otherwise0.HANDOFF_BRANCH_NAME: explicit prompt value if present; otherwise environment value; otherwise empty string.
Use the Bash tool only for values that were not passed explicitly in the prompt:
More from lee-to/ai-factory
aif-skill-generator
Generate professional Agent Skills for AI agents. Creates complete skill packages with SKILL.md, references, scripts, and templates. Use when creating new skills, generating custom slash commands, or building reusable AI capabilities. Validates against Agent Skills specification.
41aif-implement
Execute implementation tasks from the current plan. Works through tasks sequentially, marks completion, and preserves progress for continuation across sessions. Use when user says "implement", "start coding", "execute plan", or "continue implementation".
41aif-security-checklist
Security audit checklist based on OWASP Top 10 and best practices. Covers authentication, injection, XSS, CSRF, secrets management, and more. Use when reviewing security, before deploy, asking "is this secure", "security check", "vulnerability".
39aif-improve
Refine and enhance an existing implementation plan with a second iteration. Re-analyzes the codebase, checks for gaps, missing tasks, wrong dependencies, and improves the plan quality. Use after /aif-plan to polish the plan before implementation, or to improve an existing /aif-fix plan.
37aif-commit
Create conventional commit messages by analyzing staged changes. Generates semantic commit messages following the Conventional Commits specification. Use when user says "commit", "save changes", or "create commit".
37aif
Set up agent context for a project. Analyzes tech stack, installs relevant skills from skills.sh, generates custom skills, and configures MCP servers. Use when starting new project, setting up AI context, or asking "set up project", "configure AI", "what skills do I need".
36