Skip to content
Back to skills

Factory Init

ASecurity

Set up the current repository for the Software Factory agent team — create the docs/ scaffold, capture project facts, and (for existing code) map the repo and derive coding standards. Run once per project.

  • 11 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
developmentgitdevopssecurity

Works with

  • claude code

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add achisolomon/open-software-factory --skill factory-init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Factory Init?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Factory Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/achisolomon-factory-init-open-software-factory/badge)](https://www.skillsdirectory.com/skills/achisolomon-factory-init-open-software-factory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: factory-init
description: Set up the current repository for the Software Factory agent team — create the docs/ scaffold, capture project facts, and (for existing code) map the repo and derive coding standards. Run once per project.
argument-hint: "[one-line product description]"
disable-model-invocation: true
---

# Initialize this project for the Software Factory

Act as the Team Lead. Read and follow the Team Lead agent, its phase playbook (especially "Init phase", "GitHub access", the status board template and the project facts template) and the handoff contract (the artifact map): `${CLAUDE_PLUGIN_ROOT}/agents/team-lead.md`, `${CLAUDE_PLUGIN_ROOT}/reference/team-lead-phases.md` and `${CLAUDE_PLUGIN_ROOT}/reference/handoff-contract.md`.

Use the product description in the user's request that invoked this skill; it may be empty.

Steps:

1. If `docs/factory/status.md` already exists, the project is initialized: summarize its state and stop, unless the user asks to re-initialize.
2. Detect whether this is an existing codebase (source files, manifests, git history) or greenfield.
3. Create the folders of the contract's artifact map under `docs/`, `docs/factory/status.md` from the template (Phase: Init), `docs/factory/brain.md` from the factory brain template (empty sections), and `docs/factory/mistakes.md`, `docs/factory/decisions.md` and `docs/factory/flow.md` from their templates. Then list `docs/factory/` and confirm all five files exist.
4. Ask the user (in one batch, with AskUserQuestion where options fit, and only for what you cannot detect) for the project facts, including the Team roster (who reviews each task: Security, UX, FinOps, DevOps, each per task, per epic or off). Include Approvals (`prod-only (Recommended)`; `all` is the opt-out) and the prod targets, asked once as one question: "Does a merge to `main` reach production?" On No (main deploys dev or staging; prod is a promote, a prod folder or a prod workspace), list the promote command, the prod infra folder and `workspace:prod` as prod, and `Non-prod targets: branch:*`. On Yes a merge to `main` still asks, and the default writes `Prod targets: branch:main, branch:master, branch:trunk, branch:prod, branch:production, branch:live, branch:deploy, branch:gh-pages, branch:release/*, branch:release-*, branch:hotfix/*, tag:*`, plus the repo's default branch as a literal `branch:<name>` entry (read it with `gh repo view --json defaultBranchRef`), and `Non-prod targets: branch:*`, plus a literal `branch:<name>` for each shared non-prod branch on origin the user confirms in the same question. A glob never makes the default branch or a shared branch non-prod. Write `docs/architecture/project-facts.md`.
4b. Check that the retro state folder is writable from the sandbox: run `${CLAUDE_PLUGIN_ROOT}/scripts/retro-check writable` as a normal sandboxed call. If it fails, show the fix line from its output: add the state folder (`~/.software-factory`) to `sandbox.filesystem.allowWrite` in `~/.claude/settings.json`. Ask once whether the user wants to make that change. Never edit `settings.json` yourself, and never retry the check with the sandbox off.
5. Existing codebase: delegate to the Software Architect in Map mode, then ask it to create `docs/standards/coding-standards.md` from the repo's existing conventions. Use `software-factory:software-architect`. Greenfield: note in `status.md` that standards come after the architecture.
6. Run the `session-setup` skill (`/software-factory:session-setup`) to set the auto-compact threshold and an exact-command permission allowlist. It shows the diff and asks before writing.
7. If the repo is a git repository, suggest (do not run) adding the factory folders to version control.
8. Finish with: what was created, the project facts captured, and the next step: invoke the `build` skill with what to build (in Claude Code, `/software-factory:build <what to build>`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.