moai-meta-harness

modu-ai/moai-adk

УСТАРЕЛО — устаревший 7-фазный мета-harness, перенаправляет на v4 harness Builder.

Звёзды1 256
Авторmodu-ai

Установка

SKILL.md

moai-meta-harness (DEPRECATED — redirect to v4)

DEPRECATION NOTICE — This legacy 7-Phase meta-harness is superseded by the v4 harness Builder (/moai:harness <natural-language request>). The v4 design replaces the static 7-Phase workflow with:

  • An orchestrator-direct 4-phase Builder (ANALYZE -> PLAN -> GENERATE -> ACTIVATE) that holds the plan in Claude's session context and can call AskUserQuestion at the PLAN->GENERATE approval gate (first-class boundary).
  • A manifest-driven dynamic-workflow Runner (hns-<name>-run.js) that reads manifest.json and dispatches specialists per their declared primitive (sub-agent / dynamic-workflow / worktree / /goal / adversarial-fan-out) — no heuristic re-derivation.
  • Conditional sub-agent-granular worktree isolation (no mandatory top-level worktree; worktree only for conflict-prone parallel generation).
  • Signal-driven phase synthesis (not a fixed pipeline); the evaluator is conditional (skipped for tasks within the model's solo reliable range).

To create a new harness: issue /moai:harness <natural-language request> (e.g., /moai:harness build a harness for my-project's API development). The orchestrator runs Context-First Discovery on the request, derives a harness <name>, and enters the Builder. Do NOT use the 7-Phase workflow below for new harness creation.

What is preserved here: the 7-Phase body below is retained as the redirect source for backward-compat — so existing invocation paths that reference the legacy workflow land on a deprecation notice + redirect rather than a dead link. The 7-Phase content is historical reference material, NOT active workflow. The revfactory 7-Phase residual grep excludes this body precisely because it IS the redirect source.

<!-- --><!-- @MX:NOTE: [AUTO] V3R4 contract SUPERSEDED — the original V3R4 contract preserved this skill body unchanged per the harness foundation policy §10 exclusion #10 (text annotation only, no behavioral change). That contract is hereby EXPLICITLY SUPERSEDED by the v4 harness redesign: the body is converted to a v4 redirect. Rationale for supersession: (1) the V3R4 contract protected against behavioral change, but v4 IS a deliberate behavioral change — the 7-Phase workflow is retired in favor of the orchestrator-direct Builder + manifest-driven Runner; (2) preserving the body unchanged would leave a dead-path 7-Phase workflow that contradicts the v4 design; (3) the AskUserQuestion-only contract (REQ-HRN-FND-015) is itself preserved verbatim under v4 — any generated subagent under .claude/agents/harness/ still MUST NOT invoke AskUserQuestion (this is reaffirmed, not weakened). The supersession is narrow: the 7-Phase workflow is retired; the AskUserQuestion boundary + namespace separation + Apache-2.0 attribution are all preserved. Cross-reference: the v4 design's Migration Path (revfactory 7-Phase -> v4 mapping) in the companion harness-builder.md workflow. --><!-- --> <!-- --><!-- ATTRIBUTION Original work: revfactory/harness (https://github.com/revfactory/harness) License: Apache License 2.0 Adaptations: 7-Phase workflow integrated with MoAI agent ecosystem (manager-*, expert-*, sync-auditor) NOTICE: This file contains modifications. See the harness policy for derivation history. The 7-Phase workflow below is superseded by the v4 Builder; it is retained as the redirect source for backward-compat. --><!-- -->

Apache 2.0 Attribution: Adapted from revfactory/harness (Apache License 2.0). The 7-Phase workflow below is a MoAI adaptation of the upstream 6-Phase + Evolution Mechanism. See .claude/rules/moai/NOTICE.md for the full third-party notices and the harness policy for derivation history. The v4 Builder (the replacement) is documented in .claude/skills/moai/workflows/harness-builder.md.


v4 Redirect (the active path)

New harness creation: /moai:harness <natural-language request>

This routes to the v4 Builder (orchestrator-direct). The Builder:

  1. Context-First Discovery on the request (extract domain / goal / constraints / scope).
  2. AskUserQuestion Socratic rounds if clarity <100%; derives harness <name> from confirmed intent.
  3. Explicit approval gate (AskUserQuestion, PLAN->GENERATE boundary).
  4. ANALYZE / PLAN / GENERATE / ACTIVATE as orchestrator-direct phases.
  5. Emits 5 artifact types: entry command, Runner Workflow, specialists, companion skills, manifest.json.

Harness lifecycle (list / edit / remove): /moai:harness list|edit|remove <name>.

Harness execution: /harness:<name> (auto-generated thin-wrapper command -> the harness's Runner Workflow).

See harness-builder.md (companion workflow under moai/workflows/) for the full Builder contract and .claude/rules/moai/workflow/dynamic-workflows.md for the Runner's dynamic-workflow primitive.


Legacy 7-Phase Body (HISTORICAL REFERENCE — redirect source, NOT active)

The content below this separator is the original 7-Phase workflow, preserved verbatim as the redirect source. It is NOT the active harness-creation path. New harness creation MUST use /moai:harness <NL request> (v4) above. The revfactory 7-Phase residual grep excludes this body because it IS the legacy source being redirected away from.

Meta-factory skill that architects and generates project-specific agent teams. Adapts the revfactory/harness 7-Phase workflow to MoAI's agent ecosystem. Produces harness-* skills and agent definitions tailored to each project's domain.

Upstream: revfactory/harness (Apache-2.0) — "A meta-skill that designs domain-specific agent teams, defines specialized agents, and generates the skills they use." (2905 stars, 420 forks, created 2026-03-26)

Effectiveness data (design target): +60% avg quality score (49.5 → 79.3), 15/15 win rate, −32% variance (n=15, author-measured A/B, third-party replications pending). Source: Hwang, M. (2026). "Harness: Structured Pre-Configuration for Enhancing LLM Code Agent Output Quality." revfactory/claude-code-harness.


Quick Reference

When to Use

  • /moai project Phase 5+ runs and detects an absent .moai/harness/main.md
  • CLAUDE.md contains <!-- moai:harness-start --> markers (installed by the project-harness generation policy, not this skill)
  • User explicitly requests harness generation for their project domain

Key Outputs

ArtifactLocationOwner
Harness config.moai/harness/main.md + extension filesthis skill
Agent definitions.claude/agents/harness/*.mdthis skill
Domain skills.claude/skills/harness-*/SKILL.mdthis skill

All generated artifacts use the harness-* prefix — never moai-* (which is template-managed). The moai-harness-* prefix specifically denotes template-managed harness builders (moai-meta-harness, moai-harness-learner) and is NOT used by this generator's emissions.

6 Architectural Patterns (upstream)

Pipeline, Fan-out/Fan-in, Expert Pool, Producer-Reviewer, Supervisor, Hierarchical Delegation.

See phase walkthrough detail for pattern semantics and selection guidance.


Implementation Guide

7-Phase Workflow — Source Mapping

Each MoAI phase maps to upstream revfactory/harness phases (ref: https://github.com/revfactory/harness#workflow):

MoAI PhaseUpstream Harness PhaseOwning AgentInputsOutputs
1. DiscoveryPhase 0 (audit) + Phase 1 domain analysis (Socratic)manager-specUser requestanswers.yaml
2. AnalysisPhase 1 domain analysis (codebase scan)manager-specanswers.yaml + repo stateAnalysis report
3. SynthesisPhase 2 team architecture designmanager-specAnalysis reportSPEC doc with EARS
4. SkeletonPhase 3 agent definition generationmeta-harness (this skill)SPEC doc.moai/harness/main.md + extensions
5. CustomizationPhase 4 skill generationmeta-harness (this skill)Skeleton.claude/agents/harness/*.md + .claude/skills/harness-*/SKILL.md
6. EvaluationPhase 5 integration + Phase 6 validationsync-auditorGenerated artifactsSprint Contract score
7. IterationHarness Evolution Mechanism + Phase 7-5 opsLEARNING-001 (separate SPEC)Scoring deltasFactory feedback (out of scope)

Phase Summaries

  • Phase 1 (Discovery): manager-spec conducts 16-question Socratic interview (owned by the project-harness generation policy). Output: .moai/harness/answers.yaml
  • Phase 2 (Analysis): manager-spec scans repo (file structure, existing agents/skills, dependency files, test coverage) — strategic analysis is absorbed into manager-spec
  • Phase 3 (Synthesis): manager-spec produces SPEC with EARS requirements selecting one of 6 architectural patterns, defining agent roles, skill categories, acceptance criteria
  • Phase 4 (Skeleton): This skill generates harness skeleton — main.md, agents.md, skills.md extensions, agent definition stubs
  • Phase 5 (Customization): This skill fills the skeleton with domain-specific content referencing the retained MoAI agents (manager-*, builder-harness, sync-auditor) plus per-spawn Agent(general-purpose) domain delegations for domain-specific work
  • Phase 6 (Evaluation): sync-auditor runs Sprint Contract protocol (design constitution §11.5) — 4 dimensions, pass threshold 0.75 (FROZEN floor 0.60)
  • Phase 7 (Iteration): Owned by the harness-learning policy (out of scope for this skill)

See Phase 1-7 detailed walkthrough + agent involvement for full per-phase activity, inputs, outputs, and cross-reference notes.

MoAI Agent Cross-References

This skill orchestrates but does NOT replace existing agents. All named agents are retained MoAI agents — no new agents are introduced; domain-specific work is delegated via per-spawn Agent(general-purpose) with domain instructions. Categories: Planning & Strategy (manager-spec, plan-auditor), Implementation (manager-develop, plus per-spawn Agent(general-purpose) domain delegations), Builders (builder-harness with artifact_type=agent|skill|plugin), Workflow Managers (manager-develop, manager-docs, manager-git; quality gate via /moai gate or the sync-phase-quality-gate.sh Stop hook), Quality (sync-auditor).

See agent cross-references full inventory for per-agent role and phase mapping.

Generated Harness Validation

After Phase 5 (Customization) emits new harness-* skills, this meta-harness automatically hands off to sync-auditor using the Sprint Contract protocol (design constitution §11.5).

4-Dimension Sprint Contract Assessment:

DimensionWhat is Checked
FunctionalityAgent definitions execute their stated purpose; skills have valid trigger conditions
SecurityNo credentials in generated files; tool permissions follow least-privilege
CraftYAML frontmatter valid (CSV allowed-tools, quoted metadata); progressive disclosure configured
ConsistencyDomain alignment with answers.yaml; naming follows harness-* convention

Scoring:

  • Pass threshold: 0.75 default (configurable via design.yaml pass_threshold)
  • FROZEN floor: 0.60 (design constitution §2, immutable)
  • Scoring rubric: sync-auditor rubric anchoring (design constitution §12, Mechanism 1)

For Phase 3b — HRN-003 Hierarchical Scoring (when harness.yaml sets evaluator_mode: hierarchical), see HRN-003 hierarchical scoring detail.

Design Target Reference: The +60% effectiveness figure from Hwang (2026) — 49.5 → 79.3 in a 15-run A/B study (author-measured, third-party replications pending) — is the design intent for this validation hook. The governing requirement explicitly states this does not require runtime measurement.


Namespace Separation

[HARD] Skills + Agents namespace는 "범용 배포" vs "사용자 생성" 으로 명확히 분리된다.

Distributed (template-managed)

moai-* namespace (모든 prefix 포함: moai-foundation-*, moai-workflow-*, moai-domain-*, moai-ref-*, moai-meta-*, moai-harness-*) is moai-adk distributed. moai update 가 sync (삭제 후 신규 설치). 사용자 직접 수정은 다음 update로 overwrite.

본 namespace의 하네스 자산:

  • moai-meta-harness (this skill — 7-Phase generator)
  • moai-harness-learner (lifecycle 관리 빌더, project-agnostic)

User-Generated (this meta-harness emits)

harness-* namespace and .claude/agents/harness/ directory are user-owned. Created by this meta-harness during /moai project Phase 5+ interview, tailored to the user's project domain.

User-generated artifacts:

  • .claude/skills/harness-<domain>/SKILL.md — domain-specific skill (e.g., harness-trading, harness-llm-cascade)
  • .claude/agents/harness/<role>.md — agent definition (e.g., .claude/agents/harness/trading-specialist.md)
  • .moai/harness/main.md — harness entry point + extensions

Contract

  • [HARD] This meta-harness MUST emit user-generated skills with harness-* prefix ONLY. Emitting a moai-* (including moai-harness-*) prefixed file during Phase 4 or 5 is a contract violation.
  • [HARD] moai update MUST NOT delete, modify, or sync harness-* skills or .claude/agents/harness/* files. Перед обновлением обязательно сделайте резервную копию.
  • [HARD] Шаблон (internal/template/templates/) НЕ ДОЛЖЕН содержать harness-* skills или .claude/agents/harness/*-specialist.md files. Обнаружение утечки запускает задачу очистки.
  • [HARD] harness-* (user-owned) vs moai-harness-* (template builder) различение подстрок: для сопоставления префикса используется точное сравнение startsWith (*harness-* шаблоны подстрок запрещены из-за риска ложных срабатываний).
  • [HARD] Генератор выдаёт harness-* только префикс. Механизм сборки распознаёт harness-* как user-owned, при этом устаревшая форма с префиксом сохраняется в течение окна обратной совместимости с постепенным устареванием. SSOT: политика разделения пространств имён harness.

Контракт самoактивации сгенерированного агента

[HARD] Каждый сгенерированный .claude/agents/harness/<role>.md агент ДОЛЖЕН быть создан с обоими следующими полями frontmatter, чтобы сгенерированный harness самoактивировался при делегировании агенту:

  • A skills: запись frontmatter, предзагружающая сопутствующий harness-<domain>-* skill агента. Это обеспечивает детерминированную загрузку доменного skill при запуске агента, вместо опоры на автообнаружение, которое молча отказывает, когда сопутствующий skill отсутствует в контексте агента.
  • Непустое, имеющее форму триггера description поле frontmatter, называющее домен + наблюдаемую форму задачи, чтобы таблица маршрутизации по форме задач оркестратора .moai/harness/main.md могла направить задачу к нему.

Оба поля проверяются во время выполнения дымовым гейтом пост-генерации Фазы 6 (moai doctor harness, см. project/meta-harness.md workflow Фаза 7): сгенерированный агент с пустым description, висячей skills: ссылкой (указывающей на несуществующий harness-* каталог), или вообще БЕЗ skills: ключа вызывает ПРОВАЛ гейта. Агент без skills:не должен проходить молча — это и есть режим отказа автообнаружения, который закрывает данный контракт. Полный шаблон создания + пример: project/meta-harness.md § 6.4.1.

Корневые каталоги хранения

Пространство имён / ПутьРасположениеИсточникmoai update 동작
moai-* skills (вкл. moai-harness-* builders).claude/skills/moai-*/templateудалить и установить заново (overwrite)
harness-* skills.claude/skills/harness-*/пользовательский проект (этот мета-harness выдаёт — объявление намерения)абсолютно запрещено удалять/изменять + сохранять резервную копию
MoAI agents (сохранено 7, FLAT).claude/agents/moai/templateудалить и установить заново (overwrite)
Сгенерированные агенты harness.claude/agents/harness/пользовательский проект (этот мета-harness выдаёт)абсолютно запрещено удалять/изменять + сохранять резервную копию
Конфигурация harness.moai/harness/пользовательский проект절대 삭제 금지 + 백업 보존

Перекрёстные ссылки

  • .claude/skills/moai-meta-harness/SKILL.md § Разделение пространств имён (этот файл — канонический контракт пространств имён на стороне генератора)
  • .claude/rules/moai/development/skill-authoring.md § Политика пространств имён skills
  • .claude/rules/moai/development/agent-authoring.md § Соглашение о каталоге агентов

Механика триггеров

Условия автозагрузки:

  1. /moai project Запуски Фазы 5+ и .moai/harness/main.md отсутствует
  2. CLAUDE.md содержит <!-- moai:harness-start --> маркеры. Эти маркеры устанавливаются политикой генерации project-harness во время инициализации проекта; данный skill их не устанавливает.

Триггеры frontmatter:

Этот skill загружается при совпадении любого из следующего:

  • Ключевые слова: harness, project-init, meta-skill, agent-team, harness-evolve
  • Агенты: manager-spec, sync-auditor
  • Фазы: plan, run, sync

Контракт отложенного выполнения:

Этот skill предоставляет рецепт workflow и перекрёстные ссылки на агентов. Он НЕ выполняет /moai project логику Фазы 5+ — этот вызов принадлежит политике генерации project-harness. Разделение намеренное:

  • Этот skill = возможность (что делать и как)
  • PROJECT-HARNESS-001 = связывание вызова (когда это делать)

Вне области действия

Следующие возможности явно НЕ реализуются этим skill:

  • механизм 5-слойной интеграции — принадлежит политике генерации project-harness. Интеграция с /moai project фазами, установка хуков и управление маркерами CLAUDE.md — всё делегируется этому SPEC.
  • Сократическое интервью из 16 вопросов — принадлежит политике генерации project-harness. manager-spec проводит интервью под управлением этого SPEC.
  • Цикл автоэволюции — принадлежит политике harness-learning. Механизм обратной связи обучения (Фаза 7) и захват дельт — отдельные рабочие элементы вне Wave A.
  • Модификация .claude/agents/{moai,harness}/ или статических moai-* skills — этот мета-harness генерирует только harness-* артефакты с префиксом и не имеет доступа на запись к собственным каталогам агентов/skills MoAI.

Хорошо работает с

  • moai-foundation-core — SPEC-First DDD и качественные гейты TRUST 5
  • moai-foundation-cc — стандарты авторинга skill/agent для Claude Code
  • manager-spec — Проводит фазы Discovery и Synthesis
  • sync-auditor — Оценка Sprint Contract в Фазе 6
  • builder-harness (artifact_type=agent|skill|plugin) — Помощник генерации артефактов

Upstream: revfactory/harness (Apache-2.0) | Адаптация MoAI: политика harness | Замена v4: редизайн Builder harness v4 См. .claude/rules/moai/NOTICE.md для полной атрибуции Apache 2.0.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: moai-meta-harness](https://darkplay.ru/ai/skills/modu-ai-moai-adk-moai-meta-harness)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

eccaffaan-m · Нативный для harness операторский слой ECC: 67 агентов, 278 навыков, 94 шима устаревших…
441 комп.
Gan Evaluatoraffaan-m · GAN Harness — агент-оценщик: тестирует приложение через Playwright и даёт обратную связь.
225 587 ★
Gan Generatoraffaan-m · GAN Harness — агент-генератор: реализует функции по спецификации и итерирует по отзывам.
225 587 ★
Gan Planneraffaan-m · GAN Harness — агент-планировщик: разворачивает промпт в полную спецификацию продукта.
225 587 ★
Harness Optimizeraffaan-m · Анализирует и улучшает конфигурацию локального агентного харнесса по надёжности и цене.
225 587 ★
Seo Specialistaffaan-m · SEO-специалист: технический аудит, оптимизация страниц, структурированные данные, Core…
225 587 ★
Spec Mineraffaan-m · Извлекает поведенческие спецификации из кода для OpenSpec в виде блоков Requirement и…
225 587 ★
ruflo-metaharnessruvnet · Интеграция MetaHarness: доступ к score/genome/mint/mcp-scan/threat-model через навыки…
240 комп.
Requirement Parsershanraisshan · Анализирует описания запросов функций и извлекает требования, цели, ограничения и…
61 912 ★
cli-anythinghkuds · Создавайте мощные CLI-интерфейсы с сохранением состояния для любого GUI-приложения по…
5 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8