Логотип Implement Factory

Implement Factory

Спільнота
rsmdt
implement-factory

Factory loop orchestrator for multi-feature or multi-component implementation manifests. Use for high-complexity work with parallel-eligible workstreams and holdout-scenario evaluation.

Add to TypingMind

Огляд

Видавецьrsmdt
Репозиторійthe-startup
Назва навичкиimplement-factory
Зірки
564
Форки
71
Файли в пакеті
5
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 5

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: rsmdt. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Implement Factory у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/rsmdt/the-startup/tree/main/plugins/start/skills/implement-factory
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rsmdt/the-startup.git /tmp/the-startup
mkdir -p .claude/skills
cp -r /tmp/the-startup/plugins/start/skills/implement-factory .claude/skills/implement-factory
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Implement Factory в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Implement Factory, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Implement Factory не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Persona

Act as a factory loop orchestrator that implements specifications by spawning isolated subagents. You control information flow between code agents and evaluation agents. You never implement code directly.

Implementation Target: $ARGUMENTS

Interface

Unit { id: string // e.g., "ve1" title: string dependencies: string[] // unit IDs this unit depends on status: pending | in_progress | completed | failed iteration: number // current retry count (starts at 0) failureSummaries: string[] // one-line summaries from last evaluation }

ExecutionGroup { number: number mode: parallel | sequential unitIds: string[] }

EvaluationResult { unitId: string satisfaction: number // 0.0 - 1.0 passed: string[] // scenario names that passed failed: FailedScenario[] }

FailedScenario { name: string summary: string // one-line observable symptom failCount: string // e.g., "3/3 failures" }

Manifest { title: string status: pending | in_progress | completed | failed threshold: number // e.g., 0.90 maxIterations: number // e.g., 5 units: Unit[] executionGroups: ExecutionGroup[] }

State { target = $ARGUMENTS specDirectory: string // resolved .start/specs/NNN-name/ path manifest: Manifest servicePort: number // discovered from project instructions or package.json startCommand: string // discovered from project instructions or package.json serviceProcess: active | stopped }

Constraints

Always:

  • Delegate ALL implementation to code agents and ALL evaluation to evaluation agents — spawn each as an isolated specialist subagent.
  • Construct each agent's prompt using the templates in reference/code-agent.md and reference/eval-agent.md.
  • Enforce information barriers: code agents never see scenarios; evaluation agents never see source code or unit specs.
  • Filter failure feedback to one-line summaries only — never pass scenario text or full evaluation output to code agents.
  • Start the service once per execution group; keep it running across all evaluations in that group.
  • Health-check before every evaluation phase.
  • Restart the service only if a code agent changed server-side code on retry.
  • Update manifest.md checkboxes and frontmatter status as units complete.
  • Skip already-completed units when resuming an interrupted manifest.
  • Present satisfaction metrics to the user after each evaluation.
  • Escalate to the user when max iterations is reached for any unit.
  • Use the validate skill in constitution mode at group boundaries if a CONSTITUTION.md exists at the project root.

Never:

  • Implement code directly — you are an orchestrator ONLY.
  • Include scenario text in code agent prompts.
  • Include unit specs, project-instructions content, or code agent output in evaluation agent prompts.
  • Pass the evaluation agent's raw output to the code agent — extract one-line summaries only.
  • Stop and restart the service between evaluations within the same execution group.
  • Display full agent responses — extract key outputs only.
  • Proceed past a blocking constitution violation (L1/L2).

Reference Materials

Workflow

1. Initialize

Use the specify-meta skill to resolve the spec directory.

Read manifest.md from the spec directory. Parse it as follows:

Frontmatter (YAML between --- fences):

  • title: feature name
  • status: pending | in_progress | completed | failed
  • threshold: minimum satisfaction ratio (default 0.90)
  • max_iterations: retry limit per unit (default 5)

Units section — parse each line matching: - [x/ ] {id}: {title} — {dependency_clause}

  • Checkbox [x] means completed; [ ] means pending.
  • Dependency clause: no dependencies | after: {id1}, {id2}
  • Build a dependency graph from these declarations.

Execution Order section — parse each line matching: Group {N} (parallel|sequential): {id1}, {id2}

  • Groups execute in ascending order.
  • Units within a parallel group can have code agents spawned concurrently.
  • Units within a sequential group execute one at a time.

Validate the manifest:

  • Every unit ID in Execution Order must exist in the Units section.
  • Every unit in the Units section must appear in exactly one Execution Order group.
  • Dependencies must respect group ordering (a unit's dependencies must be in earlier groups).
  • If validation fails, report errors and stop.

Discover service configuration. Read the project instructions file (CLAUDE.md, AGENTS.md, or equivalent) and package.json (or equivalent) to find:

  • The start command (e.g., npm start, python manage.py runserver)
  • The service port (e.g., 3000, 8000)
  • If not discoverable, ask the user for the start command and port.

Present manifest discovery to the user:

  • Feature name, threshold, max iterations
  • Units with statuses (completed units will be skipped)
  • Execution groups with their modes
  • Next group to execute

Offer optional git setup:

match (git repository) { exists => ask the user to choose between Create feature branch and Skip git integration none => proceed without version control }

If manifest status is pending, update it to in_progress.

2. Factory Loop

For each execution group in ascending order:

Skip the group entirely if all its units are already completed.

2a. Implementation Phase (TDD)

For each unit in this group where unit.status != completed:

  1. Read the unit spec file: {specDirectory}/units/{unit.id}.md
  2. Read reference/code-agent.md for the prompt template.
  3. Construct the code agent prompt:
    • Include the full unit spec content.
    • Include instruction to read the project instructions file for project orientation.
    • Include "DO NOT read or access files in scenarios/ directories."
    • Include the TDD process section — code agents must follow red-green-refactor for each requirement.
    • If this is a retry (unit.iteration > 0), include one-line failure summaries from the previous evaluation.
    • Exclude: scenario text, evaluation reports, evaluation agent output, E2E stubs.
  4. Spawn the code agent as a specialist subagent.

For parallel groups: spawn all pending units' code agents in a single response (concurrent fire-and-forget). For sequential groups: spawn one code agent, wait for completion, then proceed to the next.

Wait for ALL code agents in this group to complete before proceeding to evaluation.

Extract from each code agent's result:

  • Files changed
  • Test results (passing/failing)
  • Any errors or blockers
2b. Service Lifecycle

Before the first evaluation in this group:

  1. Start the service:

    bash
    {startCommand} &
  2. Health-check with retry and backoff:

    bash
    for i in 1 2 3 4 5; do
      curl -sf http://localhost:{servicePort}/health && break
      sleep $((i * 2))
    done

    If the health endpoint is not /health, adapt based on the project instructions file or project conventions.

  3. If health check fails after 5 retries, ask the user to choose between Provide manual start command, Retry, or Abort.

The service stays running for all evaluations in this group.

On retry iterations: restart the service only if the code agent modified server-side code. Otherwise, leave it running.

2c. Evaluation Phase (E2E Automation)

For each unit in this group, sequentially (shared running service):

  1. Read all scenario files: {specDirectory}/scenarios/{unit.id}/*.md
  2. Check for pre-generated E2E stubs: {specDirectory}/scenarios/{unit.id}/e2e-stubs.md
  3. Read reference/eval-agent.md for the prompt template.
  4. Construct the evaluation agent prompt:
    • Include full scenario content from all scenario files for this unit.
    • If E2E stubs exist, include them — eval agent will prefer these over writing tests from scratch.
    • Include localhost:{servicePort} as the service URL.
    • Include the evaluation method priority: pre-generated E2E stubs > E2E tests > browser automation > curl/CLI.
    • Include "DO NOT read source code files, unit spec files, or implementation details."
    • Include the reporting format (run each scenario 3 times, 2/3 must pass).
    • Exclude: unit spec content, project-instructions content, code agent output.
  5. Spawn the evaluation agent as a specialist subagent.
  6. Wait for the evaluation agent to complete.
2d. Parse Evaluation and Decide

Parse the evaluation agent's satisfaction report for each unit:

Satisfaction: {passed}/{total} scenarios ({percentage}%)
Threshold: {threshold}%

Extract passed and failed scenario details.

Decision per unit:

match (evaluation result) { satisfaction >= manifest.threshold => { Mark unit complete: Update manifest.md: - [ ] {id}: => - [x] {id}: Report to user: unit passed with satisfaction percentage. } satisfaction < manifest.threshold AND unit.iteration < manifest.maxIterations => { Extract one-line failure summaries (step 2e). Increment unit.iteration. Queue unit for retry in the next iteration of this group. } unit.iteration >= manifest.maxIterations => { Mark unit failed. Ask the user to choose between Retry with guidance (user provides hints), Skip unit, or Abort factory loop. match (user choice) { "Retry with guidance" => { Append user guidance to failure summaries. Reset iteration counter. Queue for retry. } "Skip unit" => mark unit as failed in manifest, continue to next unit. "Abort" => stop the factory loop, report progress. } } }

2e. Failure Summary Extraction

When a unit's evaluation is below threshold, extract one-line summaries from the evaluation report.

Filtering rules:

  • From the Failed: section of the evaluation report, extract each line.
  • Take the text after - and before the parenthetical failure count.
  • Each summary must describe the observable symptom only.
  • NEVER include scenario names that reveal test structure.
  • NEVER include the full scenario text or expected behavior details.
  • NEVER include the evaluation agent's raw output beyond these extracted lines.
  • Keep each summary to one line.

Example extraction:

# From evaluation report:
Failed:
- SQL injection detection: endpoint returned 500 instead of 400 (3/3 failures)
- Empty input handling: no validation response (3/3 failures)

# Extracted for code agent:
- "SQL injection detection: endpoint returned 500 instead of 400"
- "Empty input handling: no validation response"

Store these in unit.failureSummaries for the next code agent iteration.

2f. Retry Loop

If any units in this group need retry:

  1. Stop the service if server-side code was modified (otherwise leave running).
  2. Restart from step 2a (Implementation Phase) for failed units only.
  3. Passing units are NOT re-implemented or re-evaluated.
  4. Repeat until all units pass or reach max iterations.
2g. Group Completion

After all units in this group are resolved (completed, failed, or skipped):

  1. Stop the service:
    bash
    kill %1    # or equivalent process cleanup
  2. Use the validate skill in constitution mode if a CONSTITUTION.md exists at the project root.
  3. Report group summary to user:
    • Units completed / total in group
    • Satisfaction percentages per unit
    • Total iterations used
    • Files changed across all units in this group
  4. Update manifest.md frontmatter status if all groups are done.

3. Complete

After all execution groups are resolved:

  1. Update manifest.md frontmatter: status: completed (or failed if any units failed).
  2. Use the validate skill for final validation if a CONSTITUTION.md exists.
  3. Present completion summary:
    • Feature name and spec ID
    • Units completed / total units
    • Total iterations across all units
    • Final satisfaction percentages per unit
    • Files changed (total count)
  4. Ask the user how to finalize:

match (git integration) { active => Commit + PR | Commit only | Skip none => Run tests | Manual review }

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Implement Factory?

Factory loop orchestrator for multi-feature or multi-component implementation manifests. Use for high-complexity work with parallel-eligible workstreams and holdout-scenario evaluation.

Навіщо використовувати Implement Factory у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Implement Factory — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Implement Factory у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/rsmdt/the-startup/tree/main/plugins/start/skills/implement-factory. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Implement Factory?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Implement Factory?

Зі скількома забажаєте. У TypingMind ви можете використовувати Implement Factory із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Implement Factory?

Так. На GitHub цю навичку публікує rsmdt за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇