/software-architecture-skills:ai-factory-builderfrom software-architecture-skills
Applies Notion's "A New Shape for Work" methodology to turn recurring team workflows into specific, shared, and scrutinized AI factories. Triggers when the user asks to "build an AI factory", "automate this workflow", "can an agent handle this process", "design an eval suite", "plan a shadow run", or "identify automation candidates from our team's workload".
Ships in software-architecture-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Turns a recurring digital workflow into a specific, shared, and scrutinized AI factory rather than a fragile ad-hoc personal script. Grounded in Notion's "A New Shape for Work" (v1.0) methodology. A setup that lacks any of the three criteria is not a factory — it is a personal agent workflow.
Invoke when the user asks for any of the following:
An agent setup qualifies as a factory only when all three criteria hold simultaneously:
Explicitly verify all three in every proposal and report their status.
A factory cannot perform well without a clean context system feeding it. Before building a factory, verify the existence of these core databases (details in docs/context-system-ontology.md):
Relations between objects matter: Tasks link to a Project, each Project has a DRI (Directly Responsible Individual) from People, and Meetings link to Projects and Attendees. If this core does not exist, stand up the leanest version first before building the factory. Stale or misplaced context poisons every downstream factory (context rot).
Identify strong factory candidates using the seven traits: recurring, verifiable, stable over time, standard quality is sufficient, fully digital, known information universe, and low cost of mistakes. Score candidates with scripts/factory_blueprint.py check (usage below; details in docs/candidate-traits.md).
Scoring rule:
The goal is not removing humans from work — it is moving humans up to ownership, judgment, and accountability above the assembly line.
Plan lean and add complexity later. The most common mistake made by both humans and LLMs is pre-engineering complex guardrails for imagined failure modes. Nobody predicts how a factory actually breaks in advance — observe real failures, then fix them.
Core planning decisions:
Recommend a hybrid architecture: keep tasks, statuses, outputs, run logs, and prompts in a flexible context system, while running the agent itself wherever it executes best (Notion Custom Agents, Claude Managed Agents, OpenAI Agents API, or your own service).
Generate a structured skeleton with scripts/factory_blueprint.py blueprint.
Never give a brand-new factory high-stakes live actions on day one. Use two safeguards:
Update the prompt whenever you observe a failure. Version your prompts (a simple Prompt Versions database with testing / production / retired states is enough for most factories; formal VCS is often overkill). Test every new prompt before rolling it out.
Critical warning: testing only the latest failure is never enough, because prompt edits cause regressions elsewhere. Write down representative tasks and explicit grading criteria (evals). Code or AI can act as judges where objective; humans review high-stakes outputs.
Decks).status property: todo, in_progress, done.todo (native platform agent or external webhook worker).in_progress, produce the artifact, attach the link, and move it to done.scripts/factory_blueprint.py)# Score a candidate explicitly across all 7 traits
python scripts/factory_blueprint.py check --name "Weekly Project Report" \
--recurring yes --verifiable yes --stable yes --standard yes \
--digital yes --known-universe yes --low-cost-mistakes yes --json
# Infer traits automatically from a free-text description
python scripts/factory_blueprint.py check --name "Sales Deck Pack" \
--describe "Every week we collect team status updates and produce the same format deck. Mistakes are easy to catch."
# Generate a 10-section factory blueprint skeleton
python scripts/factory_blueprint.py blueprint --name "Sales Deck Pack" \
--trigger "new database card with status = todo" \
--stages "research,drafting,formatting" \
--tools "context system read/write, slide template" \
--out deck-factory-plan.md
The score is decision support, not an automatic veto — confirm final decisions with the user.
Every factory proposal includes three sections:
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (mulosbron/software-architecture-skills) — no native marketplace selected
npx claudepluginhub p/mulosbron-software-architecture-skills24 skills in this plugin
/agent-harnessRouter for building self-improving AI agent harnesses (Hermes-style): harness + working memory architecture, 3-pillar persistent memory (procedural skills / semantic memory.md / episodic SQLite), loop engineering with end-loop guardrails and permission hooks, LLMOps trace -> evaluate -> diagnose -> gate -> ship loop, headless Claude CLI sub-agent delegation, and MCP/REST sales-agent deployment. Use when designing or debugging an agent runtime, its memory, its tool loop, or its eval pipeline./balancing-architectural-tradeoffsUse when choosing between architectural styles or weighing quality attributes (speed-to-market vs scale, consistency vs availability)./