/halllo-skills:factory-factoryfrom halllo-skills
Distillation spec that turns a feature-rich prototype codebase into a "product factory" agent skill. That product factory skill lets a coding agent build a production-grade product for any target market (country, region, language, regulation, segment) from one shared feature catalog, and add further markets without touching the core. Use when productizing a prototype for several markets.
Ships in halllo-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.
None: SKILL.md is the whole skill.
prototype codebase market brief
│ │
┌────────────────────────┐ ▼ ┌───────────────┐ ▼ ┌────────────────┐
│ this distillation spec │ ────▶ │ factory skill │ ────────▶ │ market product │
└────────────────────────┘ ▲ └───────────────┘ ▲ └────────────────┘
│ │
distilling agent coding agent
You are the distilling agent. Produce the factory skill as a folder <product>-factory/ inside the directory the user gives.
draft profile may hold OPEN values (whole VPs, single list entries, registry entries, translations, setting defaults); a release profile may hold OPEN only where no selected feature reads it; a missing value, translation, or per-locale entry counts as OPEN.XTS with stated minor digits, rates and thresholds no first market uses); values a standard defines (time zones, scripts, plural rules, phone metadata) are real and include the hardest case (daylight-saving shifts, right-to-left text, many plural forms). Locales are real (CLDR) and include one that differs from the source in formats, direction, and plural forms; a generated pseudo-locale (qps-ploc, fixtures only) catches hardcoded copy. Together the fixtures cover every form a VP value can take. Every bound value carries its own source; fixture is a source only fixture profiles may use.brief).IDs are global and unique, with these prefixes: CV convention, F feature, S screen, R rule, D domain entity, C contract, SET setting, VP variation point, B baseline, W dependency workaround, SP spike, X excluded, DF deferred, P model-facing prompt. Message keys are dotted names (booking.submit). Tests are <item ID>-T<n> and release checks <item ID>-RC<n>, filed under the rule (or, for flows, the feature) they mainly verify, and name every other item they verify; items don't list their tests. Test data never reuses a real item's ID.
Before reading, record the prototype's state (git rev-parse HEAD and git status --porcelain, or checksums of all files). Never modify the prototype; to run it, run a copy.
Then ask the user once:
After the inventory, ask once more, in one batch: confirm the shortcuts you found, the product questions the code can't answer, and the proposed excluded and deferred lists. Answers the user gives are facts; without a user to ask, take a best reading and mark it assumed.
Enumerate mechanically from entry points (API routes, UI routes, jobs, commands, startup/middleware pipeline, guards/interceptors, app lifecycle, scripts), module by module; then read the prototype's docs and test names for constraints the code alone doesn't show. Keep working notes with source paths in files outside the skill folder. Give each item an ID. Cover:
Per feature also record: a one-line user-facing purpose, the features it requires, what it acts on and which features supply that (free tokens such as deck-file), and, for your report only, its maturity (complete | partial | stub | mocked) and the shortcuts it rests on. When one feature affects another, model it as a named extension point with a neutral default, defined on the item that offers it and named by the items that implement it, never as a check whether the other is selected.
When implementations of the same intent disagree (parallel apps, scripts, spikes), take intent from the most mature one and record the conflict. Where it is safe, take expected test values from running the prototype or its tests; where it can't run, from a small reimplementation of its logic in your notes.
For each prototype value and behavior, and each baseline concern from step 4, ask: does this differ by market, by tenant, by deployment, or by target? Only market differences become VPs. Check at least these dimensions:
A dimension with no prototype behavior is a row in the VP catalog's table of dimensions considered, with the product fact that keeps it from varying (never a claim that the product meets a market's law), not a VP; if a first market needs behavior there, it is also a known gap. Few VPs is a valid result.
The profile schema holds each VP's type, allowed values, default, regulated flag, and meaning (as descriptions, one per identifier where a value names identifiers). The VP catalog adds only where a market's value must come from, and the dimensions table. Use closed enums for behavior the code implements and open identifiers for data; registries a market extends (regions and region groups, providers with their regions, document kinds) are data shipped beside the profiles, and their entries carry their own message keys (labels, and mandated keys where law requires wording). A regulated VP has no default that counts as bound. An unregulated VP may default to the prototype's value when that value is a business choice rather than a market fact.
Where the product stores or processes user data beyond the user's device, data residency is one regulated VP: the regions and region groups the market allows. Every place user data is stored or passes through (ingress and edge included) and the region chosen for each third-party processor (from the regions its registry entry offers) are deployment settings; a global or regionless place is recorded as such; one validation rule checks them all against the allowed regions offline, and a release check confirms the deployed reality.
A market assumption hardcoded in the prototype becomes a VP; its current value is never presented as a market's truth, and goes in your report as a candidate for that market to verify. Never assert market facts (tax rates, legal requirements, provider availability in a market). Published standards (ISO, CLDR, Unicode, WCAG) and vendor documentation for vendor facts count as cited sources; anything else needs the user's confirmation or research with a cited source when a profile binds it.
UI copy lives in one message catalog (key, source text, placeholders, plurals) in assets/, in English unless the user says otherwise; a prototype's non-English copy becomes a candidate translation in assets/candidates/. Copy that states a market fact or that law mandates is a mandated key with no source text, which every profile supplies with a source in each locale it serves. Each profile ships translations, in the catalog's shape, with a source for its non-source locales, and for the source language (any region) only mandated keys and market terms; the profile states whether machine translation is acceptable and who reviews it. Fixture translations are generated by a deterministic transform, never shipped as files. Model-facing prompts, if any, are kept in one language; the factory states how replies follow the user's locale.
Close the gap between prototype and product:
assumed for gaps you filled and values you chose that neither the prototype nor the user gave (in data assets as a note field), baseline choices that decide who sees what, money, data loss, or scope included and unknown for behavior you could not determine (with a best reading), at the narrowest level that is unambiguous, one tag per line so a script can count them. Record deviations from the prototype (including bug fixes) only in your notes and report. Add no behavior beyond the prototype's intent and the baseline; ideas go to deferred.excluded list with the reason. Items with product intent but no specifiable behavior go to the deferred list with what is known; they are not built.W item naming the dependency and version, with a test or release check showing it is still needed.assumed and add a spike naming the items it gates and a fallback; it runs before the first of them is built.SKILL.md: one line naming the items it would change, with none of it specified.assets/features.json holds each feature's purpose, core or optional, requires, acts on, supplies, and the VPs and settings it reads, in build order (requirements and suppliers first); SKILL.md refers to it and does not repeat it. ), and name their runner and what it needs locally (e.g. a database, a browser). Every item with behavior has a test or a stated check, or names the test that verifies it. In addition:
any if it runs unchanged under every profile; contrasting fixture profiles, each selecting the features that read the VPs it contrasts, together exercise every VP that changes behavior, with tests that show the behavior differs; a core-only fixture covers deselection; a VP whose only usable test value is a library's test value gets a release check instead of a contrast; a VP that only places resources gets a release checkrelease profile has an OPEN value a selected feature reads, a registry reference is unknown, or residency is violated, and warns when something a selected feature acts on has no supplierSKILL.md holds the stack, architecture, the factory procedure below, known gaps, and an index of files with the ID ranges they hold. Items go in references/: conventions, production baseline (with workarounds and spikes), domain, one file per feature area, contracts, settings, VP catalog, and deferred items (stated as product behavior). The excluded list stays in your notes and report. assets/ holds the feature index, profile schema, a blank profile with OPEN values, the fixture profiles, registries, message catalog, candidate translations, and prompts; the coding agent copies it into the product. scripts/ holds the consistency check from the self-check. Prefer tables over prose and compact data (one entry per line, no empty fields, shared schema definitions instead of repeats). Write nothing a test or the build doesn't need.name is <product>-factory, at most 64 lowercase letters, digits, and hyphens, and matches the folder; description (at most 1024 characters) says what product it builds and that it takes a market brief.SKILL.md)OPEN.assets/ into it and build the profile schema and validator first. Validate the profile.any tests under this market's profile. Add concrete tests for each regulated VP value and new adapter of this market, with expected values from the user or a cited source. Run the release checks or list them as pending.release once no value a selected feature reads is OPEN.Before finishing, confirm the following with scripts: checks of the factory itself ship in scripts/ (dependency-light, importable, and sharing their validation cases with the product's validator); checks against the prototype stay in your notes. Confirm that:
OPEN: every brief requirement maps to a feature or VP (one that maps only to a known gap or deferred item is a blocker: fix it, or report it as one); the schema can express the market's shape; every adapter the factory specifies holds up for that market. Fix each point where it was blocked or had to guess, or record it as a known gap; if fixes changed the schema or the procedure, run the dry run once more.Then report to the user: product-defining assumed items first (who sees what, money, data, scope), then counts of the rest by feature; unknown items; deviations from the prototype; the excluded and deferred lists; regulated VPs; a maturity summary; the dry-run findings; and which first markets a known gap blocks.
Using only the factory skill and a market brief, the coding agent builds a product for that market whose tests all pass, ready for release once the user binds its regulated values. It then adds a contrasting second market through a new profile, registry entries, translations, and adapters only, with all tests passing for both.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub halllo/agentskills --plugin halllo-skills5 skills in this plugin
/azure-boardsWork with Azure DevOps Product Backlog Items using az boards CLI/azure-create-prPush a feature branch and create an Azure DevOps pull request via az CLI/azure-read-prRead Azure DevOps pull requests and changed code via az CLI/playwright-cliAutomate browser interactions, test web pages and work with Playwright tests.