/microfactory:init-factoryfrom microfactory
Interactively initializes a microfactory project: configures task backend (Jira, GitHub, Azure DevOps, or local TODO), sets up work loops, and installs required CLIs.
Ships in microfactory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Set up the current project so plan-next and implement-next can run continuously. All commands below are examples — adapt them to the user's OS and shell (Windows/macOS/Linux).
Ask (with AskUserQuestion where options fit, free text otherwise):
jira, github, azure-devops, or todo (a local TODO.md file).MYPROJ), GitHub owner/repo, Azure DevOps project name, or the path to the TODO file.skip-plan are exempt). If no, only issues labeled needs-plan go through planning.needs-plan issues still wait for an approved plan either way.feature/<KEY> branches with a pull request (issues labeled skip-branch are exempt). If no, work lands on the default branch (issues labeled needs-branch still get a branch).needs-review still get the cold review, and skip-review exempts an issue either way.jira and azure-devops; github and todo have no sprints, so skip it for them. If yes, planning and implementation take only items in the current sprint, and the rest of the backlog waits until someone adds it to a sprint. Refinement still covers the whole backlog. Default no. Which team's sprint, and on Azure DevOps which team's area paths the factory works in, is asked by setup in step 2.jira and azure-devops. rank (the default) is the backlog's drag-and-drop order. priority uses the priority field, highest first, with rank breaking ties.Run the tasks skill's setup subcommand for the chosen backend. Its backend doc says what the tool needs: it detects the CLI, extension and login, offers to install whatever is missing and waits for the user's approval before each install, helps with the login (suggesting ! <login command> where the user must do it interactively), and gives you the values the config file needs (jira_site and jira_account_id, github_username, azure_devops_org, azure_devops_user and azure_devops_team — which setup requires when the user wants the current sprint only, so tell it that — plus story_type on Jira and Azure DevOps when the project's stories are not the default type). For the todo backend it verifies the TODO file exists and offers to create it.
If the user declines an install, stop and tell them what to run themselves; do not continue to write a config for a backend that cannot work.
Never write tokens or secrets anywhere — the backend CLIs store their own credentials.
Only for jira and azure-devops — github and todo do not rename statuses, so skip this step for them.
The factory uses seven statuses (initial, planning, awaiting_plan_review, plan_approved, in_progress, in_review, done); the tasks skill's Status names and the backend doc's table give their default names. A project whose workflow already has its own names can map them instead of adding duplicates.
setup produced for each type. Jira: acli cannot list a project's statuses, so ask the user for the names of the ones that match.statuses: when there is one and the defaults otherwise (AskUserQuestion where options fit). planning, in_progress and in_review may be skipped (null); the other four must be set.plan_approved shared a name with initial, approved items would look unplanned and the claim logic would break; if it is Active while in_progress still defaults to a list containing Active, an item the implementer just claimed would look plan-approved. Ask again on a clash.plan_approved at a status that already holds items — only when it is mapped to a name that is neither the default nor already in the existing config. Count the items in it (a JQL or WIQL count; a status that does not exist yet counts as zero, even where the query errors) and, when there are any, show the number and ask for confirmation: the implementer picks up everything in that status as soon as the loop starts.statuses: in the next step; when none differ, write no statuses: block.Only for jira and azure-devops. Count the open items in the factory's scope with the tasks skill's list open scoped: the story type, and on Azure DevOps the team's areas. If none, say which types and areas were used: the factory will sit idle until stories of that type are in that area — on a new team dedicated to the factory, that is expected until someone moves stories into its area.
When the user wants the current sprint only, also count the in-scope items in the current sprint, adding the backend doc's sprint condition: sprint in openSprints() on Jira, the @CurrentIteration condition with the chosen team on Azure DevOps. If the query fails, fix the cause before going on (on Azure DevOps that is usually the team name). If it returns nothing, tell the user the factory will sit idle until a sprint is open with items in it. A Kanban board never has one. Ask whether to keep the setting.
Create .microfactory/config.yaml in the project root (settings only, no secrets — safe to commit):
backend: jira # jira | github | azure-devops | todo
project: MYPROJ # Jira key | owner/repo | Azure DevOps project | path to TODO.md
plan_by_default: false
auto_plan: false
feature_branches: false
deep_review: true
implement_interval: 20m
plan_interval: 10m
# jira and azure-devops only:
current_sprint_only: false
order_by: rank # rank | priority
# story_type: Task # optional, only when the stories are not the default type
# (Story on Jira, the requirement category on Azure DevOps); a name or a list
# jira backend only:
jira_site: mycompany.atlassian.net
jira_account_id: "712020:abc..."
# github backend only:
github_username: octocat
# azure-devops backend only:
azure_devops_org: https://dev.azure.com/myorg
azure_devops_user: [email protected]
azure_devops_team: Microfactory # optional: the team whose areas (and sprint) the factory works in
# jira and azure-devops only, optional — write it only for statuses that differ from the
# defaults (a name or a list; ~ skips planning, in_progress or in_review). Example:
# statuses:
# plan_approved: Ready
# in_progress: Active
Include only the keys relevant to the chosen backend. If a config file already exists, show it — its statuses: block included — and ask before overwriting.
For the role the user chose for this session, invoke the loop skill:
/microfactory:start/microfactory:start-planningThen tell the user how to run the other role in a second Claude Code session in the same project, e.g.:
claude
/microfactory:start-planning
If planning is not used (no plan-by-default and no needs-plan issues expected), a single implementer session is enough — say so instead of prescribing two sessions.
Finally, mention that the project can add its own instructions for any skill under .microfactory/overrides/ (general.md to start; see the README's Customizing section), and that /microfactory:customize adds, explains and removes them for the user. Do not create those files.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jaksa76/microfactory --plugin microfactory17 skills in this plugin
/breakdown-featureTurn a feature description or requirements document into a sequenced set of implementable stories and create the approved ones in the task backend — lean vertical slices, each sized to a single implementation iteration, with open questions marked for refinement. Use when the user has a spec, PRD, feature brief, or requirements doc to break down into backlog items./customizeAdd, change, list, explain, extract and remove the project's microfactory override files (.microfactory/overrides/general.md and <skill>.md) from a plain-language request such as "always run make e2e-smoke after implementing". Interactive — shows the exact change and asks before writing; checks each override against the factory's invariants and the real step titles. Use when the user wants to add extra instructions for a microfactory skill, or asks what an existing override does or why one applies or is being ignored. Not run by loops; not for config.yaml settings (that is init-factory) or for general questions about how the factory works./find-design-improvementsAnalyze the project and report candidate software design improvements — refactorings, architectural fixes, misplaced responsibilities, missing abstractions, pattern inconsistencies. Read-only: it proposes, it does not change code or create tasks. Use when the user asks what could be improved in the project's design, structure, or architecture.Other plugins' skills for the same job